Sales tax is calculated by multiplying the item price by the tax rate for your location, then adding that amount to what you pay

The math itself is straightforward: take the price before tax, multiply it by the tax rate as a decimal, and add the result to the original price. If you buy something for $100 in a place with 7% sales tax, you multiply $100 by 0.07 to get $7, then pay $107 total. The complexity comes from where the tax rate comes from — it depends on your state, county, and sometimes even the city where the purchase happens, and different types of items are taxed at different rates or not taxed at all.

The tax rate you see on a receipt is the combined rate of all the layers stacked on top of each other: state tax, county tax, and local tax, all added together. A state might have 5% tax, but your county adds 1% and your city adds 0.5%, so the rate at checkout is 6.5%. This is why the same item costs different amounts in tax depending on which side of a county line you're on.

Key Takeaways

  • Sales tax is calculated by multiplying the pre-tax price by the tax rate (as a decimal) and adding that amount to the original price.
  • The tax rate varies by state, county, and city, so the same item has different tax amounts depending on where you buy it.
  • Some items are taxed at a lower rate or not taxed at all — groceries, prescription medications, and clothing are common examples, though the rules differ by state.
  • The tax rate shown at checkout is the sum of state, county, and local taxes combined into one percentage.
  • Online purchases are taxed based on where the item is shipped to, not where the seller is located.

The basic formula: price times rate equals tax amount

To find the sales tax on any purchase, use this formula: Item Price × Tax Rate (as a decimal) = Sales Tax Amount. Then add the sales tax to the original price to get the total you pay.

If the tax rate is listed as a percentage (like 8%), convert it to a decimal by dividing by 100. So 8% becomes 0.08. A $50 item at 8% tax: $50 × 0.08 = $4 in tax, so you pay $54 total. A $200 item at the same rate: $200 × 0.08 = $16 in tax, so you pay $216 total.

Most receipts show the calculation already done — the subtotal before tax, the tax amount, and the total after tax. You can verify it by working backward: take the tax amount shown and divide it by the subtotal. If the result matches the tax rate, the math is correct.

Why tax rates stack: state, county, and local layers

Sales tax is not one single rate. It is built from three layers: a state rate, a county rate, and sometimes a city or local rate. Each layer is set by a different government body, and they all add together to create the final rate you see at checkout.

For example, in Colorado, the state sales tax is 2.9%. But Denver County adds 3.62%, and the city of Denver adds another 3.65%, for a combined total of 10.25% in that specific location. Cross the county line into a different area, and the rate drops. This is why two stores selling the same item in the same state can charge different amounts in tax.

Some states have no state sales tax at all — Alaska, Delaware, Montana, New Hampshire, and Oregon do not charge state sales tax. But counties and cities within those states may still charge local sales tax, so you can still pay tax at checkout even in a no-state-tax state.

Different items, different tax rates

Not everything is taxed at the same rate. Many states tax groceries at a lower rate than other goods, or do not tax them at all. Prescription medications are often untaxed or taxed at a reduced rate. Clothing is untaxed in some states and taxed in others. The rules vary significantly by state, and sometimes even by county within a state.

When you buy a mix of items — say, groceries, a shirt, and a book — the cashier applies the correct tax rate to each item based on what it is. The receipt may show multiple tax amounts if different items are taxed at different rates. A grocery store receipt often shows one tax amount for taxable items (like prepared food) and no tax for untaxed items (like raw vegetables).

The state revenue department or tax authority publishes a list of what is and is not taxable in that state. If you are unsure whether something is taxed, that list is the source of truth. Some states make the list straightforward to find online; others require you to contact them directly.

How tax is calculated on online and out-of-state purchases

When you order something online, sales tax is based on where the item is being shipped to, not where the seller is located. If you live in New York and order from a California company, you pay New York sales tax (if the item is taxable in New York). The seller collects the tax and sends it to the state where you received the item.

This rule applies whether you order from a large retailer or a small business. The seller is responsible for knowing the tax rate in your location and charging the correct amount. If a seller does not charge tax on an online order, that does not mean the purchase is tax-free — it may mean the seller made a mistake or is not following the law.

Some online sellers use a service to calculate tax rates automatically based on your shipping address. Others calculate it manually. Either way, the tax should appear on your receipt before you complete the purchase, so you can see the total cost including tax.

Tax-exempt purchases and who qualifies

Certain organizations and people do not pay sales tax on some or all purchases. Nonprofits, schools, and government agencies often have tax-exempt status, meaning they can buy items without paying sales tax if they provide a tax-exempt certificate to the seller. A nonprofit buying office supplies for its operations would not pay tax; a nonprofit buying items to resell would pay tax on those items.

Individual shoppers do not get a blanket tax exemption just by being a person. However, some states exempt certain items for certain people — for example, some states do not tax prescription medications for anyone, or do not tax clothing during a specific "tax-free weekend" each year. These exemptions are built into the tax system automatically; you do not need to do anything to claim them.

If you think you should not have paid tax on a purchase, check your state's tax rules or contact the state revenue department. If you paid tax on something that should have been exempt, you may be able to request a refund from the seller or the state, depending on the situation.

Reading a receipt: where to find the tax calculation

A typical receipt shows three numbers: the subtotal (price before tax), the tax amount, and the total (price after tax). The tax amount is always listed separately so you can see exactly how much tax you paid. Some receipts also show the tax rate as a percentage.

If you want to verify the math, divide the tax amount by the subtotal. The result should match the tax rate shown on the receipt (or the tax rate for your location if the receipt does not show it). For example, if the subtotal is $100 and the tax is $8, then $8 ÷ $100 = 0.08, which is 8%.

Online receipts and email confirmations show the same information: subtotal, tax, and total. The tax line may be labeled "Sales Tax", "Tax", or "State and Local Tax". If you do not see a tax line, the item may be tax-exempt in your location, or the seller may not have charged tax (which could be an error).

Frequently Asked Questions

Why does the same item cost different amounts in tax in different cities?

Because tax rates are built from state, county, and city layers that stack on top of each other. Two cities in the same state can have different county and local rates, so the combined rate is different. A $100 item might have $7 in tax in one city and $9 in another, even though both are in the same state.

Is sales tax calculated before or after discounts?

Tax is usually calculated on the price after discounts are applied. If an item is $100 and you have a $20 discount, tax is calculated on the $80 remaining price, not the original $100. Some stores calculate it differently, so check your receipt to see which method was used.

Do I pay sales tax on used items?

It depends on the state and where you buy it. Used items sold by a business (like a used car dealer or secondhand store) are usually taxed. Used items sold by a private person (like a garage sale or person-to-person sale) are often not taxed. Check your state's rules for specifics.

What happens if a store charges the wrong tax amount?

If you notice the tax is wrong on your receipt, tell the cashier or store manager right away. They can recalculate it and adjust your total. If you discover it later, contact the store with your receipt. Stores are required to charge the correct rate for your location.

How do I know what the sales tax rate is in my area?

Your state revenue department or tax authority publishes the current rates for every county and city. You can usually find this information on their website by entering your zip code or address. The rate can change, so check the official source rather than relying on an old receipt.