Discount Then Tax: How to Calculate Your Real Final Price (and When Order Actually Matters)
Most guides say "always apply the discount before tax," as if the order changes the total. For a percentage discount it never does — multiplication does not care what order it happens in. Here is the real rule, the one case where order genuinely changes your total, and the formulas for both.
Almost every guide to discounts includes some version of the same warning: apply the discount first, then add tax, or you will get the wrong total. It is repeated so often that it sounds like a law of arithmetic. For a plain percentage discount, it is not one — multiply three numbers together in any order and you get the same answer, and a discount-then-tax calculation is exactly that: three numbers multiplied together.
The advice is not useless, though — it is just pointed at the wrong culprit. Order genuinely does change your total the moment a discount is a flat dollar amount instead of a percentage. This guide separates the two cases cleanly, shows the math for each, and works through the coupon, threshold-discount, and multi-item scenarios where getting this right actually saves or costs you real money.
Quick Answer
- A percentage discount and a percentage tax always give the same final total regardless of which is applied first — multiplication is commutative, so Original × (1 − Discount) × (1 + Tax) equals Original × (1 + Tax) × (1 − Discount).
- A fixed-dollar discount (like "$10 off") combined with a percentage tax is different: the order changes the final total, because tax ends up calculated on a different base amount.
- Almost every point-of-sale system computes tax on the price actually paid — the post-discount amount — which is also the standard nearly every sales-tax jurisdiction requires for retailer coupons.
- The formula for the common case: Final Total = Original Price × (1 − Discount %) × (1 + Tax Rate).
- For a fixed coupon: Final Total = (Original Price − Coupon Amount) × (1 + Tax Rate).
Why Order Usually Doesn't Matter for a Percentage Discount
A percentage discount and a percentage tax are both just multipliers applied to whatever price they land on. Multiplication does not care about sequence: 100 × 0.8 × 1.08 produces the exact same number as 100 × 1.08 × 0.8, because multiplying three numbers together in a different order never changes the product.
Swipe sideways to compare columns.
| Order | Step 1 | Step 2 | Final Total |
|---|---|---|---|
| Discount, then tax | $100 × (1 − 0.20) = $80.00 | $80.00 × (1 + 0.08) = $86.40 | $86.40 |
| Tax, then discount | $100 × (1 + 0.08) = $108.00 | $108.00 × (1 − 0.20) = $86.40 | $86.40 |
Percentage Discount vs. Fixed Discount, Combined With Tax
The same $100 item, 8% sales tax, comparing a 20%-off discount against a $10-off coupon.
20% Off (Percentage)
Discount-then-tax and tax-then-discount both land on the same final total, because both steps are multipliers.
- Order-independent
- Same total no matter the sequence
- Safe to compute in either order
$10 Off (Fixed Amount)
Discount-before-tax ($97.20) and tax-before-discount ($98.00) give different totals — an $0.80 gap on this one item.
- Order-dependent
- Always subtract the fixed amount first
- Taxing the coupon amount overcharges the customer
A percentage discount is order-proof. A fixed-dollar discount is not — the order it is applied in changes the final total.
Where Order Genuinely Changes the Total: Fixed-Dollar Discounts
A flat coupon — "$10 off" instead of "10% off" — breaks the pattern above. Subtracting a fixed dollar amount is not a multiplier, so swapping it with the tax multiplier changes which number the tax rate actually applies to.
Swipe sideways to compare columns.
| Order | Step 1 | Step 2 | Final Total |
|---|---|---|---|
| Coupon, then tax (standard) | $100 − $10 = $90.00 | $90.00 × (1 + 0.08) = $97.20 | $97.20 |
| Tax, then coupon | $100 × (1 + 0.08) = $108.00 | $108.00 − $10 = $98.00 | $98.00 |
Why a Fixed Discount Behaves Differently From a Percentage One
A percentage discount scales with whatever price it is applied to, so it does not matter which base it lands on — 20% of $100 followed by +8% tax, or +8% tax followed by 20% off, both end up scaling the same original $100 by the same two factors. A fixed dollar amount does not scale: subtracting $10 removes exactly $10 regardless of the price it is subtracted from, so it matters a great deal whether that $10 is subtracted before or after the tax multiplier is applied.
Worked Example: A Threshold Coupon Plus Tax
Threshold promotions — "$20 off orders over $100" — combine a fixed discount with a condition. The condition decides whether the discount applies at all; once it does, treat it exactly like the fixed-discount case above.
Swipe sideways to compare columns.
| Step | Action | Result |
|---|---|---|
| 1 | Check the threshold: is $120 ≥ $100? | Yes — the $20 discount applies |
| 2 | Subtract the coupon from the order total | $120 − $20 = $100.00 |
| 3 | Apply tax to the discounted subtotal | $100.00 × 1.07 = $107.00 |
| Answer | — | Final total = $107.00 |
Worked Example: A Multi-Item Cart, Sale Prices, a Checkout Code, and Tax
Real checkouts often stack per-item sale prices, a storewide code, and tax, all in the same order: each item is discounted first, the items are added together, the checkout code is applied to that subtotal, and tax is calculated last, on whatever is left.
Swipe sideways to compare columns.
| Step | Action | Result |
|---|---|---|
| 1 | Shirt after its own 20% discount | $50 × 0.80 = $40.00 |
| 2 | Socks after their own 10% discount | $30 × 0.90 = $27.00 |
| 3 | Subtotal before the checkout code | $40.00 + $27.00 = $67.00 |
| 4 | Apply the 10% checkout code to the subtotal | $67.00 × 0.90 = $60.30 |
| 5 | Apply 6% sales tax to the discounted subtotal | $60.30 × 1.06 = $63.92 |
| Answer | — | Final total = $63.92 (rounded to the cent) |
A Different Kind of Stack: Restaurant Discount, Tax, and Tip
Restaurant checks add a third multiplier that most retail examples skip: the tip. Sales tax is calculated on the discounted food subtotal, same as any other purchase — but tip, by long-standing custom in the United States, is usually calculated on the pre-tax subtotal, not the tax-inclusive total.
Swipe sideways to compare columns.
| Step | Action | Result |
|---|---|---|
| 1 | Start from the subtotal after any menu discount | $85.00 |
| 2 | Calculate tax on that subtotal | $85.00 × 0.08 = $6.80 |
| 3 | Add tax to get the tax-inclusive amount | $85.00 + $6.80 = $91.80 |
| 4 | Calculate tip on the pre-tax subtotal ($85), not $91.80 | $85.00 × 0.20 = $17.00 |
| Answer | — | Total to pay = $91.80 + $17.00 = $108.80 |
Discount + Tax Formulas for Excel and Google Sheets
Both formulas below work identically in Excel and Google Sheets. Keep the discount and tax rate cells formatted as percentages so the decimals behave correctly.
Final Totals Across the Worked Examples
Every scenario above, side by side, on the same $85–$120 order-size scale.
Threshold coupon + tax ($120 order)
Multi-item cart + code + tax
Restaurant: subtotal + tax + tip
The threshold-coupon and multi-item examples land close together, but the restaurant total is higher because it stacks tip on top of tax.
Common Mistakes With Discount and Tax Order
- Assuming a percentage discount must go before tax to get the right total — for a straight percentage-and-percentage combination, both orders give an identical result.
- Applying a fixed-dollar coupon after tax instead of before, which taxes the coupon amount and overcharges the customer.
- Mixing a fixed coupon and a percentage discount in the same formula cell without checking which one needs to go first.
- Rounding to the cent after every intermediate step instead of only at the final total, which can compound into a few cents of drift on repeated calculations.
- Tipping on the post-tax total and assuming it is the "correct" math rather than a more generous personal choice — both are legitimate, they just land on different numbers.
- Assuming every jurisdiction taxes discounted purchases the same way — some regions tax a manufacturer coupon (reimbursed to the retailer) differently from a store coupon (not reimbursed); check local sales-tax guidance if the distinction affects a large purchase.
Practice Problems (With Answers)
Swipe sideways to compare columns.
| Problem | Answer |
|---|---|
| A $60 item is 25% off, with 9% sales tax. What is the final total? | $60 × 0.75 × 1.09 = $49.05 |
| A $45 item has a $5 coupon, with 8% sales tax. What is the final total? | ($45 − $5) × 1.08 = $43.20 |
| A $150 order qualifies for "$25 off orders over $100," with 7.5% sales tax. What is the final total? | ($150 − $25) × 1.075 = $134.38 |
| A $30 item (10% off) and a $70 item (20% off) are bought together, with 8% sales tax on the subtotal. What is the final total? | ($27.00 + $56.00) × 1.08 = $89.64 |
Frequently Asked Questions
Does it matter if I apply a percentage discount before or after tax?
No, not for the final total. Multiplying by (1 − discount) and (1 + tax rate) in either order produces the same number, because multiplication does not depend on sequence.
So why do so many guides insist on discount-first?
Because it matches how receipts and most sales-tax laws actually work — tax is calculated on the amount a customer pays, not the pre-discount sticker price — and because it is the order you need for a fixed-dollar coupon, where order genuinely does change the total.
Does order matter for a fixed-dollar coupon?
Yes. Subtracting a flat amount before tax means tax is calculated on the reduced price; subtracting it after tax means tax was calculated on the full price and the coupon then removes a flat amount from a larger total, producing a different final number.
What is the formula for a percentage discount plus tax?
Final Total = Original Price × (1 − Discount %) × (1 + Tax Rate). This works in either multiplication order.
What is the formula for a fixed coupon plus tax?
Final Total = (Original Price − Coupon Amount) × (1 + Tax Rate), applying the coupon before calculating tax.
Should I tip before or after tax at a restaurant?
The most commonly cited etiquette guideline is to tip on the pre-tax subtotal. Tipping on the post-tax total is not incorrect, it is simply a more generous choice — both are personal decisions, not fixed rules.
Does a store coupon get taxed the same way as a manufacturer coupon?
Often not. Many sales-tax jurisdictions tax a store (retailer) coupon on the post-discount price, since the retailer receives no reimbursement for that amount, while a manufacturer coupon can be taxed on the pre-coupon price because the retailer is reimbursed by the manufacturer. Rules vary by jurisdiction, so check local guidance for large purchases.
How do I calculate a threshold discount like "$20 off orders over $100"?
Check whether the order total meets the minimum first. If it does, subtract the flat discount from the order total, then apply tax to that reduced amount.
Can I combine a percentage discount and a fixed coupon on the same order?
Yes — apply the percentage discount to get a reduced price, then subtract the fixed coupon from that reduced price, and finally apply tax to what remains. Keep the two discount types in separate cells if you are building this in a spreadsheet.
Why did my manual calculation come out a few cents off from the receipt?
Rounding at an intermediate step (discount amount, then tax amount) instead of only at the final total is the most common cause. Carry full decimal precision through each step and round only the final answer to the cent.
Is sales tax always calculated on the discounted price?
In most U.S. states, yes, for a standard retailer discount or coupon — but tax law varies by jurisdiction and by coupon type. This guide explains the arithmetic, not tax law; confirm the rule for your state or country if it affects a significant purchase.
Related Guides and Calculators
- Discount Calculator — Find the sale price, savings, and discount percentage for any type of discount.
- Discount Calculator: A Complete Guide to Calculating Discount Percentage — The core formulas, discount types, and how to spot a fake "original" price.
- Stacked Discounts & BOGO Deals — Why combining two discounts compounds instead of adding, with worked examples.
- Discount, Markup, and Margin: A Practical Pricing Guide — How a discount affects a seller's profit margin, not just the customer's price.
- How to Build a Discount Calculator in Excel and Google Sheets — The core spreadsheet formulas for percentage, fixed, stacked, and tiered discounts.
Final Summary
For a plain percentage discount and a plain percentage tax, order is a matter of convention, not correctness — the final total is identical either way. The rule that actually matters is narrower and easy to remember: whenever a discount is a flat dollar amount rather than a percentage, apply it before calculating tax, because tax should be charged on the price the customer actually pays, not on a larger number that includes a fixed deduction still to come.
Written by
Do The Calculation Team
Do The Calculation Editorial Board
The Do The Calculation Editorial Board is comprised of software engineers, finance analysts, and technical contributors focused on building clean, accurate, and easy-to-use calculator tools.
Reviewed & Verified By
Dr. Marcus Sterling, PhD
Tax Policy & Economic Advisor
Specialist in progressive taxation systems, corporate finance, and business depreciation cycles. Dr. Sterling ensures our tax, salary, depreciation, and corporate margin calculators match current IRS and global regulatory guidelines.