Income EnginesJune 21, 2026·8 min read

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

G
Written by Gary Sing·Reviewed for accuracy June 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.

⚙️

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

To calculate profit margin, divide profit by revenue and multiply by 100. Gross margin = (Revenue − COGS) ÷ Revenue × 100. Operating margin = Operating Income ÷ Revenue × 100. Net margin = Net Income ÷ Revenue × 100. On $500,000 in revenue with $200,000 COGS and $150,000 operating expenses, gross margin is 60%, operating margin is 30%, and net margin depends on taxes and interest.

How to calculate profit margin

Each margin strips away a different layer of costs, moving from the top of the income statement toward the bottom:

Margin typeFormulaWhat it measures
Gross margin(Revenue − COGS) ÷ Revenue × 100Profitability after direct production costs only
Operating margin(Revenue − COGS − Operating expenses) ÷ Revenue × 100Profitability from core operations, before interest and taxes
Net marginNet profit ÷ Revenue × 100True bottom line after all costs, interest, and taxes

COGS (Cost of Goods Sold) includes only costs directly tied to producing revenue: materials, direct labor, subcontractors hired for a specific project, and project-specific software licenses. Operating expenses cover everything else required to run the business: rent, salaries not tied to production, marketing, insurance, admin software, and professional services like accounting. Separating the two is the foundation of meaningful margin analysis.

Markup vs margin: a clarification most business owners need

Markup and margin are not interchangeable, and confusing them causes systematic under-pricing. Markup is profit expressed as a percentage of cost. Margin is profit expressed as a percentage of revenue.

If a product costs $60 to produce and sells for $100:

Markup = ($100 − $60) ÷ $60 = 66.7%

Margin = ($100 − $60) ÷ $100 = 40%

A 66.7% markup and a 40% margin describe the same product. A business owner who thinks they have a "60% margin" because they applied a 60% markup actually has a 37.5% margin — and is consistently quoting less profit than intended.

Typical margins by industry

Industry / Business typeGross margin rangeNet margin range
Freelance consulting / professional services70–90%45–70%
Software as a Service (SaaS)60–80%10–25%
Web development agency55–75%15–30%
Accounting / legal services50–65%20–35%
Restaurant60–70% (food margin)3–9%
Retail (general)30–50%2–6%
E-commerce20–40%5–15%
Construction / contracting15–30%2–8%

Pure service businesses (consulting, copywriting, development) have high gross margins because their COGS is low — they are selling knowledge and time, not physical goods. Net margins are lower because overhead, taxes, and insurance come out before the bottom line.

Waterfall chart: $120,000 freelance revenue to $56,000 net profitWaterfall chart showing $120,000 revenue reduced by $18,000 COGS (85% gross margin), $22,000 operating expenses (67% operating margin), and $24,000 taxes to arrive at $56,000 net profit (47% net margin).Freelance revenue waterfall — $120,000 gross to $56,000 net profit$120kRevenue100%−$18k$102kGross85% margin−$22k$80kOperating67% margin−$24k$56k netNet Profit47% margin$0k$30k$60k$90k$120k
Each deduction layer reduces margin: COGS → gross margin (85%), operating expenses → operating margin (67%), taxes → net margin (47%).

Worked example: freelance consultant earning $120,000

A freelance marketing consultant bills $120,000 per year across eight retainer clients. Here is the full income statement with all three margins calculated:

Line itemAmountMargin at this level
Revenue (8 clients × $15,000)$120,000
COGS: subcontractors, project tools, stock image licenses−$18,000
Gross profit$102,000Gross margin: 85%
Operating expenses: home office ($500/mo), software subscriptions ($300/mo), business insurance ($1,200/yr), marketing ($4,000/yr)−$22,000
Operating profit (EBIT)$80,000Operating margin: 67%
Taxes: SE tax ($10,500 approx) + federal income tax ($13,500 after deductions)−$24,000
Net profit$56,000Net margin: 47%

The 85% gross margin is strong — COGS is tight. The 18-point drop to 67% operating margin comes from overhead. The 20-point drop to 47% net margin is the tax load. A consultant seeing a 30% net margin instead of 47% should check: are operating expenses too high, or is the SE tax calculation missing deductions? Each layer of the waterfall points to a different fix.

For comparison: if this consultant raised rates to $150,000 revenue with the same $40,000 in total costs, net margin jumps to 73% ($110,000 ÷ $150,000). Pricing increases have a disproportionate impact on net margin because they do not increase variable costs proportionally.

📊

Free Calculator

Calculate your gross, operating, and net margin in seconds

Enter your revenue, COGS, and operating expenses to see all three margins and markup ratios — no spreadsheet needed.

Open calculator →

How to use margin analysis to improve profitability

Each margin layer is a diagnostic. Here is how to read them:

Low gross margin (below 50% for a service business) means you are spending too much on direct delivery — subcontractors eating too much of the project fee, materials costs too high, or pricing is too low for the scope of work. Fix: renegotiate COGS or raise prices.

Large gap between gross and operating margin means overhead is the problem — too much rent, excess software subscriptions, or admin payroll out of proportion to revenue. Fix: audit operating expenses and eliminate underperforming spend.

Large gap between operating and net margin means taxes or interest are the culprit. For freelancers, this is usually under-utilizing deductions — missing the SEP-IRA contribution, home office deduction, or health insurance premium deduction. Fix: review deductions with an accountant.

Authoritative sources

Key takeaways

  • Gross margin = (Revenue − COGS) ÷ Revenue. It measures efficiency of production, not overall profitability. A 90% gross margin is meaningless if operating costs eat the rest.
  • Operating margin strips out overhead and shows whether the core business model is viable, before taxes and financing. A healthy service business should target 50%+ operating margin.
  • Net margin is the final scorecard: $56,000 net on $120,000 revenue = 47%. Track this monthly to catch cost creep before it compounds.
  • A 60% markup equals a 37.5% margin — not 60%. Always verify which number you are using in pricing decisions.
  • For freelancers, the biggest lever to improve net margin without raising prices is maximizing tax deductions: SEP-IRA, home office, and health insurance premium deductions can reduce taxable income by $20,000–$30,000.

Frequently asked questions

What is the difference between markup and profit margin?

Markup is profit divided by cost; margin is profit divided by revenue. A product with a $60 cost and $100 selling price has a 66.7% markup but only a 40% margin. The same dollar profit looks different depending on which formula you use. Many small business owners set prices using markup but report results in margin — always clarify which figure a percentage refers to.

What is a good profit margin for a freelance business?

Net profit margins for freelance service businesses typically range from 45–70%, because direct costs (COGS) are low — you are mostly selling time. A net margin below 35% for a solo freelancer usually indicates either underpricing, excessive outsourcing, or underutilized tax deductions. Compare against industry benchmarks: accounting 25–35%, web development 20–35%, consulting 40–55%.

How does COGS differ from operating expenses?

COGS includes only costs directly attributable to producing a specific unit of revenue — a subcontractor hired for one project, materials consumed in a specific job, or project-specific software. Operating expenses cover costs that exist regardless of any single project: rent, regular salaries, marketing budgets, and general business insurance. The accounting distinction matters for gross margin calculation and tax treatment under Schedule C.

Can a business have high revenue but low profit margin?

Yes, and it is extremely common. A $500,000 revenue business with $480,000 in combined costs has a 4% net margin. This is typical in retail, construction, and restaurant sectors. High revenue is not the same as profitability. A freelancer billing $80,000 with $10,000 in costs (87.5% net margin) has more actual profit than a staffing agency billing $1 million with 3% net margin.

How do I increase my profit margin without raising prices?

Three levers: reduce COGS (renegotiate subcontractor rates, eliminate project scope creep, use lower-cost tools), cut operating expenses (audit software subscriptions, consolidate services), and maximize tax deductions (SEP-IRA, home office, health insurance, equipment). In service businesses, moving from hourly to project-based pricing also improves effective margin by rewarding efficiency rather than penalizing it.

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.