The basic formula: multiply the price by the tax rate
To calculate sales tax, take the price of the item before tax, multiply it by the sales tax rate for your location, and round to the nearest cent. If an item costs $50 and your sales tax rate is 8%, the math is: $50 × 0.08 = $4.00 in tax. The total you pay is $50 + $4.00 = $54.00.
The sales tax rate varies by state and sometimes by city or county within a state. Your state's base rate might be 6%, but your city might add another 1.5%, making your local rate 7.5%. You need to know the rate where the purchase happens, not where you live — if you buy something in a different state or city, that location's rate applies.
Most receipts show the tax calculation for you, so you do not have to do the math yourself at checkout. But knowing how to calculate it matters when you are budgeting, comparing prices online, or checking whether a receipt is correct.
Key Takeaways
- Multiply the pre-tax price by your local sales tax rate (expressed as a decimal) to find the tax amount, then add it to the price.
- Sales tax rates vary by state and often by city or county, so the rate where you make the purchase is what matters.
- Some items are exempt from sales tax in most states, including groceries, prescription medications, and medical equipment, though rules differ by state.
- When you see a price advertised online or in a store, that price usually does not include sales tax unless the retailer explicitly states otherwise.
- Rounding rules differ slightly by state, but most round to the nearest cent after calculating the tax on each item.
Finding your local sales tax rate
Your sales tax rate is determined by your state, and possibly by your county or city. To find the exact rate where you shop, start with your state's Department of Revenue or Department of Taxation website — most states list rates by county or zip code. You can also call a local tax office or ask a retailer in your area what rate applies.
If you live near a state border and shop in different states, remember that the rate at the register is the one that applies. A purchase made in a state with no sales tax (like Oregon or Montana) will have no sales tax, even if you live in a state that has one. A purchase made in a state with sales tax will be taxed at that state's rate, even if you are a resident of a no-tax state.
Some cities and counties add local sales tax on top of the state rate. For example, Colorado's state rate is 2.9%, but Denver adds 3.62%, making the total 6.52% in that city. Your receipt will show the combined rate that applied to that transaction.
Items that are usually exempt from sales tax
Not everything you buy is subject to sales tax. Most states exempt groceries (unprepared food), prescription medications, and certain medical equipment. Some states also exempt clothing, though the dollar threshold and what counts as clothing varies — a $200 coat might be taxed in one state and exempt in another.
Services are often treated differently from goods. A haircut is usually taxed, but a doctor's visit is not. Repairs to items you own may or may not be taxed depending on your state. The rules are specific to each state, so if you are unsure whether something should be taxed, check your state's Department of Revenue website or ask the retailer before you buy.
When you shop, the register should automatically explore the correct tax rate based on the item code. If you think you were charged tax on something that should be exempt, check your receipt and contact the store — they can issue a refund if the tax was applied in error.
How rounding works when you buy multiple items
When you buy one item, the math is straightforward: calculate the tax and round to the nearest cent. When you buy multiple items, most states require the retailer to calculate tax on each item separately, then add up all the taxes and round once at the end. This can produce a different total than if you added up all the prices first and then calculated tax on the sum.
For example, if you buy three items at $10.00 each with an 8% tax rate: calculating per item gives you $0.80 + $0.80 + $0.80 = $2.40 in tax. Calculating on the total ($30.00 × 0.08) also gives $2.40. But with prices that do not divide evenly, the per-item method can produce a slightly different result. Your receipt will show the method your retailer uses, and it will be the legally correct one for your state.
Calculating tax when items have different rates
In most states, all items are taxed at the same rate. But some states tax groceries at a lower rate than other goods, or exempt groceries entirely while taxing everything else. When you have items with different tax rates in one transaction, the register calculates the tax on each group separately and adds them together.
For example, if you buy $40 in groceries (exempt) and $20 in household supplies (8% tax), the register charges you $0 tax on the groceries and $1.60 on the supplies, for a total tax of $1.60. Your receipt will show which items were taxed and which were not. If you are unsure why an item was or was not taxed, the receipt should indicate the reason, or you can ask the cashier.
Working backward from a total to find the tax amount
Sometimes you know the total you paid and want to know how much of it was tax. This is useful if you are tracking expenses or checking a receipt. The formula is: divide the total by (1 + the tax rate as a decimal), then subtract that result from the total.
If you paid $54 total and the tax rate is 8%, the calculation is: $54 ÷ 1.08 = $50 (the pre-tax price). Then $54 − $50 = $4 in tax. This method works for any single-rate transaction. If the transaction included items with different tax rates, you would need to know which items were taxed at which rate to separate them accurately.
Tax on online and mail orders
Sales tax on online purchases depends on where the seller is located and where you live. If the seller has a physical presence (a store, warehouse, or office) in your state, they must collect sales tax on your purchase. If they do not, they generally do not have to collect it, though you may owe "use tax" to your state — a tax on items you buy out of state and bring home. Most people do not pay use tax, but it is technically owed.
Large online retailers like Amazon now collect sales tax in most states because they have warehouses in many locations. Smaller sellers may not. When you check out, the website will show you whether sales tax is being added. If you are buying from a seller in a different state and no tax is shown, the pre-tax price is what you are paying, and no tax will be added at checkout.
Frequently Asked Questions
Do I need to calculate sales tax myself, or does the register do it?
The register calculates and adds sales tax automatically at checkout. You do not have to do the math yourself when you are shopping. Knowing how to calculate it is useful for budgeting before you shop, checking a receipt, or understanding why the total is higher than the advertised price.
Why is the price on the shelf different from what I pay at the register?
The shelf price is the pre-tax price. Sales tax is added at the register, so your total is higher. This is standard in the United States — prices are advertised before tax, and tax is added at checkout. A few retailers advertise the final price including tax, but they will state that clearly.
If I buy the same item in two different cities, will the tax be different?
Yes, if the cities have different sales tax rates. The rate at the location where you make the purchase is what applies. If City A has a 7% rate and City B has an 8% rate, the same $50 item will cost $53.50 in City A and $54.00 in City B.
Can I get a refund if I think I was charged the wrong tax?
Yes. If you believe the tax charged was incorrect, contact the store with your receipt. They can review the transaction and issue a refund if the tax was applied in error. Keep your receipt for at least a few days after purchase in case you need to return it.
What is use tax, and do I have to pay it?
Use tax is a tax owed to your state on items you buy out of state and use at home, if no sales tax was collected. It is technically owed but rarely enforced for individual purchases. If you buy from a seller in a no-tax state and bring the item home to a tax state, you may owe use tax, but most people do not report or pay it.