Two directions, one rate
How to use the sales tax calculator
Choose Add tax to a price when you have the amount before tax and want the checkout total. Choose Remove tax from a total when a receipt or invoice gives the amount already including tax and you need the base price and the tax portion.
Both directions use the same two inputs: a dollar amount and a sales tax rate in percent. Use the rate shown on your receipt or invoice, or the current official rate for the jurisdiction that applies to the purchase. This page does not contain state or city rates, does not detect your location, and cannot confirm which rate applies to a transaction.
| Price or total | $0.00 to $1,000,000,000.00; zero is accepted, a negative value is not |
|---|---|
| Sales tax rate | 0% to 100%; decimals such as 8.25 are allowed |
| Add mode input | The price before sales tax |
| Remove mode input | The total that already includes sales tax |
| Result in both modes | Base price, sales tax, total, and the matching formula |
The defaults are two views of the same transaction. Add mode starts at $100.00 with an 8.25% rate, producing $8.25 of tax and a $108.25 total. Remove mode starts at $108.25 with the same 8.25% rate, producing a $100.00 base and $8.25 of tax. The 8.25% is an editable arithmetic example, not a rate for a particular state or city.
Empty, non-finite, negative, and out-of-range values are rejected with a message next to the affected field. A rate of 0% is valid and leaves the amount unchanged. The page address stores the direction, both price fields, and the rate, so a shared link reopens the same calculation. Reset restores the active direction's example and returns the rate to 8.25%.
Sales tax formulas for both directions
Let the base be the price before tax, the rate be the percentage charged, and the total be what the buyer pays. Adding tax multiplies the base by 1 plus the rate as a decimal. Removing tax reverses that multiplication with division.
tax = pre-tax price × rate ÷ 100total = pre-tax price + taxRemove sales taxbase = tax-inclusive total ÷ (1 + rate ÷ 100)tax = tax-inclusive total − baseAt 8.25%, the decimal rate is 8.25 ÷ 100 = 0.0825, so the total is the base × 1.0825. Enter 8.25 in the rate field, not 0.0825. If you already know the multiplier from a receipt, it is 1 + rate ÷ 100.
The remove formula is the inverse of the add formula, not a second subtraction. Because total = base × (1 + rate ÷ 100), dividing both sides by 1 + rate ÷ 100 gives base = total ÷ (1 + rate ÷ 100). Once the base is known, the tax is whatever the total contains above it.
Worked examples at 8.25%
These examples use the page defaults and an 8.25% rate. They describe the same purchase in both directions, which is why removing tax from $108.25 returns to $100.00.
| Pre-tax price | $100.00 |
|---|---|
| Sales tax rate | 8.25% |
| Tax | $100.00 × 8.25 ÷ 100 = $8.25 |
| Total | $100.00 + $8.25 = $108.25 |
| Tax-inclusive total | $108.25 |
|---|---|
| Sales tax rate | 8.25% |
| Multiplier | 1 + 8.25 ÷ 100 = 1.0825 |
| Base price | $108.25 ÷ 1.0825 = $100.00 |
| Tax | $108.25 − $100.00 = $8.25 |
Both results list a base of $100.00, tax of $8.25, and total of $108.25. The 8.25% is an example rate chosen for the arithmetic; it is not a recommendation, an average, or a statement about any jurisdiction.
Why subtracting the rate from a total is wrong
The most common reverse-tax error is to treat the tax-inclusive total as if it were the base. On a $108.25 total at 8.25%, that shortcut gives a tax of $108.25 × 0.0825 = $8.930625, or $8.93, and a base of $108.25 − $8.93 = $99.32.
| Wrong tax at 8.25% of $108.25 | $8.93 |
|---|---|
| Wrong base | $99.32 |
| Correct tax | $8.25 |
| Correct base | $100.00 |
The shortcut fails because the tax was never 8.25% of the total. It was 8.25% of the base. Within the tax-inclusive total, the tax is 8.25 ÷ 108.25 × 100 = 7.62%, not 8.25%. That is why the correct step is to divide by 1.0825 rather than subtract 8.25%.
tax share = rate ÷ (100 + rate) × 1008.25 ÷ 108.25 × 100 = 7.62%The opposite mistake is also possible: adding 8.25% to $108.25 gives $117.18, which charges tax on tax. Add mode expects a pre-tax price; remove mode expects a total that already includes tax. Check which amount you have before choosing a direction.
Rounding tax to the nearest cent
Money is displayed in dollars and cents. A price entered with more than two decimal places is rounded to the nearest cent before the calculation. In add mode, the calculator computes the exact tax, rounds it to the nearest cent, and adds that rounded tax to the base. In remove mode, it computes the exact base, rounds the base to the nearest cent, and takes the tax as the total minus that rounded base.
Rounding the base in remove mode keeps the displayed figures additive: base plus tax equals the total. For example, a $100.00 tax-inclusive total at 8.25% has an exact base of $92.3787..., displayed as $92.38, and a tax of $7.62. The two lines add back to $100.00.
The rate itself is not rounded before the calculation. Sellers and tax authorities may round per line item, per invoice, or under a specific rule, so a receipt can differ from this one-rate, one-amount result by a cent. The calculator does not adjust its result to match a particular rounding convention.
What the calculator does not do
- It does not look up, guess, or verify a state, county, city, or special-district rate.
- It does not decide whether an item, service, digital purchase, or shipping charge is taxable.
- It does not apply exemptions, resale certificates, tax holidays, or reduced rates for specific goods.
- It does not handle multiple line items, mixed rates, or a different rate for each item on one invoice.
- It does not calculate use tax, filing obligations, penalties, or remittance to a tax authority.
- It does not convert currencies; all amounts are in U.S. dollars.
- It does not replace a receipt, an invoice, or professional tax advice.
Sales tax rates and rules vary by jurisdiction and can change. The rate you enter is the only rate the calculation uses, so check the current official guidance for the place and transaction you are handling. A 0% rate is accepted and returns the amount unchanged; that is useful for checking the arithmetic, not for establishing that no tax is due.
Sales tax calculator FAQs
Which rate should I enter when state, county, and city taxes are listed separately?
Enter the combined rate that applies to the taxable amount. If the receipt lists the taxes separately but each applies to the same base, add the rates, or divide the total tax by the pre-tax base and multiply by 100. If the components use different bases or caps, calculate each one separately: this calculator assumes one rate applied to one amount.
Why is the tax on my receipt a cent different from the calculator?
The calculator applies one rate to one amount and rounds once to the nearest cent. A seller may round each line item separately, round the invoice total, or apply different rates and taxable amounts to different items. Those steps can move the result by a cent or more, so the receipt remains the record of what was actually charged for that purchase.
Does the calculator decide whether shipping or handling is taxable?
No. It uses only the amount you enter. Whether delivery, shipping, handling, or a service fee belongs in the taxable amount depends on the jurisdiction, the seller, and the item. If a charge is taxable on your transaction, add it to the price before entering it; the calculator does not make that decision.
Can I use remove mode for VAT or GST?
The arithmetic works for any single inclusive percentage tax: base = total ÷ (1 + rate ÷ 100). VAT and GST follow different invoicing and reporting rules, and some prices include other charges. Use the rate and total on the invoice, and do not treat the result as a tax filing or compliance calculation.