Finance
Sales Tax and VAT Calculations: Add and Extract Tax
Calculate tax from a net price or extract it from a total. Compare formulas, rounding, and jurisdiction-specific rules that a calculation cannot determine.
Adding a supplied tax rate to a net price and extracting included tax require different formulas. At an example rate of 7%, a net price of 100 becomes 107; the included tax is 7, not 7% of 107. This guide explains arithmetic, not which tax applies to a real purchase. Use the sales tax calculator with an applicable rate and the discount calculator for price reductions.
This guide walks both directions with numbers you can check on paper, shows exactly why penny drift appears, and maps US sales tax against VAT conceptually — without rate tables, because rates change and only official sources are authoritative.
This is arithmetic education, not tax advice. Rounding rules, what's taxable, and rate application differ by jurisdiction; confirm specifics with your revenue authority or an accountant.
the two formulas
Working forward from a net price (tax added at the till):
total = net × (1 + r)
$100.00 at 7% → 100 × 1.07 = $107.00 (tax: $7.00)
Working backward from a gross price (tax already included):
net = gross ÷ (1 + r)
tax = gross − gross/(1+r) = gross × r/(1+r)
$107.00 at 7% → 107 ÷ 1.07 = $100.00 (tax: $7.00)
The trap: computing backward as gross × r gives 7% of $107.00 = $7.49, which is wrong. The correct factor is r/(1+r) — about 6.54% at a 7% rate — because forward tax was computed on the smaller net amount. HMRC teaches exactly this division method for UK VAT (gov.uk). The sales tax calculator runs both directions; the percentage calculator handles the surrounding arithmetic.
Why the two directions differ
Tax is always levied on the net price. Forward, that's straightforward:
- Net $100, rate 7% → tax = 0.07 × 100 = $7 → total $107.
Backward, all you have is the total, which contains the tax inside it. Call the unknown net price x. Then:
x + 0.07x = 107
1.07x = 107
x = 107 ÷ 1.07 = 100
tax = 107 − 100 = 7
The naive shortcut gross × r fails because it applies 7% to a base ($107) that is 7% bigger than the correct base ($100). You can verify the error independently: if the net really were 107 − 7.49 = $99.51, then charging 7% forward would give 99.51 × 1.07 = $106.48, not $107.00. The books don't balance.
As a fraction of gross, the tax is always r/(1+r):
| Rate r | Tax as % of gross: r/(1+r) |
|---|---|
| 5% | 4.762% |
| 7% | 6.542% |
| 8.25% | 7.621% |
| 20% | 16.667% |
That last row is the UK standard-rate case in miniature: at 20% VAT, one-sixth of any VAT-inclusive price is tax — the "VAT fraction" HMRC uses for invoices where VAT isn't shown separately (VAT Notice 700).
Worked invoice example, line by line
A three-line invoice at 8.25%, rounded half-up to the cent on each line:
| Item | Net | Line tax: net × 0.0825 | Rounded |
|---|---|---|---|
| A | $12.40 | 1.0230 | $1.02 |
| B | $9.80 | 0.8085 | $0.81 |
| C | $31.55 | 2.6029 | $2.60 |
Totals: net $53.75; summed line taxes = 1.02 + 0.81 + 2.60 = $4.43.
Check against invoice-level math: 53.75 × 0.0825 = 4.4343… → rounds to $4.43. Same result here — but only because the fractional cents happened to cancel. They don't always:
Where penny drift comes from
Three items at $0.99, same 8.25% rate:
- Per line: 0.99 × 0.0825 = 0.081675 → rounds to $0.08 each → lines sum to $0.24.
- Invoice level: 2.97 × 0.0825 = 0.245025 → rounds to $0.25.
One cent of disagreement, purely from where the rounding happens. Multiply that by thousands of lines and daily volume and you get systematic reconciliation gaps — real accounting systems pin down whether tax rounds per line, per invoice, or per tax group, because each convention yields slightly different totals. If you've ever seen a checkout recompute tax after a discount, you've watched this decision happen live: discounts usually reduce the taxable base first, then tax applies — $80 item at 25% off, then 8% tax: 80 × 0.75 = $60.00, × 1.08 = $64.80 (ordering rules vary by jurisdiction). The discount calculator chains those steps explicitly.
US sales tax vs VAT: the conceptual map
Both are consumption taxes; they differ in where they're collected and what prices display.
| Aspect | US sales tax | VAT (e.g., UK) |
|---|---|---|
| Level | State/local; no federal rate | National |
| Collected by | Retailer, once, at final sale | Every business in the chain, remitting only the difference |
| Posted price | Excludes tax; added at till | Includes tax by consumer-pricing rules |
| Who bears it | Final buyer | Final consumer (businesses reclaim input VAT) |
| Rate authority | Each state, county, city | National government |
The chain mechanism is the conceptual heart of VAT: a wholesaler sells upstream with VAT, the retailer pays that VAT but credits it against the VAT collected from customers, remitting only the margin's share. The burden lands on whoever buys without a registration to reclaim — the end consumer. For the US side, note there is no federal general sales tax at all; states impose their own, and the IRS's relevant touchpoint for individuals is deductibility — Topic 503 defines a general sales tax as "a tax imposed at one rate on retail sales of a broad range of items" and explains when it can be deducted (IRS). On the UK side, consumer-facing pages describe how sellers compute VAT by multiplying the selling price by the rate and adding it to reach the gross price you pay (gov.uk), while business guidance covers the inclusive/exclusive conversions shown above.
We're deliberately not printing current rates: they change, vary by product class (reduced rates, zero-rated categories), and get misquoted constantly. Get yours from your state revenue agency or gov.uk directly.
Reverse calculation in practice
The backwards direction shows up more often than the forward one:
- Reconciling receipts. Your card statement shows $86.13; you need the pre-tax expense. At 8.25%: 86.13 ÷ 1.0825 ≈ $79.5658 → record $79.57 as the net amount. Verify forward: 79.57 × 1.0825 = 86.1345 → prints as $86.13 ✓ (the division can land a fraction of a cent from the receipt's own rounded figures — that's per-line rounding resurfacing).
- Budgeting from totals. You can afford $2,400 out-the-door at 9.5%: max net = 2400 ÷ 1.095 = $2,191.78.
- Margin work. Pricing teams quote VAT-inclusive retail and need the ex-VAT wholesale figure — divide, never multiply-down.
One adjacent warning while we're doing percentage hygiene: don't average rates across transactions naively. Ten sales at 0% and ten at 10% do not average to 5% of revenue unless the sale sizes match — weighting matters, and the general problem of choosing the right average (mean vs weighted vs median) is its own subject: see choosing the average that doesn't lie.
Tool shortcuts
| Task | Tool |
|---|---|
| Forward + reverse tax on any amount | Sales tax calculator |
| Discount before tax, chained steps | Discount calculator |
| Generic percent-of / percent-change math | Percentage calculator |
| Tip on pre-tax vs post-tax subtotal | Tip calculator |
All of them live alongside the rest of the everyday converters in the converter category.
Related reading
Percent-of-base reasoning is everywhere in personal finance. The same discipline — knowing which number a percentage applies to — is what makes amortization tables readable: how to calculate a mortgage payment by hand.
Primary references
- IRS Topic no. 503, Deductible taxes — definition of a general sales tax; federal deduction context.
- Charge, reclaim and record VAT (GOV.UK) — the official ÷1.2 / ÷1.05 inclusive-price method with worked examples.
- VAT Guide, Notice 700 (GOV.UK) — the VAT-fraction rule for invoices.
- Tax on shopping and services: where you see VAT (GOV.UK) — how sellers add VAT to posted prices.
Educational content only — not tax, legal, or accounting advice.
Keep reading
Related posts
Words to Pages: Estimates for 500, 1000 and 2000 Words
Estimate pages from word count using explicit layout assumptions. Compare examples and learn when spacing, fonts, margins, tables, and images change the result.
Read postRoman Numeral Rules: Symbols, Subtraction and Examples
Learn modern Roman numeral rules, invalid forms, and worked conversions. Distinguish the standard converter range from historical numeral variations.
Read postMean vs Median vs Mode: Formulas and Worked Examples
Choose an average by the question your data needs to answer. Compare mean, median, and mode with worked datasets, outliers, and summary limitations.
Read post