LoonieLedgerFrançais
Guides

How the GST/HST Reverse Calculator Works

Last updated: 2026-08-29

Why you can't just subtract the tax rate

Say a client tells you their budget is $1,130, tax included, in Ontario (13% HST). It's tempting to subtract 13% of $1,130 ($146.90) and call the pre-tax amount $983.10 — but that's wrong. Subtracting a percentage of the total removes too much, because the total already has tax baked into every dollar, not just into the pre-tax portion.

The correct formula

The pre-tax amount is the total divided by (1 + the tax rate), not the total minus a percentage of itself:

preTaxAmount = totalAmount / (1 + combinedRate)

Why division, not subtraction

Call the pre-tax amount P. The tax-included total is P plus tax on P — that is, P × (1 + rate). If you know the total and want P back, you divide by (1 + rate) rather than subtracting a percentage of the total, because the percentage you'd want to subtract applies to P (the smaller, pre-tax number), not to the total itself. Subtracting a percentage of the total always removes slightly more than the actual tax portion, which is why the naive method consistently undershoots the true pre-tax amount.

Worked example: single tax rate

$113.00 total, Ontario, HST 13%:

preTaxAmount = 113.00 / 1.13 = 100.00
tax = 113.00 − 100.00 = 13.00

Scaled up, a $1,130 tax-included total works out to a $1,000 pre-tax amount — not the $983.10 the naive subtraction method above would give you. The gap between the two methods grows as the tax rate goes up.

Worked example: two-tax provinces (BC, Manitoba, Saskatchewan, Quebec)

In provinces that charge GST plus a separate provincial tax, you add the rates together first, then apply the same division formula to the combined rate — you don't reverse each tax separately. For a $1,120 total in British Columbia (GST 5% + PST 7% = 12% combined):

preTaxAmount = 1120.00 / 1.12 = 1000.00
totalTax = 1120.00 − 1000.00 = 120.00
gst = 1000.00 × 0.05 = 50.00
pst = 1000.00 × 0.07 = 70.00

The GST and PST portions are then each calculated from the same pre-tax amount, not by splitting the total tax proportionally — and because rounding to the cent can leave a fraction of a cent unaccounted for, a careful implementation reconciles any rounding drift so the individual tax lines always add up exactly to the total tax shown.

When you'd use this

  • A client gives you a fixed, tax-included budget and you need to know how much of it is actually yours before tax.
  • You're checking that a receipt or invoice's tax breakdown adds up correctly.
  • You're quoted a price that already includes tax and need the pre-tax figure for your own bookkeeping.

The formula is simple once you know it, but provinces that charge two separate taxes (GST + PST, or GST + QST) split the tax portion between two rates, and any rounding needs to reconcile to the cent — exactly the kind of detail a calculator handles automatically instead of by hand.

Common mistakes to avoid

  • Subtracting a flat percentage of the total instead of dividing by (1 + rate) — this is the single most common reverse-tax error.
  • Reversing each tax separately in a two-tax province instead of combining the rates first, then applying the formula once.
  • Rounding too early in a multi-step calculation, which can make the individual tax lines fail to add up exactly to the total shown.
  • Using your own province's rate instead of the rate that actually applied to the original transaction.

Frequently asked questions

Does this formula work for any tax rate, not just GST/HST? Yes — the division-by-(1+rate) approach works for reversing any single tax-inclusive percentage, not just Canadian sales tax specifically.

Why does my manual calculation sometimes come out a cent off from the tool? Small rounding differences can appear if you round intermediate values (like each tax line) before adding them, rather than rounding only the final displayed figures — the tool reconciles this automatically so the breakdown always sums exactly.

Can I use this to check if a business overcharged me tax? Yes — pulling out the pre-tax amount and re-applying the correct rate for that province is a reliable way to verify a receipt's tax math, though a small rounding difference of a cent or two is normal and not necessarily an error.

Official source: CRA – GST/HST calculator (and rates)