The basic formula for calculating sales tax

To find the total amount you'll pay including sales tax, multiply the price of the item by the tax rate, then add that to the original price. The formula is: Original Price × Tax Rate = Tax Amount, then Original Price + Tax Amount = Total Cost.

For example, if you buy an item for $50 and the sales tax rate is 8%, you multiply $50 by 0.08 to get $4 in tax. Your total is $50 + $4 = $54. The tax rate is always expressed as a decimal when you do the math—so 8% becomes 0.08, 6.5% becomes 0.065, and so on.

You can also use a single-step formula if you prefer: Original Price × (1 + Tax Rate) = Total Cost. Using the same example, $50 × 1.08 = $54. Both methods give you the same answer.

Key Takeaways

  • Sales tax is calculated by multiplying the item price by the tax rate expressed as a decimal, then adding that amount to the original price.
  • Tax rates vary by state and sometimes by county or city, so the same item costs different amounts in different locations.
  • Some items are taxed at a lower rate or not taxed at all depending on what they are and where you live.
  • When you see a price tag in a store, it usually does not include sales tax—the tax is added at checkout.
  • You can calculate tax on multiple items by finding the tax on each one separately, or by adding all prices first and then calculating tax on the total.

Why sales tax rates differ by location

Sales tax is set by state, and many states also allow counties or cities to add their own tax on top of the state rate. This means the total tax you pay depends on exactly where you make the purchase. A 7% state tax might become 8.5% when your county adds 1.5%, or it might stay at 7% if your county adds nothing.

Five states—Alaska, Delaware, Montana, New Hampshire, and Oregon—have no statewide sales tax at all. However, some cities and counties in those states still collect local sales tax. Other states have a single statewide rate with no local additions. Most states fall somewhere in between, with a base rate plus local options.

The easiest way to find your exact rate is to search online for "[your city] sales tax rate" or check your state's department of revenue website. You can also look at a recent receipt from any purchase in your area to see what rate was charged.

How to handle tax on multiple items

When you're buying several things at once, you have two ways to calculate the total tax. The first is to add up all the prices, then multiply that total by the tax rate. If you're buying items for $30, $20, and $15, your subtotal is $65. At 8% tax, you owe $65 × 0.08 = $5.20 in tax, for a total of $70.20.

The second way is to calculate tax on each item separately and add those taxes together. $30 × 0.08 = $2.40; $20 × 0.08 = $1.60; $15 × 0.08 = $1.20. Total tax is $2.40 + $1.60 + $1.20 = $5.20. Both methods give the same answer, so use whichever feels easier to you.

Items that are taxed differently or not at all

Not everything you buy is taxed at the standard rate. Many states do not tax groceries, prescription medications, or medical equipment. Some states tax groceries at a lower rate than other goods. Clothing is taxed in most states but not in a few. The rules vary widely, and what's untaxed in one state might be fully taxed in another.

Services are often treated differently from goods. A haircut, car repair, or plumbing service might be taxed differently than buying a product. Digital goods like e-books, streaming subscriptions, or software downloads have their own rules that change by state and sometimes by the type of digital product.

When you're unsure whether something is taxed, the safest approach is to assume it is and calculate accordingly. If it turns out to be untaxed or taxed at a lower rate, you'll be pleasantly surprised at checkout. Your receipt will always show you what was actually charged.

Calculating tax when you know the total and need the original price

Sometimes you know the final amount you paid and need to work backward to find the original price before tax. This is less common in shopping but useful if you're reviewing a receipt or budgeting. The formula is: Total Cost ÷ (1 + Tax Rate) = Original Price.

If you paid $54 total and the tax rate is 8%, divide $54 by 1.08 to get $50. To find just the tax amount, subtract the original price from the total: $54 − $50 = $4. This method works for any situation where you have the final number and need to separate out the tax.

Using a calculator or spreadsheet for larger purchases

For a single item or a few items, mental math or a basic calculator works fine. For larger purchases—a home renovation, a business order, or a detailed budget—a spreadsheet makes the work faster and less error-prone. In Excel, Google Sheets, or any similar program, you can set up a column for item prices, a column for the tax rate, and a formula that multiplies them together.

Most smartphones have a built-in calculator app that can handle decimals and percentages. You can also find free online sales tax calculators by searching "sales tax calculator" and entering your location and item price. These tools are especially useful when you're shopping in a state or city you don't know well and aren't sure of the exact rate.

What to do if tax is included in the advertised price

In most of the United States, prices shown in stores and online do not include sales tax—tax is added at checkout. However, some businesses, particularly restaurants and certain online retailers, may show prices that already include tax. This is more common in other countries but can happen in the U.S. too.

If you're unsure whether a price includes tax, ask before you buy or check the fine print on the website. A receipt will always show you the breakdown: the subtotal before tax, the tax amount, and the final total. If you paid more than you expected, the receipt will explain why.

Frequently Asked Questions

How do I convert a percentage to a decimal for the calculation?

Divide the percentage by 100. So 8% becomes 0.08, 6.5% becomes 0.065, and 12% becomes 0.12. You can also think of it as moving the decimal point two places to the left. Once you have the decimal, multiply it by the price to find the tax amount.

Do I need to calculate tax differently for online purchases?

Online sales tax rules vary by state and depend on where the seller is located and where you live. Some online retailers charge tax, others do not. The tax rate applied may be based on your shipping address rather than your billing address. Check the website before checkout to see whether tax is included in the displayed price.

What if the tax calculation gives me a number with many decimal places?

Round to the nearest cent. If the tax comes out to $4.236, round it to $4.24. If it's $4.234, round down to $4.23. Most stores and online retailers use standard rounding rules, and your receipt will show the rounded amount you actually paid.

Can I deduct sales tax I paid on my personal income tax return?

This depends on your situation and your state. Some states allow you to deduct either sales tax or state income tax, but not both. Others do not allow the deduction at all. If you own a business, sales tax you paid on business purchases may be handled differently. Speak with a tax professional or check your state's tax guidance for your specific case.

Is sales tax the same as income tax?

No. Sales tax is charged when you buy something and is based on the purchase price. Income tax is charged on the money you earn and is based on your total earnings. They are separate taxes collected by different government bodies and calculated in different ways.