Discount, tax and margin calculator

Final price with a discount, original price from the final one, increases, cascading discounts, tax or VAT in and out, and margin and markup.

loading Discount, tax and margin calculator
About this tool

What is a discount, tax and margin calculator?

This calculator answers the price questions of shopping and small business in one place. It finds the final price after a discount, works backwards to the original price from a sale price, applies a price increase, combines cascading discounts (for example 10% off and then another 20% off), adds or removes sales tax or VAT, and calculates margin and markup from a cost and a selling price. Each result comes with the formula used.

Most mistakes with prices come from applying a percentage to the wrong base. Two discounts of 10% and 20% are not a 30% discount, because the second applies to the already reduced price. A price of 118 with 18% tax included does not contain 18 of tax, because the tax is 18% of the price without tax. And a margin of 40% is not a markup of 40%: margin is a share of the selling price and markup is a share of the cost. The tool keeps these straight and shows the formulas next to the numbers.

Use it for shop owners setting prices, shoppers comparing offers, freelancers adding VAT to a quote, accountants checking an invoice and anyone who has to explain a price to someone else. Values are computed with care for floating-point rounding. It runs in your browser and nothing you type is sent anywhere. For a plain percentage of a number, the percentage calculator is the quickest tool.

How to calculate a discount, tax or margin

  1. Choose the calculation at the top: discount, original price, increase, cascading discounts, tax / VAT or margin and markup.
  2. For a discount, enter the price and the discount percentage. The final price and the amount you save appear.
  3. For the original price, enter the final (sale) price and the discount it already includes.
  4. For cascading discounts, enter the price and add one discount per row; each is applied to the price left by the previous one, and the tool shows the price after each step and the effective total discount.
  5. For tax, choose whether you have the price without tax or with tax, and enter the rate. You get the base price, the tax and the total.
  6. For margin and markup, enter the cost together with either the margin, the markup or the selling price and read the other figures and the profit.

Examples

Discount on a product

A price of 89.90 with 15% off: the discount is 13.485 (13.49 rounded) and the final price is 76.415, or 76.42.

Original price from the sale price

An item is on sale for 80 after 20% off. Original price = 80 ÷ (1 − 0.20) = 100.

Increase

A price of 100 raised by 20% becomes 120. To get back to 100 you need a 16.67% discount, not 20%.

Cascading discounts

200 with 10% off and then 20% off: 200 → 180 → 144. The total discount is 56, an effective 28%, not 30%.

Tax in and out

100 plus 18% tax gives tax of 18 and a total of 118. Going the other way, 118 with 18% included has a price without tax of 118 ÷ 1.18 = 100, with 18 of tax. Subtracting 18% from 118 would give 96.76, which is wrong.

Margin versus markup

A cost of 60 with a 40% margin sells for 60 ÷ (1 − 0.40) = 100, profit 40, and the markup is 66.67%. The same cost with a 40% markup sells for 60 × 1.40 = 84, profit 24, and the margin is 28.57%.

Common mistakes

  • Adding discounts. 10% + 20% off is 28% off in effect, not 30%.
  • Undoing a discount with the same percentage increase. A 20% discount followed by a 20% increase leaves you 4% below the starting price.
  • Subtracting the tax rate from a taxed price. Divide by 1 plus the rate instead: 118 ÷ 1.18.
  • Mixing up margin and markup. A 50% markup is a 33.3% margin; a 50% margin is a 100% markup. A margin of 100% or more is impossible.
  • A 100% discount in the original-price tab. The final price would be 0, so the original cannot be recovered.
  • Rounding too early. Rounding each step can leave a cent of difference with the invoice; keep full precision and round the final amount.

Frequently asked questions

How do I calculate a discount?

Multiply the price by (1 − discount ÷ 100). For 15% off 89.90: 89.90 × 0.85 = 76.415.

How do I find the original price before a discount?

Divide the sale price by (1 − discount ÷ 100).

How do I remove VAT from a price?

Divide the price with tax by (1 + rate ÷ 100). The difference is the tax.

What is the difference between margin and markup?

Margin is profit as a share of the selling price; markup is profit as a share of the cost. Price = cost ÷ (1 − margin) = cost × (1 + markup).

What else can I calculate?

Proportions with the rule of three, splitting a bill with the tip and bill splitter or interest with the loan calculator.

Report a problem