How US sales tax works: no federal rate, state and local layers, who collects it, the resale rule and online sales.

Visitors to the United States often ask what the sales tax rate is, and the honest answer is that there is not one. There is no federal sales tax at all. Instead, each state sets its own base rate, and then counties and cities are allowed to add their own percentage on top.
Because of that layering, the combined rate depends on the exact place where the sale happens. Cross a city line and the total on your receipt can change. In some places the combined rate passes 10 percent, while at the other end of the scale a few states have no sales tax at all.
So when people talk about sales tax in America, they really mean thousands of local combinations of one state rate plus whatever the county and city add. Two towns in the same state can honestly give different answers to exactly the same question.
Although the tax appears on the shop's receipt, the shop does not keep it. The seller collects the tax from the buyer at the till, holds it briefly, and passes it on to the state. The business is the collector, but the customer is the one who pays.
One rule keeps the system tidy. Goods bought for resale are generally exempt from the tax, so a shop does not pay sales tax on the stock it buys in. That way the tax lands once, on the final customer, instead of being charged again at every step of the chain.
Online shopping follows the same idea, with one modern twist. A seller on the internet may have to collect sales tax for states where it has a significant presence or a large volume of sales, even if the business itself sits somewhere else entirely.
For shoppers, the practical lesson is simple. The price on the tag is rarely the price at the till, and the difference is set by where you buy, not by the shop. If you know the combined rate for the place you are in, a quick calculation before you pay will tell you the real total.
And if you are buying something to sell on, keep the resale rule in mind. The exemption exists so that the tax is paid once, by the person who finally uses the item, and not stacked up along the way.
The sales tax calculator on the home page takes any combined rate. Open the calculator.