Free calculatorLive resultsSteps and sourcesEmbed on your site, free

Gross Margin Calculator

Gross Margin Calculator works out Gross profit and Gross margin from Revenue or selling price, Cost of goods sold and Units sold. The default figures on this page give gross margin of 40 %; change any entry and the result, the working and the sources update together.

Gross margin
40 %
Profit Margin Calculator
Gross profit
40
Equivalent markup
66.6667 %
Operating profit
40
Operating margin
40 %
Net profit
40
Net margin
40 %
Selling price
100
Cost
60
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.
Job costing: hours billed to the job at their loaded rate.
When any of these three are filled in they replace the single cost-of-goods figure, so a project can be costed up from its parts.

How this is worked out

3 steps
  1. Gross profit = 100 - 60 = 40
  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 Gross 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 Gross Margin Calculator

Enter Revenue or selling price, Cost of goods sold, Units sold and Direct labour. 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, Units sold, Direct labour, Materials and equipment and Subcontractors and other direct costs.

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

How do I calculate gross profit margin?

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 gross profit?

It needs Revenue or selling price, Cost of goods sold, Units sold, Direct labour, Materials and equipment and Subcontractors and other direct costs. Nothing else is required, and the figures stay in your browser.

How do I calculate a 70% profit margin?

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.

How to calculate gross profit calculator?

The page opens with worked default figures: gross margin of 40 %. Replace them with your own and every figure updates as you type.

How do I calculate a 30% profit margin?

The method comes from Gross margin = (price - cost) / price; markup = (price - cost) / cost, Break-even units = fixed costs / (price - variable cost per unit) and Marginal profit = marginal revenue - marginal cost, i.e. the change in total revenue less the change in total cost between two output levels, listed in full under Sources so the figures can be checked against the original.

What information do I need for the Gross Margin Calculator?

You need Revenue or selling price, Cost of goods sold, Units sold, Direct labour, Materials and equipment and Subcontractors and other direct costs. The page opens with default figures that give gross margin of 40 %, so you can see the scale before entering your own.

Related calculators

View all related calculators11 more