Calcs.finance

tax calculator

Sales Tax Calculator

The Sales Tax Calculator models the arithmetic relationship between a before-tax price, an entered sales tax rate, the tax amount, and the after-tax price. It can add tax, remove tax from a tax-inclusive total, or estimate an effective entered rate from before-tax and after-tax prices.

Your scenario

Enter your numbers

Help
Solve for

Result

Result summary
Sales tax is $6.50 on a $100.00 purchase, making the after-tax price $106.50.
Before tax price
$100.00
Sales tax rate
6.50%
Sales tax amount
$6.50
After tax price
$106.50

Working scenario

New scenario

Not saved yet

Compare

Saved scenarios

Compare saved versions

Compare

Save this result, then use saved scenarios to switch between assumptions.

How the Sales Tax Calculator works

Use this calculator when you already have a rate assumption and want to check checkout arithmetic, read a receipt, or compare a tax-exclusive price with a tax-inclusive total. Use Discount before Sales Tax when a markdown changes the taxable starting price, VAT when the question is a VAT-style net or gross price, Payment or Loan Payment when the tax-inclusive amount feeds a financing estimate, and official state, local, or tax authority tools when you need a current rate or rule.

For after-tax price, convert the entered rate to a decimal with r = sales tax rate / 100, calculate tax amount = before-tax price * r, and after-tax price = before-tax price + tax amount. For before-tax reverse solve, before-tax price = after-tax price / (1 + r), then tax amount is max(0, after-tax price - before-tax price). For rate solve, tax amount is max(0, after-tax price - before-tax price), and sales tax rate = tax amount / before-tax price * 100 when before-tax price is greater than 0; if before-tax price is 0, the app returns 0 percent instead of dividing by zero.

Sales Tax Calculator formula

This formula page covers the app's Sales Tax Calculator: a generic three-value checkout model for before-tax price, user-entered sales tax rate, sales tax amount, and after-tax price. It can add tax, remove tax from a tax-inclusive total, or derive an effective rate from before-tax and after-tax prices. It does not look up state, county, city, district, product, exemption, use-tax, shipping, marketplace, filing, or deduction rules.

r = R / 100; T = B * r; A = B + T; reverse before-tax: B = A / (1 + r); effective rate: R = max(0, A - B) / B * 100 when B > 0, otherwise 0

The calculator converts the entered percentage to a decimal rate, adds tax to a before-tax price, reverses a tax-inclusive total by dividing by one plus the rate, or compares before-tax and after-tax prices to solve an effective entered rate.
SymbolMeaningHow this page uses it
BBefore-tax priceThe price before sales tax, entered as Before tax price or solved from the after-tax total.
RSales tax rateThe entered or solved percentage shown as Sales tax rate. This app treats it as a user-entered assumption, not an official lookup.
rDecimal tax rateThe sales tax rate divided by 100, so 6.5 percent is used as 0.065.
TSales tax amountThe currency amount reported as Sales tax amount.
AAfter-tax priceThe checkout total after adding the modeled tax amount.
DPrice differenceThe nonnegative difference between after-tax price and before-tax price when solving the effective tax rate.

Step by step

  1. Read Solve for to decide whether the calculator is finding after-tax price, sales tax rate, or before-tax price.
  2. For after-tax price, divide the entered sales tax rate by 100, multiply before-tax price by that decimal rate to get tax, then add tax to before-tax price.
  3. For before-tax price, divide after-tax price by one plus the entered decimal tax rate, then subtract the solved before-tax price from after-tax price to estimate the tax amount.
  4. For sales tax rate, compare before-tax price with after-tax price, use max(0, after-tax price minus before-tax price) as the tax amount, then divide by before-tax price when before-tax price is greater than 0.
  5. If before-tax price is 0 in rate-solve mode, return a 0 percent rate instead of dividing by zero.
  6. Round currency and percentage outputs for display after the full-precision calculation.
  7. Treat any real rate as something the reader must verify with the relevant state, local, or tax authority before using it outside this educational estimate.

Worked example

Default examples: add tax, remove tax, and solve an effective rate

The default calculator inputs use a $100 before-tax price and a 6.5 percent entered rate. That 6.5 percent value is an example assumption, not a current official rate for any location.

  1. Convert 6.5 percent to 0.065.
  2. Multiply $100 by 0.065 to get $6.50 of sales tax.
  3. Add $6.50 to the $100 before-tax price to get a $106.50 after-tax price.
  4. For a receipt-style rate solve, $80 before tax and $86 after tax has a $6 difference. Dividing $6 by $80 gives 0.075, or 7.50 percent.
  5. For a tax-inclusive reverse solve, $107.50 divided by 1.075 gives a $100 before-tax price and $7.50 of modeled tax.
  6. For the zero-rate fixture, $49.99 at 0 percent keeps the after-tax price at $49.99 and reports $0.00 of tax.

The formula explains the arithmetic relationship between before-tax price, entered rate, tax amount, and after-tax total. It does not prove what a retailer, marketplace, receipt, tax return, or tax authority will use.

Assumptions and what this calculator ignores

Geographic scope: works globally. The math is currency-agnostic, so enter amounts in your own currency; local taxes, fees, and product rules are not included.

What this formula does not include

Common mistakes to avoid

Key terms

Before-tax price
The price before the modeled sales tax amount is added. It is the base for the tax calculation in after-tax mode and the solved value in reverse mode.
Sales tax amount
The currency amount added by the entered sales tax rate. It is calculated from the before-tax price in forward mode and from the price difference in reverse or rate-solve mode.
Effective entered rate
The tax amount divided by the before-tax price. It helps explain a receipt, but it is not proof of the official rate or taxability rules used by a seller.

Frequently asked questions

What is the formula for sales tax?

Convert the rate to a decimal and multiply: tax = price × (rate ÷ 100), and the after-tax total is price + tax. With the calculator's default example, a $100.00 purchase at 6.5 percent produces $6.50 of tax and a $106.50 total. The full derivation, including the reverse and effective-rate forms, is documented in the formula section of this page.

How do I remove sales tax from a total price?

Use the reverse solve: before-tax price = after-tax total ÷ (1 + rate ÷ 100). For example, a $106.50 receipt total at a 6.5 percent rate backs out to a $100.00 pre-tax price. This is the calculation to use when a receipt or listing shows only the tax-inclusive amount and you need the base price for expensing, bookkeeping, or price comparison.

Does the calculator know my state or city sales tax rate?

No. You enter the rate, and the default 6.5 percent is an illustrative input, not an official rate for any jurisdiction. US sales tax is set by state, county, city, and special districts, and the combined rate depends on the delivery or purchase address and the product category. Look up your combined rate with your state's department of revenue, then enter it here.

How do I work out what tax rate I was actually charged?

Enter the before-tax price and the after-tax total, and the calculator derives the effective rate: (total − price) ÷ price × 100. This is useful for checking a receipt where multiple line items or a district surcharge make the rate unclear. If the derived rate looks wrong, part of the total may be a non-tax charge such as a deposit, fee, or tip, which this arithmetic cannot separate.

Does this work for VAT or GST outside the United States?

The arithmetic is the same three-value relationship, so it works as a generic estimate anywhere you know the rate. But VAT systems usually quote prices tax-inclusive and have their own invoicing rules, so use the dedicated VAT calculator on this site for net-price, gross-price, and VAT-amount solves - it is built around tax-inclusive pricing conventions.

Methodology, sources, and disclaimer

This calculator is an original three-value model linking before-tax price, an entered rate, tax amount, and after-tax total, with add, remove, and effective-rate solves each pinned by deterministic fixtures and rounding policy tests. It is not copied from a single source.

Fixtures pin the $100-at-6.5-percent default and the reverse tax-inclusive solve. The result remains an educational estimate, not an official rate lookup or a tax-authority determination for any jurisdiction.

Formula version 2026.05.22-generic-sales-tax. The version marks the calculation logic and validation fixture set used for this estimate.

Results are educational estimates, not advice. Read the full disclaimer.

Related reading

When another calculator fits better

other

Discount Calculator

Calculate sale price, amount saved, discount rate, or original price for percent-off and fixed-amount discounts.

tax

VAT Calculator

Calculate VAT-inclusive price, VAT-exclusive price, VAT rate, or tax amount from two known values.

loan

Payment Calculator

Solve either the monthly payment for a fixed-term loan or the payoff time for a fixed monthly payment.

loan

Loan Payment Calculator

Estimate monthly payment, total paid, and total interest for an amortizing loan at a fixed rate.

other

Margin Calculator

Calculate profit margin, stock trading margin requirement, or currency exchange margin from clear business and trading inputs.