DIPAZE
Free tool

Sales Tax Calculator

Add sales tax to a price, take it back out of a total, or work out the tax rate on a receipt. You type the combined rate, so it works for any location. Includes optional line items with taxable and non-taxable rows and a clear look at cent rounding.

%
An example rate. Enter the rate for your location (state + local).
$
Before any sales tax is added.

The values shown are examples. Replace them with your own. Amounts are rounded to the nearest cent, with half a cent rounding up.

Total with tax
$108.25
Price before tax$100.00
Sales tax$8.25
Total with tax$108.25
Rate used8.25%
tax = $100.00 x 8.25% = $8.25
total = $100.00 + $8.25 = $108.25
Rounded to the cent, half-up.

How to use this tool

  1. Choose a modeAdd tax to a price, remove it from a tax-inclusive total, or find the rate from a receipt.
  2. Enter your rate and amountsType the combined rate for your location. For several items, tick the line-item option and mark which rows are taxable.
  3. Check the roundingWith line items, compare rounding once on the total with rounding each line, and use the one your state or software requires.

How we calculate it

  • Add tax: tax = price × rate; total = price + tax
  • Remove tax: price before tax = total ÷ (1 + rate); tax = total − price before tax
  • Find the rate: rate = (total − price before tax) ÷ price before tax
  • Rounding: every dollar amount is rounded to the nearest cent, half a cent rounds up

Examples: $100.00 at 8.25% is $8.25 tax and a $108.25 total. Taking tax out of $108.25 at 8.25% gives $100.00 before tax and $8.25 of tax. A $50.00 purchase that cost $54.25 implies an 8.50% rate.

Rounding: once on the total or on each line

Tax is calculated in fractions of a cent, but nobody can be charged a fraction of a cent, so rounding has to happen somewhere. There are two common places, and they can disagree.

Round once: add up the taxable lines, multiply by the rate, round the result a single time.

Round per line: work out each line's tax, round each one, then add the rounded amounts.

The itemized example above shows it: the taxable items come to $7.07. Rounding once gives $0.58 of tax. Rounding each line first gives $0.59, because the two $0.55 lines each round up from $0.045. The $0.01 gap is small, but on an invoice with dozens of lines it grows. Rounding also matters on a single price: $2.00 at 7.25% is exactly $0.145 and rounds up to $0.15.

Which method is correct is not up to the calculator. Some states publish rounding rules or bracket charts, and some point-of-sale and invoicing systems pick one for you. Use the method your state and your software use, and keep it the same across invoices.

What this calculator cannot tell you

  • Rates vary by place. A sales tax rate is usually a state rate plus a county rate, a city rate and sometimes special-district rates. Two addresses in the same state can have different totals, so a state rate alone is often not the right number.
  • Some things are exempt or taxed differently. Many states exempt or reduce the rate on items such as certain groceries or medicine, and treat services, labor, shipping and delivery charges in different ways. Resale and exemption certificates can also change whether tax is due.
  • Remote sellers may owe tax in other states. Since the 2018 US Supreme Court decision in South Dakota v. Wayfair, states can require out-of-state sellers to collect tax once their sales into that state pass a threshold, often called economic nexus. Thresholds and rules differ by state.
  • Where to check. Start with your own state's department of revenue (the name varies: taxation, comptroller, finance). It publishes rates, taxable items, filing rules and often a rate lookup by address.

This page is general information and arithmetic, not tax, legal or accounting advice.

Common mistakes and pitfalls

  • Subtracting the rate to remove tax. Take 8.25% off $108.25 and you get $99.32, not $100.00. Always divide by 1 + rate.
  • Using the state rate only. Leaving out the local part under-collects, and the shortfall is yours to pay.
  • Taxing everything on the invoice. Mark non-taxable items, such as exempt labor, as non-taxable, if your state treats them that way.
  • Applying the discount after the tax. A discount normally reduces the price before the tax is figured. Rules for coupons can depend on who pays for them, so check yours.
  • Baking tax into the price without recording it. If you quote a tax-inclusive price, you still need to know how much of it is tax when you file.
  • Changing rounding methods between invoices. It creates cent differences that are hard to reconcile later.
  • Treating collected tax as income. It belongs to the state until you remit it. Keep it out of the revenue you use for margin and break-even.

Frequently asked questions

How do I calculate sales tax?
Multiply the pre-tax price by the tax rate written as a decimal, then add the result to the price. At 8.25%, $100.00 x 0.0825 = $8.25 of tax, for a total of $108.25. This calculator does that to the cent, and you type the rate yourself.
How do I take sales tax out of a total?
Divide the total by 1 plus the rate, not by subtracting the rate from it. For a $108.25 total at 8.25%: $108.25 / 1.0825 = $100.00 before tax and $8.25 of tax. Subtracting 8.25% of the total would give $99.32, which is wrong because the tax was charged on the smaller pre-tax price, not on the total.
How do I find the tax rate from a receipt?
Use the third mode. Enter the pre-tax amount and the total you paid; the effective rate is (total - pre-tax) / pre-tax. A $50.00 purchase that came to $54.25 is an 8.5% rate. Because the amounts are rounded to cents, the result can be off by a few hundredths of a percent on small purchases.
Why does my total differ by a cent from my invoicing software?
Usually rounding. Some systems calculate and round the tax on every line and add those, others add the taxable lines first and round once. The two can differ by a cent or more on multi-item sales. The line-item mode here shows both side by side so you can match whichever method your state or software uses.
Which sales tax rate should I enter?
The combined rate that applies to the sale: the state rate plus any county, city and special-district rates at the place that determines the tax. Combined rates differ from one address to the next, so look yours up through your state revenue department (many offer an address-based lookup) rather than guessing from a state rate alone.
Do I have to charge sales tax on services or to customers in other states?
It depends on the state and the type of sale. Some states tax certain services and most do not tax others; labor on repairs and installations is handled differently from state to state. Selling to customers in other states can create an obligation to collect tax there once you pass that state's economic nexus threshold. Your state revenue department or a tax professional can tell you what applies to you.

More free tools