Sales tax calculator. Add tax to a price, or take it back out.

Sales tax is a percentage added to the price of a sale. Enter a price and your tax rate to get the tax and the total, or switch the calculator to find the price before tax from a total, or the rate that was charged.

By Brady Heinrich · Updated

Solve for

Your combined rate. Rates differ by state, county and city, so check yours.

Total with tax$108.00

$100.00 plus 8% sales tax.

Sales tax
$8.00
The formula

Total = price x (1 + sales tax rate / 100)

A worked example

A $100 item at an 8% sales tax rate: $100 x 0.08 = $8.00 of tax, and $100 + $8 = a total of $108.00. Working backwards, $108 / 1.08 = $100 before tax.

How to calculate sales tax

Multiply the price by the tax rate as a decimal to get the tax, then add it to the price. At an 8% rate, a $100 item carries $100 x 0.08 = $8.00 of tax and costs $108.00 in total. In one step, multiply the price by 1 plus the rate: $100 x 1.08 = $108.00.

The calculator runs the same relationship three ways:

You knowYou wantFormulaExample
Price and rateTotalprice x (1 + rate / 100)$100 at 8% = $108.00
Total and ratePrice before taxtotal / (1 + rate / 100)$108 at 8% = $100.00
Price and totalRate(total - price) / price x 100$100 to $108 = 8%

The 8% in these examples is only an illustration. The calculator does not know your rate: you enter it.

Which rate to use

Use the combined rate that applies to the sale. In the United States, sales tax is set by states and often added to by counties, cities and special districts, so the rate can change from one address to the next, and some places charge none. Whether an item is taxed at all also varies: groceries, clothing, software and services are treated differently from place to place.

Look the rate up with the revenue or tax department for the location, or use the rate your point of sale or ecommerce platform applies. For online and out-of-state sales, the rules on which rate applies and when a seller has to collect differ by state. If you are unsure whether you need to collect, ask an accountant. This page explains the arithmetic, not your obligations.

How to remove sales tax from a total

Divide the total by 1 plus the rate. A receipt of $108.00 at 8% is $108 / 1.08 = $100.00 before tax, with $8.00 of tax.

Do not multiply the total by the rate and subtract. $108 x 0.08 = $8.64, which overstates the tax, because the rate applies to the pre-tax price and not to the total. This reverse calculation is the one to use when booking receipts, pulling revenue out of tax-inclusive takings, or checking what a tax-inclusive price leaves you.

How to read the result

For a business, sales tax collected is not revenue. It is money held for the tax authority. Keep it out of the figures you use for profit margin and markup, and work those out on the pre-tax price.

Two details affect the total on real invoices:

  • Discounts usually come off first. A percentage discount from the seller normally reduces the taxable price, so apply it before the tax.
  • Rounding happens per line or per invoice. Different systems round at different points, which can move a total by a cent.

Common mistakes

  1. Taking tax off the total with the wrong sum. Divide by 1 plus the rate. Do not subtract rate x total.
  2. Using one rate everywhere. A single state-level rate is often lower than the combined local rate actually charged.
  3. Counting tax as income. Tax collected inflates revenue and margin if it is left in.
  4. Confusing sales tax with VAT. VAT is charged at each stage of the supply chain and prices are often quoted with it included. The arithmetic on this page works for adding or removing either, but the rules behind them differ.

How people search for a sales tax calculator

  • sales tax calculator110,000 a month
  • how to calculate sales tax6,600 a month
  • reverse sales tax calculator5,400 a month
  • vat calculator1,900 a month
  • add sales tax calculator720 a month
  • sales tax formula590 a month

US monthly searches, Google Ads keyword data.

Questions

What is the sales tax formula?

Sales tax = price x rate / 100, and total = price x (1 + rate / 100). A $100 price at 8% carries $8.00 of tax and totals $108.00.

How do I work out the price before tax?

Divide the total by 1 plus the rate as a decimal. A $108.00 total at 8% is $108 / 1.08 = $100.00. Set the calculator to Price before tax to do this.

How do I find the sales tax rate from a receipt?

Divide the tax by the pre-tax price and multiply by 100. $8.00 of tax on a $100 price is 8%. Set the calculator to Tax rate and enter the price and the total.

What sales tax rate should I enter?

The combined rate for the place the sale is taxed, including any state, county, city and district portions. Check it with the local tax authority, because rates differ by location and change over time.

Can I use this to add or remove VAT?

Yes, the arithmetic is the same. Enter the VAT rate as the tax rate to add it to a net price or to take it out of a gross price.

Keep reading

Building something ambitious? Let's talk.

We reply within one business day.