Skip to content
Math of Money

Sales Tax Calculator

Sales tax is just a percentage added onto a price. This calculator runs that math in either direction: give it a before-tax price and a rate to see what you'll pay, or give it a receipt total to back out how much tax was actually charged.

By S M Ariful Islam ShawonLast updated

Sale details

Solve for
$
%
After-tax price (solved)
$107
After-tax price
$107
Tax amount
$7
After-tax price minus before-tax price
After-tax total
ComponentAmountShare
Before-tax price$10093.2%
Tax amount$76.8%

Save calculation

Saving calculations to a free account with Google sign-in is coming soon.

For now, copy the share link — it keeps every input, so you can bookmark it or reopen this exact calculation later.

How to use this calculator

  1. Pick what you want to solve for: before-tax price, sales tax rate, or after-tax price.
  2. Enter the other two values — a price (or two prices) and/or the tax rate as a percentage.
  3. Read the solved value and the tax amount, and see the split between price and tax in the bar below.

How it's calculated

The whole calculator is one formula: afterTaxPrice = beforeTaxPrice × (1 + taxRatePct / 100). Pick any two of the three values and it's algebra to find the third.

Adding tax (solving for after-tax price) multiplies the before-tax price by 1 + rate. A $100 item at an 8.25% rate becomes $108.25 — $8.25 of that is tax.

Backing out tax (solving for before-tax price) — the 'reverse sales tax' case — runs the same formula in reverse: beforeTaxPrice = afterTaxPrice ÷ (1 + taxRatePct / 100). Give it a $108.25 total at 8.25% and it recovers the original $100 price.

Solving for the rate instead divides the tax amount by the before-tax price: taxRatePct = (afterTaxPrice ÷ beforeTaxPrice − 1) × 100. This is the same calculation as figuring out what rate a store actually charged you from a receipt.

The tax amount shown is always the after-tax price minus the before-tax price, so the three numbers on screen stay consistent with each other no matter which one was solved.

Assumptions

  • This calculator applies one flat, combined rate. It doesn't model separately stacked state, county, city, and special-district rates, or item-specific exemptions (groceries, clothing, and prescription drugs are commonly exempt or taxed at a reduced rate in many states).
  • Five states — Alaska, Delaware, Montana, New Hampshire, and Oregon — have no statewide sales tax, though some still allow local option taxes. If you're not sure of the right combined rate for a specific sale, check your state revenue department's published rate rather than guessing.
  • For a car purchase, some states calculate tax on the price after a trade-in credit and some don't — that detail isn't modeled here. Use the Auto Loan calculator alongside this one if you're financing the purchase and need the trade-in treated correctly.
  • Results are for estimating a transaction, not tax advice or a substitute for your state's official rate lookup.

Frequently asked questions

How do you calculate sales tax on a calculator?

Multiply the before-tax price by the tax rate as a decimal, then add that to the price: price + (price × rate). For a $50 item at a 7% rate, that's $50 + ($50 × 0.07) = $53.50. This calculator does that step for you — enter the price and rate and solve for 'After-tax price.'

How do you add sales tax on a calculator?

The quick calculator-key version: enter the price, multiply by (1 + the rate as a decimal), and press equals. $50 × 1.07 = $53.50. That's the same result as adding the tax amount separately — just one fewer step.

What is a reverse sales tax calculator, and how do I back out sales tax from a total?

A reverse sales tax calculator starts from a tax-included total — like the number on a receipt — and works backward to find the original price and the tax amount. Divide the total by (1 + the rate as a decimal): a $53.50 receipt at a 7% rate gives $53.50 ÷ 1.07 = $50.00 before tax. Set 'Solve for' to 'Before-tax price' above and enter the total and rate to do this automatically.

How do I back out sales tax when I don't know the rate?

Set 'Solve for' to 'Sales tax rate,' then enter the before-tax price and the after-tax total you actually paid. The calculator divides the tax amount by the before-tax price to get the rate — useful for figuring out what combined rate a specific store or jurisdiction charged.

How does a car sales tax calculator work?

The underlying math is identical: the vehicle's taxable price times the tax rate gives the tax owed. The complication with cars is what counts as the taxable price — many states tax the price after subtracting a trade-in's value, while others tax the full purchase price regardless of trade-in. Check your state's rule before relying on a single flat-rate estimate, and use the Auto Loan calculator to see how the tax amount affects your financed total.

Why do two purchases in the same state show different sales tax?

Local add-ons. Most states let counties, cities, and special districts layer their own sales tax on top of the state rate, so the combined rate — and the dollar amount of tax on an identical purchase — can differ from one zip code to the next within the same state.

Why are groceries or clothing sometimes tax-free?

Many states exempt or reduce the rate on specific categories, most commonly groceries, prescription drugs, and sometimes clothing, as a deliberate policy choice to reduce the tax burden on necessities. This calculator applies one flat rate and doesn't know about category-specific exemptions, so check your state's rules for items that might qualify.

Can I deduct sales tax on my federal tax return?

Only if you itemize deductions instead of taking the standard deduction, and only by choosing to deduct sales tax instead of state and local income tax (not both). The combined state and local tax deduction is capped, and the IRS publishes an optional Sales Tax Deduction Calculator if you don't have a full year of receipts.

Does this calculator work for VAT or GST instead of U.S. sales tax?

The arithmetic is the same single-rate formula, so it will compute a number either way. The U.S. has no federal sales tax and taxes only the final retail sale; VAT and GST, used in most other countries, are collected at multiple stages of production, which this calculator doesn't model.

Related calculators

Related guides

Key terms

Sources

Disclaimer: This calculator provides estimates for educational purposes only and is not tax, financial, or legal advice. Actual results depend on your income, filing status, withholding, and tax rules that can change. Consult a tax professional or your payroll department for exact figures.