Discount: Original Price, Sale Price or Percentage

Calculate using the labelled inputs: Discount: Original Price, Sale Price or Percentage.

Fill in exactly two of the four fields; the other two are calculated.

Original price or rounded reverse estimate
100.00
Sale price
80.00
Original minus sale price, signed
20.00
Actual signed reduction from displayed prices (%)
20

Calculation and assumptions

sale=round(original·(1−discount/100),2); original_estimate=round(sale/(1−discount/100),2); actual_reduction=100·(original−sale)/original.

Exactly one blank is the unknown; zero is known. Sale and inverse prices round to cents, halves away from zero. Reverse estimation at 100% is not uniquely solvable and is rejected. A rounded inverse estimate need not reproduce an already rounded sale price exactly. Actual reduction uses displayed prices and may differ from the entered rate. A zero original and zero sale have undefined percentage; a zero original with positive sale is rejected. No tax or compound discounts in this model. In one chosen two-decimal currency; no taxes or current market rates are supplied.

Frequently asked questions

How is the result calculated?

sale=round(original·(1−discount/100),2); original_estimate=round(sale/(1−discount/100),2); actual_reduction=100·(original−sale)/original.

What assumptions apply?

Exactly one blank is the unknown; zero is known. Sale and inverse prices round to cents, halves away from zero. Reverse estimation at 100% is not uniquely solvable and is rejected. A rounded inverse estimate need not reproduce an already rounded sale price exactly. Actual reduction uses displayed prices and may differ from the entered rate. A zero original and zero sale have undefined percentage; a zero original with positive sale is rejected. No tax or compound discounts in this model. In one chosen two-decimal currency; no taxes or current market rates are supplied.

How precise are the results?

Monetary totals use two decimal places with the stated rounding rule; other numbers show up to ten significant digits. Display precision does not improve input accuracy.

What if I know the amount off instead of the percentage?

Enter the original price and the amount off: the sale price is their difference and the percentage is amount ÷ original × 100. Knowing the sale price and amount off gives the original; knowing the amount and the percentage gives original = amount ÷ percentage × 100.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Original price = 100
Sale price =
Entered discount (%); negative means markup = 20
Amount off (money); negative means markup =
Original price or rounded reverse estimate: 100.00
Sale price: 80.00
Original minus sale price, signed: 20.00
Actual signed reduction from displayed prices (%): 20
2
Original price = 59.90
Sale price =
Entered discount (%); negative means markup =
Amount off (money); negative means markup = 12
Original price or rounded reverse estimate: 59.90
Sale price: 47.90
Original minus sale price, signed: 12.00
Actual signed reduction from displayed prices (%): 20.03338898
3
Original price =
Sale price = 47.90
Entered discount (%); negative means markup =
Amount off (money); negative means markup = 12
Original price or rounded reverse estimate: 59.90
Sale price: 47.90
Original minus sale price, signed: 12.00
Actual signed reduction from displayed prices (%): 20.03338898
4
Original price =
Sale price =
Entered discount (%); negative means markup = 25
Amount off (money); negative means markup = 30
Original price or rounded reverse estimate: 120.00
Sale price: 90.00
Original minus sale price, signed: 30.00
Actual signed reduction from displayed prices (%): 25
5
Original price =
Sale price = 80
Entered discount (%); negative means markup = 20
Amount off (money); negative means markup =
Original price or rounded reverse estimate: 100.00
Sale price: 80.00
Original minus sale price, signed: 20.00
Actual signed reduction from displayed prices (%): 20
6
Original price = 500
Sale price = 399
Entered discount (%); negative means markup =
Amount off (money); negative means markup =
Original price or rounded reverse estimate: 500.00
Sale price: 399.00
Original minus sale price, signed: 101.00
Actual signed reduction from displayed prices (%): 20.2

How we test our calculators →

Also try:

Back to category →