Sales Tax Calculator
Add sales tax to a pre-tax price to see the total — or go the other way and work backwards from a tax-inclusive total to find the pre-tax price and the exact tax amount.
How this sales tax calculator works
This tool runs the two calculations people actually need around sales tax, in either direction. In "Add tax to a price" mode, you enter a pre-tax amount and a tax rate, and it tells you the tax charged and the final total. In "Remove tax from a total" mode, you enter a total that already includes tax — say, the final line on a receipt or invoice — and it works backwards to tell you what the price was before tax and how much of that total was tax. Both modes update instantly as you type, and every division is guarded so you'll never see a broken or nonsensical result, even with a blank or zero input.
The exact formula
Adding tax is straightforward multiplication: tax amount = price × (rate ÷ 100), and total = price + tax amount. Removing tax from a total is where people often go wrong, because the intuitive move — subtracting the tax rate from the total — is mathematically incorrect. The correct formula is pre-tax price = total ÷ (1 + rate ÷ 100), and then tax amount = total − pre-tax price. The reason division is required, not subtraction, is that the tax was originally calculated as a percentage of the smaller pre-tax price, not of the larger total — so reversing it means undoing that scaling, which is a division, not a straight percentage-of-total subtraction.
A worked example, both directions
Say an item costs $100 before tax, and your combined sales tax rate is 8.25% (a common combined state-plus-local rate in parts of Texas). Adding tax: tax amount = $100 × 0.0825 = $8.25, and the total you'd pay at the register is $100 + $8.25 = $108.25. Now flip it around — suppose all you have is a receipt showing a $108.25 total at that same 8.25% rate, and you need to know the pre-tax price (for expense reporting, for instance). Divide: $108.25 ÷ 1.0825 = $100.00 exactly, and the tax portion is $108.25 − $100.00 = $8.25. The two directions are true inverses of each other — feed the output of one into the other and you land back where you started, to the penny.
| Direction | Formula | Example result |
|---|---|---|
| Add tax to a price | total = price × (1 + rate/100) | $100 → $108.25 at 8.25% |
| Remove tax from a total | price = total ÷ (1 + rate/100) | $108.25 → $100.00 at 8.25% |
When this calculator matters
Reversing tax from a total comes up constantly in bookkeeping and expense reports: a company card statement or a scanned receipt often shows only the final charged amount, and you need the pre-tax subtotal to record the expense correctly or to reclaim tax where that's applicable. Retailers and small-business owners use the "add tax" direction to quote out-the-door prices to customers before ringing up a sale, or to sanity-check a point-of-sale system's tax calculation. Shoppers comparing prices across states or countries with different tax treatment (some list tax-inclusive prices, others don't) can use either mode to put prices on the same footing before comparing.
Common mistakes to avoid
The single most common error is treating "remove tax" as "subtract the rate from the total" — as shown above, that's wrong and gets more wrong as the rate climbs. A second common mistake is applying the wrong rate: combined sales tax in the U.S. often layers a state rate with county, city and special-district rates, so the number printed on a receipt is usually already a combined figure, not the state rate alone found on a general reference table. A third mistake is assuming the rate is uniform within a state — it frequently isn't; neighboring jurisdictions a few miles apart can have meaningfully different combined rates. Finally, some categories of goods (groceries, prescription drugs, clothing under a threshold, and more) are exempt or taxed at a reduced rate in many states, so a blanket rate won't always apply — check the treatment for your specific item before relying on a single combined-rate figure for tax-sensitive decisions.
Rounding, line items, and multi-item receipts
Most point-of-sale systems calculate tax per line item and round each line to the nearest cent before summing, rather than calculating tax once on a pre-summed subtotal — which means a receipt total can differ by a cent or two from a single-shot calculation like the one this tool performs on a lump-sum amount. That's normal and expected; it isn't a sign either calculation is "wrong," just that rounding accumulates differently depending on where in the process it happens. For budgeting, invoicing, or checking a single item's math, the lump-sum approach used here is accurate to the penny; for reconciling an itemized multi-line receipt exactly, expect small rounding differences of a cent or two per line and don't chase them as errors. If you're building your own point-of-sale or invoicing logic, decide up front whether you're rounding per line or once on the subtotal, and be consistent — mixing the two approaches within the same system is what actually causes reconciliation headaches.
Online sellers and tax nexus
Since the U.S. Supreme Court's 2018 South Dakota v. Wayfair decision, online and out-of-state sellers can be required to collect sales tax in a state purely based on economic activity there — commonly a sales-dollar or transaction-count threshold — even without a physical location in that state. This is called "economic nexus," and it means an e-commerce seller can owe sales tax collection duties across dozens of different states and rate schedules simultaneously, each with its own combined rate and its own product-category exemptions. This calculator handles the pure add/remove math for any single rate you enter; it does not track nexus thresholds or determine which states you owe tax in — that determination depends on your specific sales volume and state-by-state rules, which change periodically, so sellers with multi-state exposure typically use dedicated tax-automation software or a tax professional alongside quick manual checks like this one.
Frequently asked questions
How do I calculate sales tax on a price?
Multiply the pre-tax price by the tax rate as a decimal, then add that to the price. For a $100 item at an 8.25% rate: tax = $100 × 0.0825 = $8.25, and the total is $100 + $8.25 = $108.25.
How do I find the pre-tax price from a total that already includes tax?
Divide the tax-inclusive total by 1 plus the tax rate as a decimal: pre-tax price = total ÷ (1 + rate). For a $108.25 total at 8.25%, pre-tax price = $108.25 ÷ 1.0825 = $100.00, and the tax amount is $108.25 − $100.00 = $8.25.
Can I just subtract the tax rate from the total instead of dividing?
No — that's a common mistake and it overstates the pre-tax price. Subtracting 8.25% of $108.25 gives $99.32, not $100.00, because the tax was originally calculated on the smaller pre-tax amount, not on the total. Dividing by (1 + rate) is the correct reverse calculation.
Why does the sales tax rate vary so much by location?
In the U.S., sales tax is set at the state level and then often layered with county, city and special-district taxes on top, so the combined rate can differ block to block in some areas. A handful of states charge no state sales tax at all. Always use the combined rate for the exact location where the sale happens.
Does this calculator know my local tax rate automatically?
No. You enter the rate yourself, because combined state, county and city rates vary by exact address and change over time — a hardcoded table would go stale. Check your state or county revenue department's site, or a recent receipt, for the current combined rate.
Is sales tax the same as VAT or GST?
They're related but not identical. U.S. sales tax is typically charged once, at the final retail sale to the consumer. VAT (value-added tax) and GST (goods and services tax), used in many other countries, are collected at each stage of production and distribution, with businesses reclaiming what they paid on inputs. The add/remove math in this calculator works the same way for a flat VAT or GST rate, but the underlying systems differ.
Last updated: July 2026 · How we calculate
Sales tax rates vary by state, county and city and change over time — confirm the current combined rate for your exact location. Estimates only, not tax advice.