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.