Enter revenue & COGS
Your total sales and the direct cost of the goods you sold. These two lines give your gross profit and gross margin.
Stack gross, operating and net margin from your P&L lines in one view β plus the markup-on-cost equivalent, in any currency.
Updated Reviewed by Sajid HussainΒ· Editor
Use the calculator
Enter the values that match your situation β results update in real time as you type.
Your numbers
Results
Results appear as you type
No submit button needed
A profit margin calculator turns your P&L lines into the three margins that actually matter: gross, operating, and net. Most free tools only do the gross line and lock you into dollars. This one stacks all three in one view, converts markup to margin inline, and works in any currency β so you can see exactly where your money goes between the top line and the bottom line.
The three margins answer three different questions. **Gross margin** asks "do my products make money?" β it's revenue minus the cost of the goods, over revenue. **Operating margin** asks "does the business make money once I pay to run it?" β it takes out salaries, software, rent, ads, and fees. **Net margin** asks "what do I actually keep?" β it takes out everything else, including tax and interest. By definition the three step down in order: gross β₯ operating β₯ net. Seeing them side by side shows whether a profit problem lives in your pricing (gross), your overheads (operating), or below the line (net).
There's a second number sellers constantly trip over: **markup versus margin**. They're not the same. Markup is profit as a percentage of *cost*; margin is profit as a percentage of *price*. A product that costs $50 and sells for $100 has a 100% markup but only a 50% margin. Quote the wrong one to a supplier or a partner and the math falls apart. This calculator computes the markup-on-cost equivalent of your gross line right next to the margin, so the two are never confused.
We frame this as margin **analysis**, not pricing. You enter what already happened β your actual revenue, COGS, operating expenses, and below-the-line costs β and read back where the profit leaks. If instead you want to work *forwards* from a cost to the price that hits a target margin (with marketplace fees grossed up), use our Selling Price Calculator. The two are complementary: one explains your results, the other sets your prices.
One thing we deliberately exclude: **sales tax, VAT, and GST**. You collect those from the buyer and remit them to the government β they were never your money and they aren't a cost, so folding them into margin math (as some tools do) understates your profitability. Income tax, on the other hand, *is* a real cost and belongs in the "taxes, interest & other" line that gets you to net margin.
Four short steps β paste your numbers, read the full margin stack.
Your total sales and the direct cost of the goods you sold. These two lines give your gross profit and gross margin.
Salaries, software, rent, ads, marketplace fees. Subtracting these from gross profit gives your operating profit and margin.
Income tax, interest, depreciation, one-offs. The last subtraction gives your true net profit and net margin.
See gross β₯ operating β₯ net side by side, the markup-on-cost equivalent, and a verdict on whether your net margin is thin, healthy, or strong.
Steps to use the Profit Margin Calculator: Enter revenue & COGS, Add operating expenses, Add taxes & other costs, Read the stack.
No black boxes β every margin and the markup conversion, in plain algebra.
Revenue minus the cost of the goods sold, as a percentage of revenue. Measures product-level profitability before any overhead. If revenue is 0 the margin is reported as 0 (you can't divide by nothing).
Takes overheads β salaries, rent, software, ads, fees β out of gross profit. This is the profit from running the core business, before tax and interest. Always sits between gross and net.
The bottom line: everything below the operating line removed. This is what you actually keep, as a percentage of revenue. By construction, net β€ operating β€ gross.
The gross profit expressed as a percentage of COST instead of price. A $50 cost sold for $100 is a 100% markup but a 50% margin. If COGS is 0 (a pure-service business) markup is reported as 0.
The exact conversion between the two, in fractions. A 100% markup (1.0) is a 1 Γ· (1 + 1) = 50% margin. A 50% margin (0.5) needs a 0.5 Γ· (1 β 0.5) = 100% markup. The calculator does this so you never quote the wrong number.
Watch the three margins step down as each layer of cost comes off.
Revenue $100,000.00 β COGS $55,000.00 = $45,000.00 gross profit. As a share of revenue that's $45,000.00 Γ· $100,000.00 = 45% gross margin.
Gross profit $45,000.00 Β· margin 45%
Take out operating expenses: $45,000.00 β $25,000.00 = $20,000.00 operating profit. That's $20,000.00 Γ· $100,000.00 = 20% operating margin.
Operating profit $20,000.00 Β· margin 20%
Take out tax and interest: $20,000.00 β $6,000.00 = $14,000.00 net profit. That's $14,000.00 Γ· $100,000.00 = 14% net margin β the true bottom line.
Net profit $14,000.00 Β· margin 14%
The gross line is a 45% margin β but expressed on cost it's $45,000.00 Γ· $55,000.00 = 82% markup. Same profit, different base. Never quote one when you mean the other.
45% margin = 82% markup
The takeaway
The margins step down 45% β 20% β 14% as each cost layer comes off. If your net felt low, you can now see whether the leak is in pricing (gross), overheads (the gross-to-operating drop), or below the line β and that a 45% margin is the same as an 82% markup.
Rough bands by line. Net margins are thinner than people expect β much of the gross margin is eaten by overheads and ads.
| Metric | Poor | Average | Good | Excellent |
|---|---|---|---|---|
| Net profit margin | < 5% | 5β10% | 10β20% | 20%+ |
| Operating margin | < 8% | 8β15% | 15β25% | 25%+ |
| Gross profit margin | < 30% | 30β45% | 45β60% | 60%+ |
| Markup on cost (gross) | < 43% | 43β82% | 82β150% | 150%+ |
| Opex as % of revenue | > 35% | 25β35% | 15β25% | < 15% |
Generic head-term tools do the gross line only and assume dollars. We stack all three margins, convert markup, and work in any currency.
| Feature | Calcrux | Typical free tool | Spreadsheet |
|---|---|---|---|
| Gross, operating AND net margin | Gross only | Manual | |
| Markup β margin conversion | Rare / confused | Manual | |
| Profit AND margin % for each line | One or the other | Manual | |
| Ecommerce benchmark bands | |||
| Loss-making / thin-margin warnings | Manual | ||
| Sales tax / VAT correctly excluded | Often included wrongly | Manual | |
| Works in any currency | Mostly USD-only | ||
| Free, no signup | Most |
Why it matters
A 50% markup is only a 33% margin; a 50% margin needs a 100% markup. Quoting one when you mean the other over- or under-states profitability badly, and trips up supplier and partner conversations.
Fix
Use the markup-on-cost output next to the gross margin. We compute both from the same figures so they always reconcile.
Why it matters
A healthy 50% gross margin can become a 3% net margin once ads, salaries, fees, and tax come off. Celebrating the gross number hides whether the business actually makes money.
Fix
Read the full stack β gross, operating, net. The drop between them shows exactly which cost layer is eating your profit.
Why it matters
You collect VAT/GST/sales tax from the buyer and remit it β it was never your money. Including it on either side inflates the numbers and distorts every margin.
Fix
Enter revenue NET of sales tax, and don't list collected tax as a cost. (Income tax is different β that's a real cost and goes in the "other" line.)
Why it matters
Lumping salaries or office rent into cost of goods sold deflates your gross margin and makes the gross-to-operating step meaningless β you can't tell a pricing problem from an overhead problem.
Fix
Keep COGS to direct, per-unit product costs. Salaries, rent, software, and ads belong in operating expenses.
Why it matters
Loan interest, income tax, and depreciation sit below operating profit. Ignoring them makes your "net" margin actually an operating margin β optimistic by several points.
Fix
Use the "taxes, interest & other" line so the net figure is genuinely the bottom line.
Why it matters
A 5% net margin is normal for grocery but alarming for software. Judging your ecommerce store against a SaaS benchmark leads to the wrong conclusions.
Fix
Compare against the ecommerce bands shown here, and track your own margin trend over time rather than chasing a foreign benchmark.
A wide gap between gross and net margin means overheads are heavy. A narrow gap with a low gross margin means it's a pricing or sourcing problem. The shape tells you where to act.
If gross margin is fine but net is thin, cutting COGS won't help β attack opex or ads. Always work on the layer where the margin actually drops.
Judge the business on net margin, but when talking to suppliers translate to markup. The calculator gives you both so you're never caught out.
A single period's margin means little. Run this monthly and watch the direction β a falling net margin at flat revenue means costs are creeping.
A net margin under 5% has almost no cushion. A spike in returns or ad costs can flip it negative, so build a buffer into pricing.
This explains the results you already have. To set prices that hit a target margin after marketplace fees, use the Selling Price Calculator first.
The Profit Margin Calculator works across every stage of the workflow.
Drop in revenue, COGS, opex, and other costs to see all three margins and spot whether profit is slipping at the gross, operating, or net line.
Quote gross, operating, and net margin correctly β and the markup equivalent β so the unit economics hold up under scrutiny.
Convert your target margin into the markup you need on cost, so you know exactly what landed cost keeps you profitable.
Compare your margins against the ecommerce bands to judge whether a category is worth entering before committing inventory.
A healthy gross margin but negative net tells you the problem is overheads, not pricing β the stack points straight to the culprit.
Show a teammate why a 100% markup is only a 50% margin, with their own numbers, so the confusion never costs you again.
Every important term you'll encounter in this calculator and the broader topic.
Everything you need to know about how the Profit Margin Calculator works.
Profit margin is profit divided by revenue, expressed as a percentage. There are three standard versions. Gross margin = (revenue β cost of goods sold) Γ· revenue. Operating margin = (gross profit β operating expenses) Γ· revenue. Net margin = (operating profit β taxes, interest and other costs) Γ· revenue. This calculator computes all three at once from the same inputs, so you can see how each layer of cost reduces your margin from the top line down to the bottom line.
They strip out costs in stages. Gross margin removes only the cost of the goods sold β it tells you if your products are profitable. Operating margin also removes overheads like salaries, rent, software, and ads β it tells you if the core business is profitable. Net margin removes everything else, including tax and interest β it tells you what you actually keep. Because each one removes more cost, they always step down in order: gross β₯ operating β₯ net.
Markup is profit as a percentage of COST; margin is profit as a percentage of PRICE. They describe the same profit on different bases, so they are never the same number. A product that costs $50 and sells for $100 has a $50 profit β that is a 100% markup (50 Γ· 50) but only a 50% margin (50 Γ· 100). The exact conversion is margin = markup Γ· (1 + markup). This calculator shows the markup-on-cost equivalent of your gross line right next to the margin so you never quote the wrong one.
Use the identities margin = markup Γ· (1 + markup) and markup = margin Γ· (1 β margin), with both expressed as fractions. For example, a 100% markup (1.0) gives a margin of 1 Γ· (1 + 1) = 0.5, or 50%. Going the other way, a 50% margin (0.5) needs a markup of 0.5 Γ· (1 β 0.5) = 1.0, or 100%. The calculator does this automatically from your revenue and COGS, so you can read the markup figure straight off without doing the algebra.
Net margins in ecommerce are thinner than most people expect because ads and overheads eat much of the gross margin. Under 5% is razor-thin and risky, 5β10% is typical, 10β20% is healthy, and 20%+ is strong. Gross margins are higher β 30β45% is average, 45β60% is good. What counts as "good" varies a lot by category, so it is more useful to track your own net margin trend over time than to chase a single benchmark.
No. Sales tax, VAT, and GST are collected from the buyer and remitted to the government β that money was never yours, so it is neither revenue nor a cost. Including it on either side distorts every margin. Enter your revenue net of sales tax and do not list collected tax as a cost. Income tax is different: it is a genuine cost of being profitable, so it belongs in the "taxes, interest and other" line that takes you from operating profit to net profit.
Because gross margin only accounts for the cost of the goods. The gap between gross and net is everything in between: operating expenses (salaries, rent, software, advertising, marketplace fees) and below-the-line costs (tax, interest). A 50% gross margin routinely shrinks to a single-digit net margin once all of that comes off. A wide gross-to-net gap points to heavy overheads; a narrow gap with a low gross margin points to a pricing or sourcing problem.
COGS (cost of goods sold) is the direct, per-unit cost of the products you actually sold: the goods themselves, inbound freight, packaging, and per-order fulfilment. Operating expenses are the costs of running the business regardless of how many units sell: salaries, rent, software subscriptions, advertising, marketplace fees, and customer support. Keeping the two separate is what makes the gross-to-operating step meaningful β if you lump overheads into COGS, your gross margin looks artificially low and you cannot tell a pricing problem from an overhead one.
Yes. If your costs exceed your revenue, the net profit shows as negative and the net margin as a negative percentage, and the tool flags whether the loss is at the gross line (selling below cost) or below it (overheads). If you leave revenue at zero, every margin is reported as 0% rather than an error β you can't divide by zero β and a warning reminds you to enter your sales. No input ever produces a NaN or infinite result.
Yes. The calculator is currency-agnostic. All your monetary inputs β revenue, COGS, operating expenses, other costs β are read in your own currency, and the margins, profit figures, and markup are universal ratios that don't depend on the currency at all. Outputs and any money in the warnings are formatted in your region's currency automatically, so it works the same whether you sell in dollars, rupees, pounds, euros, or anything else.
It is a margin analysis tool. You enter what already happened β your actual revenue and costs β and it reads back your gross, operating, and net margins so you can see where profit leaks. If you instead want to work forwards from a cost to the price that hits a target margin (with marketplace and payment fees grossed up), use our Selling Price Calculator. The two are complementary: one explains your results, the other sets your prices.
They are essentially the same thing. Operating profit is also called EBIT β Earnings Before Interest and Taxes β so the operating margin in this calculator is the EBIT margin: gross profit minus operating expenses, divided by revenue. The next line down, net margin, is what you get after interest and taxes are also removed. If you only have an operating-profit figure and no below-the-line costs, leave the "taxes, interest and other" field at zero and the net margin will equal the operating margin.
Keep exploring
Find the exact price to charge to hit your target margin after marketplace and payment fees β the pricing tool that grosses up for fees so you never underprice.
See the real cost of a sale before you run it: the exact extra volume a discount needs to break even on profit, and how deep you can safely go.
Calculate your true Amazon FBA profit, margin, and ROI in seconds.
Calculate customer LTV, CAC, the LTV:CAC ratio and payback period β then reverse it to find the max CAC you can afford. All on gross profit, in any currency.
Category
Ecommerce Seller Operations
Subcategory
financial profitability
Availability
Global Β· 9 markets
Price
Free forever
Topics
Calculators, simulators, and decision tools for every stage of business operations.
Your honest feedback shapes what we build next. Takes 30 seconds, fully anonymous β we don't ask for your name or email.