Sales Tax Calculator Guide: How to Add and Remove Sales Tax

Written and verified by Muhammad Haroon, founder of Numblox · The tax formulas in plain English · Forward & reverse examples · The classic mistake · VAT notes · Updated 23 November 2026

Sales tax looks like the simplest percentage calculation there is — and forwards, it is. But the reverse question, "how much of this total is tax?", trips up almost everyone, because the obvious method gives the wrong answer. This guide covers both directions, with every figure produced by the Numblox calculator itself, and explains exactly where the reverse mistake comes from.

Try it yourself: use the free Sales Tax Calculator on Numblox — enter a price and a tax rate to get the tax and total, or enter a tax-inclusive total to work backwards to the pre-tax price, in $, £, € and five other currencies. Nothing you enter is stored or sent anywhere.

What this calculator does

The calculator works in both directions. Forwards: give it a price before tax and a tax rate, and it returns the tax amount and the total price. Backwards (reverse mode): give it a total that already includes tax, plus the rate, and it splits the total into the pre-tax price and the tax inside it. The backwards mode is what you need when a receipt, invoice or shelf price shows only the final figure — common with VAT in the UK and Europe, where displayed prices usually include the tax.

The sales tax formulas

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

SymbolMeaningExample
PriceAmount before tax$100
RateTax rate as a percentage8.25%
TotalPrice with tax included$108.25

The forward formulas are plain percentage maths. The reverse formula is the one to remember: because the total is the price multiplied by (1 + rate), you undo it by dividing by (1 + rate) — not by subtracting the rate percentage of the total. The worked examples show why. This is exactly the maths the Numblox calculator runs, and every figure in this guide was produced with that same code.

Worked example 1 — adding tax: $100 at 8.25%

An item priced at $100 with a sales tax rate of 8.25%.

Step 1: tax = 100 × 8.25 ÷ 100 = $8.25.
Step 2: total = 100 + 8.25 = $108.25.

Nothing surprising — the tax is 8.25% of the pre-tax price, because the rate is always applied to the price before tax. Hold on to that sentence; it is the key to the reverse direction.

Worked example 2 — the same numbers in everyday sizes

A $250 purchase at 7%: tax = $17.50, total $267.50. A $1,200 laptop at 10%: tax = $120.00, total $1,320.00. And a small one with awkward cents — a $49.99 item at 6%: the exact tax is $2.9994, which rounds to $3.00, giving a total of $52.99. The calculator rounds money to the nearest cent, the same way a till does, which is why totals occasionally sit a cent away from a hand calculation done with unrounded figures.

In the UK, the same maths is called VAT and the rate on most goods is 20%: an £80 pre-tax price carries £16.00 of VAT for a £96.00 total. The calculator's currency selector covers £, $, €, CA$, AU$, Rs, ₹ and AED — the formula never changes, only the name of the tax and the symbol.

Worked example 3 — removing tax, and the classic mistake

Now backwards. You paid $1,000 in total, and the tax rate is 13%. How much of that $1,000 is tax?

The tempting answer — 13% of $1,000 = $130 — is wrong. The rate was applied to the pre-tax price, not to the total, so the tax inside the total is a smaller amount. The calculator's reverse mode divides: pre-tax price = 1,000 ÷ 1.13 = $884.96, so the tax inside the total is 1,000 − 884.96 = $115.04. Check it forwards: $884.96 + 13% = $884.96 + $115.04 = $1,000. Correct.

The same check on example 1: a $108.25 total at 8.25% divides back to a $100.00 pre-tax price with $8.25 of tax — exactly where we started. And the £96.00 VAT-inclusive price at 20% divides back to £80.00 plus £16.00 VAT. (Accountants use a shortcut for the 20% case: the VAT inside a total is the total × 1/6 — because 20% of the pre-tax price is 1/6 of the tax-inclusive total. It is the same division in disguise.)

Why it matters: businesses that reclaim tax, travellers claiming refunds, and anyone splitting a bill into "goods" and "tax" all need the true figure. Using the percentage-of-total method overstates the tax — by $14.96 on that $1,000 example — and the error grows with the rate.

Common questions

What sales tax rate should I enter? The rate where the purchase happens. In the US there is no single national rate — states set their own (and cities and counties often add a little on top), so the rate on your receipt is the surest source. In the UK, VAT is 20% on most goods and services, with reduced rates for some items. Enter whatever rate applies to your purchase; the calculator simply applies it.

Why is the tax inside a total not just the rate times the total? Because percentages are always of something, and the tax rate is a percentage of the pre-tax price. The total is a bigger number than the price, so the same percentage of it gives a bigger — wrong — answer. Dividing the total by (1 + rate) reverses the original multiplication exactly.

Do I calculate tax on the price before or after discounts? In most places, tax is charged on the price you actually pay after store discounts (a manufacturer's rebate coupon can be treated differently in some US states). As a rule of thumb: work out the discounted price first, then apply the tax to that — the calculator takes whatever price you enter as the pre-tax amount.

Can I use this for GST or VAT? Yes. Sales tax, VAT and GST are all the same shape of calculation — a percentage added to the price, or divided out of a total. Only the name, the rate and whether displayed prices include the tax differ by country.

Check your own numbers

Enter your price and rate in the Numblox Sales Tax Calculator, then try the reverse mode on a receipt total and compare the true tax with the percentage-of-total guess. For the general percentage maths behind all of this, the Percentage Guide covers percent-of-a-number, percentage change and values as percentages.

Note: This article and the calculator provide general information and estimates only. Tax rates and rules vary by country, state and product, and change over time — your receipt, your tax authority or your accountant is the final source for any figure that matters.

Related: Sales Tax Calculator · Percentage Calculator · Tip Calculator · All free calculators