How to Calculate Profit Margin: Gross, Operating, and Net Explained
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 type | Formula | What it measures |
|---|---|---|
| Gross margin | (Revenue − COGS) ÷ Revenue × 100 | Profitability after direct production costs only |
| Operating margin | (Revenue − COGS − Operating expenses) ÷ Revenue × 100 | Profitability from core operations, before interest and taxes |
| Net margin | Net profit ÷ Revenue × 100 | True 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 type | Gross margin range | Net margin range |
|---|---|---|
| Freelance consulting / professional services | 70–90% | 45–70% |
| Software as a Service (SaaS) | 60–80% | 10–25% |
| Web development agency | 55–75% | 15–30% |
| Accounting / legal services | 50–65% | 20–35% |
| Restaurant | 60–70% (food margin) | 3–9% |
| Retail (general) | 30–50% | 2–6% |
| E-commerce | 20–40% | 5–15% |
| Construction / contracting | 15–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.
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 item | Amount | Margin at this level |
|---|---|---|
| Revenue (8 clients × $15,000) | $120,000 | — |
| COGS: subcontractors, project tools, stock image licenses | −$18,000 | — |
| Gross profit | $102,000 | Gross 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,000 | Operating margin: 67% |
| Taxes: SE tax ($10,500 approx) + federal income tax ($13,500 after deductions) | −$24,000 | — |
| Net profit | $56,000 | Net 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.
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
- U.S. Small Business Administration — Strengthen Your Business Finances — Official SBA guidance on reading financial statements, including income statement analysis and margin tracking.
- IRS — Business Expenses (Publication 535) — Defines what qualifies as COGS vs operating expenses for tax purposes — the same distinction used in margin analysis.
- NYU Stern — Profit Margins by Industry — Annual dataset of gross and net margins by sector, widely used as an industry benchmark reference.
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 →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.