Discount explained: formula, worked example and common mistakes
Up to two percentage discounts, a flat amount off and sales tax, worked through in order, with the saving and the one rate that matches the whole stack. Free, no sign-up.
Updated
What the discount calculator works out
The price you actually pay once the reductions are done. You type the original price and the first percentage discount; a second percentage, a flat amount off and a sales tax rate are there for when they apply. The page works through them in the order a till would — discount, second discount, flat amount, then tax on what is left — and prints the final price, the saving, and one all-in rate for the whole stack.
Nothing is assumed about the offer beyond the numbers you give it. Two discounts stack only if you type both; the flat amount sits where the page puts it, after the percentages; the tax rides on top of everything. The output is the same four facts whatever the shop: what it cost, what it costs now, the difference, and the single rate that describes the whole lot.
The formula
After the first discount = price x (1 - first/100)
After the second discount = previous x (1 - second/100)
After the flat amount off = previous - flat
Final price with tax = previous x (1 + tax/100)
Saving = price - discounted price
All-in discount = saving / price
price is the figure on the ticket. first and second are percentages; the second works on the price the first left, not on the original. flat is an amount subtracted straight off. tax is charged on the discounted price. The saving and the all-in rate compare the discounted figure with the original one, which in the default run — where no tax is typed — is the final price itself.
A worked example
The default run: a price of 80 with 30% off and nothing else typed.
Original price: 80
First discount: 80 x 30% = 24 off
After the first discount: 80 - 24 = 56
Second discount: 0, so the price stays 56
Flat amount off: 0, so the price stays 56
Sales tax: 0, so the final price is 56
Saving: 80 - 56 = 24
All-in discount: 24 / 80 = 30%
30% off 80 leaves 56, a saving of 24, and the all-in rate is the same 30% because nothing else was stacked on. Type a second discount or a flat amount and the all-in row is where the combined effect shows up.
What changes the answer
A bigger first discount moves the final price down one for one with its size. The second discount matters less than it looks, because it works on the already-reduced price: the combined discount is always less than the two rates added. A flat amount off is worth the same at every price, so it cuts deeper on a cheap item than on an expensive one. Sales tax pushes the final price up, and it is charged on the discounted figure, so a bigger discount also shrinks the tax.
When to use it, and when not to
Use it for sale signs, voucher stacking, and checking what a checkout will charge once tax is added. It covers the arithmetic of reductions applied in the order they are applied, and the all-in rate for the lot.
It does not know any shop’s rules. Whether a voucher can sit on top of a sale price, whether loyalty pricing applies, whether the “was” price was ever actually charged — none of that is stored here. No store rules and no price histories live in the page: the only figures it works on are the ones you type.
Common mistakes people make
1. Adding the percentages. Two stacked discounts come to less than their sum, because the second works on the reduced price. The all-in row exists to show the single rate that matches the stack.
2. Applying the second discount to the original price. That overstates the reduction. The second percentage takes its share of what the first left behind.
3. Forgetting the tax sits on the discounted price. Tax charged after a discount is smaller than tax on the original, and the difference is exactly the discount multiplied by the tax rate.
4. Treating the flat amount as a percentage. A flat amount and a percentage of the same size are the same thing at exactly one price; away from it they diverge, and on cheaper items the flat amount wins.
5. Rounding at every step. Carrying each step at full precision and rounding once at the end keeps the arithmetic honest; rounding on the way can move the final figure.
6. Reading the all-in rate as the two rates added together. The combined effect of stacked percentages is a multiplication, not a sum, which is the whole reason the row is printed.
Frequently asked questions
How do two percentage discounts combine?
They multiply rather than add. The second works on the price the first leaves, so stacking two discounts always gets less than adding the two rates. The all-in row shows the one rate that matches the whole stack — 30.00% here, where only one discount is typed.
Does the order of two discounts matter?
Not for two percentages. Each one takes a share of what is left, and shares multiply to the same total either way round. A flat amount off is different: it is a subtraction, so where it sits in the order changes the answer.
Is sales tax charged before or after the discount?
After, here. The tax rate you type is applied to the discounted price, which is how a till does it: the discount comes off first and the tax is charged on what is actually paid.
What is the all-in rate for?
It boils the whole stack down to one number: the single discount that would take the original price to the same discounted price. It is the clean way to compare a stacked offer with a plain one.
Why is a flat amount off worth more on a cheap item?
Because it does not scale. The flat amount is the same at every price while a percentage grows with the price, so the flat amount bites harder the cheaper the item — 24 is 30% of 80 here, and more than 30% of anything cheaper.
Can the final price come out below zero?
It can, if the discounts and the flat amount together exceed the price. The page does not stop at zero, because the arithmetic is what it is; a negative result is a sign to look at the inputs again.
This tool shows math, not advice.
Cite this page
Copy this line into a reference list, a report or a spreadsheet note.
Investment Math Calculator. “Discount Calculator”. Updated 2026-10-31. https://investmentmathcalculator.com/guides/discount-calculator/
Disclaimer: For education only. These calculators show arithmetic and hypothetical scenarios. They are not investment, tax or legal advice and do not recommend any security or product. Consult a licensed adviser in your country before acting.