Skip to main content

HomeAll guides

How Sales Tax Works and What You'll Pay

Sales tax is a percentage added to the price of goods and services at checkout, and the rate depends on where you live and what you're buying

When you buy something in a store or online, the price tag you see is usually not the final amount you pay. Sales tax is added at checkout — it's a percentage of the purchase price that goes to your state, county, or city government. The rate varies widely. Some states have no sales tax at all. Others charge between 4 and 10 percent, and a few cities add their own local tax on top of the state rate.

The tax you pay depends on three things: which state you're in, which county or city within that state, and what category of item you're buying. A shirt might be taxed at one rate, groceries at another, and restaurant meals at a third. This is why the same item can cost different amounts in different places, and why your receipt sometimes shows a tax amount that doesn't match what you expected.

Key Takeaways

  • Sales tax rates range from zero in some states to over 10 percent when state and local taxes combine, and the rate changes based on your location and what you're buying.
  • Groceries, prescription medications, and some clothing are often taxed at lower rates or not taxed at all, depending on your state's rules.
  • Online purchases are now taxed in most states, even when you buy from a seller outside your state, because of federal law changes in 2018.
  • The tax amount appears on your receipt as a separate line item, and you pay it at the register or during online checkout.

Why sales tax rates differ by location

Each state sets its own sales tax rate, and many counties and cities add their own tax on top of that. This layering is why two neighboring towns can have different total rates. For example, one county might charge 6 percent state tax plus 1 percent county tax for a total of 7 percent, while the next county over charges 6 percent state plus 2.5 percent local for a total of 8.5 percent.

Some states don't charge sales tax at all — currently Alaska, Delaware, Montana, New Hampshire, and Oregon have no state sales tax. However, some of these states allow cities or counties to charge local sales tax, so you may still pay tax depending on where you shop. A few states charge sales tax but exempt groceries or clothing, which is why your grocery bill might not include tax even though your clothing purchase does.

The tax money collected goes to fund local services like schools, roads, and public safety. Because each area sets its own rate, the amount you pay reflects the tax decisions of your specific state and locality.

What items are usually taxed differently

Most states treat different categories of purchases differently. Groceries — items like milk, bread, vegetables, and meat — are often taxed at a lower rate or not taxed at all in many states. The reasoning is that groceries are necessities. However, prepared foods like restaurant meals, deli items, and hot foods are usually taxed at the full rate.

Prescription medications are exempt from sales tax in all states, but over-the-counter medicines like cold medicine or pain relievers are often taxed. Clothing is taxed in most states, though a few states exempt it entirely or exempt items below a certain price. Services like haircuts, car repairs, and plumbing are usually taxed, but the rules vary by state.

Digital goods — software, e-books, streaming subscriptions, and downloaded music — are taxed in most states, though the rules are still evolving. If you're unsure whether a specific item is taxed in your state, your receipt will show the breakdown, or you can check your state's tax authority website.

How sales tax is calculated at checkout

When you buy something, the cashier or online system multiplies the item price by the sales tax rate for your location. If you buy a $20 shirt in a place with 8 percent sales tax, the tax is $1.60, and your total is $21.60. If you buy multiple items, tax is usually calculated on each taxable item separately, then added together.

On your receipt, you'll see the subtotal (the price before tax), the tax amount as a dollar figure, and the total (subtotal plus tax). Online retailers calculate tax based on the shipping address you provide, so if you order something to be delivered to a different state, the tax rate for that state applies, not the rate where the seller is located.

Some items in your cart might be taxed and others not. For example, if you buy groceries and a magazine at the same store, the groceries might not be taxed but the magazine is. The receipt will show which items were taxed and which weren't.

Sales tax on online purchases

For many years, online retailers didn't charge sales tax unless they had a physical location in your state. That changed in 2018 when the U.S. Supreme Court ruled that states could require online sellers to charge sales tax. Today, most large online retailers — including Amazon, Walmart, and Target — charge sales tax on orders shipped to your address, based on your state and local tax rate.

Smaller sellers and marketplaces have different rules depending on the state and the platform. Some online marketplaces collect and pay the tax on behalf of sellers, while others require individual sellers to handle it. When you check out online, the sales tax should be shown before you complete your purchase, just like in a physical store.

If you buy from a seller in another country or from a very small seller, sales tax rules may not explore. However, you may owe use tax — a tax on items you purchase out of state for use in your home state. Most people don't track this, but it's technically owed in many states.

Finding your local sales tax rate

Your state's Department of Revenue or Tax Department website lists the current sales tax rate for your area. You can search by zip code or city to find the exact rate that applies to your location. Keep in mind that rates change occasionally, so the rate you see today might be different from what you saw a year ago.

Your receipt always shows the tax rate applied to your purchase, so you can check what was charged. If you're planning a large purchase and want to know the total cost in advance, you can calculate it by multiplying the price by the tax rate (expressed as a decimal — 8 percent is 0.08) and adding that to the original price.

Frequently Asked Questions

Is sales tax the same everywhere in my state?

No. Most states have a base state sales tax rate, but counties and cities often add their own local tax on top. Two towns in the same state can have different total rates. Check your specific zip code or city on your state's tax website to find your exact rate.

Why do some groceries have tax and others don't?

State rules determine which foods are taxed. Most states don't tax unprepared groceries like raw vegetables and meat, but they do tax prepared foods, hot foods, and items like candy or soda. The rules vary by state, so what's taxed in one state might not be in another.

Do I pay sales tax on online purchases from out-of-state sellers?

Yes, in most cases. Large online retailers now charge sales tax based on where you live, not where they're located. The tax rate applied is for your state and local area. Smaller sellers may have different rules, but most major platforms charge tax at checkout.

Can I get sales tax back on something I return?

Yes. When you return an item, the refund includes the sales tax you paid. The store refunds the full amount you paid, including tax, or issues a store credit for that amount.

What's the difference between sales tax and use tax?

Sales tax is charged when you buy something. Use tax is owed on items you purchase outside your state for use at home, if sales tax wasn't charged. Most people don't track use tax, but it's technically owed in many states if you buy something tax-free out of state.

This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.