onlinecalculator.me
Download App

How sales tax is calculated at the register

Learn the plain-English math behind sales tax, including one-step formulas for final totals, how store discounts affect your tax bill, and how to reverse-calculate tax from a receipt.

Nov 30, 2026 6 min read

A shopper paying with a credit card at a clothing store register next to a paper receipt.

You see a $50 shirt on the rack, take it to the register, and the cashier asks for $54.13. Most of us just tap a card and move on, trusting the point-of-sale system to get it right.

Figuring out how sales tax is calculated behind the scenes is simpler than a cluttered receipt makes it look. Once you get the basic intuition behind percentages, you can estimate your checkout total in your head or verify an invoice in a few seconds.

The core intuition: cents on the dollar

Before looking at a formula, think about what a percentage actually is. “Percent” literally translates to “per hundred.”

When your city or state charges an 8% sales tax, they are asking for 8 cents on every 100 cents—every dollar—you spend. Spend $1, and you owe 8 cents in tax. Spend $10, and you owe 80 cents. On a $100 purchase, the tax is an even $8.

Every sales tax formula is just a fast way of counting up the dollars you are spending and multiplying them by a few cents each.

The plain-English sales tax formula

To find the sales tax on any item, you need two numbers: the pre-tax price and your local tax rate. The standard math takes two steps:

  • Tax = price × (rate ÷ 100)
  • Total = price + tax

Why divide the tax rate by 100 first? Calculators don’t speak in percentages; they work in decimals. Dividing an 8% tax rate by 100 turns it into 0.08, which is how you write “8 cents on the dollar” in decimal form.

In practice, you never need to type ”÷ 100” into your phone. Just take the percentage rate and slide the decimal point two places to the left. A 6% rate becomes 0.06. A trickier rate like 8.25% becomes 0.0825, and 10% turns into 0.10.

Say you are buying a $45 coffee maker in a town with a 7% sales tax. First, turn 7% into 0.07. Multiply the price by that decimal: $45 × 0.07 = $3.15. That $3.15 is your tax. Add it back to the original $45 price, and you walk out the door paying $48.15.

The one-step shortcut for the final total

If you don’t care about the exact tax amount on its own and just want to know the final number that will hit your bank account, combine the steps. Stick a “1” in front of your decimal tax rate before multiplying:

  • Total = price × (1 + (rate ÷ 100))

With the coffee maker, multiplying $45 by 1.07 takes you straight to $48.15. That leading “1” preserves 100% of the original $45 price, while the “.07” tacks the 7% tax right onto the end.

How discounts change the math

A frequent question at the register is what happens when an item goes on sale. Does the store charge tax on the original sticker price, or the marked-down price?

For standard store promotions in the US, discounts come off before sales tax is calculated. Sales tax applies to the actual money changing hands at the register, so a lower price means a smaller tax bill. (Note that manufacturer coupons sometimes work differently depending on state law, as the store still gets reimbursed for the full amount. If you just want to see the markdown on its own, a discount calculator can run that piece for you.)

When an item is on sale, the register runs this sequence:

  1. Discount amount = price × (discount% ÷ 100)
  2. Taxable price = price − discount amount
  3. Tax = taxable price × (rate ÷ 100)
  4. Total = taxable price + tax

Take a $100 jacket marked 20% off in a city with an 8% sales tax rate.

StepMathResult
1. Find the discount$100 × 0.20$20.00 off
2. Find the taxable price$100 − $20.00$80.00
3. Calculate the 8% tax$80.00 × 0.08$6.40
4. Add tax to taxable price$80.00 + $6.40$86.40 total

You end up paying $6.40 in tax rather than the $8.00 you would have owed at full price.

This illustrates what economists call an effective tax rate—the percentage of tax you pay relative to a baseline price, as opposed to the official statutory rate. While the city’s official (or nominal) rate is still 8%, the $6.40 tax you actually paid is only 6.4% of the original $100 sticker price. Any pre-tax discount lowers your effective tax rate against the original tag.

Working backward from a receipt total

Sometimes you have the reverse problem. You pull a crumpled receipt out of your pocket showing a flat $108 total, and you need to break out the pre-tax price and the tax amount for an expense report.

The classic mistake is taking 8% of $108 ($8.64) and subtracting it to get $99.36. That math fails because the $108 already has the tax baked into it. Taking 8% of the grand total means you are accidentally calculating tax on top of the tax.

To pull the tax out cleanly, reverse the one-step shortcut from earlier by dividing instead of multiplying:

  • Pre-tax price = total ÷ (1 + (rate ÷ 100))

For that $108 receipt in an 8% tax zone (0.08), divide $108 by 1.08. You get an even $100 for the pre-tax price. Subtract $100 from the $108 total, and you have your $8 tax amount.

Where your tax rate actually comes from

Look up your state’s sales tax online and you might see 6%, yet every local receipt hits you for 8.25%. That gap exists because sales tax in most of the US is stacked in layers.

A single ring at the register often bundles a state rate, a county rate, a city rate, and sometimes a special transit or stadium district tax. When doing your own math, always use the combined rate—the sum of all those local layers—which you can look up by zip code or street address on your state department of revenue’s website.

One last wrinkle: not everything in your cart gets taxed. Most states exempt everyday necessities like unprepared groceries or prescription medicine, and a few skip tax on clothing below a certain dollar threshold. If you have tax-exempt items in the mix, set their cost aside before running the formula on the rest of your cart.

To skip the manual math on your next purchase or check a receipt with a pre-tax markdown, plug your numbers into our Sales Tax Calculator.

Is sales tax calculated before or after a store discount?
For standard store sales and promotions, sales tax is calculated after the discount is subtracted from the original price. You only pay tax on the actual discounted amount you spend at the register. However, manufacturer coupons are sometimes taxed on the pre-discount price depending on state rules.
How do I calculate the pre-tax price from a total receipt?
To find the pre-tax amount from a grand total, divide the total price by 1 plus your local tax rate in decimal form. For example, if your receipt total is $108 and the tax rate is 8%, divide $108 by 1.08 to get the $100 pre-tax price. Simply subtracting 8% from the grand total will give you an incorrect number because the tax is already baked into that total.
Why is the sales tax on my receipt higher than my state tax rate?
Most purchases include multiple layers of local taxation stacked on top of the base state rate. A single checkout total often combines state, county, and city rates, along with special district taxes for things like public transit. When calculating your own totals, you should always use the combined rate for that specific location.
Sales Tax Calculator Open the calculator →

← More Finance articles All articles