When you buy something in the United States, sales tax works by adding a percentage to the price at checkout rather than building it into the sticker. The seller calculates that percentage based on where you take delivery of the item, collects it from you along with the price, and later sends it to the state and any local governments entitled to a share. That is the short version of how sales tax works when buying something, and almost every wrinkle you’ll run into is a variation on it.
Forty-five states charge a statewide sales tax, and thirty-eight of those also let counties, cities, and special districts add their own percentages on top. The national population-weighted average combined rate is about 7.53 percent. Five states have no statewide sales tax at all, though even some of those permit local collection.
How the Rate on Your Receipt Is Set
The rate you see is almost never one government’s doing. A state sets a base rate somewhere between about 2.9 percent and 7.25 percent, and then local jurisdictions stack on their own. A county might add half a percent, a city another percent, a transit or stadium district another fraction. Combined rates top 10 percent in a handful of areas, and they can differ block by block within the same metro.
Sellers pick the rate using one of two rules. Most states use destination-based sourcing, meaning the rate is tied to where the buyer receives the goods. About a dozen states use origin-based sourcing, where the seller’s location controls. If a receipt shows a rate you didn’t expect, this distinction is usually why.
The revenue funds local infrastructure, schools, emergency services, and other public programs. Businesses that fail to collect or remit face interest, percentage-based fines, and criminal charges in serious fraud cases.
What Actually Gets Taxed
Not everything you buy carries sales tax. Most states draw a line between physical merchandise, which is generally taxable, and basic necessities, which often get a full or partial exemption. The common exemptions:
- Groceries. Roughly two-thirds of states with a sales tax exempt unprepared food entirely. A smaller group taxes it at a reduced rate, and a few tax it at the full rate.
- Prescription medications. Nearly every state exempts drugs prescribed by a doctor. Over-the-counter products like vitamins are usually taxed.
- Medical devices. Prosthetics, hearing aids, and other prescribed equipment are exempt in most states.
The line can get surprisingly specific. A doughnut eaten in the bakery may be taxed as prepared food, while the same doughnut in a six-pack to take home is treated as an exempt grocery. Services follow their own rules: professional services like legal advice and accounting are exempt in many states, while services tied to physical goods, such as car repair or dry cleaning, are taxable in some jurisdictions.
Digital purchases have been catching up. Around half the states now tax at least some digital goods, including downloaded music, e-books, software, and streaming subscriptions, and the scope varies widely from state to state.
How the Total Is Calculated
The price on the shelf or the website listing does not include sales tax. Tax is added at the register as a separate line, which is why the total is always higher than the sticker. The math is straightforward: the register multiplies the taxable subtotal by the combined rate for that location.
Buy $80 of taxable items where the combined rate is 8.25 percent, and the tax is $6.60, bringing your total to $86.60. Items that qualify for an exemption are separated out so they don’t inflate the taxable subtotal. Modern point-of-sale systems handle this automatically, pulling the current rate from a database that accounts for every overlapping jurisdiction.
Your receipt is your proof of how much tax you paid. Hold onto it if you plan to claim a deduction on business purchases or need to prove tax was already paid on an item; the IRS considers sales slips, invoices, and receipts essential supporting documents for anyone tracking business expenses.1Internal Revenue Service. What Kind of Records Should I Keep
Buying Online
Online purchases follow the same rules, though the mechanics look different. When you enter a shipping address, the seller’s software looks up the combined rate for that location and adds tax accordingly. In most states, that means you’re charged the rate where the package is delivered, not where the warehouse sits.
This wasn’t always the case. Before 2018, online sellers generally didn’t have to collect tax in states where they had no physical presence. The Supreme Court changed that in South Dakota v. Wayfair, Inc., ruling that states can require collection from sellers who do enough business in the state without any physical footprint.2Supreme Court of the United States. South Dakota v. Wayfair, Inc. The original case involved a threshold of $100,000 in annual sales or 200 separate transactions within the state. Today, most states have adopted some version of a $100,000 revenue threshold, though about 18 still include a 200-transaction alternative.
If you buy from a third-party seller on a large e-commerce platform, you may notice the platform is handling the tax rather than the individual seller. Marketplace facilitator laws in most states shift the responsibility for calculating, collecting, and sending in the tax from the small seller to the platform hosting the sale.3Streamlined Sales Tax. Marketplace Facilitator Either way, the tax is itemized in your cart before you pay.
When No One Collects Tax at Checkout
Sometimes you buy something and no tax is added. Maybe it’s a private sale, an out-of-state vendor that doesn’t collect your state’s tax, or a transaction that slipped through the cracks. In those cases you generally owe use tax to the state where you use the item. The rate matches your local sales tax rate.
Typical situations include buying furniture or electronics from a private seller, ordering from an out-of-state vendor that isn’t required to collect, and bringing goods home from a trip abroad. For vehicles, most states collect use tax when you register the car. For everything else, many states include a use tax line on the annual income tax return where you’re expected to report what you owe.
Compliance on small private purchases is low because states have limited ways to track them, but states do audit and assess penalties on big-ticket items like vehicles, boats, and equipment. Penalties typically include interest and can escalate to percentage-based fines for underpayment or fraud.
Buying from Overseas
International purchases bring in a separate layer that isn’t sales tax: customs duties and tariffs imposed by the federal government, collected by U.S. Customs and Border Protection when the goods enter the country. Until mid-2025, packages worth $800 or less entered duty-free under the de minimis exemption. That threshold has been suspended, and as of 2026 imported goods of any value are subject to applicable duties, taxes, and fees.4CBP. Factsheet Suspension of Duty-Free De Minimis Treatment Even small orders from overseas retailers now carry import charges that didn’t apply before.
The duty rate depends on the product. A temporary 15 percent import surcharge applies to most goods under a 2026 presidential proclamation, and certain categories carry their own rates, such as a 25 percent tariff on automobiles and auto parts under separate authority. Goods from some countries that comply with specific trade agreements may be exempt from certain surcharges.5The White House. Continuing the Suspension of Duty-Free De Minimis Treatment for All Countries Your state may also charge sales or use tax on the value of imported goods once they arrive.
When the Tax Drops to Zero: Sales Tax Holidays
About 16 states hold sales tax holidays, short windows, usually a weekend or a week, when certain categories are temporarily exempt. The most common version is the back-to-school holiday in late summer, covering clothing, school supplies, and sometimes computers, each up to a per-item price cap (often $100 for clothing, higher for electronics).
Some states also run holidays for energy-efficient appliances, emergency preparedness supplies like generators and batteries, and other targeted categories. Dates, qualifying items, and price thresholds change each year, so checking your state’s department of revenue website before a holiday weekend is the best way to confirm what’s covered. The savings are automatic whether you buy in a store or online: retailers adjust their systems for the window, and you don’t need any special documentation.