Skip to main content
Calcrux
Ecommerce Seller OperationsFree · No sign-upReal-time

Profit Margin Calculator

All three P&L margins stacked in one view, with markup conversion — any currency.

Updated Reviewed by Sajid Hussain· Editor

ShareLinkedIn
How profitable are you, really?

Gross, operating and net margin — stacked in one view

A profit margin calculator is a free tool that converts your P&L numbers — revenue, cost of goods, operating expenses, and other costs — into the three margins that matter: gross, operating, and net. Most free tools compute only the gross line and lock you into one currency. This one stacks all three in one view, converts markup to margin inline, and works in any currency — so you can see exactly where money leaks between the top line and the bottom line.

Three margins, three questions. Gross margin asks "do my products make money?" — revenue minus the cost of the goods, over revenue. Operating margin asks "does the business make money once overheads are paid?" — it removes salaries, software, rent, ads, and fees from gross profit. 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 together shows whether a profit problem lives in your pricing (gross), your overheads (operating), or below the line (net).

Markup vs 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 shows the markup-on-cost equivalent of your gross line right next to the margin, so the two are never confused.

Margin analysis, not pricing. Enter what already happened — your actual revenue, COGS, operating expenses, and below-the-line costs — and read back where the profit leaks. To work forwards from a cost to a price that hits a target margin, use our Selling Price Calculator instead. The two are complementary: one explains your results, the other sets your prices.

Sales tax / VAT correctly excluded. You collect those from the buyer and remit them to the government — they were never your money and they aren't a cost. Including them distorts every margin. Income tax, however, is a real cost and belongs in the "taxes, interest & other" line that steps you from operating profit to net.

Quick facts

Margins computed
Gross · Operating · Net — stacked
Markup ↔ margin
Converted inline, never confused
Inputs
Revenue · COGS · Opex · Other costs
Identity used
margin = markup ÷ (1 + markup)
Currency
Works in any currency, not currency-locked
Sales tax / VAT
Correctly excluded (you remit it)
How it works

From your P&L lines to all three margins

Four short steps — paste your numbers, read the full margin stack.

01

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.

02

Add operating expenses

Salaries, software, rent, ads, marketplace fees. Subtracting these from gross profit gives your operating profit and margin.

03

Add taxes & other costs

Income tax, interest, depreciation, one-offs. The last subtraction gives your true net profit and net margin.

04

Read the stack

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.

Formula

Exactly what the calculator computes

No black boxes — every margin and the markup conversion, in plain algebra.

01

Gross profit margin

Gross Margin % = (Revenue − COGS) ÷ Revenue × 100

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).

02

Operating profit margin

Operating Margin % = (Gross Profit − Operating Expenses) ÷ Revenue × 100

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.

03

Net profit margin

Net Margin % = (Operating Profit − Taxes, Interest & Other) ÷ Revenue × 100

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.

04

Markup on cost (gross line)

Markup % = (Revenue − COGS) ÷ COGS × 100

The gross profit expressed as a percentage of COST instead of price. A cost of 50 sold for 100 is a 100% markup but a 50% margin. If COGS is 0 (a pure-service business) markup is reported as 0.

05

Markup ↔ margin identity

Margin = Markup ÷ (1 + Markup) · Markup = Margin ÷ (1 − Margin)

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.

Worked example

100,000 in sales, line by line down to net

Watch the three margins step down as each layer of cost comes off.

Scenario

A store does $100,000.00 in sales. The goods cost $55,000.00, overheads run $25,000.00, and tax plus interest come to $6,000.00. What are the three margins?

1

Step 1 · Gross profit & margin

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%

2

Step 2 · Operating profit & margin

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%

3

Step 3 · Net profit & margin

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%

4

Step 4 · Markup vs margin check

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 45%→20%→14% cascade shows overheads as the bigger drain (−25 pts vs −6 pts below-the-line), and confirms 45% gross margin equals 82% markup on cost.

Industry benchmarks

What margins are healthy in ecommerce

Rough bands by line. Net margins are thinner than people expect — much of the gross margin is eaten by overheads and ads.

MetricPoorAverageGoodExcellent

Net profit margin

TrueProfit Ecommerce Benchmark Report 2026
< 5%5–10%10–20%20%+

Operating margin

Eightx SEC 10-K Ecommerce KPI Report 2026
< 8%8–15%15–25%25%+

Gross profit margin

TrueProfit 5,000-Store Analysis 2026
< 30%30–45%45–60%60%+

Markup on cost (gross)

Derived from gross margin bands above

< 43%43–82%82–150%150%+

Opex as % of revenue

Eightx Ecommerce Margin Report 2026
> 35%25–35%15–25%< 15%
Why this calculator

Calcrux vs other margin calculators

Generic head-term tools do the gross line only and assume a single currency. We stack all three margins, convert markup, and work in any currency.

FeatureCalcruxOmni CalculatorSpreadsheet
Gross, operating AND net marginGross onlyManual
Markup ↔ margin conversionRare / confusedManual
Profit AND margin % for each lineOne or the otherManual
Ecommerce benchmark bands
Loss-making / thin-margin warningsManual
Sales tax / VAT correctly excludedOften included wronglyManual
Works in any currencyMostly single-currency
Free, no signupMost
Common mistakes

Where margin math goes wrong

Confusing markup with margin

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.

Treating gross margin as if it were net

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.

Counting sales tax / VAT as revenue or as a cost

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.)

Putting overheads into COGS

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.

Forgetting below-the-line costs

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.

Comparing margins across very different businesses

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.

Tips

Read your margins like an operator

Watch the gross-to-net drop

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.

Fix the biggest leak first

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.

Anchor on net, quote in margin

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.

Track the trend, not one snapshot

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.

Leave room for returns and ads

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.

Use it after, pricing tools before

This explains the results you already have. To set prices that hit a target margin after marketplace fees, use the Selling Price Calculator first.

Use cases

When operators reach for this calculator

The Profit Margin Calculator works across every stage of the workflow.

Reviewing a monthly P&L

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.

Pitching to investors

Quote gross, operating, and net margin correctly — and the markup equivalent — so the unit economics hold up under scrutiny.

Negotiating with a supplier

Convert your target margin into the markup you need on cost, so you know exactly what landed cost keeps you profitable.

Benchmarking a new category

Compare your margins against the ecommerce bands to judge whether a category is worth entering before committing inventory.

Diagnosing a cash squeeze

A healthy gross margin but negative net tells you the problem is overheads, not pricing — the stack points straight to the culprit.

Teaching markup vs margin

Show a teammate why a 100% markup is only a 50% margin, with their own numbers, so the confusion never costs you again.

Glossary

Margin vocabulary

Every important term you'll encounter in this calculator and the broader topic.

Revenue
Total sales for the period, net of refunds and discounts, and excluding sales tax / VAT you collect on behalf of the government.
COGS
Cost of goods sold — the direct cost of the products you sold: goods, inbound freight, packaging, per-unit fulfilment. Excludes overheads.
Gross profit
Revenue minus COGS. The money left to cover overheads. Gross margin is this as a percentage of revenue.
Operating profit
Gross profit minus operating expenses (salaries, rent, software, ads, fees). Also called EBIT. Operating margin is this over revenue.
Net profit
Operating profit minus taxes, interest, and other below-the-line costs. The true bottom line. Net margin is this over revenue.
Net margin
Net profit as a percentage of revenue — the single most important profitability number. By definition it's the smallest of the three margins.
Markup
Profit as a percentage of COST. A cost of 50 sold for 100 is a 100% markup. Markup is always larger than the equivalent margin.
Margin
Profit as a percentage of PRICE (revenue). The same 50-to-100 example is a 50% margin. Margin and markup describe the same profit on different bases.
Operating expenses
The cost of running the business that isn't the cost of the goods themselves: payroll, rent, software, advertising, marketplace fees, support.
Help & answers

Frequently asked questions

Everything you need to know about how the Profit Margin Calculator works.

01How do you calculate profit margin?

Profit margin = profit ÷ revenue × 100. Gross margin removes only COGS; operating margin also removes overheads (salaries, ads, rent); net margin removes everything, including tax and interest. This calculator computes all three at once so you see how each cost layer reduces margin from the top line to the bottom.

02What is the difference between gross, operating and net profit margin?

They strip out costs in stages. Gross margin removes only COGS. Operating margin also removes overheads (salaries, rent, software, ads). Net margin removes everything, including tax and interest — what you actually keep. By design they always step down in order: gross ≥ operating ≥ net.

03What is the difference between markup and margin?

Markup is profit as a % of COST; margin is a % of PRICE. Same profit, different base — never the same number. A cost of 50 sold for 100 = 100% markup but only 50% margin. The conversion: margin = markup ÷ (1 + markup). This calculator shows both side by side so you never quote the wrong one.

04How do I convert markup to margin (and back)?

Use the identities: margin = markup ÷ (1 + markup) and markup = margin ÷ (1 − margin), both as fractions. A 100% markup = 50% margin; a 50% margin needs a 100% markup. The calculator does this automatically from your revenue and COGS, so you never need the algebra.

05What is a good net profit margin for an ecommerce business?

5–10% net margin is the typical ecommerce range; under 5% is razor-thin, 10–20% is healthy, and 20%+ is strong. Gross margins run higher — 30–45% average, 45–60% good — because ads and overheads eat most of the spread. What counts as "good" varies by category, so track your own trend over time rather than chasing one number.

06Should I include sales tax or VAT in the profit margin calculation?

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.

07Why is my net margin so much lower than my gross margin?

Because gross margin only deducts COGS. Everything in between — salaries, rent, software, ads, fees, tax, interest — reduces it to net. A 50% gross margin can shrink to a single-digit net margin. A wide gross-to-net gap = heavy overheads; a low gross margin = pricing or sourcing problem.

08What goes into COGS versus operating expenses?

COGS = direct per-unit cost: goods, freight, packaging, fulfilment. Operating expenses = business overhead regardless of volume: salaries, rent, ads, fees. Keep them separate — mixing overheads into COGS deflates gross margin and hides whether a profit problem is in pricing or overhead.

09Can the calculator handle a loss-making business or zero revenue?

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.

10Does this work in any currency?

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 whichever currency you sell in.

11Is this a pricing calculator or a margin analysis tool?

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.

12How is operating margin different from EBIT margin?

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.

Category

Ecommerce Seller Operations

Subcategory

financial profitability

Availability

Global · 9 markets

Price

Free forever

Topics

profit margingross profit marginnet profit marginoperating marginmarkup to marginmargin analysisprofitabilityecommercecalculatorhow to calculate profit marginmarkup vs marginecommerce profit margin

Explore 500+ more tools

Calculators, simulators, and decision tools for every stage of business operations.