ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Math
  3. How to Calculate Tax and Prices With Tax in Excel

How to Calculate Tax and Prices With Tax in Excel

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

To calculate tax in Excel, multiply the price by the tax rate: =B2*$F$1 gives the tax amount. For the price including tax, use =B2*(1+$F$1). To take tax out of a price that already includes it, divide: =B2/(1+$F$1). Wrap each in ROUND(…,2) to get whole cents, and keep the rate in one locked cell.

Key takeaways

  • Tax amount = price × rate. Price with tax = price × (1 + rate).
  • To remove tax from a total, divide by (1 + rate). Multiplying by (1 − rate) gives the wrong answer.
  • Type the rate as a percentage, like 8.25%, in one cell and lock it with $ so every formula uses it.
  • Use ROUND(…,2) so the stored values are whole cents, not just the displayed ones.
On this page+
  1. The tax formulas you need
  2. Set up the tax rate in one cell
  3. How to add tax to a price
  4. How to round tax to the cent
  5. How to remove tax from a price that includes it
  6. How to use different tax rates for different items
  7. Common tax formula mistakes
  8. Practise it

To calculate tax in Excel, multiply the price by the tax rate, and to get the price with tax, multiply by 1 plus the rate. Going the other way, from a total that already includes tax back to the price before tax, means dividing, not subtracting a percentage. This guide covers all three on one small price list, plus rounding to the cent and different rates per item. It works the same for sales tax, VAT or GST; just use the rate that applies to you.

The tax formulas you need#

Every tax calculation is one of four formulas. With the price in B2 and the rate in F1:

You wantFormulaPrice 45.50, rate 8.25%
Tax amount=B2*$F$13.75375
Price including tax=B2*(1+$F$1)49.25375
Price before tax, from a total=B2/(1+$F$1)(see below)
Tax inside a total=B2-B2/(1+$F$1)(see below)

The results have more than two decimal places, so you'll round them; that comes in a moment. The 1+ part works because a price with tax is 100% of the price plus the tax percentage. With 8.25%, that is 108.25%, or 1.0825.

Set up the tax rate in one cell#

Put the rate in its own cell, so you can change it once and every formula updates. Type it with the % sign, like 8.25%. Excel stores it as 0.0825 and shows it as a percentage.

Here is the price list the examples use, with the rate in F1:

ABCDEF
1ItemPriceTaxPrice with taxTax rate8.25%
2Notebook12.99
3Backpack45.50
4Headphones79.99
5Desk lamp24.95
6Cable8.49

When you fill a formula down, plain F1 would shift to F2, F3 and so on, which are empty. Lock it with dollar signs, $F$1, so every row uses the rate. Press F4 after clicking the reference to add them (Mac: ⌘T). The lesson on percentages and percent change covers this kind of percentage maths.

How to add tax to a price#

To show the tax and the total separately, use two columns. In C2, the tax amount:

Excel formula
=ROUND(B2*$F$1,2)

And in D2, the price including tax:

Excel formula
=B2+C2

Fill both down (Windows: Ctrl+D; Mac: ⌘D). The results:

ItemPriceTaxPrice with tax
Notebook12.991.0714.06
Backpack45.503.7549.25
Headphones79.996.6086.59
Desk lamp24.952.0627.01
Cable8.490.709.19
Total171.9214.18186.10

If you only need the final price, one formula does it: =ROUND(B2*(1+$F$1),2) gives the same 49.25 for the Backpack. Adding a percentage works the same way for price rises and markups; see how to increase a number by a percentage.

How to round tax to the cent#

Wrap the formula in ROUND so the stored value is whole cents. Formatting a cell with two decimals only changes what you see. The Backpack's unrounded tax is 3.75375, and it still adds up as 3.75375 behind the scenes, so a column of totals can end up a cent away from what the cells show.

Excel formula
=ROUND(B2*$F$1,2)

The 2 means two decimal places. ROUND follows the usual rule: 5 and above rounds up, so 6.599175 becomes 6.60. Use ROUNDUP or ROUNDDOWN only if your tax rules say so. The ROUND function guide covers all three.

Rounding each line and rounding the total can give different results by a cent or two. Here they agree: the line taxes add up to 14.18, and =ROUND(SUM(B2:B6)*$F$1,2) is also 14.18. On longer lists they can differ, so follow whichever rule your invoices or accounting system use.

How to remove tax from a price that includes it#

To find the price before tax, divide the total by 1 plus the rate. Say the Headphones cost 86.59 including 8.25% tax, in B2:

Excel formula
=ROUND(B2/(1+$F$1),2)

The result is 79.99. The tax inside the total is the difference: =B2-ROUND(B2/(1+$F$1),2) gives 6.60.

A common mistake is to take the rate off the total instead. With a 20% rate and a total of 120:

MethodFormulaResultCorrect?
Divide by 1 + rate=120/(1+20%)100Yes
Take 20% off=120*(1-20%)96No

The 20% was added to the price before tax, 100, not to 120. So taking 20% of 120 removes too much. The same logic applies to discounts in reverse; the guide to calculating discounts shows how to find an original price.

How to use different tax rates for different items#

When items have different rates, store the rates in a small table and look them up. Say a price list has the price in B2, each item's category in C2, and a rate table in H2:I4:

HI
1CategoryRate
2Standard20%
3Reduced5%
4Zero0%

The tax for each row is then:

Excel formula
=ROUND(B2*VLOOKUP(C2,$H$2:$I$4,2,FALSE),2)

VLOOKUP finds the category and returns its rate, and the rest is the same tax formula. In Excel 2021 or Microsoft 365, XLOOKUP(C2,$H$2:$H$4,$I$2:$I$4) does the same lookup.

Common tax formula mistakes#

Check these when a tax total looks wrong:

  1. The rate typed as a whole number. 8.25 instead of 8.25% multiplies by 8.25, so a 45.50 price gets 375.38 in tax. Retype it with the % sign.
  2. An unlocked rate cell. Without the $ signs in $F$1, the reference slides down as you fill and the tax becomes 0 below the first row.
  3. Removing tax by subtracting a percentage. Divide by (1 + rate) instead.
  4. Rounding only with formatting. Use ROUND, or totals can be a cent off.
  5. Tax on the wrong amount. If a discount applies, it usually comes off before tax. Check your local rules.

Once you're comfortable with tax, the same percentage skills power a profit margin formula and comparisons with ratios in Excel.

Practise it#

Tax is percentage maths plus rounding, and both are quick to master with practice. Practise percentages and percent change in a live spreadsheet, then take the rounding lesson to use ROUND, ROUNDUP and ROUNDDOWN on prices. Every answer is checked instantly. Start with the exercise on this page: add tax to the Backpack and round it to the cent.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

The tax rate in E1 is 8.25%. In C2, calculate the Backpack's price including tax, rounded to the cent: multiply B2 by (1+E1) and wrap it in ROUND with 2 decimal places.

fx
ABCDEF
1
Item
Price
Price with tax
Tax rate
8%
2
Backpack
45.5
3
Notebook
12.99
4
Headphones
79.99
5
Desk lamp
24.95
6
Cable
8.49
7
8
9

Tip: Inside ROUND, multiply B2 by (1+E1). Then add a comma and 2 for two decimal places.

Practise this in a lesson

LessonPercentages and % changeCalculate percent change with (new - old) / old, format it as a percentage, and grow a number by a percent.LessonROUND, ROUNDUP and ROUNDDOWNControl decimals properly, which isn't the same as formatting.Function guideROUNDRound to decimals, whole numbers or the nearest thousand with Excel's ROUND. Learn when formatting isn't enough, then practice live.

Frequently asked questions

What is the formula to calculate tax in Excel?

+

Multiply the price by the tax rate: =B2E1, where E1 holds the rate as a percentage, such as 8.25%. For the total price including tax, use =B2(1+E1).

How do I calculate the price before tax from a total in Excel?

+

Divide the total by 1 plus the rate: =B2/(1+E1). With a total of 120 and a 20% rate, that gives 100. The tax is then the total minus that result.

How do I add 20% tax to a price in Excel?

+

Multiply the price by 1.2, or better, by (1+E1) with 20% in E1: =B2*(1+E1). A price of 50 becomes 60.

Should I round tax on each line or on the total?

+

It depends on the rules you follow, and the two methods can differ by a cent or two. Rounding each line with ROUND(…,2) is common on invoices, so every line adds up to the total shown.

Why is my tax formula giving a huge number?

+

The rate was probably typed as 8.25 instead of 8.25%. Excel then multiplies by 8.25, not 0.0825. Retype the rate with the % sign.

Sources

  • Calculate percentages - Microsoft Support
  • ROUND function - Microsoft Support
  • Switch between relative, absolute, and mixed references - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. The tax formulas you need
  2. Set up the tax rate in one cell
  3. How to add tax to a price
  4. How to round tax to the cent
  5. How to remove tax from a price that includes it
  6. How to use different tax rates for different items
  7. Common tax formula mistakes
  8. Practise it

Keep reading

Math· 6 min read

How to Calculate Discounts and Sale Prices in Excel

To calculate a discounted price in Excel, multiply the original price by one minus the discount: =B2*(1-C2), where B2 is the price and C2 is the discount as a percentage, such as 20%. The amount saved is =B2*C2. To find the discount percent from two prices, use =1-SalePrice/OriginalPrice and format it as a percentage.

Math· 7 min read

How to Calculate a Ratio in Excel

To calculate a ratio in Excel, divide the first number by the second: =B2/C2 returns 20 when 240 students share 12 teachers. To show it as a ratio, join the result to text: =ROUND(B2/C2,1)&":1" displays 20:1. For a simplified whole-number ratio such as 16:9, divide both numbers by their GCD.

Math· 6 min read

How to Increase or Decrease a Number by a Percentage

To increase a number by a percentage in Excel, multiply it by 1 plus the percentage: =B2*(1+C2). With 200 in B2 and 10% in C2, the result is 220. To decrease, multiply by 1 minus the percentage: =B2*(1-C2) gives 180. Wrap the formula in ROUND, such as =ROUND(B2*(1+C2),2), to get whole cents.

More on math

  • Compound Interest Formula in Excel, Step by Step
  • How to Calculate Cost per Unit in Excel
  • COUNT, COUNTA and COUNTBLANK: Counting Cells in Excel
  • How to Calculate Cumulative Percentage in Excel
  • Calculate Depreciation in Excel: Straight-Line, DB and DDB
  • FV Function in Excel: Future Value of Savings
All math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free