Sales tax is added to the price at the register, not calculated beforehand by the customer
When you buy something, the store adds sales tax to your subtotal at checkout. You do not calculate it yourself before you arrive. The cashier or the register system does the math: they take the subtotal, multiply it by the local sales tax rate, and add that amount to what you owe.
The math itself is straightforward. If an item costs $10 and the sales tax rate is 8%, you multiply $10 by 0.08 to get $0.80 in tax. Your total is $10.80. Most registers do this automatically, so you see only the final number.
The reason you need to know how this works is that the price tag on an item usually does not include sales tax. If you see a shirt marked $20, you will pay more than $20 at the register. Knowing the local tax rate helps you budget and understand what you will actually owe.
Key Takeaways
- Sales tax rates vary by state and sometimes by city or county, ranging from 0% in some states to over 10% in others.
- The register multiplies the subtotal by the tax rate (expressed as a decimal) to find the tax amount, then adds it to your bill.
- Some items are taxed at a lower rate or not taxed at all, depending on state law — groceries and prescription medications are common exceptions.
- You can find your local sales tax rate on your state's Department of Revenue website or by asking a cashier.
The basic formula for calculating sales tax
The formula is: Subtotal × Tax Rate = Sales Tax Amount. Then add that amount to the subtotal to get your total.
Here is a concrete example. You buy groceries totaling $50. Your state sales tax rate is 7%. You multiply $50 by 0.07 (which is 7% written as a decimal). That equals $3.50 in tax. Your total bill is $50 + $3.50 = $53.50.
Another example: you buy clothing for $75 in a state with a 6% sales tax. $75 × 0.06 = $4.50 in tax. Your total is $75 + $4.50 = $79.50.
The register does this calculation for every item or for the entire subtotal, depending on how it is programmed. Either way, the result is the same.
Why sales tax rates differ by location
Sales tax is set by state law, and many states allow cities and counties to add their own local tax on top of the state rate. This is why the same item can cost different amounts in different places.
For example, a state might have a 5% state sales tax, but a city within that state adds a 2% local tax, bringing the total to 7%. A different city in the same state might add only 1%, making the total 6%. Some states have no sales tax at all, so you pay only the local rate if one exists.
A few states — currently Alaska, Delaware, Montana, New Hampshire, and Oregon — have no state sales tax. However, some cities and counties within those states still collect local sales tax, so the rate is not zero everywhere.
Items that may be taxed differently or not at all
Most states exempt certain items from sales tax or tax them at a lower rate. The most common exemptions are groceries, prescription medications, and medical equipment. Some states also exempt clothing or have lower rates for specific categories.
What counts as "groceries" varies by state. Generally, food you prepare at home is not taxed, but prepared food, restaurant meals, and snacks are. A loaf of bread is usually not taxed; a sandwich from a deli counter usually is.
Prescription medications are almost universally exempt from sales tax, but over-the-counter medications and vitamins may be taxed depending on the state. If you are unsure whether something is taxed, ask the cashier or check your state's Department of Revenue website.
How to find your local sales tax rate
The fastest way is to ask a cashier at any store in your area. They know the rate and can tell you immediately. You can also check your state's Department of Revenue website — every state has one, and most have a tool where you enter your zip code and see the combined state and local rate.
If you are shopping online, the tax rate depends on where the seller is located and where you live. Many online retailers now collect sales tax based on your shipping address, though the rules vary by state and by business size.
Your receipt also shows the sales tax rate and the amount charged. If you keep receipts, you can see what rate was applied and verify it is correct.
What to do if you think the sales tax is wrong
Check your receipt first. The math should be: subtotal × tax rate = tax amount. If the numbers do not match that formula, point it out to the cashier or manager. Most errors are caught and corrected on the spot.
If you believe the tax rate itself is wrong — for example, if a grocery item was taxed when it should not have been — ask the store manager. Different stores sometimes apply exemptions differently, and the manager can explain why an item was or was not taxed.
If you think your state or local government is charging the wrong rate, contact your state's Department of Revenue. They handle disputes about tax rates and can tell you whether the rate you were charged is correct for your location.
Frequently Asked Questions
Do I have to pay sales tax on everything I buy?
No. Most states exempt groceries, prescription medications, and some medical equipment. A few states also exempt clothing. The exemptions depend on your state and sometimes on your city. Ask the cashier or check your receipt to see what was and was not taxed.
Why is the total on my receipt different from what I calculated?
The most common reason is that you used the wrong tax rate. Sales tax varies by location, and some items may be taxed at a different rate than others. Check your receipt to see the rate that was applied, then recalculate using that rate.
Can I get sales tax back if I return an item?
Yes. When you return an item, the store refunds both the item price and the sales tax. The refund appears on your receipt or credit card statement as a negative charge (a credit back to you).
Do I pay sales tax when I buy something online?
It depends on the seller and your state. Many online retailers now collect sales tax based on your shipping address. Some do not, especially if they are small businesses or located in a state with no sales tax. The tax, if any, is usually shown at checkout before you complete your purchase.
How do I know if my state has sales tax?
Five states have no state sales tax: Alaska, Delaware, Montana, New Hampshire, and Oregon. Every other state has a state sales tax rate. Some cities and counties within no-tax states still collect local sales tax. Check your state's Department of Revenue website to find your exact rate.