Income EnginesMay 21, 2026·8 min read

How to Calculate Profit Margin: Gross, Operating, and Net Explained

G
Written by Gary S.·Reviewed for accuracy May 21, 2026

Profit margin measures how much of each revenue dollar survives as profit. Gross margin ignores overhead; net margin is the true bottom line. A worked example using a freelance consulting business walks through all three with exact formulas and a comparison table.

Profit margin measures how much of each revenue dollar becomes profit after costs. The three types — and their formulas — are:

  1. Gross Margin = (Revenue − Cost of Goods Sold) ÷ Revenue × 100
  2. Operating Margin = (Revenue − COGS − Operating Expenses) ÷ Revenue × 100
  3. Net Profit Margin = Net Income ÷ Revenue × 100

Each answers a different question: gross margin measures product economics, operating margin measures business efficiency, and net margin measures the final take after taxes and interest.

How to calculate profit margin

Divide the relevant profit figure by total revenue and multiply by 100. The three formulas correspond to three levels of the income statement:

MarginFormulaWhat it strips out
Gross margin(Revenue − COGS) ÷ Revenue × 100Direct production costs only
Operating margin(Gross Profit − Operating Expenses) ÷ Revenue × 100All operating overhead; excludes interest and taxes
Net profit marginNet Income ÷ Revenue × 100Everything — COGS, overhead, interest, and taxes

The three profit margins — what each measures

How $100K Revenue Becomes Net ProfitRevenueGross ProfitOperating ProfitNet Profit$100,000$60,000−$40K COGS$25,000−$35K OpEx$18,750−$6.25K tax100%60% gross25% oper.18.75% net$0$25K$50K$75K$100K
How $100K revenue flows through three margin layers to $18,750 net profit

The diagram above uses a sample business with $100,000 in annual revenue. Here is what each layer means in practice.

Gross margin (60%)

Line itemAmount
Revenue$100,000
COGS (materials, manufacturing, freight in)−$40,000
Gross profit$60,000
Gross margin60%

For every dollar of revenue, 60 cents remain after paying direct production costs. This is the "product economics" number. A 60% gross margin tells you the core product is viable before any overhead enters the picture. If your gross margin is thin — say, 20% — you face a structural problem: no amount of cost-cutting elsewhere can save a business where production itself eats 80 cents of every dollar.

Operating margin (25%)

Line itemAmount
Gross profit$60,000
Operating expenses (salaries, rent, marketing, SaaS, insurance)−$35,000
Operating profit (EBIT)$25,000
Operating margin25%

For every dollar of revenue, 25 cents remain after all business operations. Operating margin is the purest measure of business efficiency: it excludes financing decisions (interest on loans) and tax structure, so it shows the operating model in isolation. A business with a 25% operating margin on $100K is earning $25,000 from operations regardless of how it was financed or where it is incorporated.

Net profit margin (18.75%)

Line itemAmount
Operating profit (EBIT)$25,000
Taxes (25% effective rate)−$6,250
Net income$18,750
Net margin18.75%

The final take after everything. On $100,000 in revenue, $18,750 ends up as owner profit or retained earnings. This is the number that matters for personal income, business valuation, and investor return. A 5% increase in revenue with the same cost structure adds $937.50 to net profit — but a 5% reduction in COGS adds $5,000 directly. Each layer of the waterfall responds differently to the same intervention.

Profit margin benchmarks by industry

What counts as a "good" profit margin depends entirely on industry. Comparing a software company to a grocery chain on net margin tells you nothing useful — the business models have fundamentally different cost structures.

IndustryGross marginOperating marginNet margin
SaaS / software70–80%15–25%10–20%
Consulting / professional services60–75%20–35%15–30%
Digital agency50–65%15–25%10–20%
E-commerce (direct to consumer)40–60%8–15%5–12%
Retail (brick-and-mortar)25–45%3–8%2–6%
Restaurant60–70% (food cost only)3–9%2–6%
General contractor / construction15–30%5–12%3–8%
Manufacturing25–40%8–15%5–10%

Note the restaurant paradox: restaurants show 60–70% gross margins on food cost alone, but net margins collapse to 2–6% because operating expenses (labor, rent, equipment, utilities) consume nearly everything above the food cost. SaaS has excellent margins because software has near-zero variable cost after the initial build — each additional customer adds almost pure margin. The most meaningful benchmark for any business is its own trend over time. A restaurant improving from 3% to 5% net margin is doing something right; a consulting firm declining from 28% to 19% net margin needs to act before the slide continues.

Markup vs. margin — the most confused terms in business

Markup and margin are not interchangeable, yet most small business owners use them that way. The confusion causes systematic under-pricing that compounds over time.

Margin = profit as a percentage of revenue (selling price).
Markup = profit as a percentage of cost.

Example: an item costs $60 to produce and sells for $100.

  • Margin = ($100 − $60) ÷ $100 = 40%
  • Markup = ($100 − $60) ÷ $60 = 66.7%

A 40% margin and a 66.7% markup describe the same product. A 50% margin requires a 100% markup (doubling the cost). They only converge at zero. Markup always sounds larger than the equivalent margin — which is why some suppliers and manufacturers quote markups while financial reporting uses margins.

Why this error is expensive: if your supplier says "price at a 30% markup" and you instead set prices at a 30% margin, you are underpricing by approximately 22%. On a business doing $200,000 per year in product revenue, that is $44,000 in missing gross profit annually — enough to swing the business from profitable to unprofitable.

Conversion formulas:

  • Margin to markup: Markup = Margin ÷ (1 − Margin)
  • Markup to margin: Margin = Markup ÷ (1 + Markup)

For practical pricing decisions, always work in margin — it maps directly to how accountants, lenders, and investors read financial statements.

How to improve profit margin — the four levers

Lever 1 — Raise prices

The highest-leverage action available to any business. A 10% price increase on $200,000 in revenue generates $20,000 in additional gross revenue. If variable costs stay constant — which they do for service businesses and many product businesses — that $20,000 flows directly to gross profit with no offsetting cost increase. Most businesses significantly underestimate their pricing power. Before cutting costs, test a 10–15% price increase on new customers or new contracts. The market tells you where the ceiling is.

Lever 2 — Reduce COGS

Every dollar removed from COGS flows directly to gross profit at a 1:1 ratio. Practical actions: negotiate supplier contracts annually (most vendors budget for renegotiation and expect it), buy in larger quantities for volume discounts, get three competing quotes on any significant supply contract, and eliminate product lines with gross margin below your average — they drag down the blended gross margin even if they are "profitable" in absolute terms.

Lever 3 — Reduce operating expenses

Conduct an annual subscription audit — the average small business carries $342 per month in unused or underused software subscriptions. Renegotiate insurance, office leases, and service contracts annually; most vendors would rather reduce the price than lose the account. Where revenue volume is uncertain, convert fixed labor costs (full-time employees) to variable costs (contractors) — this converts a fixed expense into a variable one that scales with revenue.

Lever 4 — Product mix optimization

Not all revenue carries equal margin. A business selling two products — one at 70% gross margin and one at 20% — should direct marketing spend, sales effort, and capacity toward the 70% product. Shifting revenue mix toward higher-margin products improves blended gross margin without touching prices or cutting costs. Track gross margin by product, service line, and customer segment quarterly. The low-margin segment is almost always obvious once you look.

Profit margin for freelancers and solopreneurs

For pure service businesses — a copywriter, a consultant, a coach — COGS is near zero. You sell time and expertise, not a manufactured product. The gross margin is effectively 100%. The relevant calculation is net profit margin: revenue minus all expenses and taxes divided by revenue.

Example: freelance copywriter, annual figures.

Line itemAmount
Annual revenue$120,000
Direct costs (software, professional development, subcontractors)−$8,000
Operating expenses (home office, insurance, accountant)−$12,000
Self-employment tax (15.3% of net earnings)−$15,300
Income tax (22% bracket, estimated effective)−$18,400
Net profit$66,300
Net margin55.3%

For a solo service business, a 40–60% net margin is healthy. Below 30% suggests either underpricing, excessive overhead, or missed tax deductions. The two most common errors for freelancers: forgetting to account for self-employment tax (15.3% of net earnings, on top of income tax) when setting rates, and letting business expenses leak into personal spending that doesn't get deducted. Track net margin quarterly — it tends to drift down gradually and the erosion is invisible until the annual tax bill arrives.

The profit margin trap — revenue that hurts you

Counter-intuitive: adding revenue can reduce your overall profit margin percentage, and in some cases reduce absolute profit. Not all revenue is good revenue.

Example: a digital agency with $500,000 in revenue and a 35% net margin. Net profit = $175,000. The agency adds a new client at $100,000 per year — but the client required heavy discounting and custom work, so the net margin on that engagement is 10%.

  • New total revenue: $600,000
  • New blended net profit: $175,000 + $10,000 = $185,000
  • New blended net margin: $185,000 ÷ $600,000 = 30.8%

Revenue grew 20%. Absolute profit grew by $10,000. But net margin dropped from 35% to 30.8% — and the effort required for the new client likely equaled or exceeded the effort for several existing clients. The agency traded margin quality for revenue volume.

The discipline: track margin by client, product line, and revenue channel — not just in aggregate. Fire or reprice low-margin clients annually. A smaller revenue number with a higher margin is nearly always the better business.

Key takeaways

  • Three margins measure three different things: gross margin equals product economics, operating margin equals business efficiency, and net margin equals the final take after taxes and interest. Each diagnoses a different problem.
  • Margin and markup are not interchangeable. Confusing a 30% markup for a 30% margin on a $200K revenue business costs approximately $44,000 per year in missing gross profit. Always price to a target margin, not a target markup.
  • Industry benchmarks matter. A 6% net margin is excellent for a restaurant and dangerously thin for a consulting firm. The most important benchmark is your own trend — a business improving from 12% to 18% net margin over two years is healthier than one sitting at 25% and declining.
  • Price increases are the highest-leverage margin improvement available. A 10% price increase on $200K flows $20,000 directly to gross profit with no increase in variable costs. Test pricing power before cutting costs.
  • Not all revenue is good revenue. A low-margin client or product line reduces your blended margin percentage even while growing total revenue. Track margin by segment and remove or reprice underperformers annually.

Calculate your profit margin

Free interactive tool

Profit Margin & Markup Calculator

Enter your revenue, cost of goods sold, and operating expenses. Get gross, operating, and net margin instantly — plus the markup percentage your pricing implies.

Open Profit Margin Calculator →

Frequently asked questions

What is a good profit margin for a small business?

It depends heavily on industry. For consulting and professional services, 20–35% net margin is healthy. For e-commerce, 8–15% net margin is good. For retail, 3–8% is typical. For SaaS products, 15–25% net margin is the target at scale. The most important benchmark is your own trend — a business improving from 12% to 18% net margin over two years is healthier than one sitting at 25% and declining. Never compare your margin to a business in a different industry; the cost structures are too different to be meaningful.

What is the difference between gross profit and net profit?

Gross profit equals revenue minus the direct cost of producing what you sold (COGS). Net profit equals what remains after also subtracting operating expenses, interest, and taxes. A business can have high gross profit and low or even negative net profit — this is common in businesses with heavy overhead, such as restaurants, retail stores, and companies with large payrolls. Gross profit tells you whether the product or service is viable; net profit tells you whether the whole business is viable. Net profit is the only number that matters for owner take-home and business valuation.

How do I calculate profit margin if I'm a freelancer?

Revenue minus all expenses (direct costs, overhead, and taxes) divided by revenue. The key expense freelancers most often forget: self-employment tax (15.3% of net earnings) is owed in addition to income tax, and it must be factored into rate-setting, not treated as a surprise at tax time. On $120,000 in freelance revenue with $53,700 in combined expenses and taxes, net margin equals $66,300 ÷ $120,000 = 55.3%. Track this quarterly — margin tends to drift down as lifestyle spending leaks into business expenses and rates stagnate while costs rise.

Should I use markup or margin to price my products?

Use margin. Margin-based pricing is standard in accounting, financial reporting, and business valuation. Markup creates confusion when communicating with investors, lenders, or buyers — a 100% markup sounds much larger than the equivalent 50% margin, and the gap widens as margins rise. Set prices to a target gross margin (for example, "I want 60% gross margin on all products") so your language stays consistent with how financial statements read. When a supplier or partner quotes a markup percentage, convert it to margin before using it in any internal planning.

Can you have high revenue and still be unprofitable?

Yes — and it is common. A restaurant with $1.2 million per year in revenue and $1.3 million per year in costs has a −8.3% net margin. Revenue growth does not guarantee profitability; margin improvement does. Growing revenue at a negative margin only accelerates losses — each additional dollar of revenue destroys more value than it creates. Venture-backed startups sometimes operate this way intentionally, betting that scale will create operating leverage. For most small businesses, the focus should be on improving margin at current revenue before pursuing growth. See the break-even analysis guide to understand what revenue level makes your cost structure profitable.

To understand how profit margin connects to business survival and cash position, see the break-even analysis guide. To understand the full tax impact on your net margin as a self-employed person, see the self-employment tax guide.

⚙️

Want to run your own numbers? Open the interactive Self-Employment Tax Estimator as you read Quarterly Tax Estimator.

Free tool

Try the Profit Margin Calculator

Use our free profit margin calculator to calculate results instantly — no signup required.

Open Profit Margin Calculator
Tags:profit margingross profit marginnet profit marginmarkup vs marginbusiness profitabilitycogs
Share

Educational content only — not financial advice

The content published on Garypedia is provided solely for informational and educational purposes. It does not represent, and should not be interpreted as, financial, investment, tax, accounting, or legal advice of any kind. While reasonable care is taken to ensure the accuracy of figures, formulas, and data sources referenced, no warranty — express or implied — is made as to their completeness or suitability for any particular purpose. Garypedia, its operators, and contributors expressly disclaim all liability for any loss, damage, or adverse outcome — whether direct, indirect, or consequential — arising from reliance on material published on this site. All examples are illustrative only. Individual circumstances vary significantly; you should independently verify any information and seek guidance from a suitably qualified and regulated financial, tax, or legal professional before making any financial decision.