Skip to main content
Smart CalculatorsZone
Shopping Smart 7 min read

How to Calculate Sales Tax

Understand how sales tax works: the add-tax and remove-tax formulas, pre-tax vs. after-tax prices, rounding, and how to estimate the total before you reach the register.

Sales tax is one of the most common “surprise” costs in everyday shopping — the shelf says one price and the register shows another. Once you know the formula, you can predict the total in seconds.

This guide covers adding tax, removing tax (working backward from a tax-included price), and the pre-tax vs. after-tax distinction that confuses so many receipts.

Key takeaways

  • Price with tax = price × (1 + rate ÷ 100).
  • To remove tax: divide the total by (1 + rate ÷ 100).
  • Tax rates vary by location — always verify your local combined rate.
  • Discounts usually come off first; tax applies to the discounted price.
Try the Sales Tax Calculator

What sales tax actually is

Sales tax is a percentage-based consumption tax collected by retailers on behalf of government authorities. In the United States the rate is typically a combination of state, county, and city taxes, which is why two stores a few miles apart can charge different totals on the same item.

Other countries handle this differently — many use a value-added tax (VAT) that is already included in the displayed price. Either way, the underlying math is the same: a percentage applied to a price.

Formula 1: Adding tax to a price

Multiply the pre-tax price by one plus the rate as a decimal. At an 8% rate, every dollar becomes $1.08, so a $59.99 item costs $59.99 × 1.08 = $64.79.

The tax itself is just the rate times the price: $59.99 × 0.08 = $4.80. Checking the two parts separately is a good way to catch register errors on big purchases.

Total = Price × (1 + Rate ÷ 100)
Pre-tax priceRateTax amountTotal
$24.006%$1.44$25.44
$59.998%$4.80$64.79
$1,200.009.5%$114.00$1,314.00

Formula 2: Removing tax from a total

Sometimes you see the after-tax total and need the original price — for expense reports, refunds, or comparing with a tax-free listing. Divide the total by one plus the rate as a decimal.

If you paid $108 total at an 8% rate: $108 ÷ 1.08 = $100 pre-tax, and the tax was $8. Note that you cannot simply “subtract 8%” of the total ($8.64) — that common shortcut is wrong because 8% of the total is bigger than 8% of the base.

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

Why “subtract 8%” fails

$108 − 8% of $108 = $108 − $8.64 = $99.36, which is 64 cents too low. Always divide: $108 ÷ 1.08 = $100.00 exactly.

Pre-tax vs. after-tax price

The pre-tax price is what the seller charges; the after-tax price is what leaves your wallet. Budgets should always use after-tax figures, because that is the money you actually spend.

On receipts, look for “subtotal” (pre-tax), “tax,” and “total” (after-tax). When a discount appears, it normally reduces the subtotal first, and tax is then computed on the smaller amount — a small extra benefit of every coupon.

Estimating totals in your head

Round the rate to something friendly. At 8.25%, estimate with 8%: move the decimal two places on the price, multiply by 8. For a $40 item: $0.40 × 8 = $3.20 tax, so about $43.20 total.

For quick budgeting, many shoppers round tax up to 10% — the estimate is slightly high, which means the register total is a pleasant surprise instead of an unpleasant one.

  • Round the rate to the nearest whole percent for estimates.
  • Round the price up to the next dollar for a safety margin.
  • On large purchases, use the exact rate — small percent differences mean real dollars.

Rounding and edge cases

Tax is computed on the total transaction in most jurisdictions, not per item, and the final cent is rounded half-up. That is why adding individually rounded per-item taxes can differ from the receipt by a cent or two.

Exemptions add another wrinkle: groceries, medicine, and clothing are taxed differently — or not at all — in many places. If your receipt’s effective rate looks odd, an exempt item is the usual explanation.

Try it yourself — free, instant, no sign-up

Every formula in this guide is built into the calculator.

Try the Sales Tax Calculator

Frequently asked questions

How do I add 8% tax to a price?

Multiply the price by 1.08. For example, $50 with 8% tax is $50 × 1.08 = $54.00. The tax itself is $50 × 0.08 = $4.00.

How do I remove sales tax from a total?

Divide the total by 1 plus the rate as a decimal. At 8% tax, divide by 1.08: $108 ÷ 1.08 = $100 pre-tax.

Is sales tax applied before or after discounts?

Usually after — the discount lowers the taxable subtotal, then tax is computed on the reduced amount. Rules vary by jurisdiction.

Why does my receipt total differ from my estimate?

Common causes: a combined city/county rate higher than the state rate, tax computed on the transaction total with rounding, or exempt items taxed at a different rate.

Affiliate Disclosure: Some links on this website may be affiliate links. If you make a purchase through one of these links, we may earn a commission at no additional cost to you. Learn more

Want hands-on companions to these ideas? Our Money Tools & Resources page lists optional planners, books, and tools from retail partners — entirely optional, never required.

Educational information only. For educational and informational purposes only. This website does not provide personalized financial, investment, tax, or legal advice.