GST and QST Formula for Excel and Google Sheets

A badly rounded formula in a spreadsheet produces a total that's a cent off a real receipt. Here are the exact formulas, with the rounding step that's missed most often.

Hands on the keyboard of a laptop showing a spreadsheet with columns of prices

The Price Before Tax in a Cell

With the price before tax in A1, in Quebec:

  • GST: =ROUND(A1*0.05,2)
  • QST: =ROUND(A1*0.09975,2)
  • Total: =A1+ROUND(A1*0.05,2)+ROUND(A1*0.09975,2)

The ROUND(...,2) rounds each tax to the cent before adding it. Without that rounding, the spreadsheet adds up fractions of a cent you can't see on screen, and the displayed total can be a cent off a real receipt, a gap that builds up over a long list of rows.

French-language Excel. If your Excel is set to French (Quebec or France), the function is called ARRONDI, decimals use a comma, and arguments are separated by a semicolon: =ARRONDI(A1*0,05;2) for GST and =ARRONDI(A1*0,09975;2) for QST. Google Sheets follows the file's locale settings: with French settings, also use the decimal comma and the semicolon.

Excel spreadsheet with the amount in cell A1 and the ROUND formulas for GST and QST in cells B1, C1 and D1 On $100.00 in Quebec, a formula without ROUND shows a total of $114.975, while the formula with ROUND rounds each tax and gives $114.98, like a real receipt

Check: $1,200.00 before tax, in Quebec

Price before tax (A1) $1,200.00
GST5% $60.00
QST9.975% $119.70
TOTAL $1,379.70

The same sheet gives $1,356.00 for the same $1,200.00 amount in Ontario, where HST replaces the two lines with one: =ROUND(A1*0.13,2).

Spreadsheet open on a laptop in an office, to calculate GST and QST

One Formula Line per Province

The rate changes; the structure of the formula doesn't. Replacing 0.05 and 0.09975 with the rate you need is enough:

ProvinceTax formula
Quebec (GST)=ROUND(A1*0.05,2)
Quebec (QST)=ROUND(A1*0.09975,2)
Ontario (HST)=ROUND(A1*0.13,2)
Nova Scotia (HST)=ROUND(A1*0.14,2)
NB / PEI / NL (HST)=ROUND(A1*0.15,2)
British Columbia (PST)=ROUND(A1*0.07,2)
Manitoba (RST)=ROUND(A1*0.07,2)
Saskatchewan (PST)=ROUND(A1*0.06,2)
Alberta / territories (GST only)=ROUND(A1*0.05,2)

The 5% GST is added in every province with a separate provincial tax (Quebec, British Columbia, Manitoba, Saskatchewan): a second formula line is needed in those four cases, just like for QST above.

Finding the Price Before Tax from a Total

With the total amount in B1, divide by 1 plus the combined rate, rather than subtracting a percentage, then round to the cent:

  • Quebec: =ROUND(B1/1.14975,2)
  • Ontario: =ROUND(B1/1.13,2)
  • Nova Scotia: =ROUND(B1/1.14,2)
  • NB, PEI and NL: =ROUND(B1/1.15,2)
  • British Columbia and Manitoba: =ROUND(B1/1.12,2)
  • Saskatchewan: =ROUND(B1/1.11,2)
  • Alberta and the territories: =ROUND(B1/1.05,2)

Subtracting 14.975% from a total instead of dividing it by 1.14975 gives too low a result: the percentage applies to the price before tax, not the total. The guide details this formula for all thirteen provinces and territories.

Without Opening a Spreadsheet

For a one-off calculation, the sales tax calculator automatically applies the right rate for the province you choose, in both directions.

Calculate my sales tax

Sources

Article provided for informational purposes, current with the rates in effect in 2026. CalculatriceTaxes.ca is an independent site, not affiliated with the Canada Revenue Agency or Revenu Québec.