Calculate discount

Apply one percentage discount to an original price and show the saving and final price.

freeworks offlinenothing uploaded
ToolDiscount Calculator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Savings equals original price × discount percentage ÷ 100, and final price subtracts savings from the original. The percentage is applied once; tax, stacked promotions, and currency rounding are outside the calculation.

  • A 20% reduction from 100 provides the editable baseline.
  • No store-specific currency or rounding rule is assumed.

Worked example

25% Off Sale
Calculate a 25% discount on a $79.99 item
Input
											Original price: 79.99
Discount percent: 25
										
Output
												Original Price: $79.99
Discount: 25% (-$20.00)
Final Price: $59.99
You Save: $20.00
											

When to use this

Shoppers compare sale tags, retailers preview a single promotion, and budgets estimate net cost after a percentage reduction.

Edge cases

  • Two successive 20% discounts leave 64% of the original price, not a 40% single discount.
  • A discount over 100% produces a negative arithmetic result rather than a normal sale price.
  • Tax calculated before versus after the discount changes the invoice and is not selected here.