How to add tax to a quote in Google Sheets

· 6 min read

Adding tax to a quote is one multiplication, and it still goes wrong in four familiar ways: the rate is typed into formulas all over the sheet, tax is worked out before the discount, tax is taken out of a tax-inclusive price by multiplying, or the rounded lines do not add up to the total. This guide sets up a quote that avoids all four.

The example is a shop selling mugs, plates and teapots, with no currency assumed. The 18% and 5% rates are examples only. What is taxed, at what rate and how it is rounded depends on where you trade, so check those rules with your accountant or tax office.

Put the tax rate in one cell

Add a tab called Settings. Type Tax rate in A2 and 18% in B2, with the percent sign.

Every formula below reads that cell. When the rate changes, you change B2 and nothing else. A rate typed inside formulas, as in =E2*0.18, has to be found and fixed in every one of them.

Set up the quote lines

Add a tab called Quote with these headers in row 1:

A B C D E F G
Product Quantity Unit price Discount Net Tax Total

Columns A to D are typed. Leave Discount empty when there is none: an empty cell counts as zero. Put these in E2, F2 and G2:

Net =IF(A2="", "", ROUND(B2*C2*(1-D2), 2))

Tax =IF(A2="", "", ROUND(E2*Settings!$B$2, 2))

Total =IF(A2="", "", E2+F2)

Fill all three down to row 200. The IF(A2="", "", ...) part keeps a row blank until a product is typed, and the $ signs stop the Settings cell from sliding down as you fill.

Tax here is charged on Net, which is the amount after the discount. If your rules tax the full price before discount, change the Tax formula to use B2*C2 in place of E2. The difference is not small: 60 plates at 449 with 20% off are taxed 3,879.36 on the discounted amount and 4,849.20 on the full one.

Now add the quote totals to the right of the lines. Type the labels in I1 to I3 and these beside them:

I J
Net total =SUM(E2:E200)
Tax =SUM(F2:F200)
Total to pay =J1+J2

Check it against three lines

Type columns A to D and the rest should appear:

Product Quantity Unit price Discount Net Tax Total
Blue mug 12 299 3,588.00 645.84 4,233.84
Dinner plate 60 449 20% 21,552.00 3,879.36 25,431.36
Teapot 2 999 1,998.00 359.64 2,357.64

Work the plates through by hand. 60 at 449 is 26,940. Less 20% is 21,552. Tax at 18% of 21,552 is 3,879.36, and the line total is 25,431.36.

The totals block should read 27,138.00 net, 4,884.84 tax and 32,022.84 to pay. A quick check for a single-rate quote: divide the total to pay by the net total. Here 32,022.84 divided by 27,138 is 1.18, which is one plus the rate.

Take the tax out of a price that includes it

Some price lists show what the customer pays, tax included. The quote still has to show the net amount and the tax separately, so you need to work backwards.

The mistake is to multiply the price by the rate. Two teapots at a tax-inclusive 999 come to 1,998. Multiply by 18% and you get 359.64, but that is the tax on a net amount of 1,998, not the tax inside 1,998.

The price is the net amount times 1.18, so divide by 1.18 to get back to it. If column C holds tax-inclusive prices, use these in E2 and F2:

Net =IF(A2="", "", ROUND(B2*C2*(1-D2)/(1+Settings!$B$2), 2))

Tax =IF(A2="", "", ROUND(B2*C2*(1-D2), 2)-E2)

For the teapots, 1,998 divided by 1.18 is 1,693.22 after rounding, and the tax is 1,998 less 1,693.22, which is 304.78. The Total column needs no change and gives 1,998.00, the price the customer was shown. Tax is worked out as the remainder on purpose, so net and tax always add back to that price exactly.

Charge a different rate on some products

If some of what you sell is taxed at another rate, record the rate against the product. Add a tab called Products with Product in column A and Tax rate in column B:

Product Tax rate
Blue mug 18%
Dinner plate 18%
Teapot 18%
Loose tea 250 g 5%

On the Quote tab, type Tax rate in H1 and put this in H2:

=IF(A2="", "", XLOOKUP(A2, Products!A:A, Products!B:B))

Then change the Tax formula in F2 to =IF(A2="", "", ROUND(E2*H2, 2)) and fill both down.

XLOOKUP finds the product on the Products tab and returns its rate. The formula leaves out the optional value for a missing match, and Google's page gives #N/A as the result in that case. A product with no rate on record shows an error, not a guess.

Add a fourth line of 10 packs of loose tea at 450. Its net is 4,500.00 and its tax at 5% is 225.00. The totals become 31,638.00 net, 5,109.84 tax and 36,747.84 to pay.

If the quote has to show the tax for each rate separately, list the rates in a free column, say L2 and L3, and put this beside the first, then fill it down one row:

=SUMIF($H$2:$H$200, L2, $F$2:$F$200)

SUMIF adds the Tax cells on the rows where the rate matches. Here it gives 4,884.84 at 18% and 225.00 at 5%, which add up to the 5,109.84 in the totals block.

Decide where the rounding happens

The formulas above round the tax on each line. The other common method is to add up the net amounts first and round the tax once, which for a single rate is =ROUND(SUM(E2:E200)*Settings!$B$2, 2) in J2.

The two can differ by a small amount. Take three lines of 4.99 each at 18%. Tax on one line is 0.8982, which rounds to 0.90, so three lines come to 2.70. Tax on the sum, 14.97, is 2.6946, which rounds to 2.69.

Neither is a spreadsheet error. They are two rules, and which one you must use depends on your tax rules or your invoicing software. Pick the one that applies and use it for the quote and the invoice alike, so the two documents agree.

Either way, keep the ROUND. Google's page says it rounds to the number of decimal places you give, and that a next digit of 5 or more rounds up. Without it a cell can display 0.90 while holding 0.8982, and a column of tax will not add up to what is on screen.

Fix a tax figure that looks wrong

  • Tax shows #N/A. The product on that line is not on the Products tab, or is spelled differently there.
  • Tax shows #VALUE!. The quantity, price or discount was typed as text, such as "12 pcs". Type the number alone.
  • Tax did not change after a rate change. The line was pasted as values, or the rate is typed inside the formula. Old quotes should stay fixed, as the quote calculator guide explains, but a new quote should read Settings.

Where BoltSheets fits

Everything above works in a plain Google Sheet. The BoltSheets quote calculator template takes the simple route: one tax rate on its Settings tab, charged on each quote's subtotal after discount. It does not round, has no rate per product and does not handle tax-inclusive prices, so those parts are yours to add. In the demo you can ask in words for the tax rate to be changed. The change is shown as a preview and written only when a person confirms it, and formula cells are never written to. BoltSheets is in early access and works with Google Sheets only. To have discounts fill in by themselves as well, see how to apply a wholesale discount automatically.

Common questions

How do I add tax to a single price in Google Sheets?

With the price in A2 and the rate in B1, typed as 18%, use =ROUND(A2*(1+$B$1), 2). A price of 299 becomes 352.82. Keep the rate in its own cell and not inside the formula, so a rate change is one edit.

How do I quote a customer who does not pay tax?

Add a cell such as Settings!B3 that holds Yes or No for whether to charge tax on this quote. Then change the Tax formula to =IF(A2="", "", IF(Settings!$B$3="No", 0, ROUND(E2*Settings!$B$2, 2))). The quote still shows a tax line, at zero.

How do I charge two taxes on the same line?

It depends on whether the second tax is charged on the net amount or on the amount with the first tax added. On a net of 1,000, rates of 5% and 7% give 120 if both apply to the net, and 123.50 if the 7% applies after the 5%. Find out which rule applies to you before writing the formula.

Why is the tax on my quote enormous?

The rate was most likely typed as 18 and not 18%. The formula then multiplies the net amount by 18, which is a rate of 1,800%. Retype the rate with its percent sign.