The basic formula: price multiplied by the tax rate

Sales tax is calculated by taking the item's price and multiplying it by the tax rate in your location. If an item costs $100 and your sales tax rate is 8%, you multiply $100 by 0.08 to get $8 in tax. The total you pay is $108.

The tax rate itself varies by state, county, and sometimes city. Some states have no sales tax at all. Others layer a state rate on top of a county rate, and a few add a city rate on top of that. A single purchase in one location might be subject to three different tax rates stacked together.

Most of the time, the cashier or checkout system does this math for you. But understanding how it works helps you predict what you'll actually pay and spot errors on your receipt.

Key Takeaways

  • Sales tax is calculated by multiplying the item price by the tax rate as a decimal (so 8% becomes 0.08).
  • The tax rate depends on your state, and often on your county or city too, so the same item costs different amounts in different places.
  • Some items are taxed at a lower rate or not taxed at all, depending on what they are and what state you're in.
  • When multiple tax rates apply to one purchase, they are added together before being multiplied by the price.
  • Rounding rules vary by state, which is why your receipt total might be a penny different from what you calculated by hand.

When different tax rates apply to the same purchase

In many states, you don't pay just one tax rate. You might pay a state rate plus a county rate plus a city rate. These rates are added together to create a combined rate, which is then multiplied by the price.

For example, suppose you buy a $50 item in a location where the state tax is 5%, the county tax is 2%, and the city tax is 1%. The combined rate is 8%. You multiply $50 by 0.08 to get $4 in tax, for a total of $54.

The checkout system usually shows you only the final total, not the breakdown of which tax went where. If you want to know the individual rates that apply to your address, your city or county assessor's office can tell you, or you can search online for your zip code plus "sales tax rate."

Items that are taxed differently or not at all

Not everything you buy is taxed at the standard rate. Many states exempt groceries, prescription medications, and medical equipment from sales tax entirely. Some states tax groceries at a lower rate than other goods. A few states don't tax clothing, or only tax clothing above a certain price.

The rules are set by each state, so what's tax-free in one state might be fully taxed in another. When you buy something that might fall into one of these categories, the cashier's system is programmed to apply the right rate — or no rate — automatically. You don't have to do anything special.

If you're unsure whether something you bought should have been taxed, check your state's revenue or taxation department website. They publish lists of what is and isn't taxed in your state.

How rounding works when the math doesn't come out even

When you multiply a price by a tax rate, you often get a result with more than two decimal places. For example, $19.99 multiplied by 0.0725 equals $1.449275. Since you can't pay a fraction of a cent, the amount has to be rounded.

Most states round to the nearest cent. So $1.449275 becomes $1.45. A few states round down instead, which would make it $1.44. The difference is usually just a penny per item, but it adds up across a large purchase.

Your receipt should show the tax amount rounded to the nearest cent. If you calculate the tax by hand and get a different total by a penny or two, rounding is almost certainly the reason. If the difference is larger, ask the cashier to explain the calculation.

Tax on services and digital goods

Sales tax traditionally applied to physical items you could touch and take home. But many states now tax services and digital products too. The rules vary widely and are still changing in many places.

Services that are often taxed include haircuts, repairs, and labor charges. Digital goods that may be taxed include software, streaming subscriptions, e-books, and downloaded music. Some states tax all of these; others tax none; most tax some but not others.

When you buy a service or digital product, the seller's system should charge you the correct tax for your location. If you're not sure whether something should have been taxed, the seller's website usually has a tax policy page, or you can contact their customer service.

What happens when you buy across state lines

If you order something online from a seller in a different state, the tax you pay depends on where the seller is located and where you live. Generally, you pay the sales tax rate of the state where the item is being delivered, not the state where the seller is based.

However, not all online sellers collect sales tax for all states. Some smaller sellers only collect tax in states where they have a physical presence. If tax wasn't collected at checkout, you may owe it when you file your state income tax return, though most people don't report this amount.

Large online retailers like Amazon now collect sales tax in all states that have it, so you'll see tax added at checkout. Smaller sellers' policies vary. If you're unsure whether tax should have been charged, check the seller's website or contact them directly.

Reading your receipt to verify the tax calculation

Your receipt should show the subtotal (the price before tax), the tax amount, and the total (the price after tax). To check the math, divide the tax amount by the subtotal. The result should match your local tax rate as a decimal.

For example, if the subtotal is $50 and the tax is $4, divide $4 by $50 to get 0.08, or 8%. That's your tax rate. If the rate doesn't match what you know your location's rate to be, ask the cashier or store manager to explain.

If multiple items are taxed at different rates, the receipt might show separate tax amounts for each rate, or it might show one combined tax total. Either way, the math should add up. A receipt that shows no tax on an item that should be taxed, or tax on an item that shouldn't be, is worth questioning.

Frequently Asked Questions

Why is the tax amount different when I calculate it myself?

Rounding is the most common reason. When the tax calculation results in more than two decimal places, it gets rounded to the nearest cent. If you calculate by hand, you might round differently than the system does. A difference of one or two cents is normal and not an error.

Do I pay sales tax on items I return?

No. When you return an item, the store refunds both the price and the tax you paid on it. The refund should show the full amount you paid at checkout, including tax.

Is sales tax the same everywhere in my state?

No. Most states have a base state rate, but counties and cities add their own rates on top. Two towns ten miles apart might have different combined rates. You can find your exact rate by searching your zip code on your state's revenue department website.

What if a store charges me tax on something that should be tax-free?

Ask the cashier or store manager to correct it. Bring your receipt back if you notice the error after you leave. Stores are required to charge the correct tax rate, and most will refund the overcharge if you point it out.

Do I owe sales tax on things I buy out of state and bring home?

Technically, yes — most states require you to pay tax on items you buy elsewhere and bring into the state. In practice, this is rarely enforced for personal purchases. If you're buying large quantities of taxable items to resell, that's different and you should contact your state's revenue department.