How to Calculate the Price Before Tax From a Total (and the Common Mistake)
Remove sales tax, VAT or GST from a tax-inclusive total the right way, handle receipts with several rates, and avoid the subtract-the-percentage error.
&c=%2315803d&k=money)
How to Calculate the Price Before Tax From a Total (and the Common Mistake)
You paid $108.25 and the receipt only shows the total. How much of that was tax? It sounds simple, and yet the most common way people do it gives the wrong answer. This guide explains the correct formula, shows a mixed-rate receipt worked through line by line, and explains how the shobfree.com Reverse Sales Tax Calculator handles it.
The correct formula
Sales tax, VAT and GST are charged as a percentage of the price before tax. So the total is:
total = price before tax x (1 + rate)
Turn it around and you get:
price before tax = total / (1 + rate)
At 8.25%, divide the total by 1.0825. At 20% VAT, divide by 1.20. The tax is the total minus the price before tax.
The common mistake
Many people take the rate off the total: $100 minus 8.25% is $91.75. But the 8.25% was charged on the smaller pre-tax price, not on the $100. The right answer is $100 / 1.0825 = $92.38, so the tax is $7.62, not $8.25.
The higher the rate, the bigger the error. On a £120 total with 20% VAT, the correct net price is £100. Subtracting 20% gives £96, which is £4 too low.
Worked example: a receipt with three rates
Many places tax different goods at different rates. The calculator's default receipt shows how to handle that. Rates here are examples.
| Item | Total paid | Rate | Before tax | Tax |
|---|---|---|---|---|
| Groceries | $52.40 | 2% | $51.37 | $1.03 |
| Household goods | $108.25 | 8.25% | $100.00 | $8.25 |
| Restaurant meal | $64.95 | 10.25% | $58.91 | $6.04 |
Line by line:
- $52.40 / 1.02 = $51.37.
- $108.25 / 1.0825 = $100.00.
- $64.95 / 1.1025 = $58.91.
Totals: $225.60 paid, $210.28 before tax and $15.32 of tax. The effective rate across the whole receipt is about 7.29%, which is lower than the standard rate because of the reduced-rate groceries.
Notice that applying one rate to the whole receipt would give the wrong answer. Each line has to use its own rate.
A VAT example
The UK VAT preset changes the currency symbol to £ and the default rate to 20%. An office chair at £180 is £150 plus £30 VAT. Books at £24 are zero rated, so their rate is 0% and no VAT is extracted. Total paid is £204, of which £174 is the net price.
How the calculator works
- Set a default rate. It starts at 8.25%.
- Add a line for each item with the total you paid.
- Leave Rate % blank to use the default, or type a rate for that line. Type 0 for zero-rated or exempt items.
- Choose how lines are rounded: to cents, to whole units or not at all.
The results show the total before tax, tax included, total paid and the effective rate, plus a By rate table that groups the lines for a VAT or sales tax return. Lines CSV downloads every line for your spreadsheet or bookkeeping software. You can keep several receipts in one project with + Receipt and compare their totals.
Rounding: line or invoice?
When each line is rounded to cents, the totals of the lines may differ by a cent from rounding the whole invoice at once. Tax authorities and accounting systems have their own rules on which method to use, so check the rule that applies to you before filing.
Common mistakes
- Subtracting the rate from the total. Always divide by one plus the rate.
- Using one rate for a mixed receipt. Split the lines and use each rate.
- Assuming the rate. Combined state, county and city sales tax rates vary, and VAT rates differ by product.
- Forgetting zero-rated items. Give them a rate of 0 rather than leaving them on the default.
- Ignoring discounts and deposits. The simple formula assumes the tax was charged on the full net price.
The bottom line
Divide, do not subtract. For anything more than one item, list the lines and let each carry its own rate. The calculator runs entirely in your browser. It is a calculation aid, not tax advice; your tax authority decides the rates and the rounding rules that apply to your returns.



