Pricing a product, checking a receipt or budgeting for a big purchase all start with the same question: how to calculate sales tax correctly. Get the rate or the rounding wrong and you either overcharge customers or come up short when you file with the state revenue department. This step-by-step guide shows the formula, worked examples from real US cities, and the shortcuts professionals use.

Key takeaways

  • Sales tax = price × combined sales tax rate.
  • Always use the combined rate for the exact location of the sale, not just the state rate.
  • Round the tax to the nearest cent at the end of the calculation.
  • To remove tax from a total, divide by (1 + rate) instead of subtracting a percentage.

The Sales Tax Formula

Sales tax = Taxable price × Combined sales tax rate
Total price = Taxable price + Sales tax

The only hard part is getting the right rate. Everything else is simple arithmetic.

How to Calculate Sales Tax in 4 Steps

Step 1: Find the combined sales tax rate for the location

The combined rate adds the state rate plus any county, city and special district rates that apply at the address. Most states tax online and delivered orders at the buyer’s address, so use the shipping address when the item is delivered. You can look up any city or ZIP code with our sales tax calculator.

Step 2: Convert the percentage to a decimal

Divide the rate by 100. For example, 8.25% becomes 0.0825 and 8.875% becomes 0.08875.

Step 3: Multiply the taxable price by the rate

Use only the taxable amount. Leave out exempt items, and check whether shipping, delivery or service charges are taxable in your state, because the rules vary.

Step 4: Round and add the tax to the price

Round the tax to the nearest cent (half a cent or more rounds up), then add it to the price. Some states publish their own rounding rules or bracket charts; California, for example, publishes sales tax reimbursement charts for retailers.

Worked Examples From Real US Cities

Example 1: A $250 purchase in Houston, Texas

Houston’s combined rate is 8.25% (6.25% state plus 2% local).

  • $250 × 0.0825 = $20.625, which rounds to $20.63
  • Total: $250 + $20.63 = $270.63

Example 2: An $80 dinner out in New York City

New York City’s combined rate is 8.875% (4% state, 4.5% city and 0.375% for the Metropolitan Commuter Transportation District).

  • $80 × 0.08875 = $7.10
  • Total before tip: $87.10

Example 3: Several items in Los Angeles, California

At Los Angeles’s 9.75% rate, a $40 lamp and a $15 set of batteries are taxed on the combined $55 subtotal:

  • $55 × 0.0975 = $5.3625, which rounds to $5.36
  • Total: $60.36

Many retailers calculate tax on the invoice subtotal like this rather than line by line. The difference is usually no more than a cent, but be consistent.

Quick Reference: Sales Tax on $100

Combined rateSales tax on $100Total
6%$6.00$106.00
7.25%$7.25$107.25
8.25%$8.25$108.25
8.875%$8.88$108.88
9.75%$9.75$109.75
10.55%$10.55$110.55

How to Calculate Sales Tax Backward (Reverse Sales Tax)

If you only know the total you paid, you can work backward. Do not subtract the rate from the total; that gives the wrong answer because the tax was charged on the smaller, pre-tax price.

Price before tax = Total ÷ (1 + rate)
Tax rate = (Total − Price before tax) ÷ Price before tax

For example, a $108.25 receipt at 8.25% is $108.25 ÷ 1.0825 = $100.00 before tax. Our reverse sales tax calculator and add or remove sales tax calculator do this for you.

Common Mistakes When Calculating Sales Tax

  • Using only the state rate. In most states the local tax jurisdiction adds several percentage points.
  • Using the ZIP code alone. A ZIP code can cross city or county lines, so one ZIP can have more than one rate. When accuracy matters, use the full street address.
  • Taxing exempt items. Groceries, prescription drugs and some clothing are exempt or reduced in many states.
  • Ignoring rate changes. Local rates often change on January 1, April 1, July 1 or October 1.
  • Rounding too early. Round only the final tax amount, not the rate.

Calculating Sales Tax in a Spreadsheet

In Excel or Google Sheets, put the price in cell A2 and the rate as a decimal in B2, then use:

Tax: =ROUND(A2*B2, 2)
Total: =A2+ROUND(A2*B2, 2)

Conclusion

Knowing how to calculate sales tax comes down to one reliable habit: find the combined rate for the exact location, multiply, and round to the cent. For quick answers, use the sales tax calculator, and for filing questions, check the rules published by your state revenue department.

Frequently Asked Questions

What is the formula to calculate sales tax?

Multiply the taxable price by the combined sales tax rate written as a decimal. For example, $50 at 7% is $50 × 0.07 = $3.50 in sales tax.

How do I calculate 8.25% sales tax?

Multiply the price by 0.0825. On a $200 purchase, that is $16.50 in tax, for a total of $216.50.

How do I remove sales tax from a total?

Divide the total by one plus the rate. A $107.25 total at 7.25% is $107.25 ÷ 1.0725 = $100.00 before tax.

Is shipping subject to sales tax?

It depends on the state. Some states tax shipping and delivery charges, some exempt them when they are separately stated on the invoice, and others exempt them entirely. Check your state revenue department’s guidance.

Should I use my ZIP code to find the sales tax rate?

A ZIP code is a good starting point, but some ZIP codes cover more than one tax area. For exact results, use the full street address with your state’s official rate lookup.