How to add sales tax in Excel

This is not tax advice. The rate is a number you type. The sheet does not decide which rate applies, or whether you have to collect it.

There is no national sales-tax rate. Tax Foundation’s table dated January 1, 2026 lists Massachusetts at 6.25% statewide, with no local add-on. A $120 lamp at that rate is exactly $7.50 of tax. The same table is the source on the sales tax page. Confirm the rate before a receipt. Alaska, Delaware, Montana, New Hampshire, and Oregon had no statewide general sales tax on that table. Local tax can still apply.

The workbook that keeps a price and a rate together is the product pricing calculator.

ROUND
=ROUND(B2*B3,2)
=ROUND(B2*B3,2)B4
Massachusetts
AB
1Value
2Price120
3Rate6.25%
4Sales tax7.50
5Total127.50
A picture of the $120 lamp. B3 stores 6.25% as 0.0625. 120 times 0.0625 is 7.50 exactly. The total is 120 plus 7.50, which is 127.50. Tax Foundation's January 1, 2026 table lists this statewide rate.

Round the tax, then add the price

ROUND of the price times the rate, to 2 digits, is the tax. Half rounds away from zero. 120 × 0.0625 is 7.5, so the cent does not move.

=ROUND(120*0.0625,2)

That is 7.50. Add it to the price:

=120+ROUND(120*0.0625,2)

The total is 127.50. Store the rate as 6.25%, which Excel keeps as 0.0625. Do not store 6.25 and then multiply as if it were already a ratio.

The case that needs the cent rule is $49 at 8.25%. That 8.25% is a combined rate you looked up. It is not the Massachusetts statewide rate. 49 × 0.0825 is 4.0425. The third decimal is 2, so ROUND keeps $4.04. The ROUND page uses this same ticket.

xl.sales_tax
=ROUND(49*0.0825,2)
=ROUND(B2*B3,2)B4
Combined 8.25%
AB
1Value
2Price49
3Rate8.25%
4Sales tax4.04
5Total53.04
A picture of a $49 line. 8.25% is a combined rate you looked up, not a statewide rate. 49 times 0.0825 is 4.0425. ROUND to the cent is 4.04. The total is 49 plus 4.04, which is 53.04.
=ROUND(49*0.0825,2)

The tax is 4.04. The total is 49 + 4.04 = 53.04. Round the tax, then add the price. The sales tax page says rounding the whole ticket, ROUND(price*(1+rate),2), can disagree with that order by a cent on some prices.

xl.sales_tax is the tax line as a name:

=xl.sales_tax(120, 6.25%)
=xl.sales_tax(49, 8.25%)

Those return 7.50 and 4.04. The name does not return the total. A total is the price plus that result. The name needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME?. ROUND works without it. Saving the name is the same Name Manager step as the LAMBDA how-to.

A missing rate should not become 0%. A lookup that misses should return words, not a zero that charges no tax. Groceries, clothing, and medicine are taxed differently in many states, so the rate has to be the rate for that line.


Template for this article

Product Pricing Calculator

More from the blog