Calcrux
Ecommerce Seller OperationsFree Β· No sign-upReal-time

Profit Margin Calculator

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

ShareLinkedIn

Use the calculator

Try it with your numbers

Enter the values that match your situation β€” results update in real time as you type.

Your numbers

Sales & cost of goods

The two lines every margin is built from.

Your total sales for the period β€” net of refunds and discounts. This is the base every margin is measured against. Exclude sales tax / VAT you collect: it isn't your money.

The direct cost of the products you sold: goods, inbound freight, packaging, per-unit fulfilment. Revenue minus this is your gross profit.

Overheads & below-the-line (optional)

Add these to step from gross margin down to net margin.

The cost of running the business: salaries, software, rent, advertising, marketplace fees, support. Gross profit minus this gives operating profit. Leave at 0 to see the gross line only.

Everything below the operating line: income tax, loan interest, depreciation, one-off write-offs. Operating profit minus this gives your true net profit.

Results

⚑

Results appear as you type

No submit button needed

How profitable are you, really?

Gross, operating and net margin β€” stacked in one view

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.

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

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.

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

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< 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%
Why this calculator

Calcrux vs other margin calculators

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

FeatureCalcruxTypical free toolSpreadsheet
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 USD-only
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 $50 cost 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 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.

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

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.

03What is the difference between markup and margin?

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.

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

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.

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

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.

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

08What goes into COGS versus operating expenses?

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.

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 currencies other than US dollars?

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.

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 analysisprofitabilityecommercecalculator

Explore 500+ more tools

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