How Sales Tax Is Calculated (And How to Reverse a Total Back to Pre-Tax Price)
Sales tax feels like the simplest tax calculation there is — a flat percentage added at checkout — but the details of how it's calculated, and how to work backward from a total price, trip people up more often than expected.
The basic sales tax formula
Calculating the tax amount and final price on a purchase is straightforward multiplication:
For a $80 item with an 8% sales tax rate: tax amount = 80 × 0.08 = $6.40, and the total price comes to $86.40. This is the calculation that happens automatically at most checkouts, but the reverse calculation is where people commonly get stuck.
Working backward: finding the pre-tax price from a total
Sometimes you know the total amount charged and need to figure out the original price before tax — useful for expense reports, budgeting, or just double-checking a receipt. The trap is dividing the total by the tax rate directly, which gives the wrong answer. The correct approach:
So if a receipt shows $86.40 total with an 8% tax rate, the pre-tax price is $86.40 ÷ 1.08 = $80 — not $86.40 ÷ 0.08, which would give a wildly different (and incorrect) number. This division-by-(1+rate) step is the part of reverse sales tax calculations most people get wrong on the first try.
Want the tax amount and total price calculated instantly, in either direction?
Try the Calculator →Why sales tax rates vary so much by location
Unlike income tax, which in the US is set primarily at the federal level (with state income tax layered on top), sales tax is generally set at the state and local level — and in many places, city or county sales taxes stack on top of the state rate. This is why the same purchase can carry noticeably different total tax rates just a few miles apart, depending on which state, county, and city lines it falls within. Some categories of goods (like groceries or prescription medication) are also commonly exempt from sales tax entirely, or taxed at a reduced rate, depending on local rules.
Sales tax vs. VAT: a quick distinction
Many countries outside the US use a Value Added Tax (VAT) instead of a point-of-sale tax. The key difference is where the tax is collected: US sales tax is typically added only at the final retail sale to the consumer, while VAT is collected incrementally at each stage of production and distribution, with businesses able to reclaim VAT paid on their own purchases. For a shopper, VAT-inclusive pricing is often already built into the displayed price (common across the EU), whereas US sales tax is typically added at checkout — one of the more noticeable everyday differences between shopping in the US versus many other countries.
Frequently asked questions
What is the pre-tax amount?
The pre-tax amount is the price of an item or service before sales tax gets added at checkout — the number you'd see on a price tag or invoice line before any tax is applied. If all you have is a total that already includes tax, you can find the pre-tax amount using the formula above: divide the total by 1 plus the tax rate as a decimal.
How do you back out sales tax from a total?
To back out sales tax from a total — whether you call it backing out taxes, removing sales tax from a total, or figuring out how to back out tax from a receipt — divide the total price by 1 plus the tax rate as a decimal. For example, to back out an 8% tax from an $86.40 total: $86.40 ÷ 1.08 = $80. This same formula for backing out sales tax works for expense reports, reconciling a receipt, or checking how much of a total was tax versus the original price.
What does sales tax mean in math terms?
In math terms, sales tax is a percentage of a base price added on top of that price — the same "percentage of a number" calculation used for tips, markups, and discounts, just applied at the point of sale.