Profit Margin Calculator
Enter one month of revenue and costs. We'll break out gross, operating, and net margin — then show the revenue you'd need to hit your target.
Your markup on direct costs is 127.3%. To earn a 20% net margin at your current cost base of $39,000, you'd need $48,750 in monthly revenue — you're already there.
How to calculate profit margin
Profit margin is profit divided by revenue, expressed as a percentage. The only thing that changes between the three margins below is how much cost you subtract before you divide. Every one of them uses revenue as the denominator — that is what separates margin from markup.
Gross profit margin
(Revenue − COGS) ÷ Revenue
Subtracts only direct costs — materials, subcontractors, billable labor, merchant fees. Answers: is the work itself priced correctly?
Operating profit margin
(Gross profit − Operating expenses) ÷ Revenue
Adds overhead — rent, software, insurance, admin payroll. Answers: can the business carry itself?
Net profit margin
(Revenue − All costs) ÷ Revenue
Subtracts everything, including interest and taxes. Answers: what did the business actually earn?
A worked example
Take a contractor billing $50,000 in a month, with $22,000 of materials and subcontractor cost, $15,000 of overhead, and $2,000 of interest and other costs. Those are the default values in the calculator above, so you can follow along line by line.
| Revenue | $50,000 | |
| Less cost of goods sold | ($22,000) | |
| Gross profit | $28,000 | 56.0% gross margin |
| Less operating expenses | ($15,000) | |
| Operating profit | $13,000 | 26.0% operating margin |
| Less interest, taxes, other | ($2,000) | |
| Net profit | $11,000 | 22.0% net margin |
The markup on direct costs here is 127%, while the gross margin is 56%. Same $28,000 of profit, two very different percentages — which is exactly why quoting from a markup table and measuring with a margin target leads to underpriced work.
Typical margin ranges by business model
These are working rules of thumb from the kinds of books we see, not results from a formal survey. Use them to sanity-check whether your number is plausible for your model — then compare yourself against your own six-month trend, which is far more useful than any external average.
| Business model | Gross margin | Net margin | What actually moves it |
|---|---|---|---|
| Professional services (consulting, legal, accounting) | 70–90% | 15–25% | Direct cost is billable labor, so gross margin is high. Net margin lives or dies on utilization and overhead. |
| Trades & construction contracting | 20–35% | 5–12% | Materials and subs dominate. Job-level costing matters more than the company-wide number. |
| Retail & e-commerce | 30–50% | 2–8% | Shipping, returns, and ad spend quietly move net margin more than pricing does. |
| Restaurants & food service | 60–70% | 3–9% | Food cost sets gross margin; labor and rent set net. Both need weekly review, not monthly. |
| Medical & dental practices | 55–75% | 10–20% | Contractual write-offs must be recorded separately from collections or margin is overstated. |
| Real estate & property management | 50–70% | 10–20% | Depreciation and interest sit below operating margin, so the two figures diverge sharply. |
Margin vs. markup
Margin divides profit by the price. Markup divides the same profit by the cost. To price for a target margin, divide cost by (1 − margin) — never add the margin percentage to cost.
| Target margin | Required markup on cost | Price on a $100 cost |
|---|---|---|
| 10% | 11.1% | $111 |
| 20% | 25.0% | $125 |
| 30% | 42.9% | $143 |
| 40% | 66.7% | $167 |
| 50% | 100.0% | $200 |
| 60% | 150.0% | $250 |
Three reasons the number in your accounting software is wrong
Direct costs are sitting in overhead
If subcontractor payments, materials, or merchant processing fees are coded to general expenses instead of cost of goods sold, gross margin is overstated and you cannot tell whether your pricing works. This is the most common chart-of-accounts problem we fix during a cleanup.
Owner compensation is inconsistent or missing
A margin calculated without paying the owner a market wage for the work they do is not a real margin. If you are the technician, the salesperson, and the bookkeeper, your P&L should carry the cost of replacing you — otherwise you are subsidizing the business and calling it profit.
Loan principal is confused with expense
Principal repayment reduces cash and a liability but never appears on the P&L; only the interest does. Owners who mentally subtract the full loan payment from profit understate margin, and owners who forget debt service entirely overstate their capacity to borrow more.
Frequently asked questions
+How do you calculate profit margin?
Divide profit by revenue, then multiply by 100. The formula changes only by which profit you use: gross margin is (revenue − cost of goods sold) ÷ revenue, operating margin is (gross profit − operating expenses) ÷ revenue, and net margin is (profit after every cost, including interest and taxes) ÷ revenue. Always divide by revenue, never by cost — dividing by cost gives you markup instead.
+What is the difference between gross, operating, and net profit margin?
Gross margin measures whether the work itself is priced correctly, because it only subtracts direct costs like materials, subcontractors, and billable labor. Operating margin adds overhead — rent, software, admin payroll, insurance — and shows whether the business can carry itself. Net margin subtracts everything else, including loan interest and taxes, and is the number a lender or buyer looks at. A business can have a healthy gross margin and a negative net margin, which usually means pricing is fine but overhead is too heavy.
+What is a good profit margin for a small business?
It depends almost entirely on the model, so compare yourself against your own trend before you compare against anyone else. Service businesses that sell labor typically hold much higher gross margins than businesses that resell physical goods, while net margin compresses for everyone as overhead and debt service grow. The practical test: is your net margin stable or improving over the last six months, and does it cover your debt payments with room left over?
+What is the difference between margin and markup?
Margin divides profit by the selling price; markup divides the same profit by the cost. If an item costs $100 and sells for $150, the margin is 33.3% ($50 ÷ $150) and the markup is 50% ($50 ÷ $100). This is the single most common pricing error we see in client books — an owner applies a 30% markup believing it produces a 30% margin, and quietly underprices every job.
+How do you calculate the price needed to hit a target margin?
Divide your cost by (1 − target margin expressed as a decimal). To earn a 40% margin on an item that costs $60, the price is $60 ÷ 0.60 = $100. Do not add 40% to the cost — that produces a 28.6% margin. The calculator above runs this in reverse for your whole business: it takes your total cost base and shows the revenue required to reach your target net margin.
+How do you calculate profit margin in Excel or Google Sheets?
Put revenue in A1 and profit in B1, then use =B1/A1 and format the cell as a percentage. For gross margin from revenue and cost of goods sold, use =(A1-B1)/A1. Wrap it in =IFERROR((A1-B1)/A1,0) so the sheet does not break in months with no revenue.
+Why does my profit margin look fine but my bank account does not?
Margin is an accrual measure and cash is a timing measure. Margin can be strong while cash is tight because of unpaid invoices, inventory purchased ahead of sales, loan principal payments (which never touch the P&L), or owner draws. That gap is the most common reason a profitable business runs out of money, and it is why we pair margin review with a cash flow forecast.
Want the margin math done on your real numbers?
A calculator uses the figures you type in. If your chart of accounts puts direct costs in the wrong place, the percentage will look fine while the business quietly loses money on every job. We rebuild the accounts, reconcile the history, and hand back a P&L where the margin means something.
Want us to review these numbers with you?
Share a few details and we'll follow up within one business day with tailored next steps — no pressure, no obligation.
Need this done for you?
This calculator is only as accurate as the books behind it. Here's where to go next.
- Monthly bookkeeping & cleanup servicesMargins are only as good as the categorization behind them.Open Monthly bookkeeping & cleanup services
- Retail & ecommerce bookkeepingCOGS, inventory, and platform fees separated correctly.Open Retail & ecommerce bookkeeping
- 13-week cash flow forecastMargins mean nothing without cash timing — forecast the next quarter.Open 13-week cash flow forecast