Small business

Gross margin calculator

Compare gross margin and markup from a product’s cost and selling price.

Your measurements

Change any value to calculate
$
$
Gross margin
40 % margin
Gross profit per unit
40 $
Markup on cost
66.67 %

Displayed values are rounded. Whole packages and purchase lengths round up. See assumptions below.

Calculation details

Inputs and full-precision results for checking this calculation. No report is sent.

How to use this calculator

Enter the cost and selling price for the same unit in the same currency. Include the costs you intend to treat as cost of goods sold. Compare the two percentages carefully: they use different denominators.

The formula

Gross profit = selling price − cost. Gross margin% = gross profit ÷ selling price × 100. Markup% = gross profit ÷ cost × 100.

A worked example

A product costing $60 and selling for $100 earns $40 gross profit. Its margin is 40% of sales; its markup is 66.67% of cost.

Assumptions & limitations

Calculates per-unit gross figures, not net profit. It excludes overhead, financing, and taxes unless already included in your entered cost. Both price and cost must be positive for the displayed percentages.

Common questions

Why is markup higher than margin?

For a profitable sale, the same profit is divided by a smaller cost base when calculating markup.

Can the result be negative?

Yes. If selling price is below cost, both gross profit and the percentages are negative.

Supporting reference

The method above states this calculator’s assumptions. This reference provides related definitions and technical context.

Business Queensland: break-even and gross profit ↗

Formula and worked example checked against automated test cases. About our methodology.

Answers in seconds

No signup. No spreadsheet. Just your answer.

The math, explained

Clear formulas and useful worked examples.

Your numbers stay yours

Calculations happen right in your browser.