Sales Tax Calculator
Add sales tax to a price, or pull it back out of a tax-inclusive total — the reverse calculation that almost everyone gets wrong.
- Price before tax
- —
- Tax amount
- —
Enter a positive amount, a rate of 0 or more, and a term longer than zero.
How to use this calculator
- Enter the amount.
- Enter the tax rate for the location of the sale.
- Choose the direction — adding tax to a price, or removing it from a total that already includes it.
How the calculation works
Adding tax is the easy direction:
tax = price × rate
total = price + tax
Removing it is where the trouble starts. The correct formula is a division:
net = total / (1 + rate)
tax = total − net
Not total × (1 − rate), which is what intuition suggests and which is always wrong.
Why subtracting the percentage fails
The tax was calculated as a percentage of the smaller pre-tax figure. Subtracting that same percentage from the larger total applies it to the wrong base.
A worked example, both directions
Adding tax to a $250 purchase at 8.25%:
tax = 250 × 0.0825 = 20.63
total = 250 + 20.63 = 270.63
Removing tax from that $270.63 total:
net = 270.63 / 1.0825 = 250.00
tax = 270.63 − 250.00 = 20.63
The division recovers the original $250 exactly. Now the wrong method:
270.63 × (1 − 0.0825) = 248.30 ← wrong
| Method | Pre-tax result | Error |
|---|---|---|
| Divide by 1.0825 | $250.00 | correct |
| Subtract 8.25% | $248.30 | $1.70 too low |
That is a 0.68 percent error on every line. On a $50,000 vehicle it is $340; across a year of business expenses it is a reconciliation that never balances.
The error grows with the rate. At 20 percent VAT, subtracting the percentage understates the net amount by 4 percent — enough to be noticed by anyone checking.
When you actually need to extract tax
- Expense claims and bookkeeping, where a receipt shows only the total
- VAT and GST countries, where displayed prices already include tax
- Reconciling card statements against invoices
- Working out a pre-tax budget from a total you are willing to spend
Common mistakes to avoid
Using the state rate alone. US sales tax is usually a state rate plus county, city and sometimes special district rates. Combined rates run from zero to over 11 percent, and neighbouring towns genuinely differ. Look up the combined rate for the exact address.
Assuming your own location sets the rate. For most remote and online sales in the US it is the buyer’s address — destination sourcing — that determines the rate. A handful of states use origin sourcing for sales within the state.
Treating sales tax and VAT as the same thing. US sales tax is charged once, at the final retail sale, and is quoted separately from the shelf price. VAT and GST are collected at every stage of production, with businesses reclaiming what they paid, and are normally included in the displayed price. That is precisely why extracting tax is a routine daily task in VAT countries and an occasional puzzle in the US.
Guessing on shipping. Some states tax delivery charges, some exempt them when stated separately on the invoice, and some tax them regardless. Include or exclude shipping in the amount you enter to match your state’s rule.
Rounding at the wrong point. Round once, at the end. Rounding the tax on each line item and then summing can differ by several cents from taxing the total — which matters when a system has to reconcile to the penny.
A note on exemptions
Many states treat categories differently: unprepared food, prescription drugs and clothing are commonly exempt or taxed at a reduced rate. A single receipt can therefore carry several effective rates, and applying one blended rate to the whole total will not reproduce it. For mixed baskets, calculate each taxable group separately.
When this calculator is not the right tool
For a sale price with discounts applied before tax, the discount calculator handles the order of operations. For working out tips, where tax is conventionally excluded from the tip base, use the tip calculator. And for general percentage arithmetic that is not about tax, the percentage calculator covers increases, shares and changes together.
Frequently asked questions
How do I remove sales tax from a total?
Divide by one plus the rate, do not subtract the percentage. At 8.25 percent, a 270.63 total contains 250 of price and 20.63 of tax, found by dividing 270.63 by 1.0825. Taking 8.25 percent off 270.63 instead gives 248.30, which is wrong by more than two dollars and gets worse as the rate rises.
Why does subtracting the percentage not work?
Because the tax was calculated on the smaller pre-tax figure, but you would be subtracting it from the larger total. The two percentages refer to different bases. It is the same reason a 20 percent price rise is not reversed by a 20 percent cut.
What sales tax rate should I use?
The combined rate for the exact location of the sale, which is usually a state rate plus county, city and sometimes special district rates. Combined US rates range from zero to over 11 percent, and neighbouring towns can differ. Check your state revenue department for the address in question.
Is sales tax the same as VAT or GST?
They serve a similar purpose but work differently. US sales tax is charged once at the final retail sale and quoted separately from the shelf price. VAT and GST are collected at each stage of production and are normally included in the displayed price, which is why extracting tax from a total is a routine calculation in those countries.
Do I charge tax based on my location or the customer’s?
For most US remote and online sales it is the destination — the buyer’s address — that determines the rate. A handful of states use origin sourcing for in-state sales. If you are collecting tax commercially, confirm the rule for each state you have obligations in.
Are shipping charges taxable?
It varies by state. Some tax delivery charges when the goods are taxable, some exempt them if stated separately on the invoice, and some tax them regardless. This calculator applies tax to whatever amount you enter, so include or exclude shipping to match your state’s rule.
Last reviewed August 2026 · More everyday calculators