How Sales Tax Works and What You Pay
Sales tax is a percentage added to the price of goods and services at the point of sale
When you buy something in a store or online, the final price you pay often includes sales tax — a percentage that goes to your state or local government. The tax is calculated on the purchase price and collected by the seller, who then sends it to the appropriate tax authority. The rate you pay depends on where you live and what you're buying, because different states and cities set their own rates, and some items are taxed differently than others.
Sales tax is not the same as income tax or property tax. It applies only to specific transactions, not to your overall earnings or assets. You encounter it at checkout, and the amount added to your bill is what gets sent to the government.
Key Takeaways
- Sales tax rates vary by state, ranging from zero in some states to over 7 percent in others, and cities often add their own local tax on top.
- Most states exempt groceries, prescription medications, and medical equipment, though the rules differ by state.
- Online purchases are subject to sales tax in most states, though the rules have changed in recent years.
- The seller collects sales tax at checkout and sends it to the state or local tax authority, not directly to the federal government.
How sales tax rates are set and where the money goes
Each state sets its own sales tax rate, and that rate can range from zero percent to over 7 percent of the purchase price. Some states have no sales tax at all — currently Alaska, Delaware, Montana, New Hampshire, and Oregon do not collect state sales tax. Other states set a base rate and then allow cities and counties to add their own local tax on top, which means the total rate you pay depends on both where the state is and which city you're in.
The money collected goes to state and local governments to fund schools, roads, public services, and other programs. When you pay sales tax, none of it goes to the federal government — it stays within your state or locality.
What items are taxed and what items are not
Most states exempt certain categories of items from sales tax. Groceries — unprepared food you buy to cook at home — are not taxed in most states, though the definition varies. Some states tax candy or soda differently than other groceries. Prescription medications are exempt in all states, as are many medical devices and equipment.
Prepared food, restaurant meals, and takeout are almost always taxed. Clothing is taxed in most states, though a few states exempt it 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 like e-books, software, and streaming subscriptions are taxed in some states and not in others.
The best way to know what is taxed where you live is to check your state's tax authority website, because the rules are specific to your state and sometimes to your city.
How sales tax is calculated at checkout
The seller multiplies the purchase price by the sales tax rate for your location and adds that amount to your bill. If you buy an item for $100 in a place with 7 percent sales tax, the tax is $7, and your total is $107. If you buy multiple items, the tax is usually calculated on the subtotal of all taxable items, then added once at the end.
Some stores show the tax separately on the receipt so you can see exactly how much tax you paid. Others include it in the final total. Either way, the amount collected is the same.
Sales tax on online and mail orders
For many years, online retailers did not collect 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 collect sales tax even without a store in that state. Most states now require online retailers to collect and send sales tax based on the buyer's address.
This means that when you order something online, the seller should charge you sales tax at the rate for your state and city, just as a physical store would. However, the rules are still being implemented differently across states, and some smaller sellers may not yet be collecting it. If you think you were not charged sales tax on an online purchase when you should have been, you may owe that tax to your state — though most states do not actively pursue individual buyers for this.
The difference between sales tax and other taxes you might see
Sales tax is separate from excise tax, which is a tax on specific goods like gasoline, alcohol, and cigarettes. Excise tax is usually included in the price you see on the pump or shelf, not added at checkout. It also differs from use tax, which some states charge on items you buy out of state and bring home — though use tax is rarely collected from individual shoppers.
Sales tax also does not include shipping costs in most states, though some states tax shipping if it is listed separately on the invoice. The rules vary, so check your state's guidance if you are unsure whether shipping should be taxed.
Frequently Asked Questions
Do I have to pay sales tax if I buy something out of state?
If you buy something in person in another state, you pay that state's sales tax at checkout. If you order online from an out-of-state seller and have it shipped to your home, you pay sales tax based on your home state's rate. Some states also have a use tax that technically applies to items you buy out of state, but it is rarely collected from individuals.
Why is sales tax different in different cities?
States allow cities and counties to add their own local sales tax on top of the state rate. This means two cities in the same state can have different total rates. Your location at the time of purchase — or your shipping address for online orders — determines which rate applies.
Can I get sales tax refunded if I return something?
Yes. When you return an item, the store refunds both the purchase price and the sales tax you paid. The refund appears as a credit on your receipt or back to your payment method.
Are there states with no sales tax?
Five states currently have no state sales tax: Alaska, Delaware, Montana, New Hampshire, and Oregon. However, some of these states may have local sales taxes or other taxes that serve a similar purpose. If you live in one of these states, you still pay sales tax on some purchases depending on your city.
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.