The basic formula: multiply the price by the tax rate

To find the sales tax on any purchase, multiply the item's price by the local tax rate, then add that amount to the original price. If you buy something for $100 in a place with 8% sales tax, you multiply $100 by 0.08 to get $8 in tax. Your total is $108.

The tax rate varies by location. Some states have no sales tax at all. Others charge between 4% and 10%, and some cities or counties add their own local tax on top of the state rate. A $100 item might cost $104 in one state and $110 in another.

Most of the time you do not need to do this math yourself — the register or checkout screen shows you the tax amount and total. But understanding how it works helps you budget, compare prices across locations, and spot errors on a receipt.

Key Takeaways

  • Sales tax is calculated by multiplying the pre-tax price by the tax rate expressed as a decimal (so 8% becomes 0.08).
  • Tax rates vary by state and often by city or county within a state, ranging from 0% to over 10%.
  • Some items are taxed at a lower rate or not taxed at all, depending on what the state classifies as essential goods.
  • When you see a price tag, it usually shows the pre-tax amount, so the final cost at checkout will be higher.
  • Online purchases are increasingly subject to sales tax based on where you live or where the seller is located.

Finding your local tax rate

Your state's Department of Revenue or Taxation website lists the statewide rate. But that is often not the whole story. Many states allow counties or cities to add their own local tax on top of the state rate, and these local rates can differ block by block in some cities.

The easiest way to find your exact rate is to look at a recent receipt from a local store. The receipt shows both the tax amount and the rate. You can also search "[your city] sales tax rate" online, or call your city or county tax assessor's office. Some states offer a tax rate lookup tool on their revenue department website where you enter your address.

If you are shopping in a different state or city, ask the cashier or check the store's website. Chain stores often display the local rate at checkout or on their website's tax information page.

When items are taxed differently

Not everything is taxed at the same rate. Most states exempt groceries, prescription medications, and medical equipment from sales tax or tax them at a lower rate. Some states do not tax clothing, or only tax clothing above a certain price. A few states tax prepared food differently than groceries.

These rules vary widely. One state might tax all clothing; another might exempt it entirely; a third might tax only items over $110. Prescription drugs are almost always exempt, but over-the-counter medications are often taxed as regular goods. If you are unsure whether something is taxed, ask at the register or check your state's Department of Revenue website for a list of exempt items.

When you are doing the math yourself, explore the standard rate to taxable items and the lower (or zero) rate to exempt items, then add them together for your total tax.

Working backward from the total price

Sometimes you know the final price and want to find out how much tax was included. This is useful when comparing prices across states or checking if a receipt is correct.

If the final price is $108 and you know the tax rate is 8%, divide the final price by 1 plus the tax rate as a decimal. So you divide $108 by 1.08, which gives you $100 as the pre-tax price. The tax is $108 minus $100, or $8.

The formula is: Pre-tax price = Final price ÷ (1 + tax rate as a decimal). This works for any tax rate. If the rate is 6%, divide by 1.06. If it is 10%, divide by 1.10.

Sales tax on online and out-of-state purchases

For many years, online retailers did not charge sales tax unless they had a physical location in your state. That changed in 2018 when the Supreme Court ruled that states could require online sellers to collect tax. Now most large online retailers charge sales tax based on your shipping address, regardless of where the seller is located.

Some smaller sellers and marketplaces still do not charge sales tax at checkout. If you buy something online without paying tax, you may owe use tax — a tax on items you purchased out of state and brought into your state. Most people do not pay use tax voluntarily, but some states ask you to report it on your income tax return. Check your state's Department of Revenue website to see if use tax applies to you.

When shopping online, the tax is usually calculated and shown before you complete your purchase, just like in a store. If it is not shown, contact the seller to ask whether tax will be added.

Common mistakes when calculating tax

The most common error is forgetting that the price tag does not include tax. If you see a $50 item and your tax rate is 8%, the total is not $50 — it is $54. Budget for the tax when you are shopping.

Another mistake is using the wrong rate. If you are in a city with both state and local tax, make sure you are using the combined rate, not just the state rate. A receipt is the fastest way to confirm you have the right number.

A third error is explore tax to items that are exempt. If you buy groceries and a magazine in the same transaction, the grocer might not tax the groceries but will tax the magazine. Check your receipt to see which items were taxed and which were not.

Using a calculator or spreadsheet

For a single purchase, mental math or a phone calculator works fine. For budgeting or comparing prices across multiple items and locations, a spreadsheet is faster and more accurate.

Set up columns for item name, pre-tax price, tax rate, tax amount, and total. Use a formula to multiply price by rate for each item, then sum the tax column. This is especially useful if you are comparing the cost of the same shopping list in different states or cities.

Many online tax calculators exist, but they are not necessary. A straightforward spreadsheet or even pencil and paper gives you the same result and helps you understand where each number comes from.

Frequently Asked Questions

Do I have to pay sales tax on everything I buy?

No. Most states exempt groceries, prescription medications, and some medical devices. Many states also exempt clothing or tax it at a lower rate. The rules vary by state, so check your state's Department of Revenue website for a list of what is and is not taxed where you live.

Why does the price tag not include sales tax?

Price tags show the pre-tax price because tax rates vary by location. A store in a city with 9% tax and a store in the same state with 7% tax would need different price tags for the same item. Showing the pre-tax price and adding tax at checkout is simpler for retailers.

What is use tax and do I have to pay it?

Use tax is a tax on items you bought out of state or online without paying sales tax. You technically owe it in most states, but enforcement is rare for individual purchases. Some states ask you to report it on your income tax return. Check your state's Department of Revenue website to see if it applies to you.

How do I know if an online retailer will charge me sales tax?

Most large online retailers now charge sales tax based on your shipping address. Smaller sellers may not. The tax is usually shown before you complete your purchase. If you are unsure, contact the seller or check their tax policy page before you buy.

Can sales tax rates change during the year?

Yes. States and cities can change their tax rates, though it does not happen often. If you are budgeting for a large purchase, check your local tax rate a few days before you buy to make sure it has not changed. Your state's Department of Revenue website shows the current rate.