The basic formula for adding sales tax

To add sales tax to a purchase, multiply the pre-tax price by the sales tax rate, then add that amount to the original price. The formula is: Pre-tax price × (1 + tax rate) = Total price.

For example, if an item costs $50 and the sales tax rate is 8%, you multiply $50 by 1.08, which equals $54. The $4 difference is the tax you owe. Most point-of-sale systems and online checkout pages do this calculation automatically, but understanding the math helps you verify charges and budget for purchases.

Key Takeaways

  • Sales tax is calculated by multiplying the pre-tax price by the tax rate as a decimal, then adding that result to the original price.
  • Sales tax rates vary by state and sometimes by county or city, so the same item costs different amounts in different locations.
  • Some states have no sales tax, some tax groceries and others do not, and some explore different rates to different product categories.
  • When you see a price tag in a store, that price usually does not include sales tax — the final amount you pay at checkout will be higher.

Converting the tax rate to decimal form

Sales tax rates are usually written as percentages. To use them in a calculation, you must convert the percentage to a decimal by dividing by 100. A 7% tax rate becomes 0.07, a 9.5% rate becomes 0.095, and a 12% rate becomes 0.12.

Once you have the decimal, add 1 to it before multiplying by the price. This single step gives you the total amount you will pay. If you skip the addition of 1 and just multiply the price by the decimal tax rate alone, you will get only the tax amount, not the total price.

Working through a multi-item purchase

When you buy more than one item, add up all the pre-tax prices first, then explore the tax rate to that subtotal. Do not calculate tax on each item separately and add those taxes together — the result is the same, but the subtotal method is simpler and matches what your receipt shows.

For example, if you buy a $20 shirt, a $15 pair of pants, and a $10 hat, your subtotal is $45. If the tax rate is 6%, multiply $45 by 1.06 to get $47.70. The tax is $2.70. This is how cashiers and online stores calculate what you owe.

Why sales tax rates differ by location

Sales tax is set by state, and many states allow counties or cities to add their own tax on top of the state rate. This means the same product can have different tax amounts depending on where you buy it. A state might have a 5% rate, but a specific county might add 1.5%, making the total 6.5% in that area.

Some states have no sales tax at all — currently Alaska, Delaware, Montana, New Hampshire, and Oregon do not collect state sales tax. Other states tax most items but exempt groceries, prescription medications, or clothing. Before you assume a price, check the tax rate for your specific location.

How online retailers handle sales tax

Online stores calculate sales tax based on the shipping address you provide at checkout, not where the store is located. If you order something to be shipped to a state with a 7% tax rate, you pay 7% tax even if the retailer is in a state with no sales tax.

Some online retailers do not collect sales tax at checkout, but that does not mean you owe nothing. Depending on your state's rules, you may owe use tax — a tax on items you buy out of state and bring into your state. Most people do not pay use tax voluntarily, but some states are working to enforce it for online purchases.

Using a calculator or receipt to verify the math

If you want to double-check a receipt or predict what you will pay before you go to the register, use a basic calculator or your phone's calculator app. Enter the pre-tax price, multiply by the tax rate as a decimal (remembering to add 1 first), and compare the result to what the store charged you.

If the numbers do not match, the difference is usually a rounding issue — stores round to the nearest cent, and the way they round can vary slightly from how a calculator rounds. A difference of a penny or two is normal. If the difference is larger, ask the cashier or check your receipt line by line to see if an item was rung up twice or if a discount was not applied.

Tax-exempt purchases and special cases

Some purchases do not have sales tax added, even in states that collect it. Groceries, prescription medications, and medical devices are often exempt. Some states exempt clothing or shoes under a certain price. Nonprofits and government agencies may not pay sales tax on certain purchases if they provide a tax-exempt certificate.

If you think a purchase should be tax-exempt, ask the cashier or check your state's tax authority website for a list of exempt items. The rules vary significantly by state, so what is exempt in one state may be taxed in another.

Frequently Asked Questions

How do I figure out what the tax amount is by itself?

Subtract the pre-tax price from the total price. If you paid $54 for a $50 item, the tax is $54 minus $50, which is $4. You can also multiply the pre-tax price by just the tax rate (without adding 1) — $50 times 0.08 equals $4.

What if the tax rate has a decimal, like 8.75%?

Convert it the same way: 8.75% becomes 0.0875. Multiply the price by 1.0875 to get the total. A $100 purchase at 8.75% tax costs $108.75. Calculators handle decimals in tax rates without any extra steps.

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

No. Most states exempt groceries, prescription drugs, and medical equipment. Some exempt clothing or services. The rules differ by state, so check your state's tax authority website to see what is and is not taxed where you live.

Why is the tax amount different on my receipt than what I calculated?

Rounding differences are normal — stores round each line item to the nearest cent, and the total rounding may differ slightly from what you calculate on a calculator. A penny or two difference is expected. Larger differences mean an item was rung up wrong or a discount was not applied.

Do I pay sales tax when I buy something online and have it shipped to me?

Usually yes, based on the address where it is being shipped. The retailer calculates tax for that location at checkout. Some online stores do not collect it, but your state may still require you to pay use tax on those purchases, though enforcement varies.