How to Calculate Sales Tax
Add sales tax to a price or reverse a tax-inclusive total with clear percentage formulas, worked examples, and practical checkout math.
By CalcWell Team · ·
To calculate sales tax, multiply the pre-tax price by the tax rate as a decimal. To get the total, multiply the price by (1 + rate). A $84.99 item at 7.25% carries $6.16 in tax, for a total of $91.15. To go backward from a total to the pre-tax price, divide by (1 + rate), not subtract the percentage. This guide covers all three directions, how state and local rates stack, what happens with discounts, and how this differs from VAT. For a quick answer, use the sales tax calculator.
The core formulas
- Tax amount:
tax = price × rate - Total with tax:
total = price + tax = price × (1 + rate) - Pre-tax price from a total:
price = total ÷ (1 + rate) - Tax portion of a total:
tax = total − total ÷ (1 + rate)
Always convert the percentage to a decimal first: 7.25% becomes 0.0725, and 8.5% becomes 0.085. If you want a refresher, the percentages guide explains the conversion.
Worked example 1: tax and total
You buy a jacket for $84.99 in a place with a 7.25% sales tax.
- Convert the rate: 7.25 ÷ 100 = 0.0725.
- Tax: 84.99 × 0.0725 = 6.161775, which rounds to $6.16.
- Total: 84.99 + 6.16 = $91.15.
The one-step shortcut gives the same answer: 84.99 × 1.0725 = 91.1518, or $91.15.
How state, county, and city rates stack
In the United States there is no single national sales tax. A state sets a base rate, and counties, cities, and special districts often add their own on top. The rate you pay is the combined sum for the location of the sale (or, for many online orders, the delivery address).
Here is a hypothetical stack: a 6.0% state rate, a 1.5% county rate, and a 1.0% city rate make a combined 8.5%. On a $249.00 appliance, the tax is 249 × 0.085 = 21.165, or $21.17, and the total is $270.17. Using only the state rate (249 × 0.06 = $14.94) would understate the tax by $6.23.
A few states have no statewide sales tax: Delaware, Montana, New Hampshire, and Oregon. Alaska has no state sales tax, but many Alaskan cities and boroughs charge local sales tax. Rates and rules change often, so check your state revenue department's website for the current rate where you are. The numbers in this guide are examples, not current official rates.
Worked example 2: working backward from a total
A receipt shows a total of $53.94, and you know the rate was 8.25%. What was the price before tax?
- Add 1 to the decimal rate: 1 + 0.0825 = 1.0825.
- Divide: 53.94 ÷ 1.0825 = 49.83, so the price was $49.83.
- Tax is 53.94 − 49.83 = $4.11.
- Check: 49.83 × 1.0825 = 53.9410, which rounds to $53.94.
The tempting shortcut is to take 8.25% of $53.94 and subtract it. That gives 53.94 × 0.0825 = $4.45 and a price of $49.49, which is wrong. The tax was calculated on the pre-tax price, not on the total, so you must divide.
Worked example 3: discounts come first
In most cases, sales tax is calculated on the price you actually pay after a store discount. A $200 coat is 25% off, and the tax rate is 8%.
- Discount: 200 × 0.25 = $50, so the sale price is $150.
- Tax: 150 × 0.08 = $12.00.
- Total: 150 + 12 = $162.00.
Taxing the original price instead would give $16.00 of tax, which overstates the total by $4. The exception is a manufacturer coupon or rebate, which some states treat differently from a store discount because the store is reimbursed for it. Use the discount calculator to work out the sale price first, or read how to calculate a discount.
Quick reference: tax and total on $100
For a $100 pre-tax price, the tax in dollars equals the rate in percent. Scale linearly for other prices.
| Combined rate | Tax on $100 | Total on $100 | Total on $250 |
|---|---|---|---|
| 4% | $4.00 | $104.00 | $260.00 |
| 6% | $6.00 | $106.00 | $265.00 |
| 7.5% | $7.50 | $107.50 | $268.75 |
| 8.25% | $8.25 | $108.25 | $270.63 |
| 9% | $9.00 | $109.00 | $272.50 |
| 10% | $10.00 | $110.00 | $275.00 |
What is taxable and what is not
Taxability varies by state, and sometimes by city. Groceries, prescription drugs, and clothing are exempt or taxed at a reduced rate in some states and fully taxed in others. Digital goods, software subscriptions, and services are treated inconsistently. Some states also run short “tax holidays” on certain items. Resale purchases by a business with a valid exemption certificate are generally not taxed. If you run a shop or sell online, confirm the rules with your state revenue department, because collecting the wrong amount can create real liability.
Sales tax vs VAT and GST
Outside the US, most countries use VAT or GST, and shelf prices usually already include the tax. That reverses your calculation. If a price tag says 120 and the VAT rate is 20%, the pre-tax price is 120 ÷ 1.20 = 100, and the VAT is 20. Taking 20% of 120 (24) is a common error. In the US, shelf prices usually exclude sales tax and it is added at the register, so the number you see is lower than what you will pay.
Common mistakes
- Subtracting the percentage from a total. Divide by (1 + rate) instead. At 7.5%, a $107.50 total came from a $100.00 price. Taking 7.5% of $107.50 gives $8.06 and a wrong price of $99.44.
- Using only the state rate. Local rates can add one to several points.
- Taxing before the discount. Apply the discount first in most cases.
- Rounding too early. Round the tax to the cent once, at the end of each line or invoice, following whichever method your jurisdiction or software uses.
- Forgetting shipping. Some states tax shipping and handling charges, and others do not.
Frequently asked questions
Is sales tax calculated before or after a tip?
Tax is applied to the food and drink bill. Tips are usually calculated on the pre-tax amount or the total, depending on your preference. See the tip guide for details.
Which rate applies to an online order?
In most US states, it is the rate at the delivery address, and large online sellers generally collect it automatically. Check your state's rules if you sell remotely.
Why does my receipt differ by a cent?
Stores round at different points: per item, per line, or on the whole invoice. A one-cent difference between your math and the receipt is normal.
How do I estimate tax in my head?
Take 10% by moving the decimal, then adjust. For 8.5% on $60, 10% is $6, and 8.5% is a bit less, about $5.10.
Calculate it for your purchase
Enter a price and a rate in the sales tax calculator to get the tax and total, or to reverse a receipt total. For more on percent math, try the percentage calculator.
References
- CalcWell methodology: How we calculate
- For unit factors used in conversion guides, see NIST SP 811 Appendix B (SI conversion factors): nist.gov/pml/special-publication-811