Small Business Math

How to Calculate Sales Tax in Excel

Calculate sales tax in Excel by multiplying a price by the rate, adding it to a price, or backing it out of a total. Simple examples and rounding tips.

On this page
  1. The basic formula
  2. Adding tax to a price
  3. Backing tax out of a tax-included total
  4. Rounding the tax to cents
  5. Tax on several items
  6. Common mistakes
  7. Checking your results

The basic formula

Sales tax is a percentage of the price. Put the price in one cell and the rate in another, then multiply:

=B2*C2

If B2 holds 150 and C2 holds 7%, the result is 10.50. Typing 7% into the cell stores 0.07, which is what the formula needs. If you type 7 into a cell that isn’t formatted as a percent, the formula multiplies by 7 and returns 1,050, which is wrong.

Adding tax to a price

To get the total including tax, multiply the price by 1 plus the rate:

=B2*(1+C2)

With the same numbers, 150 × 1.07 gives 160.50. The formula =B2+B2*C2 gives the same answer, so use whichever one is easier for your team to read.

Backing tax out of a tax-included total

If a receipt or invoice shows a total that already includes tax, divide by 1 plus the rate to get the price before tax:

=B2/(1+C2)

For a total of 107.00 at a 7% rate, the price before tax is 100.00. The tax is the difference, which you can get with =B2-B2/(1+C2), or 7.00 in this case. Confirm that the rate and the total come from the same source before you rely on the result.

Rounding the tax to cents

Tax amounts are normally shown to the cent. Wrap the calculation in ROUND to keep it to two decimal places:

=ROUND(B2*C2,2)

Rounding each line and rounding the total can differ by a cent. Use the method your sales system or accountant uses, and use it every time. The rounding options are covered in more detail in the guide to round to nearest cent in excel.

Tax on several items

For an order with several lines, put the tax for each line in its own column, then total that column with SUM. Some businesses instead total the taxable amount and apply the rate once. The two methods can differ by a cent or more because of rounding.

If you sell both taxable and exempt items, add a column that marks each line as taxable or not. Then a SUMIF on that column (see how to use sumif in excel) gives you the taxable total without manual sorting. Which items are taxable depends on where you sell, so set up the column from your tax authority’s rules.

Common mistakes

  • A rate typed as 7 instead of 7%. Enter the rate as a percent or as 0.07.
  • Prices pasted as text. SUM ignores text, so totals can come out too low. How to convert text to number in excel shows how to fix the cells.
  • Tax applied twice. Adding tax to a total that already includes it overstates the amount.
  • Rate reference moving when copied. If the rate is in C1 and you copy the formula down, the reference shifts. Anchor it with a dollar sign, as in =B2*$C$1. How to lock cell reference in excel explains the options.

Checking your results

Test the formulas with one sale you can work out by hand. Divide a tax-inclusive total by 1.07 and you should get back the price you started with, give or take a cent from rounding.

The formulas are simple. The rules that decide what is taxed, and at what rate, are the hard part. Check both with the source that governs your sales.

The complete guide to small business math

Excel Formulas for Small Business
Read the guide

Keep exploring

Guides from other topics

All topics →