How to use the sales tax calculator
- Choose Add tax to price if you have a base price, or Extract tax from total for reverse sales tax.
- Enter the dollar amount in the Amount field.
- Type the sales tax percentage, such as
8.25. - Read the computed tax, pre-tax price, and price with tax below.
How sales tax is calculated
When you add sales tax to a base price, the formula multiplies the price by the tax rate divided by 100. The price with tax is the sum of both.
For example, a $49.99 item at 8.25 percent:
- Tax = 49.99 x 8.25 / 100 = 4.124175, which rounds to $4.12.
- Total = 49.99 + 4.12 = $54.11.
The sales tax calculator performs this multiplication and rounding automatically so you do not have to handle the decimals yourself.
Reverse sales tax formula
Reverse sales tax means finding the original price before tax was applied, given only the final total. The formula divides the total by one plus the rate expressed as a decimal.
Pre-tax price = Total / (1 + Rate / 100)
If you paid $108.25 and the rate is 8.25 percent:
- Divisor = 1 + 8.25 / 100 = 1.0825
- Pre-tax price = 108.25 / 1.0825 = $100.00
- Sales tax = 108.25 - 100.00 = $8.25
This extraction method is useful when reviewing receipts where the tax line is missing but the rate is known.
Common US sales tax rates
Sales tax in the United States varies by state, county, and city. Some states have no statewide sales tax at all. Below are approximate combined state and average local rates for reference.
| State | Approximate combined rate |
|---|---|
| California | 8.82% |
| Texas | 8.20% |
| New York | 8.52% |
| Florida | 7.01% |
| Illinois | 8.86% |
| Oregon | 0.00% |
| Delaware | 0.00% |
Always verify the exact rate for your specific jurisdiction, as local additions can change frequently. You can enter any custom rate into this tool to compute the correct price with tax.
Rounding rules for sales tax
Tax authorities generally require rounding to the nearest cent at the end of the calculation, not on intermediate steps. Rounding too early introduces errors that compound across multiple items.
For instance, buying three items at $10.33 each with a 7 percent rate:
- Wrong way: round each item's tax ($0.72) then multiply by three, giving $2.16 total tax.
- Correct way: sum the prices first ($30.99), then apply the rate once: 30.99 x 0.07 = $2.17.
This sales tax calculator applies the rate to the full amount you enter and rounds only the final result to two decimal places, matching standard accounting practice.
When to use add versus extract mode
Use Add tax to price when you are setting a retail price, creating an invoice, or estimating what you will pay at checkout. You start with the base cost and need the final number.
Use Extract tax from total (reverse sales tax) when you have a receipt showing a grand total but need to separate the revenue from the tax collected. Bookkeepers, accountants, and small business owners use this daily to reconcile cash registers against reported sales tax liabilities.
Both modes rely on the same underlying math, just rearranged. If you also need to figure out gratuities alongside tax, a tip calculator handles that separately since tips are usually computed on the pre-tax subtotal.
Worked examples
Each result below was produced by the same code the tool runs, so you can check your own numbers against them.
| Example | Input | Result |
|---|---|---|
| Price with 8.25% tax | Mode: add; Amount ($): 49.99; Tax rate (%): 8.25 | Sales tax: $4.12; Price with tax: $54.11; Base price: $49.99 |
| Reverse sales tax on $108.25 | Mode: extract; Amount ($): 108.25; Tax rate (%): 8.25 | Pre-tax price: $100.00; Sales tax: $8.25; Total paid: $108.25 |
| Zero-rated item | Mode: add; Amount ($): 75; Tax rate (%): 0 | Sales tax: $0.00; Price with tax: $75.00; Base price: $75.00 |
| High VAT rate (20%) | Mode: add; Amount ($): 250; Tax rate (%): 20 | Sales tax: $50.00; Price with tax: $300.00; Base price: $250.00 |
FAQ
How do I calculate sales tax on a purchase?
Multiply the item price by the tax rate divided by 100. For a $50 item at 8 percent, the tax is 50 x 0.08 = $4.00, making the total $54.00.
What is reverse sales tax?
Reverse sales tax extracts the pre-tax price from a total that already includes tax. Divide the total by 1 plus the rate as a decimal. For $108 at 8 percent, the base price is 108 / 1.08 = $100.
Is sales tax applied before or after discounts?
In most US jurisdictions, sales tax is calculated on the price after store discounts and coupons are applied, though manufacturer rebates may be treated differently depending on local law.
Why does my manual calculation differ by a penny?
Rounding intermediate steps instead of the final total causes one-cent discrepancies. Always apply the rate to the full amount and round only the final tax figure to two decimal places.
Do all states charge sales tax?
No. Five US states have no statewide sales tax: Alaska, Delaware, Montana, New Hampshire, and Oregon. However, some Alaskan localities still levy their own taxes.
Can I use this for VAT or GST?
Yes. Value-added tax and goods and services tax use the same mathematical formulas. Enter the applicable VAT or GST percentage as the tax rate to compute the price with tax or extract the net amount.