Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Cost Margin Calculator

Cost margin calculator works out Gross profit and Gross margin from Revenue or selling price, Cost of goods sold and Target margin. The default figures on this page give cost of 60; change any entry and the result, the working and the sources update together.

Cost
60
Profit Margin Calculator
Gross profit
40
Gross margin
40 %
Equivalent markup
66.6667 %
Operating profit
40
Operating margin
40 %
Net profit
40
Net margin
40 %
Selling price
100
Profit per unit
40
Total profit across all units
40
Worked out from Gross margin = (price - cost) / price; markup = (price - cost) / cost and 3 other sources.

Your figures

Updates as you type
Formatting only. This does not change the calculation.
Used when solving for the price or cost.
Overheads below the gross profit line: salaries, rent, marketing.

How this is worked out

3 steps
  1. Cost = price x (1 - margin) = 100 x 0.6 = 60
  2. Margin = 40 / 100 = 40%
  3. Markup = 40 / 60 = 66.67%

Its 8 worked examples are re-run on every release, last on 15 September 2026. What changed

Sources and references

4 sources
Gross margin = (price - cost) / price; markup = (price - cost) / cost
The two differ by their denominator, which is why a 50% markup is only a 33.3% margin.
Break-even units = fixed costs / (price - variable cost per unit)
Standard cost-volume-profit analysis.
Marginal profit = marginal revenue - marginal cost, i.e. the change in total revenue less the change in total cost between two output levels
Standard cost-volume-profit / microeconomic definition; profit is maximised where marginal profit reaches zero.

Keep this result

Save it, change one figure, then compare the two

The calculation stays free. Save this scenario, adjust one assumption, save that too, and put them side by side to see exactly what the change costs you. A free account keeps 5 scenarios and 2 comparisons; Personal makes both unlimited and adds exports and private links. Nothing is saved unless you press Save.

1 · Calculate2 · Save3 · Compare4 · Export5 · Share
Open workspace

What the cost margin calculator calculates

Computes gross, operating and net profit margin from revenue and costs, and reports the equivalent markup so the two are never confused.

How to use this cost margin calculator

Enter Revenue or selling price, Cost of goods sold, Target margin and Operating expenses. Gross profit updates as you type. Change one figure at a time to see what drives the result.

How the result is worked out

Open “How this is worked out” beside the result for the step-by-step calculation behind Gross profit, Gross margin and Equivalent markup.

The method follows Gross margin = (price - cost) / price; markup = (price - cost) / cost, Break-even units = fixed costs / (price - variable cost per unit), Marginal profit = marginal revenue - marginal cost, i.e. the change in total revenue less the change in total cost between two output levels and SEC EDGAR XBRL Guide - GrossProfit = Revenues - CostOfRevenue; OperatingIncomeLoss is gross profit less operating expenses.

What you can compare

Change one input at a time to see how it affects Gross profit, Gross margin and Equivalent markup. The inputs you can vary are Revenue or selling price, Cost of goods sold, Target margin, Operating expenses, Interest, tax and other costs and Units sold.

Results are general information, not financial, tax, legal, medical or engineering advice. Check any decision that matters with a qualified professional.

Embed this calculator on your website

Copy this code into any page. The calculator appears with the figures currently entered, sizes itself to fit, and a small credit line links back here. Free, no account, no ads inside it, no tracking of your readers. Set your own figures and fixed fields; Personal removes the credit line, sets your colour and shows you which sites use it.

Preview

See something wrong? Report a problem with this calculator

Frequently asked questions

What is a 30% margin on $100?

Computes gross, operating and net profit margin from revenue and costs, and reports the equivalent markup so the two are never confused. On this page it is computed from Revenue or selling price, Cost of goods sold and Target margin and shown as Gross profit, Gross margin and Equivalent markup.

How to calculate the margin price?

Computes gross, operating and net profit margin from revenue and costs, and reports the equivalent markup so the two are never confused. Open “How this is worked out” beside the result to see each step for your own figures.

How do I calculate a 20% profit margin?

It needs Revenue or selling price, Cost of goods sold, Target margin, Operating expenses, Interest, tax and other costs and Units sold. Nothing else is required, and the figures stay in your browser.

How to add 30% margin to a cost price?

The result gives Gross profit, Gross margin, Equivalent markup, Operating profit, Operating margin and Net profit, each labelled with its unit so the figure can be read on its own.

Is a 50% profit margin too much?

Computes gross, operating and net profit margin from revenue and costs, and reports the equivalent markup so the two are never confused. On the figures this page opens with — revenue or selling price 100 and cost of goods sold 60 — the cost is 60. Put your own figures in their place and the working updates beside the result.

What information do I need for the cost margin calculator?

You need Revenue or selling price, Cost of goods sold, Target margin, Operating expenses, Interest, tax and other costs and Units sold. The page opens with default figures that give cost of 60, so you can see the scale before entering your own.

Related calculators

View all related calculators9 more