The basic formula: multiply the price by the tax rate
Sales tax is calculated by taking the item's price before tax and multiplying it by the tax rate in your location. The result is the amount of tax you owe. Most receipts show this math already done, but understanding how it works helps you spot errors and plan your budget.
The formula is: Price × Tax Rate = Sales Tax Amount. Then add the tax to the original price to get your total: Price + Sales Tax = Total Cost.
Tax rates vary by state, county, and sometimes city. A state might have 6% sales tax, but your county or city may add another 1% to 2.5% on top of that. The rate you use is the one where you make the purchase, not where you live.
Key Takeaways
- Multiply the item price by the local tax rate (expressed as a decimal) to find the tax amount, then add it to the price.
- Tax rates stack: state tax plus county tax plus city tax all apply to the same purchase in most places.
- Some items are tax-exempt in most states, including groceries, prescription medications, and medical equipment, though rules vary by location.
- When multiple items are in your cart, you usually calculate tax on the total of all taxable items, not each item separately.
- The tax rate shown on a receipt is the combined rate for your location; you do not add rates together yourself.
Converting the tax rate to a decimal for the calculation
Tax rates are usually shown as percentages. To use them in the formula, convert the percentage to a decimal by dividing by 100. A 7% tax rate becomes 0.07. A 9.5% rate becomes 0.095.
Example: An item costs $50 and the tax rate is 8%. Convert 8% to 0.08. Then multiply: $50 × 0.08 = $4. The tax is $4, and your total is $50 + $4 = $54.
If you are not sure of the exact rate in your area, check your state's Department of Revenue website or ask the cashier. Rates change periodically and vary by location, so the rate you saw last year may not be current.
Calculating tax on multiple items
When you buy several items, add up the prices of all taxable items first, then multiply that total by the tax rate. You do not calculate tax on each item separately and add those taxes together — the result is the same mathematically, but the process is simpler.
Example: You buy a shirt for $25, pants for $40, and socks for $10. All three are taxable. Total before tax: $25 + $40 + $10 = $75. Tax rate is 7%. Tax amount: $75 × 0.07 = $5.25. Your total is $75 + $5.25 = $80.25.
If some items in your cart are tax-exempt (like groceries in most states), add only the taxable items before multiplying by the rate. The exempt items go into your total at full price, with no tax added.
What items are usually tax-exempt
Most states do not charge sales tax on groceries, prescription medications, and medical devices like hearing aids or diabetic supplies. Some states also exempt clothing, though the rules differ — one state might tax all clothing, another only items over $110, and a third might exempt it entirely.
Tax-exempt status depends on what the item is, not why you are buying it. A candy bar is taxed; a loaf of bread is not. A bottle of vitamins is taxed; a prescription antibiotic is not. The cashier's register is programmed with these rules, so you do not have to know them all — but knowing the common ones helps you understand your receipt.
If you are unsure whether something is taxable in your state, ask before you check out. Rules change, and a few states have different rules for different situations.
How tax works on online and mail orders
Online retailers now charge sales tax in most states, even if the company is based elsewhere. The tax rate used is the rate where the item is being shipped, not where the seller is located. If you order something online to be delivered to your address, the tax applied is your local rate.
Some online sellers still do not charge tax, usually because they have not registered to collect it in your state. This does not mean the purchase is tax-free — in theory, you owe "use tax" to your state on untaxed purchases, though most individuals do not report this. The rules are complex and still changing as states update their laws.
When you see a price online, check whether tax is included before you buy. Some sites show the pre-tax price and add tax at checkout; others show the total including tax. The final amount you pay should match your calculation using your local tax rate.
Reverse-calculating the price before tax from a receipt
Sometimes you need to work backward: you know the total and the tax rate, and you want to find the original price. This is useful when you are budgeting or checking a receipt.
The formula is: Total ÷ (1 + Tax Rate as Decimal) = Price Before Tax. If your receipt shows $107.50 total and the tax rate is 7%, the math is: $107.50 ÷ 1.07 = $100.47 (rounded). The tax was $7.03.
You can also subtract the tax from the total if you know the tax amount: $107.50 − $7.03 = $100.47. Both methods give the same result. Use whichever is easier with the information you have.
Common mistakes when calculating sales tax
The most common error is forgetting to convert the percentage to a decimal. If you multiply $50 by 8 instead of 0.08, you get $400 in tax instead of $4. Always divide the percentage by 100 first.
Another mistake is adding tax rates together when they are already combined on your receipt. If your receipt shows 8.5% tax, that is already the state, county, and city rates added together. You multiply by 0.085, not by 0.06 + 0.015 + 0.015. The receipt shows the final rate you use.
A third error is calculating tax on tax-exempt items. Groceries, medications, and other exempt goods should not be included in the amount you multiply by the tax rate. Separate them out first, then do the math on only the taxable items.
Frequently Asked Questions
Do I calculate tax on the discounted price or the original price?
Tax is calculated on the discounted price, not the original. If an item is marked down from $100 to $80, and tax is 7%, you pay tax on $80, not $100. The discount is applied first, then tax is added to the reduced amount.
What if the tax calculation gives me a fraction of a cent?
Stores round to the nearest cent. If the math gives you $4.234, the tax is $4.23. If it gives you $4.235, the tax rounds up to $4.24. Most registers do this automatically, so you should not have to think about it — but if you are checking the math by hand, round the final tax amount to the nearest cent.
Is tax included in the price shown on store shelves?
No. Prices on shelf tags and price stickers are before tax. The amount you see is what the item costs before sales tax is added. This is why your receipt total is higher than the price tag. Online retailers sometimes show prices with tax included, but brick-and-mortar stores almost never do.
Do I pay sales tax on services, or only on items?
It depends on the service and your state. Most states tax haircuts, repairs, and restaurant meals. Some states do not tax services at all. A few tax only certain services. Check your state's Department of Revenue website or ask the business before you pay if you are unsure.
Can I get a refund of sales tax if I return an item?
Yes. When you return an item, the store refunds the full amount you paid, including tax. If you paid $54 for a $50 item with $4 in tax, you get $54 back. The refund is processed the same way as the original purchase.