How to Calculate Sales Tax on a Purchase

Learn sales tax = rate × price, reverse pre-tax from total, state rate overview, and tax-free states — with clear examples and a free tool.

By Generatr Team

Sales tax on a purchase is almost always a percentage of the taxable price. Once you know the rate that applies at the ship-to or point-of-sale location, tax dollars and the grand total follow two short formulas — and you can work backward from a receipt total when you only know the amount charged.

This guide covers forward tax (rate × price), reverse pre-tax price, how state and local rates stack in the U.S., and which states have no statewide general sales tax. When you want instant totals, open the free sales tax calculator with price and rate (or a state reference rate).

Rates change and local districts add layers. Treat published averages as planning numbers; the register or invoice for your ZIP and product type is the authority. For pure percent-of math, see the free percentage calculator.

Free tool

Use the Sales Tax Calculator now

Open the interactive sales tax calculator in your browser — free, instant, no signup.

Open Sales Tax Calculator

How Do You Calculate Sales Tax From Price and Rate?

The standard forward calculation:

Sales tax amount = pre-tax price × tax rate

Total due = pre-tax price + sales tax amount

Or in one step: total = pre-tax price × (1 + tax rate), with the rate as a decimal (7.25% → 0.0725).

Worked examples

Item costs $80 before tax at 8%: tax = 80 × 0.08 = $6.40; total = $86.40.

Cart is $249.99 at 6.5%: tax ≈ 249.99 × 0.065 ≈ $16.25; total ≈ $266.24 (stores round to cents; a penny can differ by rounding policy).

Car or large purchase at $32,000 with 7% tax: tax = 32,000 × 0.07 = $2,240; total = $34,240 before title/fees that are separate from sales tax.

What is “pre-tax price”?

Usually the taxable selling price after discounts that reduce the price of the goods. Coupons and markdowns often lower the base; some fees are taxable and some are not depending on jurisdiction and fee type.

Apply discounts first when that is how the store prices, then tax the reduced amount — same order as many U.S. checkouts. Stacked percent-off steps are covered in the discount calculation guide and the discount calculator.

How Do You Find Pre-Tax Price From a Total With Tax?

When the receipt only shows the grand total and you know the tax rate, reverse the multiplier.

Pre-tax price = total ÷ (1 + tax rate)

Tax amount = total − pre-tax price

Examples

You paid $86.40 including 8% tax: pre-tax = 86.40 ÷ 1.08 = $80; tax = $6.40.

Total $215.60 at 7%: pre-tax = 215.60 ÷ 1.07 = $201.50; tax = $14.10.

Common trap

Do not multiply the total by the tax rate to “get the tax.” On $86.40 at 8%, 86.40 × 0.08 = $6.91 — wrong. Tax is rate × pre-tax, not rate × total. Always divide by (1 + rate) first when starting from the inclusive total.

Another trap: treating “tax is 8% of what I paid” as the definition of the rate. The legal rate is defined on the taxable base; the tax line as a percent of total is slightly lower (on an 8% rate, tax is 8/108 ≈ 7.41% of the grand total).

Use the free sales tax calculator reverse mode when you are reconciling expense reports or marketplace payouts.

How Do State and Local Sales Tax Rates Work?

In the United States, general sales tax is mostly a state-and-local system. Many states set a statewide rate; cities, counties, and special districts may add local rates. Your effective rate is often the combined rate for the address where tax is sourced (in-store location or, for many remote sales, destination).

Planning with averages

Public tables often list a statewide rate and a “combined average” that folds in typical local rates. Averages are useful for ballpark budgets; they are not a guarantee for a specific street address. Two ZIPs in the same metro can differ by a percentage point or more when districts differ.

Rough order of magnitude (illustrative, not legal rates)

  • Some states cluster statewide rates near 4%–7% before locals
  • Combined state + local averages in higher-tax areas often land roughly in the 7%–10%+ band
  • Always confirm current posted rates for your location and product category

Product exemptions matter: groceries, clothing, prescriptions, and digital goods can be taxed differently by state. A “general” rate on electronics may not apply the same way to food staples.

Need a quick percent of a large invoice for planning? The percentage calculator multiplies rate × base the same way; the sales tax tool adds reverse calc and rate reference context in one place.

Which States Have No Statewide Sales Tax?

Five states are widely known for having no statewide general sales tax: Alaska, Delaware, Montana, New Hampshire, and Oregon. That does not always mean “every transaction is tax-free everywhere.”

  • Alaska — no statewide rate, but many localities levy local sales taxes
  • Delaware, Montana, New Hampshire, Oregon — generally no statewide sales tax; local rules and other taxes (excise, lodging, etc.) can still apply
  • Other taxes — use tax, gross receipts taxes, or special excises can still affect businesses and some purchases

Cross-border and online shopping

Buying from a no-sales-tax state does not automatically erase tax if you live in a taxing state and use-tax or marketplace collection rules apply. Large online sellers often collect destination-based tax at checkout based on your ship-to address.

For personal budgeting when you move or travel, model both the sticker price and a realistic combined rate at home so “tax-free weekend” or out-of-state trips don’t distort your annual spend estimate.

This section is a high-level overview for education, not tax advice. Confirm with official state departments of revenue and a tax professional for filing and nexus questions.

How Do Discounts, Shipping, and Tips Interact With Tax?

Order of operations changes the dollar tax line.

Discounts

$100 item, 20% off, then 8% tax: taxable base = $80; tax = $6.40; total = $86.40. If someone wrongly taxes $100 first then takes 20% off the total, the result differs — follow the store’s policy (usually discount, then tax on reduced goods).

Shipping and fees

Whether shipping is taxable depends on jurisdiction and how the charge is structured. Some places tax shipping when the goods are taxable; others exempt it. Don’t assume your home state’s rule applies to every seller.

Tips

Tips are generally not sales tax on the tip amount the way goods are taxed; restaurant tax usually applies to food and drink. People often tip on pre-tax food, post-tax total, or a house policy — pick a consistent habit. For tip math itself, use the free tip calculator and the tip guide.

Business pricing

If you quote customers “plus tax,” separate the tax line from your price so your percentage and margin math stay clean. Your profit margin is on your price, not on tax you collect for the state — see also the margin calculator.

How Do You Use an Online Sales Tax Calculator?

A good calculator needs an accurate base and an accurate rate.

  1. Open the free sales tax calculator.
  2. Enter the pre-tax price of taxable items (after discounts that reduce the base).
  3. Enter the combined rate as a percent (for example 8.25), or pick a state reference rate if you are only ballparking.
  4. Read tax amount and grand total.
  5. Switch to reverse mode when you know only the card charge and the rate.
  6. For multi-rate carts (taxable + exempt lines), tax only the taxable subtotal.
  7. Round to cents the way your context requires (cash register vs spreadsheet).

Inputs people forget

  • Local district rate on top of state
  • Whether trade-in credits reduce taxable price (common on vehicles — rules vary)
  • Non-taxable SKUs mixed in a cart
  • Cap or special rates on vehicles, hotels, or alcohol in some places

For big financed purchases, tax may be due at sale even if you pay monthly — loan payment math is separate in the loan payment guide.

What Sales Tax Calculation Mistakes Should You Avoid?

Small rate or base errors scale fast on large carts.

  • Using state-only rate when locals apply — underestimates the real combined rate
  • Taxing the post-tax total for reverse problems — always divide by (1 + rate) first
  • Applying rate to exempt items — overstates tax on mixed carts
  • Ignoring discounts — tax usually follows the reduced taxable price
  • Treating outdated blog rate tables as legal truth — rates and boundaries change
  • Confusing sales tax with income tax or VAT-style inclusive pricing — U.S. retail is often tax-extra at the register

This guide is educational only — not legal, tax, or accounting advice. For compliance, remittance, and economic nexus, use official sources and qualified professionals.

When you are comparing take-home pay vs purchase power after tax on goods, salary withholding is a different system; see the salary and take-home guide for paycheck math.

Step-by-Step Instructions

  1. 1Open the free sales tax calculator on Generatr.
  2. 2Enter the pre-tax price of the taxable purchase (after applicable discounts).
  3. 3Enter the combined sales tax rate as a percentage for your location.
  4. 4Read the tax amount and the total price including tax.
  5. 5For reverse problems, enter the grand total and rate to recover pre-tax price.
  6. 6If the cart has exempt items, tax only the taxable subtotal.
  7. 7Compare state-only vs combined rates so local tax is not missed.
  8. 8Round to the nearest cent and match the merchant’s receipt when reconciling.

Frequently Asked Questions

How do you calculate sales tax on a purchase?+

Multiply the pre-tax taxable price by the tax rate as a decimal, then add that tax to the price. Example: $80 × 0.08 = $6.40 tax; total $86.40. Or multiply price by (1 + rate).

How do you reverse sales tax from a total?+

Divide the total by (1 + tax rate). At 8%, $86.40 ÷ 1.08 = $80 pre-tax. Tax is total minus pre-tax. Do not multiply the total by the rate.

Which U.S. states have no statewide sales tax?+

Alaska, Delaware, Montana, New Hampshire, and Oregon have no statewide general sales tax. Alaska localities may still charge local sales tax, and other taxes can still apply.

Is sales tax calculated before or after a discount?+

In typical U.S. retail, the discount reduces the price of the goods first, then sales tax applies to the reduced taxable amount — unless a specific promotion or law says otherwise. Check the receipt.

Why is my rate higher than the state rate I looked up?+

City, county, and special district taxes often stack on top of the statewide rate. Use the combined rate for your address, not only the state headline number.

Is Generatr’s sales tax calculator free?+

Yes. It runs in your browser for forward and reverse sales tax estimates without requiring an account.

Ready to try it yourself?

Use the free Sales Tax Calculator — no download, no account.

Launch Sales Tax Calculator