Tokealo
Blog

How to Calculate Sales Tax

4 min read

Sales tax is a percentage added to a price at checkout. The math is short: change the rate to a decimal, multiply, and add. Here is the formula, a worked example, and the reverse trick for pulling tax out of a total.

The short version: tax equals the price times the rate as a decimal. The total is the price plus that tax. Once you see it once, you can do it for any purchase.

The sales tax formula

Two small formulas cover it. The first finds the tax, the second finds the total.

Tax = price × (rate / 100)

Total = price + tax

The only step people miss is the rate. A rate of 7.5% is 0.075 as a decimal, not 7.5. Divide the percent by 100 first and the rest falls into place.

A worked example, step by step

Say you buy a jacket priced at $250 in a place with a 7.5% sales tax. Work it in order.

  1. Change the rate to a decimal: 7.5% is 0.075.
  2. Multiply: 250 × 0.075 = 18.75.
  3. Add it on: 250 + 18.75 = 268.75.

The tax is $18.75 and you pay $268.75 in total. A shortcut gives the same total in one step: multiply the price by 1 plus the rate, so 250 × 1.075 = 268.75. The 1 keeps the price, the 0.075 adds the tax.

Working tax back out of a total

Sometimes you have the total and want the pre-tax price, maybe to log a receipt. Do not subtract the rate from the total. Divide instead.

Price = total / (1 + rate / 100)

Say a receipt shows $321.00 and the rate was 7%. Divide: 321 / 1.07 = 300.00. So the item was $300 and the tax was $21. Check it by adding the tax back: 300 × 1.07 = 321. This reverse step trips people up because subtracting 7% of the total gives the wrong answer.

Why rates differ so much

In the United States, sales tax is set by states and often by counties and cities on top. So two stores a few miles apart can charge different rates. Some items, like groceries or medicine, are taxed at a lower rate or not at all in many places.

That is why a calculator asks you for the rate rather than guessing it. Check the rate for the exact location of the sale, since the seller's address usually decides it. When in doubt, the receipt prints the rate applied.

Tax on a whole cart

Most receipts hold more than one item. The rate still applies once, to the taxable subtotal, not to each line on its own. So add up the prices first, then apply the tax.

  1. Add the items: $40 + $60 = $100 subtotal.
  2. Apply 7.5%: 100 × 0.075 = $7.50 tax.
  3. Total: 100 + 7.50 = $107.50.

You would reach the same tax by taxing each item and adding the parts, but one calculation on the subtotal is cleaner and rounds once. Watch for mixed carts, though. If some goods are exempt and others are not, tax only the taxable portion, then add the exempt items back at the end.

Coupons and discounts come first, before the tax. Take the price down to the amount you actually pay, then apply the rate to that lower figure. Tax follows the final price, so a discount trims the tax along with it.

Common mistakes to avoid

  • Using the percent as a whole number. 7.5% is 0.075, so divide by 100 first.
  • Subtracting the rate from a total to find the price. You must divide by 1 plus the rate instead.
  • Rounding too early. Keep the cents through the math and round only the final figure.
  • Assuming one rate everywhere. Rates change by state, county, and city, and some goods are exempt.

Frequently asked questions

How do I find my local sales tax rate? Check your state revenue department, or read it off a recent receipt. The rate usually follows the seller's location.

Is sales tax the same across a state? Often not. Counties and cities can add their own portion, so the combined rate varies within one state.

Why is the reverse calculation different? The tax is a percentage of the price, not of the total. To undo it you divide the total by 1 plus the rate, which is not the same as subtracting the rate.

Are any purchases tax-free? In many places, basic groceries, prescription medicine, and some clothing are exempt or taxed at a reduced rate. The rules differ by location.

Do I need to do this by hand? No. The formula is handy to know, but a calculator is faster and avoids slips. Use the one below to add or remove tax in a second.

This is general information, not financial or tax advice. Tax rates and rules vary by location.

Try the tool

Sales Tax Calculator

Skip the math. Enter a price and a rate to add tax, or work it back out of a total.

Use the free Sales Tax Calculator

Related tools