How to Calculate Tax and Prices With Tax in Excel
By ExcelReady TeamUpdated 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+
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 want | Formula | Price 45.50, rate 8.25% |
|---|---|---|
| Tax amount | =B2*$F$1 | 3.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:
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Item | Price | Tax | Price with tax | Tax rate | 8.25% |
| 2 | Notebook | 12.99 | ||||
| 3 | Backpack | 45.50 | ||||
| 4 | Headphones | 79.99 | ||||
| 5 | Desk lamp | 24.95 | ||||
| 6 | Cable | 8.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:
=ROUND(B2*$F$1,2)And in D2, the price including tax:
=B2+C2Fill both down (Windows: Ctrl+D; Mac: ⌘D). The results:
| Item | Price | Tax | Price with tax |
|---|---|---|---|
| Notebook | 12.99 | 1.07 | 14.06 |
| Backpack | 45.50 | 3.75 | 49.25 |
| Headphones | 79.99 | 6.60 | 86.59 |
| Desk lamp | 24.95 | 2.06 | 27.01 |
| Cable | 8.49 | 0.70 | 9.19 |
| Total | 171.92 | 14.18 | 186.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.
=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:
=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:
| Method | Formula | Result | Correct? |
|---|---|---|---|
| Divide by 1 + rate | =120/(1+20%) | 100 | Yes |
| Take 20% off | =120*(1-20%) | 96 | No |
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:
| H | I | |
|---|---|---|
| 1 | Category | Rate |
| 2 | Standard | 20% |
| 3 | Reduced | 5% |
| 4 | Zero | 0% |
The tax for each row is then:
=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:
- 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.
- 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. - Removing tax by subtracting a percentage. Divide by (1 + rate) instead.
- Rounding only with formatting. Use ROUND, or totals can be a cent off.
- 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.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | ||||||
| 3 | ||||||
| 4 | ||||||
| 5 | ||||||
| 6 | ||||||
| 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
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.