Calculate a price after a stated discount
Apply a selected percentage or amount discount to an original price, with tax only when enabled by the specified model.
How to use this calculator
- Enter original price P and choose Percentage or Amount discount.
- Enter the active discount field; a fixed discount cannot exceed the original price.
- Optionally enable tax and enter its percentage. Calculate the savings, discounted subtotal, separate tax and final price.
Methodology and assumptions
Percentage savings are round-to-cents(Pd/100); amount-mode savings are the entered monetary amount. Subtotal=P−savings. If tax is enabled, tax=round-to-cents(subtotal×t/100), and final price=subtotal+tax. This order is part of the model, not a universal tax rule.
Precision and rounding
Percentage savings are rounded to cents first, tax separately to cents next, with ties away from zero. Final price adds these cent amounts rather than rounding one combined expression.
Worked example
For P=100, d=20% and tax 10%: savings=100×0.20=20.00; subtotal=80.00; tax=80×0.10=8.00; final=88.00. Taxing the original 100 would be a different model.
Reference examples are specification evidence only; they do not claim that this interface or calculation engine has been tested.
Interpreting the result
The output is arithmetic for the supplied values. Retailer rules, coupons, exemptions, tax jurisdiction, and order of stacked promotions may differ.
One discount and one optional tax only; no stacked coupons, exemptions, shipping or jurisdiction-specific checkout rules. Negative prices/discounts are not credits or refunds.
Common mistakes
- Select percent versus fixed amount correctly.
- Enter a percentage as a percentage, not a decimal fraction, if that is what the field requests.
- Check whether tax is included in the requested comparison.
- Multiple stacked discounts are not inferred.
Frequently asked questions
What is the difference between percentage and amount mode?
One applies a rate to the original price; the other subtracts a fixed amount.
Is tax always included?
No. It is included only when enabled and supported by the selected model.
Does this include coupons or shipping?
No, unless a supported field explicitly represents that amount.
Why can a checkout total differ?
A retailer may apply local tax rules, fees, or promotions differently.
Does this calculate a discount on a sale price?
Use the stated original price and model rules; stacked discounts are not assumed.
Is tax calculated before the discount?
No. This model taxes the cent-rounded discounted subtotal; verify whether that matches the actual transaction.
Sources and further reading
These references support the documented method or context. They do not imply application testing or endorsement.