Sales Tax Calculator (US)

Our sales tax calculator adds tax to a price or takes it out of a total. Rates vary by place, so type the combined state and local rate where you shop. Steps and rounding appear in full, and no rate table or exemptions are built in.

Price and tax

Price before tax$80.00
Sales tax (8%)$6.40
Total with tax$86.40

8% sales tax on $80.00 is $6.40, for a total of $86.40.

The tax is rounded to the cent. When you take tax out of a total, the price before tax is rounded to the cent and the tax is the total minus that price, so the two always add up to the total. This rounding is our choice for this calculator.

How the calculator works

Choose whether you start from a price before tax or from a total that already includes tax, then enter the rate. Use the rate for your location, with state and local parts added together.

  • Adding tax: tax = price × rate; total = price + tax.
  • Taking tax out: price before tax = total ÷ (1 + rate), rounded to the cent; tax = total − price.
  • The tax is rounded to the nearest cent.

The page has no table of rates: the rate is always the one you enter. The default of 8% is only an example.

Worked example: 8% on $80

At 8%, the tax on $80.00 is $6.40. The total is $86.40.

Adding 8% to $80
StepAmount
Price before tax$80.00
Sales tax at 8%$6.40
Total with tax$86.40

Going the other way, a total of $86.40 at 8% gives back a price of $80.00 and tax of $6.40.

The same $80 at three example rates

Between 6% and 9.5%, the tax on $80.00 goes from $4.80 to $7.60.

Example: tax and total on $80 at three rates
RateSales taxTotal with tax
6%$4.80$84.80
8%$6.40$86.40
9.5%$7.60$87.60

Check the rate for the place of sale before you rely on a total.

Taking tax out: divide, do not subtract

Subtracting 8% of $86.40 leaves $79.49, not $80.00. The rate applies to the price before tax, so the total has to be divided by 1 plus the rate.

Example: three receipt totals taken apart at 8%
Total with taxPrice before taxSales taxSubtracting 8% leaves
$25.00$23.15$1.85$23.00
$50.00$46.30$3.70$46.00
$100.00$92.59$7.41$92.00

In each row, the total is divided by 1 plus the rate to find the price before tax, and the tax is what is left of the total. The last column shows the price that subtracting the rate would leave, which is too low in every row.

How the cents are rounded

When you add tax, the tax is rounded to the nearest cent and added to the price. When you take tax out, the price before tax is rounded to the nearest cent and the tax is the total minus that price, so the two always add up to the total you entered.

This rounding is our choice for this calculator. A total rounded in another way can differ by a cent.

What is not included

  • Rates by state, county or city: enter the combined rate yourself.
  • Item-by-item rates or exemptions: one rate applies to the whole amount.
  • Other taxes, fees or charges on the purchase.

Sources and tax year

This page uses no tax rates, limits or other government figures: the rate is the one you enter, so there is no tax year and no source to cite. The results follow from the formulas above.

Common questions

How do I take the sales tax out of a receipt total?

Divide the total by 1 plus the rate, and the tax is what is left of the total. For example, a total of $50.00 at 8% holds a price of $46.30 before tax and $3.70 of tax.

Why does subtracting the rate from the total give the wrong price?

The rate applies to the price before tax, not to the total, so 8% of the total is more than the tax inside it. On $86.40, subtracting 8% leaves $79.49 instead of $80.00.

Which rate should I enter?

Enter the combined rate that applies to your purchase, with the state and local parts added together, as the field label says. The calculator does not look one up or suggest one, so the result is only as good as the rate you enter.

Why can the total on my receipt differ by a cent?

When it adds tax, the calculator rounds the tax to the nearest cent, and when it takes tax out, it rounds the price before tax. This rounding is our choice, so a total rounded in another way can differ by a cent.

How do I calculate items with different rates?

The calculator applies one rate to the whole amount, so work out each group of items on its own with its own rate. Then add the totals together.

How do I find the rate from a receipt?

Divide the tax by the price before tax and multiply by 100. Because the tax on a receipt is rounded to the cent, the rate you find is only close to the rate that was applied.