Skip to main content
Finance

Why Your Receipt's Sales Tax Doesn't Add Up (and How to Work It Out Backwards)

Taking the tax rate off a total gives the wrong answer. Here is the right way to find the price before tax, why the split can be off by a cent, and what it means when a total cannot be reproduced.

6 min read
Illustration of a store receipt with a magnifying glass over the highlighted total, next to a calculator.

Here’s a question that sounds easy. You paid $215.25, and the receipt says that includes 8.5% sales tax. How much of it was tax?

Most people, me included until I sat down to build a calculator for it, do this:

$215.25 × 8.5% = $18.30

It looks right, and it’s wrong. The real answer is $16.86. The quick way is off by $1.44.

This post covers why that happens, the right way to work backwards from a total, a rounding problem that makes some breakdowns a cent out, and something I didn’t expect to find when I tested the math against thousands of receipts.

Why Taking 8.5% of the Total Doesn’t Work

Sales tax is added to the price. The store starts with the price, works out 8.5% of that, and adds it on:

Total = Price × 1.085

So the 8.5% was never a percentage of $215.25. It was a percentage of a smaller number, the price before tax. When you take 8.5% of the total, you’re also taxing the tax, which is why the answer comes out too high.

The Right Way: Divide, Don’t Multiply

To undo “multiply by 1.085”, you divide by 1.085:

Price before tax = $215.25 ÷ 1.085 = $198.39

Tax = $215.25 − $198.39 = $16.86

Check it forwards: $198.39 × 8.5% is $16.86, and $198.39 + $16.86 is $215.25. It matches the receipt.

The general version, for any rate:

Price before tax = Total ÷ (1 + rate)

Tax = Total − Price before tax

A handy way to see it: tax makes up rate ÷ (1 + rate) of the total, which is always a bit less than the rate itself.

Tax rateDivide the total byTax as a share of the total
6%1.065.66%
7.25%1.07256.76%
8.5%1.0857.83%
10%1.109.09%
20% (UK VAT)1.2016.67%

The 20% row is a useful one to remember. With UK VAT, the tax is exactly one sixth of the total, not one fifth. On a £120 bill, the VAT is £20, not £24.

The same arithmetic works for any tax that’s added as a percentage of the price: US sales tax, VAT, GST or HST. Only the name changes.

The One-Cent Problem

This is the part that took me longest to get right in the Reverse Sales Tax Calculator.

Take a total of $251.58 at 12%. Dividing gives:

  • Price before tax: $251.58 ÷ 1.12 = $224.625
  • Tax: $251.58 − $224.625 = $26.955

Both numbers end in a half cent, so both round up: $224.63 and $26.96. Add those together and you get $251.59, a cent more than what was actually paid.

If you’re matching an expense claim to a bank statement, that cent is annoying. The breakdown looks wrong even though each number was rounded correctly.

The fix is simple. Round only the price, then get the tax by subtraction:

  • Price before tax: $224.63
  • Tax: $251.58 − $224.63 = $26.95

Now the two add back to exactly $251.58. That’s what the calculator does, and I tested it on hundreds of thousands of random totals without a single breakdown failing to add up. Rounding both numbers separately failed on a handful of them.

What I Found When I Tested Real Till Math

Once the calculator worked, I wanted to know one more thing: if I divide a receipt total by (1 + rate), do I always get back the exact price the till used?

A till does it the other way round. It takes the price, works out the tax, rounds the tax to the cent, and adds it on. So I simulated that for every price from 1 cent to $10,000 at 8.5%, then took each total the till produced and worked backwards.

Two things came out of it.

First, the back-calculation always found the right price. Across all 921,568 different totals a till can produce in that range, dividing by 1.085 and rounding to the cent recovered the original price every time. I also checked 6%, 7.25%, 10% and 20% for totals up to $500, with the same result.

Second, some totals can’t come from any price. Look at what happens around $21.50 at 8.5%:

Price Total with 8.5% tax $19.81$19.82$19.83$19.84 $21.49$21.50$21.51$21.52$21.53 no price
At $19.82 the tax is $1.68, but one cent more ($19.83) tips the tax up to $1.69, so the total jumps by two cents and skips $21.51.

Each extra cent of price usually adds one cent to the total. But every so often the tax also rounds up a cent, and the total jumps by two, skipping a value. At 8.5%, about 1 in 13 possible totals gets skipped like this.

So if your receipt shows $21.51 with 8.5% tax, no single price taxed at 8.5% could have produced it. Dividing still gives you an answer ($19.82), but it rebuilds to $21.50, not $21.51.

That’s useful to know. It usually means one of these:

  • Mixed items: some things on the receipt were taxed at a different rate or not at all. Groceries are often taxed differently from other goods.
  • Per-item rounding: the store worked out the tax on each item and rounded each one, instead of taxing the subtotal once.
  • A different rate: the combined state and local rate where you shopped wasn’t the one you assumed.
  • Something else in the total: a bag fee, a deposit or a tip.

In those cases the back-calculation can only give an estimate. If you need the exact tax, the itemised receipt is the place to look.

Where This Actually Comes Up

  • Expense claims: many expense systems ask for the amount before tax and the tax separately, and you often only have the total.
  • Small business bookkeeping: recording sales tax collected on sales that were rung up with tax already included.
  • Prices that include tax: if someone quotes “$500 all in”, you can see what the actual price is.
  • VAT and GST receipts: the same method works for any rate, as long as there’s only one.

A Quick Way to Check in Your Head

You don’t always need exact figures. For a rough check, remember that the tax is a little less than the rate’s share of the total. At 8.5%, it’s about 7.8%. So on a $215.25 receipt, 7.8% is around $16.80. That’s close to the real $16.86, and well short of the $18.30 you’d get by taking 8.5% of the total.

If your answer matches the rate times the total, it’s too high.

The Short Version

  • To find the price before tax, divide the total by (1 + rate). Don’t multiply the total by the rate.
  • The tax is the total minus that price.
  • If you’re showing both numbers, round the price and subtract to get the tax, so they always add back up.
  • If the price you get doesn’t rebuild to your exact total, the receipt probably has mixed rates, per-item rounding or extra fees.

The Reverse Sales Tax Calculator does all of this and shows the working step by step. It also shows what the “multiply by the rate” shortcut would have given you, so you can see the difference. If you’d rather know how I check calculators like this one, the Methodology & Sources page has the details.

This is general information, not tax advice. Rates and rules vary by state, city and country.

About the author

Smitesh Pednekar

Software engineer · Founder and developer, UnifiedCalculators

I’m a software engineer with a Master of Computer Applications (MCA) and over a year of professional experience in IT. I built UnifiedCalculators and maintain every calculator on it myself. I’m not a doctor or financial adviser, so each calculator starts from a published formula or standard, has its assumptions written out on the page, and is checked against worked examples from its sources before it goes live. If you spot a mistake, I want to hear about it.