Sales Tax Calculator: Forward and Reverse Math Explained
Sales Tax Calculator: Forward and Reverse Math Explained
Sales tax math looks trivial until you need to work backward from a receipt that only shows a final total. Here's both directions of the calculation.
Adding Tax to a Price
Tax Amount = Price × (Tax Rate / 100)
Total Price = Price + Tax Amount
Example: a $100 item with 8% sales tax costs $100 × 0.08 = $8 in tax, for a total of $108.
Reverse: Finding the Pre-Tax Price From a Total
This is the direction people get wrong most often. You cannot simply subtract the tax rate percentage from the total — you have to divide:
Pre-Tax Price = Total / (1 + Tax Rate / 100)
Example: a receipt shows a $108 total with 8% tax. Pre-tax price = $108 / 1.08 = $100, and tax = $108 − $100 = $8. Note that simply taking 8% of $108 ($8.64) gives the wrong answer — the tax rate applies to the pre-tax price, not the total.
Why Rates Vary So Much by Location
In the US and several other countries, sales tax is often layered — state, county, and city rates stack together into one combined rate. That's why the same purchase can be taxed differently just a few miles apart, and why there's no single "national" sales tax rate to rely on.
Using the Sales Tax Calculator
The ToolzGo Sales Tax Calculator handles both directions:
- •**Add Tax mode:** enter a pre-tax price and rate to get the tax amount and total
- •**Reverse mode:** enter a tax-included total and rate to back-calculate the pre-tax price and tax amount
Runs entirely in your browser — nothing is uploaded or saved.
Does This Work for VAT Too?
Yes — VAT (Value Added Tax) is also a percentage added to a base price, so the same forward and reverse formulas apply. Just enter your local VAT rate instead of a sales tax rate.
Frequently Asked Questions
Q: How is sales tax calculated?
A: Tax Amount = Price × (Tax Rate / 100). Total Price = Price + Tax Amount. Reverse mode divides a tax-included total by (1 + Tax Rate / 100) to find the pre-tax price.
Q: Why do sales tax rates vary so much by location?
A: In many countries, sales tax is set at state, county, and city levels and stacked together, so the combined rate can differ significantly even between neighboring cities.
Q: Can I use this for VAT instead of sales tax?
A: Yes, the math is the same — VAT is also a percentage added to a base price, so entering your local VAT rate works identically to a sales tax rate.
Once you've got the total, check your Profit Margin Calculator numbers to make sure tax isn't eating into your margin, or the Break-Even Calculator for the bigger pricing picture.
Calculate sales tax forward or in reverse in seconds.
Try Sales Tax Calculator Free