Sequential Discounts with Entered Tax

Calculate using the labelled inputs: Sequential Discounts with Entered Tax.

Price after discounts
72.00
Savings, signed
28.00
Tax amount
7.20
Total including tax
79.20
Actual reduction (%)
28
Discount steps
2
Price excluding tax
72.00

Calculation and assumptions

price_i=round(price_(i−1)·(1−discount_i/100),2); tax=round(final_price·tax_rate/100,2); total=final_price+tax.

Each discount applies to the preceding rounded price, not the original price. Round every step to cents, halves away from zero, then round tax once on the last price. Negative percentages are markups; accepted range −1000% to 100%. Blank list means no discounts. Percentages use a decimal point and up to six decimals; original price up to two. Tax is your own nonnegative rate, not an inferred legal rate or tax-inclusive conversion. Reduction uses displayed pre-tax prices; zero original gives a dash. Maximum intermediate pre-tax price is 10^12 in the chosen currency. In one chosen two-decimal currency; no taxes or current market rates are supplied.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

price_i=round(price_(i−1)·(1−discount_i/100),2); tax=round(final_price·tax_rate/100,2); total=final_price+tax.

What assumptions apply?

Each discount applies to the preceding rounded price, not the original price. Round every step to cents, halves away from zero, then round tax once on the last price. Negative percentages are markups; accepted range −1000% to 100%. Blank list means no discounts. Percentages use a decimal point and up to six decimals; original price up to two. Tax is your own nonnegative rate, not an inferred legal rate or tax-inclusive conversion. Reduction uses displayed pre-tax prices; zero original gives a dash. Maximum intermediate pre-tax price is 10^12 in the chosen currency. 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. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How do I remove VAT from a gross price?

Choose “already included”: the tax share is price × rate ÷ (100 + rate). For example, 119 at 19 % contains 19 of tax, so the net price is 100; 1,000 at 25 % is 800 excluding VAT.

How we verified this calculator

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

# Inputs Expected result
1
Tax in the prices = Added on top after discounts (net prices)
Original price = 100
Discount percentages in order; newline or semicolon, up to 100; blank = none = 10;20
Tax rate (%) = 10
Price after discounts: 72.00
Savings, signed: 28.00
Tax amount: 7.20
Total including tax: 79.20
2
Tax in the prices = Already included (gross prices)
Original price = 119
Discount percentages in order; newline or semicolon, up to 100; blank = none =
Tax rate (%) = 19
Price after discounts: 119.00
Savings, signed: 0.00
Tax amount: 19.00
Total including tax: 119.00
3
Tax in the prices = Already included (gross prices)
Original price = 1000
Discount percentages in order; newline or semicolon, up to 100; blank = none = 20 10
Tax rate (%) = 25
Price after discounts: 720.00
Savings, signed: 280.00
Tax amount: 144.00
Total including tax: 720.00
4
Tax in the prices = Added on top after discounts (net prices)
Original price = 99.99
Discount percentages in order; newline or semicolon, up to 100; blank = none = 15
Tax rate (%) = 7.5
Price after discounts: 84.99
Savings, signed: 15.00
Tax amount: 6.37
Total including tax: 91.36
5
Tax in the prices = Already included (gross prices)
Original price = 99.99
Discount percentages in order; newline or semicolon, up to 100; blank = none = 15
Tax rate (%) = 8.25
Price after discounts: 84.99
Savings, signed: 15.00
Tax amount: 6.48
Total including tax: 84.99

How we test our calculators →

Also try:

Back to category →