Skip to content
Kwalify

Margin and markup calculator

Short answer

Margin is profit as a share of the selling price; markup is profit as a share of the cost. Buy for R100 and sell for R150: the R50 profit is a 33.3% margin (R50 ÷ R150) and a 50% markup (R50 ÷ R100). Work both out on prices excluding VAT.

Need markup instead? Use the markup calculator.

Updated · by Timo van Deventer, Senior AI Product Specialist

Your products stay in your browser, saved on this device only.

What do you know?

Type the cost and the selling price to see the margin and markup.

The margin is always worked out on prices excluding VAT. VAT calculator

Result

Margin
–
Markup
–
Profit each
–
Price excl. VAT
–
Price incl. VAT (15%)
–

Type a cost and a price to see the sum, like Margin: (R150 − R100) ÷ R150 = 33.3%.

Free, no email needed. The CSV opens in Excel or Google Sheets.

Send quotes your clients accept on WhatsApp

Join the waitlist

One WhatsApp message when your spot is ready. No card needed.

We use your details as set out in our privacy policy and terms of use.

Margin vs markup

Both start from the same profit: the selling price minus the cost. Margin divides that profit by the selling price; markup divides it by the cost.

The margin here is the gross profit margin, sometimes called GP margin: the profit on the item itself, before rent, wages and other overheads. Net profit margin takes those off too, so it needs your whole business's figures.

  • Margin = (price − cost) ÷ price. R100 cost, R150 price: R50 ÷ R150 = 33.3%.
  • Markup = (price − cost) ÷ cost. The same sale: R50 ÷ R100 = 50%.
  • Margin to markup: markup = margin ÷ (1 − margin). 30% ÷ 0.7 = 42.9%.
  • Markup to margin: margin = markup ÷ (1 + markup). 50% ÷ 1.5 = 33.3%.
Margin and the markup that gives it, with the price on a R100 cost
MarginMarkupPrice on a R100 cost
20%25%R125
25%33.3%R133.33
30%42.9%R142.86
40%66.7%R166.67
50%100%R200

For a profit, the margin is always the smaller number, and it can never reach 100%: that would need a cost of zero.

How to price for a target margin

  1. Start from the cost of one item, excluding VAT.
  2. Divide it by 1 minus your target margin: for a 30% margin, divide by 0.7.
  3. If you're registered for VAT, add 15% to the result for the price your customer pays.

Example: a R100 cost at a 30% margin: R100 ÷ 0.7 = R142.86 excluding VAT. Including VAT: R142.86 × 1.15 = R164.29. Check: (R142.86 − R100) ÷ R142.86 = 30%.

Adding 30% to the cost gives a 30% markup instead: R130, a 23.1% margin.

Margin and VAT

Work out margin on prices excluding VAT. If you're VAT-registered, the VAT you charge goes to SARS, less the VAT you paid your suppliers (SARS VAT 404, important principle 3), so neither is part of your profit.

  • Both amounts including VAT: the percentage comes out the same, but the profit in rand is 15% too high. R115 and R172.50 look like a R57.50 profit; it's R50.
  • A cost excluding VAT against a price including VAT: the margin comes out too high. R100 against R172.50 looks like 42%; it's 33.3%.

Tick My amounts include VAT above and the calculator takes VAT off both amounts first, then shows the selling price with and without VAT. If you're not registered for VAT, you don't charge it, so leave the box unticked and type what you paid.

Common mistakes

  • Adding the margin to the cost. R100 + 30% = R130 is a 23.1% margin, not 30%. For 30%, divide by 0.7 instead.
  • Dividing by the wrong number. Profit ÷ price is margin; profit ÷ cost is markup. Say which one you mean when you quote a percentage.
  • Leaving VAT in. A margin on a price including VAT looks better than it is. See Margin and VAT above.
  • Averaging margins across products. One product sells for R10 at a 50% margin, another for R100 at 10%. The average of the two is 30%, but together they make R15 on R110: 13.6%. Add your products above to see the blended margin.
  • Aiming for 100% or more. A margin can't reach 100%. If you want to double the cost, that's a 100% markup, which is a 50% margin.

Margin and markup questions

What is the formula for calculating margin?
Margin = (selling price − cost) ÷ selling price × 100. Buy for R100 and sell for R150: (R150 − R100) ÷ R150 = 33.3%. Use prices excluding VAT for both.
Is a 30% markup the same as a 30% margin?
No. Markup is a percentage of the cost and margin a percentage of the selling price, so the same profit gives two different numbers. A 30% markup on R100 is R130, a 23.1% margin. A 30% margin needs a 42.9% markup: R100 becomes R142.86.
How do I calculate a 40% gross margin?
Divide the cost by 1 − 0.4, which is 0.6. A R60 cost becomes R100, and the R40 profit is 40% of the price. Choose "Target margin" above and the calculator does it for you.
Is margin calculated on cost price or selling price?
Margin is calculated on the selling price. Markup is calculated on the cost price. That is why, on a sale that makes a profit, the margin is always lower than the markup, and why a margin can never reach 100%.
How do I work out the cost from a price and a markup?
Divide the selling price by 1 plus the markup. A R150 price with a 50% markup: R150 ÷ 1.5 = R100.
Is 30% a good markup?
It depends on your other costs. A 30% markup is a 23.1% margin: of every R100 you sell, R23.08 is gross profit, before rent, wages and other overheads. Whether that's enough depends on those costs, so work out what you need to cover first.

This is general information, not financial or tax advice.