Home › Guides › Sales Tax Math Explained
MathThe shelf says $100. The register says $107.25. That gap is sales tax — a percentage of the price added at checkout — and while the cash register computes it automatically, understanding the math helps you budget precisely, spot pricing tricks, and work backwards from totals.
This guide covers the forward formula, the reverse trick for extracting pre-tax prices, and how discounts and tax interact.
Try it yourself: Add tax to any price in one step. Percentage Calculator →
The one-step forward formula
— tax rate as a decimal: 7.25% → 0.0725 → × 1.0725 —
A $100 item in a 7.25% tax area: 100 × 1.0725 = $107.25. The "1 +" is the shortcut that folds the original price (1) and the tax (0.0725) into a single multiplication. If you'd rather see the tax separately: 100 × 0.0725 = $7.25 of tax, then add.
A $59.99 item at 8.875%: 59.99 × 1.08875 = $65.31 after rounding. Retailers round to the nearest cent — tax is technically calculated per item in some jurisdictions and on the subtotal in others, which explains penny-level discrepancies between stores.
Working backwards: the pre-tax price trick
You paid $107.25 and want to know the shelf price. Division undoes the forward multiplication:
— $107.25 ÷ 1.0725 = $100 —
This is genuinely useful: splitting a restaurant bill's tax evenly, checking whether a "tax included" price is really a deal, or reverse-engineering a receipt that only shows the total.
Discounts first, tax second
In nearly all US jurisdictions, sales tax applies to the discounted price — what you actually pay before tax. This makes stacked deals better than they look:
- Wrong way: $100 + 7% tax = $107, minus 20% = $85.60
- Right way: $100 − 20% = $80, plus 7% tax = $85.60
Wait — same answer? For a single discount it actually is the same, because multiplication commutes: 100 × 0.8 × 1.07 = 100 × 1.07 × 0.8. The ordering only matters conceptually: the store taxes what you pay, not what you saved.
Why rates vary block to block
US sales tax stacks: state rate + county rate + city rate + sometimes special district rates. A 6% state base can become 9.5% three miles across a county line. Several states — Delaware, Montana, New Hampshire, and Oregon among them — have no statewide sales tax at all, which is why cross-border shopping is a real phenomenon.
And some categories are exempt or reduced in many states: groceries and clothing under a threshold often escape tax, while prepared food, alcohol, and cigarettes get taxed harder. If your mental estimate is consistently high at the grocery store, exemptions are probably why.
Real baskets, real bills: three worked examples with new numbers
Single-item examples make the formula clear, but real receipts mix taxable and exempt goods, stacked local rates, tips, and prices that already include tax. The three walkthroughs below use fresh figures to handle those everyday cases. Rates and exemptions differ by jurisdiction, so treat the numbers as illustrative and check your local rules for anything contractual.
A mixed basket: when only part of the receipt is taxed
You buy a notebook for $14.50 and a backpack for $46.99, plus $38.27 of groceries that are exempt from sales tax where you live. The combined local rate is 8.375%, built by stacking a 4% state rate, a 3% county rate, and a 1.375% city rate: 4 + 3 + 1.375 = 8.375%. Tax applies only to the non-exempt items, so the taxable subtotal is $14.50 + $46.99 = $61.49. The tax is $61.49 × 0.08375 ≈ $5.15 (exactly $5.1498 before rounding). Your total is therefore $61.49 + $5.15 + $38.27 = $104.91.
The common error here is taxing the whole receipt: $99.76 of merchandise at 8.375% would produce about $8.35 of tax and a total near $108.11 — over three dollars too much. When a receipt looks wrong, this is the first thing to check: find the taxable subtotal printed on it, and confirm that exempt lines were left out before the rate was applied. The reverse error also happens — assuming an item is exempt because it feels like a necessity. Prepared food, for instance, is taxed in many places even where basic groceries are not, so the sandwich from the deli counter and the loaf from the bakery aisle can be treated differently in the same basket.
A restaurant bill: tax first, then tip on the pre-tax amount
A meal costs $86.40 before tax, in a place with an 8.25% rate. The tax is $86.40 × 0.0825 = $7.13 after rounding (exactly $7.128), bringing the taxed total to $86.40 × 1.0825 = $93.53. If you tip 18% calculated on the pre-tax amount — the usual convention — the tip is $86.40 × 0.18 = $15.55 after rounding (exactly $15.552), and you pay $93.53 + $15.55 = $109.08 in all.
Card machines that suggest tip percentages often apply them to the after-tax total instead. At 18% of $93.53 the suggested tip would be about $16.84 — roughly $1.29 more, not because you became more generous but because the base quietly changed. Neither choice is wrong; tipping is discretionary. But knowing which base a suggestion uses lets you choose the amount on purpose rather than by default, and the same awareness helps when splitting a bill: agree whether the group is dividing the pre-tax subtotal, the tax, and the tip proportionally, and nobody ends up subsidising someone else's dessert.
"Tax included" pricing: backing the tax out of $218.50
A seller advertises an appliance at $218.50, tax included, in a 9.25% area, and you need the pre-tax price for an expense claim. Divide by 1 plus the rate: $218.50 ÷ 1.0925 = $200.00 exactly, which means the receipt contains $200.00 × 0.0925 = $18.50 of tax — and indeed $200.00 + $18.50 = $218.50. The mistake to avoid is taking 9.25% of the total: $218.50 × 0.0925 ≈ $20.21, which overstates the tax by about $1.71. Percentages of a total and percentages added to a base are different animals, because the tax was calculated on $200, not on $218.50.
This back-out skill matters beyond expense claims. It lets you compare a tax-included quote from one seller against a plus-tax quote from another on equal terms, judge whether a "we pay the tax" promotion is worth more than a straightforward discount from a rival, and reconcile a bank statement that shows only the final amount charged. Whenever a single number contains both price and tax, division — not subtraction of a percentage — is the tool that separates them.
Frequently asked questions
Multiply the price by 1 plus the tax rate as a decimal. For a $100 item at 7.25%: 100 × 1.0725 = $107.25. The "1 +" shortcut folds the original price and the tax into a single step.
Divide the total by 1 plus the tax rate as a decimal. A $107.25 total at 7.25% tax: 107.25 ÷ 1.0725 = $100. This is the inverse of the forward calculation.
In nearly all US jurisdictions, tax applies to the discounted price — the price you actually pay before tax. A $100 item at 20% off in a 7% tax state costs 80 × 1.07 = $85.60.
US sales tax stacks: a state rate plus county and city add-ons. That is why two stores a few miles apart can charge different totals. Several US states have no statewide sales tax at all — Delaware, Montana, New Hampshire, and Oregon among them.
Disclaimer: Calculator content is for education only — examples are illustrative and rounded; double-check figures used in financial or contractual decisions. Tax rules vary by jurisdiction.