Revenue tells you what came in the door. Profit margin tells you what actually stuck around after the bills got paid — and it comes in two flavors that answer different questions. Enter your revenue, cost of goods sold, and operating expenses below and this calculator returns both gross margin and net margin side by side, so you can see how much a sale is worth at the product level versus after the whole business takes its cut.
How it works
Gross margin only accounts for the cost of goods sold (COGS) — the direct cost of producing or delivering whatever you sold: materials, production labor, a contractor paid to do the work itself. Subtract COGS from revenue to get gross profit, then divide by revenue to get gross margin as a percent. It answers a narrow question: is the thing you sell priced well relative to what it costs to make?
Net margin asks the bigger question. It takes gross profit and subtracts operating expenses too — rent, software, marketing, admin salaries, insurance, anything that keeps the business running regardless of how much you sold that month. What's left is net profit, and dividing that by revenue gives net margin: the real percentage of every dollar that ends up as profit once everything is accounted for.
The gap between the two numbers is exactly your operating expenses as a share of revenue. A business can have a strong gross margin and still lose money overall if overhead is bloated — which is precisely why looking at gross margin alone can be misleading, and why this calculator shows both.
Worked example
Say your business brings in $10,000 in revenue for the month. Cost of goods sold is $4,000, and operating expenses — rent, software, everything else — come to $2,000.
- Gross profit: $10,000 − $4,000 = $6,000
- Gross margin: $6,000 ÷ $10,000 × 100 = 60%
- Net profit: $10,000 − $4,000 − $2,000 = $4,000
- Net margin: $4,000 ÷ $10,000 × 100 = 40%
A 60% gross margin looks strong on its own — for every dollar of revenue, 60 cents survives the direct cost of production. But the full picture is the 40% net margin: after operating expenses are paid too, 40 cents out of every dollar is actual profit. That 20-point gap is what overhead costs you, and it's the number that gets missed when a business only tracks gross margin and assumes the rest falls into place.
How to interpret your result
Net margin is the number that matters for actually running the business — it's what's left to reinvest, save, or pay yourself once every real cost of keeping the lights on has been subtracted. If net margin is thin even though gross margin looks healthy, the problem isn't your pricing or your production cost, it's overhead: too much spent on operating expenses relative to what's coming in.
Gross margin is more useful for judging whether an individual product or service line is worth selling at all, independent of how the rest of the business is run. A weak gross margin means you're barely covering the direct cost of the work before overhead even enters the picture — no amount of trimming operating expenses fixes that, because the problem is upstream, in what you charge versus what it costs to deliver.
Don't confuse either margin with markup. Margin measures profit against revenue — what share of the money you keep. Markup measures profit against cost — how much you added on top of what something cost you. They use the same profit figure but divide by different things, so a 50% markup is never a 50% margin. If you're pricing from a cost-plus mindset, the markup vs. margin calculator shows exactly how the two diverge.
If net margin comes back negative, expenses exceed revenue and the business lost money for the period — a signal to cut costs, raise prices, or both, not a sign the calculator is malfunctioning.
Methodology & sources
The formulas: grossProfit = revenue − costOfGoodsSold, grossMarginPercent = (grossProfit / revenue) × 100, netProfit = revenue − costOfGoodsSold − operatingExpenses, netMarginPercent = (netProfit / revenue) × 100. This is standard cost-accounting terminology, not a proprietary formula.
The distinction between gross margin and net margin — and why net margin is the better read on overall profitability — is laid out in AccountingTools' gross margin explainer, which covers how gross margin isolates production cost while net margin folds in administrative, selling, and financing costs too. If you're comparing your numbers against industry benchmarks, remember cost structures vary wildly: a services business with near-zero cost of goods sold will naturally run a much higher gross margin than a business that manufactures a physical product, so the more useful comparison is usually your own margin over time.