How to calculate sales tax backwards from a total
Divide the total by 1 plus the tax rate as a decimal. That gives the price before tax, and the difference is the tax. Subtracting the tax percentage from the total is the common mistake, and it always takes off too much. Here is why, with examples.
The formula
Price before tax = total ÷ (1 + rate ÷ 100). Tax = total − price before tax. With a $107 total and a 7% rate: 107 ÷ 1.07 = $100, so the tax is $7.
The sales tax calculator does this in its reverse mode, and lets you start from a US state's base rate plus your local rate.
Price before tax for a $100 total
| Tax rate | Divide by | Price before tax | Tax | Wrong method (subtract %) |
|---|---|---|---|---|
| 5% | 1.05 | $95.24 | $4.76 | $95.00 |
| 6% | 1.06 | $94.34 | $5.66 | $94.00 |
| 7% | 1.07 | $93.46 | $6.54 | $93.00 |
| 8.25% | 1.0825 | $92.38 | $7.62 | $91.75 |
| 10% | 1.10 | $90.91 | $9.09 | $90.00 |
| 20% (VAT) | 1.20 | $83.33 | $16.67 | $80.00 |
On a small screen, scroll the table sideways if needed.
Why subtracting the percentage is wrong
Tax is calculated on the price before tax, not on the total. If you take 7% off $107 you remove $7.49, leaving $99.51, which is 49 cents too low. The bigger the rate and the total, the bigger the error.
The same trap appears with discounts and markups, covered in our guide to finding the original price before a discount. Whenever a percentage has already been added, divide to undo it.
Finding the rate from a receipt
If a receipt shows the subtotal and the total but not the rate, divide the tax by the subtotal: (total − subtotal) ÷ subtotal × 100. A $45.00 subtotal and a $48.71 total means $3.71 of tax, and 3.71 ÷ 45 = 8.24%, which is an 8.25% rate after the shop rounded to the cent.
That is also the quickest way to find your own combined local rate: check a receipt from a shop near you. Five states, covered in our guide to states with no sales tax, have no statewide rate at all.
Several items or a mix of rates
If every item is taxed at the same rate, you can reverse the total in one go. If some items are exempt, such as groceries in many states, reverse only the taxable part. Receipts usually mark taxable items with a letter or symbol.
Shops round tax to the cent, sometimes per item and sometimes on the subtotal, so a reversed figure can be a cent or two off the real price. That's normal.
Setting a price that includes tax
Sellers at markets and events often want a round total, such as $20 with tax. Work backwards to the pre-tax price: at 8.25%, $20 ÷ 1.0825 = $18.48. Charge $18.48 plus $1.52 tax. The product pricing calculator then shows whether that price still covers your costs and margin.
Quick answers
How do I remove 8% tax from a price?
Divide by 1.08. $54 ÷ 1.08 = $50 before tax, with $4 of tax.
Does this work for VAT and GST?
Yes. Divide a VAT-inclusive price by 1.20 for 20% VAT, by 1.05 for 5% GST, and so on.
How do I find the sales tax rate from a total?
Subtract the pre-tax price from the total, then divide by the pre-tax price and multiply by 100.
Why is my answer a cent off the receipt?
Shops round tax to the nearest cent, sometimes item by item. A one- or two-cent difference is rounding, not an error.
Also useful: Percentage Calculator · Product Pricing Calculator