Home › Calculators & Converters › Discount and Markup Calculator

Discount and Markup Calculator

Work out a sale price and the amount saved after a discount, or convert between cost, price, markup and margin. Results are exact until the final step, and money is shown to the cent.

Enter the numbers.
--
--
--
Everything runs in your browser, and this page needs JavaScript. No amounts or percentages are sent, stored or shared. Amounts have no currency symbol, so use the same unit for every money value.

How to use

  1. Choose what you want to work out in the What do you want to work out? menu. There are five choices: a sale price after a discount, markup and margin from a cost and a price, a price from cost and markup, a price from cost and margin, or a cost from price and margin.
  2. The page shows only the boxes that choice needs. Fill them in with plain numbers. Percentages go in without the % sign.
  3. Read the sentence under the boxes and the tiles. Each shows the answer and, where useful, the profit per item or the amount saved.
  4. Use the same currency for every amount. The tool adds no symbol and does not convert.

Prices and percentages here are for planning. They are estimates, not financial or tax advice, and they ignore tax, shipping and fees.

Worked examples

Mode and inputsResult
Discount: 149.99 with 30% offSale price 104.99, saving 45.00
Discount: 19.99 with 15% offSale price 16.99, saving 3.00
Markup and margin: cost 18, price 30Markup 66.67%, margin 40.00%, profit 12.00
Price from markup: cost 18, markup 60%Price 28.80
Price from margin: cost 18, margin 40%Price 30.00
Cost from margin: price 250, margin 35%Cost 162.50

Check the first row by hand. 149.99 × 0.70 = 104.993, which rounds to 104.99. The saving is 149.99 − 104.993 = 44.997, which rounds to 45.00. Rows 3 and 5 use the same figures from two directions: a 30 price on an 18 cost is a 40% margin, and it is also a 66.67% markup.

How it works

Each mode is one short formula. All are worked out exactly with fractions, and only the final amounts and percentages are rounded to two decimal places, using round half up. Examples: 10.004 shows as 10.00 and 10.005 shows as 10.01.

sale price   = price x (1 - discount / 100)
saved        = price - sale price
markup %     = (price - cost) / cost  x 100
margin %     = (price - cost) / price x 100
price (markup) = cost x (1 + markup / 100)
price (margin) = cost / (1 - margin / 100)
cost (margin)  = price x (1 - margin / 100)

A discount cannot be more than 100%. A margin of 100% or more has no price, because the formula would divide by zero or a negative number. Markup needs a cost above zero, and margin needs a price above zero. A negative markup or margin means a sale below cost.

Markup versus margin

These two are the most mixed-up terms in pricing. Both use the same profit, the selling price minus the cost, but they divide by different things. Markup divides by cost. Margin divides by price. A cost of 40 sold at 50 has a profit of 10, a markup of 25% and a margin of 20%. For the same profit, margin is always the smaller number, and the gap widens as the profit grows.

The practical danger is applying the wrong one. If you want a 40% margin and you add 40% markup to your cost, you end up with a margin of only 28.57%. To get a true 40% margin on a cost of 18, the price is 18 ÷ 0.6 = 30.00, not 25.20.

Stacked discounts

Two discounts do not add. A 20% discount followed by a further 10% off the new price is not 30% off. On 200, the first step gives 160.00 and the second gives 144.00, a total of 28% off. To check a stack, run the calculator twice, using the first sale price as the second price.

Common mistakes

Frequently asked questions

How do I calculate 25% off?

Multiply the price by 0.75. For 80 that gives 60.00, and you save 20.00.

How do I find the original price before a discount?

Divide the sale price by one minus the discount. A sale price of 60 after 25% off came from 60 ÷ 0.75 = 80. This page works forwards, so test your guess in the discount mode.

Why does a 100% margin give an error?

A price with a 100% margin would need a cost of zero. No finite price satisfies that.

Are my numbers stored?

No. This page needs JavaScript, and everything is calculated in your browser.

Related tools