Profit Margin Calculator

Turn revenue and cost into a margin percentage, see the same profit expressed as a markup on cost, and price backwards from any target margin you want to hit on your current costs.

Updated August 2026 Business

Enter revenue and cost

Currency
Profit margin
Profit
Markup on cost
Price for the target margin
Profit per unit

A planning tool, not your accounts. These figures follow standard management-accounting definitions, which do not always match how your statutory accounts classify the same costs. Tax treatment differs by country and by entity type. Use this to think with, and have an accountant confirm anything that ends up in a filing, a loan application or a valuation.

How to Use the Profit Margin Calculator

Margin is the number that tells you what a business actually keeps. It is also the number most often confused with markup, and the confusion is expensive: a shop pricing at what it thinks is a 40% margin but is really a 40% markup is earning 28.6% and wondering why the year is tight.

  1. Enter revenue. Total sales for whatever period you are looking at — a month, a quarter, a single product line, one order. The maths works at any scale as long as revenue and cost cover the same thing.
  2. Enter cost. Which costs you include decides which margin you get. Direct costs alone give gross margin; add overheads and you get operating margin; add interest and tax and you reach net margin.
  3. Set a target margin. The calculator works backwards to the price that would deliver it on your current cost, and tells you how far that is from where you are.
  4. Add a unit count if you want the per-unit view. Selling 1,200 units for $48,000 at a cost of $31,200 means $40 in, $26 out and $14 kept on every one.
  5. Read the markup tile. It shows the same profit expressed against cost instead of revenue — the number your supplier and your pricing sheet are probably using.

The table underneath prices six target margins on your cost. It is the fastest way to see what a price change is worth before you make it.

Profit Margin Formula

Two divisions with the same numerator and different denominators. That is the whole difference.

Profit = revenue − costMargin = profit ÷ revenue × 100Markup = profit ÷ cost × 100Price for a target margin = cost ÷ (1 − target ÷ 100)Markup from margin = margin ÷ (100 − margin) × 100Margin can never reach 100% while any cost exists, because the profit is always smaller than the revenue it is divided by. Markup has no ceiling at all — a 400% markup is perfectly ordinary in some trades.
What each symbol means
SymbolMeaningUnitTypical range
RevenueSales for the periodcurrencyany
CostCosts matched to that revenuecurrency0 – revenue
ProfitRevenue minus costcurrency
MarginProfit ÷ revenue%5 – 70
MarkupProfit ÷ cost%5 – 400

Notice the target-price formula divides rather than multiplies. To reach a 40% margin on a cost of $26 you charge 26 ÷ 0.60 = $43.33, not 26 × 1.40 = $36.40. The second calculation is the one that quietly destroys profitability.

Example

$48,000 of revenue on $31,200 of cost

  1. Profit: 48,000 − 31,200 = $16,800.
  2. Margin: 16,800 ÷ 48,000 × 100 = 35.00%.
  3. Markup: 16,800 ÷ 31,200 × 100 = 53.85%. Same profit, different denominator.
  4. Over 1,200 units: price $40.00, cost $26.00, profit $14.00 per unit.
  5. For a 40% margin on the same cost: 31,200 ÷ 0.60 = $52,000, so $4,000 more revenue — a price of $43.33 per unit.
  6. That 40% margin is a 66.67% markup on cost, not a 40% one.

Price up or cost down?

Raise the price 5% and revenue becomes $50,400 with cost unchanged, so profit goes to $19,200 — a 14.29% increase in profit from a 5% price move. Cut cost 5% instead and profit reaches $18,360, a 9.29% increase. On a 35% margin, price is the stronger lever, and it gets stronger as margins get thinner.

The trap in reverse

Suppose a supplier says a product carries a 30% margin and you price at cost × 1.30. On a $26 cost that gives $33.80 and a margin of 23.08%, not 30%. The correct price is 26 ÷ 0.70 = $37.14. Across 1,200 units, the mistake costs $4,011 a period — roughly a quarter of the profit in this example.

Margin, Markup and What Counts as Healthy

What each target margin demands from the price, on a cost of $31,200.

Price required for each target margin
Target marginPrice neededChange from $48,000Equivalent markup
20%$39,000.00−$9,000.0025.00%
30%$44,571.43−$3,428.5742.86%
35%$48,000.00$0.0053.85%
40%$52,000.00+$4,000.0066.67%
50%$62,400.00+$14,400.00100.00%
60%$78,000.00+$30,000.00150.00%

The right-hand column is the one worth memorising. A 50% margin is a 100% markup. A 60% margin is a 150% markup. The two numbers diverge faster the higher you go, which is exactly where the mistake is most costly.

What counts as a healthy margin depends entirely on the trade. Grocery retail runs on gross margins in the twenties and net margins near 2%. Software often shows gross margins above 80%. Construction, hospitality and wholesale each have their own normal range, and a figure that would be alarming in one is comfortable in another. Compare yourself against your own last four quarters and against direct competitors, not against a general benchmark.

Be equally clear about which margin you are quoting. If someone asks for your margin and you give them a gross figure while they assume net, the conversation goes wrong in both directions. The gross profit calculator and the net profit calculator keep the two separate deliberately.

Four Things That Quietly Change Your Margin

Four things that quietly change the margin you think you have.

Discounts come straight off the margin. A 10% discount on a 35% margin does not leave 25% — it leaves 27.8%, because the cost is unchanged while both revenue and profit fall. On this example, a 10% discount cuts profit from $16,800 to $12,000, a 28.6% reduction for a 10% price cut.

Returns and refunds are invisible until you count them. A 6% return rate with no recoverable value takes 6% off revenue and nothing off cost. Margin figures built from gross sales rather than net sales overstate the business by roughly that amount.

Payment fees are a cost of sale. Card processing at 2.4% plus 30 cents a transaction is a direct cost, not an overhead, and it belongs in the cost field. Leaving it out on a $40 product adds about 3% to the apparent margin.

Freight in and freight out are different. The cost of getting stock to you is part of cost of goods; the cost of getting it to a customer may be recovered in a delivery charge or absorbed. Deciding which is which, and doing it consistently, is what makes month-to-month comparison meaningful.

One further habit that pays for itself. Calculate the margin on each product line separately at least once a year, not just on the business as a whole. Blended margins hide the two situations that matter most: the line that is quietly loss-making and being carried by everything else, and the line that is far more profitable than you realised and is being under-promoted. Both are invisible in an aggregate number, and both are usually obvious within an hour of splitting the figures out. Businesses that run this check routinely tend to discover that a surprisingly small share of what they sell produces most of what they keep — which changes what gets shelf space, what gets discounted and what quietly gets dropped.

Once you know the margin, the break-even calculator will tell you what volume covers the fixed costs sitting underneath it, and the markup calculator converts between the two pricing conventions in either direction.

Frequently Asked Questions

Margin divides profit by revenue; markup divides the same profit by cost. On $48,000 of revenue and $31,200 of cost, the profit of $16,800 is a 35% margin and a 53.85% markup. Markup is always the larger number.

Subtract cost from revenue, divide by revenue, multiply by 100. The order matters: dividing by cost instead gives markup, which is a different and larger figure for the same profit.

Entirely trade-dependent. Grocery retail lives on gross margins in the twenties and net margins near 2%; software often exceeds 80% gross. Compare against your own history and direct competitors rather than a general benchmark.

Divide the cost by one minus the margin as a decimal. For 40% on a $26 cost: 26 ÷ 0.60 = $43.33. Multiplying by 1.40 instead gives $36.40 and a margin of only 28.6%.

Because profit is always smaller than the revenue it is divided by whenever any cost exists. Only a zero-cost sale gives a 100% margin. Markup has no such ceiling — 400% is routine in some trades.

It depends which margin you want. Direct costs only give gross margin. Adding overheads gives operating margin, and adding interest and tax gives net margin. Say which one you mean whenever you quote a figure.

It falls faster than the discount. A 10% price cut on a 35% margin leaves 27.8%, and takes 28.6% off the profit, because the cost does not move when the price does.

On thin margins, price. A 5% price rise here adds 14.29% to profit while a 5% cost cut adds 9.29%. The thinner the margin, the more decisively price wins — though it is also the harder of the two to do without losing volume.

Yes. Processing charges are a direct cost of making the sale. Omitting a 2.4% plus 30 cent fee on a $40 product overstates the margin by around three percentage points.

Divide the markup by one hundred plus the markup, then multiply by 100. A 53.85% markup is 53.85 ÷ 153.85 = 35% margin. Going the other way, margin ÷ (100 − margin) gives the markup.