Sales Tax Calculator

Add tax to a price or reverse-calculate it from a total.

Calculation mode

enter the percentage that applies where you are

Enter a price and tax rate to see the total.

How this sales tax calculator works

A sales tax calculator answers two everyday questions: how much tax to add to a price, and what the pre-tax price was when you only have a tax-inclusive total. This free sales tax calculator does both as you type. You supply the rate that applies where you are — there is no built-in country or state table — then see the tax amount, the taxable base, and the headline total or pre-tax price.

The basic surface is a mode switch, a price (or a total), and a tax rate. That is enough for a receipt check or a quick quote. Open Advanced for quantity, a discount before tax, and shipping or handling that can be taxable or exempt. Closing Advanced opts those extras out of the result even if the fields stay filled. VAT, GST, and HST are the same two questions mathematically, so this page works for those labels too.

How to use the sales tax calculator

  1. Choose a currency and a mode: price before tax if you want to add tax, or total with tax included if you want to recover the pre-tax price.
  2. Enter the amount and the tax rate as a percentage. The rate has to be filled in — leaving it empty is not treated as 0%.
  3. Read the headline: total after tax in add mode, or price before tax in reverse mode. Tax amount, subtotal, and taxable amount sit underneath.
  4. Open Advanced only if you need quantity, a fixed or percent discount before tax, or shipping. Mark whether shipping is taxable. Closing Advanced ignores those extras.

The two sales tax questions, explained

Add tax to a price

Use “Price before tax” when you know the net price and the rate. The calculator applies the rate to the taxable base and adds the tax to get the total. This is the usual “what will this cost at the till?” question.

Recover the price from a tax-inclusive total

Use “Total with tax included” when a receipt, a listed price, or an invoice already includes tax and you need the amount before tax. The pre-tax price is the total divided by 1 plus the rate. The tax amount is then recomputed from that pre-tax figure so the numbers balance.

Quantity, discounts, and shipping

Quantity multiplies the unit price into a subtotal. A discount is applied before tax: a fixed amount comes off each unit, a percent off multiplies the unit by 1 minus the discount over 100, and a discounted unit cannot go below zero. Exempt shipping is added after tax. Taxable shipping is folded into the taxable base so the tax figure covers both the goods and the shipping. Closing Advanced treats quantity as 1 and discount and shipping as unused.

Sales tax formulas

These are the same formulas the calculator uses. The tax rate is a percentage you enter, not a table looked up by location.

Tax amount
tax=taxable amount×tax rate100
Total after tax
total=price before tax+tax
Price before tax from a tax-inclusive total
price before tax=total1+tax rate100
Unit price after a percent discount
discounted unit=unit price×(1−discount percent100)

Worked examples

Example: add 8.25% tax to $100

Tax is 100 × 8.25 ÷ 100 = $8.25. The total after tax is 100 + 8.25 = $108.25. The taxable amount is $100 because there is no discount or taxable shipping.

Example: $108.25 already includes 8.25% tax

The price before tax is 108.25 ÷ (1 + 8.25 ÷ 100) = 108.25 ÷ 1.0825 = $100. Tax is then $8.25, the same figure the add-tax mode produced. Reverse mode is how you undo a VAT-inclusive shelf price.

Example: 3 items at $50, 10% off, $8 exempt shipping, 8% tax

Each unit after 10% off is 50 × 0.90 = $45. The discounted goods are 45 × 3 = $135. Tax is 135 × 0.08 = $10.80. Exempt shipping is added after tax, so the total is 135 + 10.80 + 8 = $153.80. The original subtotal before the discount was $150.

Things to keep in mind

This calculator uses the rate you type. It does not look up a city, state, or country table, and it does not stack multiple rates. A tax rate of 100% is not accepted (the field stops below 100%). Empty rate means no result, not a 0% estimate. This is an estimate, not a filing tool. For a percent-off sale price rather than tax, use the discount calculator; for a raw percentage, use the percentage calculator.

Sales tax calculator FAQ

How do I add sales tax to a price?

Choose “Price before tax”, enter the net price and the tax rate. The calculator multiplies the taxable amount by the rate over 100 and adds that tax to the price. For example, 8.25% of $100 is $8.25, so the total is $108.25.

How do I find the price before tax from a total?

Choose “Total with tax included” and enter the tax-inclusive amount and the same rate. The pre-tax price is the total divided by 1 plus the rate over 100. A $108.25 total at 8.25% is $100 before tax.

Can I use this for VAT, GST, or HST?

Yes. Those taxes use the same two questions: add a rate to a net price, or recover the net from a tax-inclusive total. The calculator does not apply a country’s exemptions or reduced rates — only the percentage you enter.

Is shipping taxed?

Only if you open Advanced, enter a shipping amount, and mark it taxable. Exempt shipping is added after tax. Taxable shipping is included in the taxable amount so the tax figure covers both the goods and the shipping. Closing Advanced drops shipping from the result.

How do discounts affect the tax?

Discounts are applied before tax. A fixed discount comes off each unit; a percent discount reduces each unit by that percentage. Tax is then calculated on the discounted goods (plus shipping if you marked shipping taxable). A discount larger than the unit price clamps that unit at zero.

Does this sales tax calculator store my numbers?

Completed results can be saved in this browser’s local history so you can reopen them later. They stay on your device and are not sent to our servers or to analytics.