Sales tax: adding it, removing it and rounding to the cent
Reviewed 23 November 2026 · 6 min read · Written and maintained by Toolnexo
Sales tax looks like a one step sum until you have to go backwards from a total, or until the receipt differs from your calculation by a cent. This guide covers the two directions, the most common mistake, how several local rates combine, and where the rounding goes. The figures below come from the sales tax calculator on this site, which works in whole cents and runs in your browser, so the prices you enter are not uploaded.
Adding tax to a price
Multiply the price by the rate and add the result. For 49.99 at 8.25 percent, 4,999 cents × 8.25 ÷ 100 = 412.4 cents, which rounds to 412. The tax is 4.12 and the total is 54.11.
A quick shortcut is to multiply by one plus the rate, here 49.99 × 1.0825, which gives the same total. Both ways need the rate typed as a percentage, so 8.25 means 8.25 percent and not 8.25 times the price.
Removing tax from a total
When a price already includes tax, as VAT and GST prices usually do, you have to divide, not subtract. The price before tax is the total ÷ (1 + rate). For 54.11 at 8.25 percent, 54.11 ÷ 1.0825 = 49.99, which is where we started.
The tempting mistake is to take 8.25 percent of 54.11 and subtract it. That gives 4.46 of tax and a price of 49.65, which is 34 cents too low. The tax was charged on the smaller, pre-tax price, so it is a smaller share of the total than the rate itself: 8.25 percent of the price is only 7.61 percent of the total.
The effect grows with the rate. A VAT inclusive price of 120.00 at 20 percent contains 20.00 of tax on a price of 100.00. Subtracting 20 percent of 120 would give 96.00 instead, and the tax would look like 24.00, a fifth too much.
Combined rates
In many places the tax on a sale is made up of more than one layer, for example a state rate plus a county rate plus a city rate. These are usually added together first and applied once. A made-up example: 6 percent plus 1.5 percent plus 0.75 percent is 8.25 percent. The calculator has an Add up several rates option for this, so you can enter each layer and see the total.
Rates and rules differ from place to place and change over time, and the calculator does not look them up. Use the rate printed on your receipt, invoice or the tax authority's page. If one tax is charged on top of another, work out the effective rate yourself and enter that.
Why a receipt can differ by one cent
Tax has to be rounded to a whole cent somewhere, and shops differ on where. Buy three items at 0.99 with 8.25 percent tax. Rounded per item, each carries 0.0817 of tax, which is 0.08, so the tax is 0.24 in total. Rounded on the whole line, 2.97 × 8.25 percent = 0.245, which rounds up to 0.25, and the total is 3.22.
Neither answer is a mistake. Which one is right depends on the seller's system and the local rules. The calculator rounds on the whole line (price times quantity), and half a cent always rounds up. If your till says something different, the till wins, because it is what you are actually charged.
Rounding also means going forward and back can differ by one cent on some prices. The calculator works with whole cents throughout, so it avoids the extra errors that come from decimal fractions in floating point arithmetic.
What the calculator does not cover
- Exempt items, tax holidays and goods taxed at different rates need separate calculations, then add the results.
- Discounts can come before or after tax depending on the type of discount and the place. For a store discount applied before tax, take the discount first with the discount calculator and then add the tax.
- Business registration, filing and reclaiming input tax are outside its scope. For VAT and GST with registered businesses, see the GST and VAT calculator.
- This is a calculator, not tax advice. For anything with a legal or accounting consequence, check with the tax authority or a qualified adviser.
Put it into practice
Sales Tax Calculator
Add sales tax to a price or take it out of a tax-inclusive price, with quantity, combined state and local rates, and the tax shown separa…
Runs in your browserGST / VAT Calculator
Add GST/VAT to a net price or remove it from a gross price.
Runs in your browserDiscount Calculator
Find the final price and exact savings for a percentage discount.
Runs in your browserTip Calculator
Work out the tip and total on any bill, then split it evenly between any number of people: tip per person included.
Runs in your browserHow this guide is maintained
This page is reviewed when the related tools change. It describes what the published tools actually do: the tools run in your browser tab, so your files stay on your device. If you find something inaccurate, email [email protected] and it will be corrected.
Other guides
- How to merge PDFs without uploading them6 min · 17 November 2026
- OCR a scanned PDF: accuracy, limits and privacy7 min · 17 November 2026
- Compress a PDF without destroying readability6 min · 17 November 2026