Margin Comparison Calculator
Compare gross margin, operating margin, and net profit margin side by side to identify where your business loses profitability.
Did this tool work for you?
How to use this calculator
Gross profit removes direct production costs. Operating profit further removes operating expenses like salaries, rent, and marketing. Net profit is after taxes. Each margin percentage shows how much of each revenue dollar survives to that profit level.
- 1
Enter your total revenue for the period (monthly, quarterly, or annual).
- 2
Add cost of goods sold: direct materials, manufacturing labour, and delivery costs.
- 3
Enter total operating expenses: salaries not in COGS, rent, marketing, software subscriptions, and admin costs.
- 4
Compare the three margin percentages — the gap between gross and net margin reveals your overhead burden.
Frequently asked questions
Which three margins does this calculator compute?
Gross margin = (revenue − COGS) ÷ revenue. Operating margin = (revenue − COGS − operating expenses) ÷ revenue. Net margin = (revenue − COGS − operating expenses − taxes) ÷ revenue. All are shown to one decimal place; with the defaults they are 62.0%, 30.0% and 24.0%.
Is taxes a percentage or a dollar amount?
A dollar amount for the same period as revenue. This tool simply subtracts it, so it does not work out tax from a rate, and it does not reduce tax when profit is negative. Enter 0 if you want to compare pre-tax profit, in which case operating and net margins will be equal.
Is this margin or markup?
Margin. Every percentage is divided by revenue, not by cost. A product sold for $100 that costs $70 has a 30% gross margin but a 42.9% markup on cost. If you enter markup figures as margins the results will be wrong, so convert first.
Why is “Operating profit” labelled EBIT?
Because it is revenue minus COGS minus operating expenses, before taxes. The tool has no field for interest, so it is only EBIT if your operating expenses exclude interest and any other items you want to leave out. Put interest and one-off items wherever your accounting treats them, and keep that consistent.
What happens with zero revenue or negative inputs?
Any negative entry is floored at 0. With revenue at 0 all three margin percentages show 0.0% instead of dividing by zero, but the dollar profits are still computed from the costs. With the default costs and no revenue, gross profit is −$95,000.00 and net profit −$190,000.00.
Can margins be negative?
Yes. With revenue of 120,000, COGS of 84,000, operating expenses of 40,000 and no taxes, gross margin is 30.0% but both operating and net margin are −3.3%, with a −$4,000.00 profit. The comparison makes it clear that the loss arises below the gross profit line.
Does the calculator say what a good margin is?
No. It reports the three percentages and leaves the judgement to you. Healthy margins depend on the industry and the business model, so compare against your own previous periods and against businesses that sell and operate the same way you do.
Margin comparison calculator — gross, operating and net margin side by side
Where each dollar of revenue goes
A single profit margin hides the stage at which money is lost. This calculator subtracts costs in three steps, COGS, then operating expenses, then taxes, and shows the profit and the percentage of revenue left after each. The drop between one margin and the next is the share of revenue absorbed by that layer of cost.
| Margin | Profit used | Percentage |
|---|---|---|
| Gross | Revenue − COGS | Gross profit ÷ revenue |
| Operating | Gross profit − operating expenses | Operating profit ÷ revenue |
| Net | Operating profit − taxes | Net profit ÷ revenue |
Two worked businesses
The first row below uses the default inputs. The second is a lower-margin business, where the loss appears after operating expenses. Both lines are calculator output.
| Revenue · COGS · opex · taxes | Gross profit | Gross | Operating | Net profit | Net |
|---|---|---|---|---|---|
| $250,000 · $95,000 · $80,000 · $15,000 | $155,000.00 | 62.0% | 30.0% | $60,000.00 | 24.0% |
| $120,000 · $84,000 · $40,000 · $0 | $36,000.00 | 30.0% | −3.3% | −$4,000.00 | −3.3% |
Reading the gaps
In the first business, operating expenses take 32 points of revenue (62.0% down to 30.0%) and taxes take 6 more (down to 24.0%). Overhead is therefore the biggest slice of the three, which makes it the first place a cost review would look. In the second, gross margin is 30.0% but overhead consumes 33.3 points of revenue, which is more than the gross profit available to pay for it. Raising price or cutting COGS would help, as would trimming the $40,000.00 of expenses.
Margin is not markup
Each percentage is divided by revenue. Markup divides by cost, so a 30% margin corresponds to a markup of about 42.9%. When people mix the two, prices end up too low for the margin they wanted, because a 30% markup on cost is only about a 23.1% margin. Decide which measure your pricing uses before comparing it with the results here.
Consistent periods, blank boxes and rounding
Use revenue, COGS, expenses and taxes from the same period, whether that is a month, quarter or year. Taxes are entered as an amount, not a rate, and are subtracted even when operating profit is negative. If you want to check a forecast, change one input at a time and watch which margin moves, which is the quickest way to see how sensitive each layer is. Re-run it with next period’s budget to see whether the planned margins are realistic. A box you empty is read as 0, and a negative entry is also treated as 0, so costs cannot be entered as credits. With revenue at 0 the three percentages all show 0.0% because there is nothing to divide by, while the dollar profits still show the costs as a loss. Profits are displayed to the cent and margins to one decimal place, using the full unrounded figures underneath. A negative profit is shown with a minus sign in front of the dollar sign. Nothing here converts between currencies, so use one currency throughout.
Learn more from an authoritative source:
InvestopediaEmployee ROI Calculator
Calculate the full cost and return on investment of hiring an employee, including salary, benefits, onboarding, and tools.
Operating Leverage Calculator
Calculate degree of operating leverage (DOL), contribution margin, and break-even revenue to understand profit sensitivity to revenue changes.
Break-Even Units Calculator
Calculate the exact number of units you need to sell to cover all fixed and variable costs and reach break-even profitability.
Support Cost Calculator
Calculate the true cost per support ticket and total monthly customer support operation costs including agent time and overhead.
Franchise Cost Calculator
Estimate the total cost of buying and running a franchise including initial fees, royalties, marketing levies, and break-even revenue.
Subscription Revenue Calculator
Calculate MRR, ARR, customer LTV, LTV:CAC ratio, and payback period for subscription and SaaS businesses.
Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →