Powered by NumberTally Tools · free calculators
NumberTally ToolsNumberTally Tools

How Sales Tax Works

By Khaled Mahmud · October 28, 2026 · 5 min read

Sales tax is the small line at the bottom of the receipt that makes the shelf price and the price you actually pay two different numbers. The math itself is simple — one multiplication — but the rate changes by state, sometimes by city, and what gets taxed varies too. This guide covers the forward calculation, the reverse calculation, and why the same purchase costs different amounts in different places.

The forward calculation: price plus tax

Multiply the pre-tax price by the tax rate, then add it on:

Tax = Price × Rate  ·  Total = Price + Tax

Example: an $80 jacket at a 6% rate. Tax = $80 × 0.06 = $4.80. Total = $80 + $4.80 = $84.80.

For several items, add the pre-tax prices first and tax the subtotal. A $24.99 book and a $12.50 notebook give a subtotal of $37.49. Tax at 6% is $37.49 × 0.06 = $2.2494, which rounds to $2.25. Total: $37.49 + $2.25 = $39.74. Rounding happens once, on the total tax — which is why taxing items one by one can differ by a cent or two from taxing the subtotal.

The reverse calculation: total back to pre-tax price

Sometimes you only know the total and need the original price — for an expense report, a refund, or checking a receipt. Divide by one plus the rate:

Pre-tax price = Total ÷ (1 + Rate)

Example: a total of $106.00 at 6% tax. Pre-tax price = $106 ÷ 1.06 = $100.00. The tax portion was $6.00. This works because the total is 106% of the original price, so dividing by 1.06 strips the tax back out.

Why rates differ so much

Sales tax in the United States is set state by state, and in many states cities and counties add their own tax on top of the state rate. That is why two stores a short drive apart can charge different totals for the same item. As an illustration, Michigan charges a flat 6% statewide with no local add-ons, so the same item costs the same anywhere in the state — but that is the exception, not the rule. Rates change over time, so treat any rate you see in a guide as illustrative and check the current rate where you are buying.

What is taxed also varies. Many states exempt groceries and prescription medicine, tax restaurant meals and clothing, and treat digital goods differently — but the details differ by state, and the exceptions have exceptions. If a purchase matters, check your state revenue department's current guidance rather than trusting a general rule.

Common mistakes to avoid

  • Budgeting the shelf price. On a $500 purchase at 8% tax, the extra $40 is real money. Always budget the after-tax total.
  • Applying the wrong rate. Use the rate where the item is delivered or bought, not where you live or where the seller is based, unless your state says otherwise.
  • Rounding at the wrong step. Round the tax once, at the end. Rounding each item separately can drift from the register total.
  • Assuming one national rate. There is no federal sales tax in the United States. Every rate you meet is state or local.

Sales tax is not the same as VAT

If you have shopped abroad, you may have met value-added tax, or VAT, which looks similar at the checkout but works differently behind the scenes. With US sales tax, the tax is charged once, at the final retail sale: the store collects it from you and sends it to the state. With VAT, tax is collected at every stage of production and distribution, and each business along the chain claims back the tax it paid, so the net effect is still a tax on the final consumer — but the collection is spread out. On a $100 item with a 20% VAT, the consumer still pays $120 at the till, just as a US shopper pays $106 on a $100 item at 6%. The difference matters mainly to businesses, not to shoppers, but it explains why prices abroad often already include the tax while US shelf prices do not: the two systems grew up with different conventions about whether the displayed price should be the final price. In the United States, always assume the shelf price excludes tax until you reach the register.

Calculate your own tax:

Frequently asked questions

Why does the same item cost more in another state?

Because each state sets its own sales tax rate, and many cities and counties add their own on top. The same $80 item costs $84.80 at 6% and $87.00 at 8.75% — the item is identical, only the tax differs.

How do I work out the price before tax from a total?

Divide the total by 1 plus the tax rate as a decimal. A $106 total at 6% tax means $106 ÷ 1.06 = $100.00 before tax. This reverse calculation is handy when a receipt shows only the total.

Do I pay sales tax on online orders?

Usually yes. In most states, online sellers must collect tax based on where the order is delivered, not where the seller is located. If no tax was collected, your state may still require you to report it — rules vary, so check your state's guidance.

Educational note: this guide explains the math for learning purposes only and is not financial, tax, or legal advice. Tax rates and rules change, and your own situation may differ — check current rules for your state or talk to a qualified professional before making a money decision.