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). To add a markup, multiply the cost by 1 plus the markup: R100 × 1.5 = R150. Work both out on prices excluding VAT.

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.

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.

How to calculate markup

To calculate markup from a cost and a selling price, both excluding VAT:

  1. Subtract the cost from the selling price to get the profit.
  2. Divide the profit by the cost.
  3. Multiply by 100 for the markup as a percentage.

Example: a R60 cost and a R100 price. R100 − R60 = R40 profit, and R40 ÷ R60 = 66.7% markup.

To go the other way, from a markup to a price, multiply the cost by 1 plus the markup: a 30% markup on R60 is R60 × 1.3 = R78. To get back to the cost, divide: R78 ÷ 1.3 = R60. Choose Markup above and the calculator does this for every product.

A markup is sometimes given as a multiplier instead of a percentage. A price of 2.5 times the cost is a 150% markup: the extra 1.5 times the cost is the profit.

Markup and the margin it gives, with the price on a R100 cost
MarkupMarginPrice on a R100 cost
25%20%R125
33.3%25%R133.33
50%33.3%R150
66.7%40%R166.67
100%50%R200

A markup can go past 100%: doubling the cost is a 100% markup. A margin can't reach 100%.

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%.

Don't mark up a price that already includes VAT and then add VAT again. R115 × 1.5 = R172.50, and adding 15% gives R198.37: VAT on top of VAT. Mark up the R100 cost excluding VAT instead: R150, or R172.50 with VAT.

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.

When to use markup vs margin

  • Markup is usually easier when you start from a cost, such as a supplier's price or the materials and labour in a quote. One multiplication gives the price, and you can use the same markup on every item.
  • Margin is usually easier when you start from your sales. It shows how much of each rand you take you keep, which makes it handy for comparing products and for a range as a whole: add your products above for the blended margin.
  • Say which one you mean. On a R100 cost, a 30% markup is R130 and a 30% margin is R142.86.

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.

Send quotes your clients accept on WhatsApp

With Kwalify your client gets the quote on WhatsApp, accepts it, signs on their phone and pays the deposit.

No card needed. Hosted in South Africa.

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

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.
How do I calculate my markup?
Markup = (selling price − cost) ÷ cost × 100. Buy for R60 and sell for R100: (R100 − R60) ÷ R60 = 66.7%. Use prices excluding VAT for both.
How do I add a 50% markup?
Multiply the cost by 1.5. A R80 cost becomes R120. For a 20% markup, multiply by 1.2; for 30%, by 1.3. Choose "Markup" above and the calculator does it for you.
What is a 2.5 markup in percentage?
It can mean two things. A markup of 2.5 times the cost: R100 becomes R250, a 150% markup and a 60% margin. A 2.5% markup: R100 becomes R102.50.
What is the margin on a 20% markup?
16.7%. Margin = markup ÷ (1 + markup), so 20% ÷ 1.2 = 16.7%. A 15% markup is a 13% margin, and a 50% markup a 33.3% margin.
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.