Sales tax calculator

Add a sales tax percentage to a pre-tax price or reverse an included-tax total into its base and tax portions. Every displayed result reconciles to the cent under the stated rounding method.

Enter plain numbers without commas, currency symbols, or percent signs. Choose whether the entered amount is before tax or already includes tax.

Amount and tax treatment
0 to 999999999.99, with up to 2 decimal places.
0 to 100%, with up to 4 decimal places. Confirm the applicable rate independently.
Choose whether the amount is the pre-tax base or the tax-included total.

Total amount

$108.25

  • Pre-tax base$100.00
  • Sales tax$8.25

One amount and one user-entered rate; no tax-rate lookup or determination of taxable items.

A $100.00 pre-tax amount at 8.25% produces $8.25 of tax and a $108.25 total.

Resources for your next step

Helpful downloads

View all personal finance downloads
Store coming soon

We are preparing practical spreadsheets, planners, and guides. Explore the store page for what is next.

How to use the sales tax calculator

First identify what your amount represents. Choose Tax added to amount when you have a price before tax and want the estimated final total. Choose Tax included in amount when you have a final tax-included total and want to separate it into a base and tax amount. Enter the percentage rate as a plain number, such as 8.25 for 8.25%.

The results update as you edit the amount, rate, or selection. Calculate applies the same validation and arithmetic. Reset restores the $100.00, 8.25%, tax-added example, clears field and calculation errors, and restores all three example outputs. A zero amount and a zero rate are valid; a zero rate leaves the base and total equal and produces no tax.

Sales tax formulas and cent rounding

Tax added: tax = pre-tax base × rate ÷ 100
Total = pre-tax base + rounded tax
Tax included: pre-tax base = included total ÷ (1 + rate ÷ 100)
Tax = included total − rounded pre-tax base

The calculator parses the money amount into whole cents and the rate into exact ten-thousandths of one percent. It uses integer rational arithmetic rather than binary floating-point money arithmetic. In tax-added mode, it rounds the calculated tax to the nearest cent, with an exact half cent rounded up. The rounded tax is then added to the unchanged base.

In tax-included mode, the entered amount is the total. The calculator reverses the rate and rounds the recovered base once. It then subtracts that displayed base from the entered total to derive tax. That order matters: independently rounding both base and tax could make their sum differ from the total. Here, base plus tax always equals total exactly.

Worked examples

For the default example, the pre-tax base is $100.00 and the entered rate is 8.25%. Multiplying $100.00 by 0.0825 produces $8.25 of tax. Adding it to the base gives a final total of $108.25. Reversing the same $108.25 at 8.25% recovers a $100.00 base and $8.25 tax.

Small values show why a defined rounding rule is useful. A $0.05 base at 10% produces an unrounded tax of half a cent. Under this calculator's half-up rule, tax rounds to $0.01 and the total becomes $0.06. If a $0.05 total already includes tax at 100%, the exact base is 2.5 cents. The base rounds to $0.03, and tax is derived as $0.05 minus $0.03, or $0.02.

Rates close to a cent boundary behave consistently. A $1.00 base at 0.4999% produces less than half a cent of tax and remains $1.00 after rounding. At exactly 0.5%, the half cent rounds up, producing $0.01 of tax and a $1.01 total.

Confirm the rate and taxable amount

This calculator does not know your location or transaction facts. It cannot determine the correct state, county, city, district, or special-purpose rate. It also cannot decide whether a product, service, delivery charge, discount, fee, buyer, or seller is taxable or exempt. Confirm the applicable rate and taxable base using current official guidance or a qualified tax professional when the answer matters.

A receipt may apply tax to individual lines before combining them, while this calculator applies one rate to one amount. Sellers may also use jurisdiction-specific rounding or sourcing rules. Therefore, a difference from a receipt does not by itself show that either calculation is wrong. Compare the same taxable base, rate, and rounding sequence before investigating a discrepancy.

Use the discount calculator when you need to calculate a price reduction before applying tax. Use the tip calculator for a user-chosen gratuity and exact bill splitting. The budget calculator can place the final cost in a broader spending plan.

Limits, privacy, and recordkeeping

The amount is limited to $999,999,999.99 and two decimal places. The rate is limited to 100% and four decimal places. Negative amounts, negative rates, commas, symbols, exponent notation, incomplete decimals, and values outside those ranges are rejected. The default 8.25% rate is an editable illustration, not a current-rate claim or recommendation.

All entries are calculated in this browser. The calculator does not submit, transmit, or store the values. It does not prepare a return, create an invoice, verify a seller's collection obligation, or establish tax compliance. Keep the source receipt, applicable rate documentation, transaction date, and jurisdictional guidance if you need an auditable record.

For cash-flow follow-up, the checkbook balance calculator can compare entered register and statement adjustments, while the inflation calculator models a separate hypothetical change in purchasing power. Neither tool determines sales tax rules.

Frequently asked questions

What amount should I enter?

In tax-added mode, enter the pre-tax price. In tax-included mode, enter the final total that already contains tax. The calculator does not identify which items are taxable or adjust a receipt for discounts, fees, shipping, exemptions, or tax holidays.

How does the calculator add sales tax?

It multiplies the pre-tax amount in cents by the rate divided by 100, rounds the tax once to the nearest cent with exact half cents rounded up, and adds that rounded tax to the base amount. The displayed base plus tax therefore equals the displayed total.

How does tax-included mode work?

It divides the entered total by one plus the tax rate to recover the pre-tax base. The base is rounded once to cents, and tax is then derived as total minus base. This makes all three displayed amounts reconcile exactly, even when the unrounded reverse calculation contains a fraction of a cent.

Does the calculator find my local sales tax rate?

No. Enter a rate you have independently confirmed for the transaction. Rates and taxability can depend on state and local rules, the seller, the product or service, sourcing rules, exemptions, and the transaction date. The editable 8.25% default is only an arithmetic example.

Why might a receipt differ by a cent?

A seller may round tax per item, per line, per jurisdiction, or on the invoice total. This calculator applies one rate to one entered amount and rounds once under its stated method. Different legally or operationally required rounding sequences can produce a one-cent difference.

What values can I enter?

The amount may be 0 through 999999999.99 with up to two decimal places. The rate may be 0 through 100 with up to four decimal places. Use plain numbers without commas, currency symbols, percent signs, plus signs, or exponent notation. Blank, negative, malformed, and out-of-range values are rejected.

Sources

Educational arithmetic using the amount and rate you enter. This calculator does not determine taxability, jurisdiction, exemptions, filing obligations, or the legally applicable rate or rounding method.

All personal finance calculators