Knowing how to calculate sales tax backwards is useful whenever you only have a tax-included total — a receipt, a gas station bill, a quote that says “taxes in” or a payment you need to record in your books. Most people subtract the tax percentage from the total, but that gives the wrong answer. The right way is to divide.

The formula to calculate sales tax backwards
Price before tax = total ÷ (1 + tax rate)
Tax = total − price before tax
Write the tax rate as a decimal: 13% is 0.13, 5% is 0.05.
Why subtracting doesn’t work
Take a $113 total with 13% Ontario HST. If you subtract 13% of $113, you get $98.31. But the 13% was charged on the price before tax, not on $113. Dividing gives $113 ÷ 1.13 = $100, and the HST is $13. The subtraction method is off by $1.69 — small on one receipt, but large across a year of expenses.
Worked examples
- Ontario (13% HST): $56.50 total ÷ 1.13 = $50.00 before tax, $6.50 HST.
- Alberta (5% GST): $105 total ÷ 1.05 = $100.00, $5 GST.
- Nova Scotia (14% HST): $228 total ÷ 1.14 = $200.00, $28 HST.
- Quebec (5% GST + 9.975% QST = 14.975%): $114.98 total ÷ 1.14975 = $100.00, then GST is $5.00 and QST is $9.98.
- New York City (8.875% combined): $54.44 total ÷ 1.08875 = $50.00, $4.44 tax.
Splitting GST and PST from a total
In provinces with two taxes, first find the price before tax using the combined rate, then multiply that price by each rate separately. In British Columbia (5% GST + 7% PST), a $112 total is $112 ÷ 1.12 = $100 before tax, with $5 GST and $7 PST.
When you need this
- Bookkeeping: registered businesses usually record the tax paid on expenses separately so they can claim input tax credits.
- Expense reports: some employers want the pre-tax amount and the tax shown on separate lines.
- Pricing: if you want a product to sell for a round $20 including tax, work backwards to set the pre-tax price.
- Checking receipts: make sure you were charged the right rate.
A quick tip for tax-included prices
If you price “taxes in,” remember that the tax rate depends on where your customer is. The same $20 tax-included price leaves you a different amount in Ontario than in Alberta.
Skip the math with our free Canadian sales tax calculator or the US sales tax calculator — both have a “remove tax from a total” mode. For official GST/HST rules, visit the Canada Revenue Agency.
Two ways to calculate sales tax backwards
There are two quick formulas. Use whichever is easier for you. Write the tax rate as a decimal, so 13% becomes 0.13.
Method 1: find the pre-tax price first
Pre-tax price = Total ÷ (1 + Tax rate)
Tax = Total − Pre-tax price
Method 2: find the tax directly
Tax = Total × Tax rate ÷ (1 + Tax rate)
Both give the same answer. Method 1 is handy when you need the pre-tax amount for bookkeeping. Method 2 is quicker when you only need the tax.
Worked examples across Canada
Tax rates vary by province, so always use the rate that applied to the purchase. Rates can change, so confirm current rates with the CRA or your provincial government.
Ontario (13% HST)
A receipt shows $56.50.
- Pre-tax = $56.50 ÷ 1.13 = $50.00
- HST = $56.50 − $50.00 = $6.50
Alberta (5% GST only)
A total of $210.00.
- Pre-tax = $210.00 ÷ 1.05 = $200.00
- GST = $10.00
British Columbia (5% GST + 7% PST)
When both taxes apply to the same pre-tax price, add the rates: 12%. A total of $112.00:
- Pre-tax = $112.00 ÷ 1.12 = $100.00
- GST = $5.00 and PST = $7.00
To split the total tax between GST and PST, multiply the pre-tax price by each rate separately.
Quebec (5% GST + 9.975% QST)
The combined rate is 14.975%. A total of $229.95:
- Pre-tax = $229.95 ÷ 1.14975 = $200.00
- GST = $10.00 and QST = $19.95
Our Canadian sales tax calculator has a reverse mode that does this for every province.
Why you can’t just subtract the percentage
A very common mistake is to take 13% off the total. On $56.50, 13% is $7.35, which gives $49.15. That’s wrong.
The tax was added to the pre-tax price, not the total. So the total is 113% of the pre-tax price. Dividing by 1.13 undoes that correctly. Subtracting 13% of the total always takes off too much.
When a receipt has taxable and non-taxable items
Many receipts mix items that are taxed with items that aren’t, such as basic groceries in Canada. In that case, you can’t apply the formula to the whole total.
- Find the taxable items on the receipt. Many stores mark them with a letter or symbol.
- Add up only those items.
- Use the formula on that subtotal, or check whether the receipt already shows tax separately.
When in doubt, the tax line on the receipt is the most reliable figure.
US sales tax backwards
The same maths works in the US. The tricky part is that rates change from city to city. A total of $108.25 in an area with an 8.25% combined rate:
- Pre-tax = $108.25 ÷ 1.0825 = $100.00
- Tax = $8.25
Our US sales tax calculator can help, and our guide to states with no sales tax covers the places where this question doesn’t come up at all.
Who needs to do this?
- Small business owners recording expenses and input tax credits from receipts that only show a total.
- Employees filling in expense claims that ask for the tax amount.
- Freelancers checking that a client’s tax-included payment matches their invoice.
- Shoppers comparing prices between provinces or states.
- Sellers who set tax-included prices, like a $20 ticket “taxes in”, and need to know how much is revenue and how much is tax.
Setting tax-included prices
Some businesses prefer round prices that already include tax. To set a price so the customer pays exactly $25 including 13% HST:
- Pre-tax price = $25 ÷ 1.13 = $22.12
- HST = $2.88
Your revenue is $22.12, and $2.88 goes to the government. Knowing how to calculate sales tax backwards helps you set prices that still cover your costs.
Quick reference: divide by these numbers
To find the pre-tax price, divide the total by the number for the rate that applies:
- 5% tax: divide by 1.05
- 11% tax: divide by 1.11
- 12% tax: divide by 1.12
- 13% tax: divide by 1.13
- 14% tax: divide by 1.14
- 14.975% tax: divide by 1.14975
- 15% tax: divide by 1.15
Check the current rate for your province or state before you use the table, because rates change from time to time.
Rounding
Results often have more than two decimal places. Round to the nearest cent at the end. Because stores round tax line by line or on the subtotal, your answer may differ from the receipt by a cent or two. That’s normal.
Summary
To calculate sales tax backwards, divide the total by 1 plus the tax rate to get the pre-tax price, then subtract to find the tax. Never subtract the percentage straight from the total. Use the correct combined rate for your province or state, handle non-taxable items separately and round only at the end.
