Margin and markup

Margin is profit as a share of the selling price; markup is profit as a share of cost. The result shows its working: the formula, the numbers that went in and each rounded step, so you can check it or paste it into a file note. It runs on your device. Nothing you type is sent anywhere, and it works offline.

Margin: 20.00%; Markup: 25.00%

Margin and markup
StepWorkingResult
Costentered80.00
Selling price (before tax)entered100.00
Gross profit100.00 − 80.0020.00
Margin20.00 ÷ 100.00 × 10020.00%
Markup20.00 ÷ 80.00 × 10025.00%

Same in Excel =ROUND((100.00-80.00)/100.00*100,2)

Formula and limits

  • Margin is profit ÷ selling price; markup is profit ÷ cost. Both use amounts before tax.
  • Results are rounded to 2 decimal places. With a target margin the price is rounded to the cent, so the margin after rounding can differ slightly from the target.
  • Freight, discounts and overheads are not included unless you add them to cost.

Amounts are rounded half-up to 2 decimal places at each step shown, using exact decimal arithmetic rather than floating point. Results are a calculation aid, not tax or financial advice.

The Excel formulas use commas between arguments; if your Excel uses semicolons, swap them. Excel's ROUND also rounds halves away from zero, but Excel works in binary floating point, so in a rare half-cent case it can differ by 0.01. A shared link carries the inputs after the # sign, and browsers do not send that part to any server.

Read next