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(B2*B3,2)| A | B | |
|---|---|---|
| 1 | Value | |
| 2 | Price | 120 |
| 3 | Rate | 6.25% |
| 4 | Sales tax | 7.50 |
| 5 | Total | 127.50 |
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.
=ROUND(49*0.0825,2)| A | B | |
|---|---|---|
| 1 | Value | |
| 2 | Price | 49 |
| 3 | Rate | 8.25% |
| 4 | Sales tax | 4.04 |
| 5 | Total | 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.