How to Calculate Sales Tax (Both Directions)
The exact math for adding sales tax to a price and for working backward from a tax-included total to find the pre-tax price — plus the mistake most people make doing it by hand.
Calculating sales tax forward — adding it to a price — is simple multiplication. Working backward from a total that already includes tax trips people up constantly, because the natural instinct (subtract the percentage from the total) gives the wrong answer.
Adding tax to a price
Multiply the price by the tax rate to get the tax amount, then add it back: total = price × (1 + rate). A $50 item at 8% tax: $50 × 1.08 = $54.00, meaning $4.00 of that total is tax.
Working backward from a total
Divide the total by (1 + the rate) to undo the tax: price = total ÷ (1 + rate). A $54.00 total at 8% tax: $54.00 ÷ 1.08 = $50.00 pre-tax, confirming $4.00 was tax.
The mistake: subtracting the percentage directly
Taking that same $54.00 total and simply subtracting 8% ($4.32) gives $49.68 — close to the right answer, but wrong, because 8% of $54.00 isn't the same number as 8% of the original $50.00 price. The rate was applied to the smaller pre-tax number, so undoing it requires division by (1 + rate), not a straight percentage subtraction from the total. The gap is small at typical rates but grows quickly at higher ones.
The Sales Tax Calculator runs both directions correctly, with a quick state-rate lookup if you don't already know the rate.