All Tools
Pricing & Profit

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.

Gross margin
56.0%
Operating margin
26.0%
Net margin
22.0%
Gross profit
$28,000
Operating profit
$13,000
Net profit
$11,000

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?

Worked example 1: a service contractor

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,00056.0% gross margin
Less operating expenses($15,000)
Operating profit$13,00026.0% operating margin
Less interest, taxes, other($2,000)
Net profit$11,00022.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.

Worked example 2: a single retail product

Margin at the product level is where markup confusion costs the most money. Take an item you buy for $40 and sell for $65, with $4 of card processing and shipping cost attached to the sale.

Selling price$65.00
Product cost($40.00)
Processing + shipping($4.00)
Gross profit per unit$21.0032.3% gross margin
Markup on the $44 landed cost47.7% markup

An owner aiming for a 40% margin who adds 40% to the $44 landed cost would price the item at $61.60 and earn a 28.6% margin — roughly $7 per unit less than intended. Priced properly at $44 ÷ 0.60 = $73.33, the 40% margin actually lands. Note also that leaving processing and shipping out of cost of goods sold would report a 38.5% margin on the same sale, which is the reporting version of the same mistake.

Worked example 3: a professional services firm

A two-person consulting firm bills $28,000 a month. Direct cost is $9,000 of contractor time on client work; overhead is $11,500 of rent, software, insurance, and admin pay; and $1,200 covers loan interest and taxes.

Revenue$28,000
Less direct (billable) labor($9,000)
Gross profit$19,00067.9% gross margin
Less operating expenses($11,500)
Operating profit$7,50026.8% operating margin
Less interest and taxes($1,200)
Net profit$6,30022.5% net margin

Compare this to the contractor above: nearly the same net margin, reached a completely different way. The consultancy earns 67.9% gross and gives most of it back to overhead, while the contractor earns 56% gross on much heavier direct cost. That is why gross margin only means something against your own model — and why the benchmark ranges below are split by business type.

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 modelGross marginNet marginWhat 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 contracting20–35%5–12%Materials and subs dominate. Job-level costing matters more than the company-wide number.
Retail & e-commerce30–50%2–8%Shipping, returns, and ad spend quietly move net margin more than pricing does.
Restaurants & food service60–70%3–9%Food cost sets gross margin; labor and rent set net. Both need weekly review, not monthly.
Medical & dental practices55–75%10–20%Contractual write-offs must be recorded separately from collections or margin is overstated.
Real estate & property management50–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 marginRequired markup on costPrice 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

The two conversions, if you only remember one thing: markup = margin ÷ (1 − margin) and margin = markup ÷ (1 + markup). Markup can exceed 100%; margin never can, because profit cannot be larger than the price.

Four ways to raise the margin you just calculated

Ordered by how quickly they show up in the numbers. The first two move margin next month; the last two take a quarter but stick.

Reprice from margin, not from cost

Rebuild your quote template around cost ÷ (1 − target margin). On the retail example above, that one change is worth about 11 points of margin per unit with no change in volume.

Find the jobs or products below your average

Company-wide margin hides the losers. Sort last quarter's work by gross profit per job; the bottom fifth usually explains most of the gap between the margin you want and the margin you have.

Attack direct cost before overhead

A dollar saved in cost of goods sold moves gross, operating, and net margin at once. Supplier terms, waste, rework, and unbilled change orders are where contractors and shops recover the most.

Hold overhead flat while revenue grows

Rent, software, and admin pay are largely fixed, so every incremental sale converts at close to your gross margin rate. Growing revenue 20% without adding overhead is often a bigger net-margin lever than any cost cut.

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.

+How do you convert a markup percentage into a margin percentage?

Margin = markup ÷ (1 + markup). A 50% markup is 0.50 ÷ 1.50 = 33.3% margin. Going the other direction, markup = margin ÷ (1 − margin), so a 40% margin requires a 66.7% markup. Keep one of the two conversions written on the quote template so nobody has to remember which way it runs.

+Can profit margin be more than 100%?

No. Because margin divides profit by revenue and profit can never exceed revenue, margin caps at 100%. Markup has no ceiling — a $10 cost sold for $100 is a 900% markup but a 90% margin. If your software reports a margin above 100%, revenue is understated or a refund or contra-revenue account is being recorded as income.

+Is a 20% profit margin good?

A 20% net margin is strong for most small businesses and unusually strong for contracting, retail, or food service, where mid single digits is typical. A 20% gross margin, on the other hand, is thin for almost every model and usually means direct costs are creeping or jobs are being quoted from a markup table. Always confirm which of the three margins the 20% refers to before judging it.

+How often should I check my profit margin?

Monthly, once the books are reconciled, and per job or per product line if your work varies in size. Monthly review catches overhead drift; job-level review catches the one client or product that is quietly losing money while the company average still looks acceptable.

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.

Margins move quietly, so the owners who catch a slide early are the ones reviewing statements monthly — that is the heart of our monthly bookkeeping services. To see what that costs, compare our flat monthly pricing against doing it yourself.

Get Your Personalized Next Steps

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.

We reply within 1 business day. Your info stays private.

Need this done for you?

This calculator is only as accurate as the books behind it. Here's where to go next.

Want us to walk through your numbers?
Book a free 20-minute consult.