Sales Tax Calculator: Add Tax or Remove It From a Total
Learn the two formulas for adding sales tax and backing it out of a tax-inclusive price, with examples and clear limits.

A rate and a price are enough to check the arithmetic around a purchase, provided you already know the correct rate. The Sales Tax Calculator handles both directions: it adds a stated rate to a pre-tax price, or it removes the included tax from a total. The calculation runs locally in your browser and does not look up a location or store your numbers.

Start with the right kind of price
The crucial question is whether the number you have is before tax or including tax. A shelf price can be pre-tax, while a receipt total is usually tax-inclusive. The formulas are related, but they are not interchangeable.
For a pre-tax price P and tax rate r written as a decimal, calculate:
tax = P × r
total = P + tax
At an 8.25% rate, use 0.0825 in the formula. An $85 pre-tax price has $7.0125 of unrounded tax, making an unrounded total of $92.0125. The calculator presents cents, so that scenario displays $7.01 and $92.01.
If you only need the first multiplication—for example, “what is 8.25% of 85?”—the percentage calculator is a faster single-purpose check.
Back tax out instead of subtracting it
When a price already includes tax, it represents 100% of the original price plus the stated rate. With an 8.25% rate, the total is 108.25% of the pre-tax price. Subtracting 8.25% from the total uses the wrong base.
Use this reverse formula instead:
pre-tax price = tax-inclusive total ÷ (1 + r)
tax = total − pre-tax price
For $92.01 including 8.25% tax, divide by 1.0825. The result is approximately $85 before tax, and the remainder is approximately $7.01 tax. Minor fractions of a cent can appear because a printed receipt starts from a rounded total.
Choose Price including tax in the Sales Tax Calculator for this direction. It shows the pre-tax estimate, the included tax amount, and the tax share of the final total.
Apply discounts before the stated tax base
Shopping math often has a step before tax. Suppose an $80 item receives 15% off and a 6% rate applies to the reduced price. The sale price is $68, then tax is $4.08, producing a $72.08 estimate. The discount calculator makes this common order visible: percentage discount, order-level coupon, then tax.
That order is an estimate, not a universal store rule. A promotion may exclude an item, apply before a markdown, alter the tax base, or have a minimum-purchase condition. Read the retailer's terms and treat its checkout total as the source of truth.
For a meal, taxes and gratuity are separate choices. The tip calculator models a restaurant bill and its stated tip convention; it should not be used to decide a general sales-tax rate. For fuel planning, use the gas cost calculator with the posted pump price rather than trying to infer every tax already included in that price.
A tax rate needs a current source
The calculator intentionally does not guess a location's rate. In California, for example, the California Department of Tax and Fee Administration says total sales and use tax rates can vary by city and county because district taxes may apply in addition to the statewide base rate, and it provides a current rate lookup by address. CDTFA: Know Your Sales and Use Tax Rate
That illustrates why a generic arithmetic calculator must stop at the formula. It cannot decide an item's taxability, determine online-order sourcing, apply exemptions, distinguish sales tax from use tax, or guarantee a merchant's rounding procedure. Use an official current lookup or the retailer's own information for the rate, then use the tool to test the numbers.
This article is educational information, not tax, legal, or accounting advice. It does not calculate a tax return or a deduction. The IRS notes that qualifying taxpayers who elect a state and local general sales-tax deduction may use actual expenses or optional tables under the rules in its guidance, which is a different process from calculating tax on one purchase. IRS Topic No. 503: Deductible Taxes
Why is tax a smaller percentage of the total than the stated rate?
The stated rate applies to the pre-tax price. Once tax is added, the final total is larger, so tax divided by that larger total is a smaller percentage. At 8.25%, tax is about 7.62% of the final total.
Why might the calculator and receipt differ by a cent?
The page calculates from the entered total and displays cents. A merchant may round each line item, tax component, or transaction differently, and discounts or taxable fees can affect the actual result.