# How to Calculate Sales Tax and Discounts

Tax on a $890 computer at 7% is $62.30, for a $952.30 total. Percent off, stacked discounts, tax on the sale price, and the price before tax.

Canonical page: https://ponderloop.com/learn/how-to-calculate-sales-tax-and-discounts/
Updated: 2026-11-14

## Guide

The sales tax on an $890 computer at 7% is $62.30, so the total at the register is $952.30. Multiply the price by the rate as a decimal (890 × 0.07) to get the tax, then add it. Discounts use the same idea in the other direction: a 20% discount multiplies the price by 0.80. The two rules that cause most mistakes are that stacked discounts do not add up, and that you cannot get back to the pre-tax price by subtracting the tax rate from the total. This guide covers each, with figures computed by the site's [Sales Tax Calculator](/tools/sales-tax-calculator/) and [Discount Calculator](/tools/discount-calculator/).

### Sales tax on a price

**Tax = price × rate ÷ 100. Total = price + tax.** Tax is rounded to the cent. For the $890 computer:

| Tax rate | Tax | Total |
|---|---|---|
| 5% | $44.50 | $934.50 |
| 6% | $53.40 | $943.40 |
| 7% | $62.30 | $952.30 |
| 8.25% | $73.43 | $963.43 |
| 10% | $89.00 | $979.00 |

Sales tax rates are set by states and local governments, so the right rate depends on where you buy or where the item is delivered. Whatever the rate, the tax is a percentage of the price before tax.

### Percent off

**Sale price = price × (1 − percent off ÷ 100).** The saving is price × percent off ÷ 100. On the same $890 computer:

| Discount | Sale price | You save |
|---|---|---|
| 10% | $801.00 | $89.00 |
| 15% | $756.50 | $133.50 |
| 20% | $712.00 | $178.00 |
| 25% | $667.50 | $222.50 |
| 30% | $623.00 | $267.00 |
| 50% | $445.00 | $445.00 |

### Stacked discounts: 20% then 10% is not 30%

When a second discount applies to the already-reduced price, each one takes its percent of a smaller number. Multiply the remaining fractions instead of adding the percents.

**Example: $890 with 20% off, then 10% off the result.** The price is 890 × 0.80 × 0.90 = $640.80. That is 28% off, not 30%. The formula for the combined discount is 100 − (100 − a)(100 − b) ÷ 100, so 20 and 10 give 100 − 80 × 90 ÷ 100 = 28.

Taking 30% off $890 directly gives $623.00, which is $17.80 less than the stacked result. The order does not matter: 10% then 20% also gives $640.80. What matters is whether the second coupon applies to the original or the reduced price, which is stated in the coupon's terms.

### Tax on the discounted price

In most cases tax is charged on what you actually pay, so discount first and tax second.

**Example: the $890 computer at 20% off, with 7% tax.**

1. Sale price: $890.00 × 0.80 = $712.00.
2. Tax: $712.00 × 0.07 = $49.84.
3. Total: $712.00 + $49.84 = $761.84.

Compare that with the full-price tax of $62.30: the discount also cuts the tax by $12.46. Rules differ by place and by the kind of discount. In some jurisdictions a manufacturer coupon does not reduce the taxable price, because the store is still paid the full amount, while a store discount does. If it matters for a large purchase, check the receipt or the rules of your state's revenue department.

### Going backwards: the price before tax

If you know the total with tax and the rate, divide by 1 plus the rate. Do not subtract the percentage.

**Example: a $952.30 total at 7% tax.** 952.30 ÷ 1.07 = $890.00 before tax, and the tax is $62.30. Subtracting 7% of the total instead (952.30 × 0.07 = 66.66) would give $885.64, which is wrong because the 7% was applied to the smaller pre-tax price, not to the total.

The same approach works for a discount. If you paid $712.00 after 20% off, the original price is 712 ÷ 0.80 = $890.00. The [Percentage Calculator](/tools/percentage-calculator/) also finds the original value before a percent change.

To find an unknown tax rate, divide the tax by the pre-tax price: $62.30 ÷ $890.00 = 0.07, or 7%. The Sales Tax Calculator does this too. For $108.25 at 8.25%, it gives $100.00 before tax and $8.25 in tax.

### Common mistakes

- **Adding stacked percents.** 20% and 10% are 28% off, not 30%.
- **Subtracting the rate to remove tax.** Divide by 1 plus the rate.
- **Taxing the wrong price.** Use the discounted price unless the coupon rules say otherwise.
- **Rounding each step.** Keep the full figure and round the tax once, to the cent.
- **Assuming one rate everywhere.** State and local rates differ, so check the rate for the place you pay in.

### Try it

For an addition, a removal or an unknown rate, use the [Sales Tax Calculator](/tools/sales-tax-calculator/). For percent off, extra stacked percent and buy-one-get-one deals, use the [Discount Calculator](/tools/discount-calculator/). For any other percentage question, there is the [Percentage Calculator](/tools/percentage-calculator/). If you are comparing taxes in different countries, see [VAT vs Sales Tax Explained](/learn/vat-vs-sales-tax-explained/). Rates and rules change, so these are estimates, not tax advice. When a receipt total has to be written out, as on a cheque, [convert the amount to words](/tools/number-to-words/).

## Sources

- [Wikipedia: Sales tax](https://en.wikipedia.org/wiki/Sales_tax)
- [Wikipedia: Discounts and allowances](https://en.wikipedia.org/wiki/Discounts_and_allowances)
- [Wikipedia: Percentage](https://en.wikipedia.org/wiki/Percentage)

---

Cite as: How to Calculate Sales Tax and Discounts, ponderloop, https://ponderloop.com/learn/how-to-calculate-sales-tax-and-discounts/, updated 2026-11-14
