Invoice Luxe

Sales Tax Formula in Excel and Google Sheets (Copy and Paste)

Copy these sales tax formulas for Excel and Google Sheets: add tax, remove tax and round to the cent, with a ready table you can set up in two minutes.

November 26, 2026 · 4 min read
Spreadsheet formula for sales tax: =ROUND(A2*B2,2)

A spreadsheet is a fast way to calculate sales tax for a price list or a month of orders. The formulas are the same in Excel and Google Sheets.

Quick sales tax calculator

Set up the columns

ColumnContentExample
APrice before tax249.99
BTax rate7.25%
CSales taxformula
DTotalformula

Type the rate as a percentage (7.25%) or as a decimal (0.0725). Either works.

Want to try it right away? Sales Tax Calculator is free and needs no signup.

Formula 1: sales tax amount

In cell C2:

=ROUND(A2*B2,2)

This multiplies the price by the rate and rounds to the cent. For 249.99 at 7.25%, the result is 18.12.

Formula 2: total with tax

In cell D2:

=A2+C2

Or in one step, without a tax column:

=ROUND(A2*(1+B2),2)

The total is 268.11.

Spreadsheet example: 249.99 at 7.25% gives tax 18.12 and total 268.11
Spreadsheet example: 249.99 at 7.25% gives tax 18.12 and total 268.11

Formula 3: remove tax from a total

If A2 holds a total that includes tax:

=ROUND(A2/(1+B2),2)

A total of $107.25 at 7.25% gives $100.00. The tax part is then =A2-ROUND(A2/(1+B2),2), which is $7.25. See how to calculate the price before sales tax.

Formula 4: add up a whole column

For the total tax on 100 rows:

=SUM(C2:C101)

To tax only the rows marked "Yes" in column E, use:

=SUMIF(E2:E101,"Yes",A2:A101)*B2

This adds the taxable amounts and then applies the rate once, which matches the method in sales tax on multiple items.

Tips for fewer errors

  1. Keep the rate in one cell and refer to it as $B$2 so you can change it in one place.
  2. Round on the tax line, not on every intermediate step.
  3. Format money cells with two decimals.
  4. Mark taxable lines so non-taxable items do not get taxed by mistake.

When a calculator is faster

For a single invoice, a calculator is quicker than a spreadsheet. Enter the price and the rate and get the tax and the total at once.

A complete invoice table you can copy

Set up one row per line item. With the quantity in B, the unit price in C and the tax rate in a single cell F1 (for example 7.25%), use these columns:

ColumnHeaderFormula (row 2)
AItem(text)
BQty(number)
CUnit price(number)
DLine total=B2*C2
ETax=ROUND(D2*$F$1,2)
FTotal=D2+E2

The dollar signs in $F$1 lock the rate, so you can copy the formula down without it moving. Change the rate once and every row updates.

Tax on the subtotal instead of each line

If you prefer to tax the subtotal, place the sum in a cell and calculate the tax once:

See sales tax on multiple items to understand why the two methods can differ by a cent.

Only tax the taxable rows

Add a column G named "Taxable?" and enter Y or N. Then calculate tax with an IF formula:

=IF(G2="Y",ROUND(D2*$F$1,2),0)

You can also sum only the taxable lines: =SUMIF(G2:G20,"Y",D2:D20). Multiply that amount by the rate to get the tax on the taxable subtotal.

Discounts before tax

With a discount rate in H1, use =ROUND(D2(1-$H$1)$F$1,2) for the tax on the discounted amount, and =D2*(1-$H$1)+E2 for the total. For the order of the math, see discount and sales tax together.

Formatting and checks

Google Sheets extras

Google Sheets accepts the same formulas. You can also use ARRAYFORMULA to fill a whole column at once. For example, =ARRAYFORMULA(IF(B2:B="","",ROUND(B2:B*$F$1,2))) fills the tax for every row that has a price.

Common spreadsheet mistakes

If you do not want to build a sheet, the free sales tax calculator method above works for single invoices.

FAQ

What is the formula for sales tax in Excel?

Multiply the price by the rate and round: =ROUND(A2*B2,2).

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

Use =ROUND(A2*(1+B2),2) where A2 is the price and B2 is the rate.

How do I remove sales tax in a spreadsheet?

Divide the total by 1 plus the rate: =ROUND(A2/(1+B2),2).

How do I round sales tax in Excel?

Wrap the formula in ROUND with two decimals, for example =ROUND(B2*C2,2).

How do I lock the tax rate cell?

Use dollar signs in the reference, such as $F$1, so it stays fixed when you copy the formula down.

Is this tax advice?

No. It shows the spreadsheet math. Which items are taxable depends on your state.

Related guides