ยท ยท 7 min read ยท AYCalculator Team

Calculating Sales Tax: Formula, Total Price & Reverse Tax

Learn how to calculate sales tax, total checkout price, and pre-tax price from a tax-inclusive total with formulas, examples, and common mistakes.

Reviewed against our editorial policy and updated when formulas, thresholds, or guidance materially change. Learn more about AYCalculator.

calculating sales taxSales Tax FormulaTax CalculatorGST CalculatorPrice with Tax
Calculating Sales Tax: Formula, Total Price & Reverse Tax guide illustration
๐Ÿงฎ
Use our free Tax Calculator Get instant, accurate results โ€” no sign-up needed.
Open Calculator โ†’

Searching calculating sales tax usually means you want to know either how much tax will be added at checkout or how to back into the original price from a tax-inclusive total. The math is straightforward, but people often mix up the decimal form of the rate or apply the rate to the wrong base.

Sales Tax Formula

The basic formula is:

Sales tax = Price x Tax rate

If the tax rate is written as a percentage, convert it to a decimal first.

Examples:

  • 5% = 0.05
  • 7.5% = 0.075
  • 8.25% = 0.0825

How to Calculate Sales Tax

  1. Start with the pre-tax price.
  2. Convert the tax rate to a decimal.
  3. Multiply price by tax rate to find the tax amount.
  4. Add the tax amount to the original price.

If you want a faster check, use the Tax Calculator. For percentage-only math, the Percentage Calculator can help when you are double-checking the rate conversion.

Worked Example

If an item costs $80 and sales tax is 7.5%:

  • Convert 7.5% to 0.075
  • Sales tax = 80 x 0.075 = $6
  • Total price = 80 + 6 = $86

So the tax is $6 and the total is $86.

Reverse Formula: Find the Pre-Tax Price

If you know the total and want the original price:

Pre-tax price = Total / (1 + Tax rate)

For example, if the final total is $86 and the tax rate is 7.5%:

  • 1 + 0.075 = 1.075
  • 86 / 1.075 = $80

Sales Tax vs. Tax-Inclusive Pricing

You knowFormula to use
Pre-tax pricePrice x Tax rate
Tax amountPrice + Tax
Tax-inclusive totalTotal / (1 + Tax rate)

This is useful when you are working backward from a receipt, marketplace listing, or invoice.

Common Mistakes

Using 7.5 instead of 0.075 will give a wildly incorrect answer.

Applying the rate to the total instead of the pre-tax price also causes errors unless you are intentionally using the reverse formula.

Ignoring local differences can create confusion. Sales tax rules, exemptions, and local add-on rates can vary by state, city, or country.

When to Double-Check the Number

It is smart to recalculate the tax when:

  • a receipt total looks higher than expected
  • you are comparing stores with different tax treatment
  • you are budgeting for a large purchase
  • you are checking whether a quoted total already includes tax

If you are estimating discounts first and tax second, the Discount Calculator can help you get the sale price before applying tax.

Frequently Asked Questions

How do I calculate sales tax on a price?

Multiply the pre-tax price by the tax rate in decimal form. Then add that tax amount to the original price.

How do I convert a sales tax percentage to a decimal?

Move the decimal point two places left. For example, 8% becomes 0.08 and 7.5% becomes 0.075.

How do I find the original price before tax?

Divide the tax-inclusive total by 1 + tax rate. This gives you the pre-tax price.

Is sales tax calculated before or after a discount?

Usually after the discount is applied, because the taxable price is often the discounted selling price. Rules can vary, so check local requirements when the purchase is important.

Why does my total not match the exact formula?

Rounding can cause small differences, especially when multiple items are taxed separately or when the receipt rounds at the line-item level.

Sales Tax Rates by US State

Sales tax rates vary significantly across states. Some states have no sales tax; others have rates over 9% when state and local taxes are combined.

StateState RateNote
Oregon0%No state sales tax
Montana0%No state sales tax
New Hampshire0%No state sales tax
Delaware0%No state sales tax
Hawaii4%Low rate but applies broadly
California7.25% + localUp to 10.75% with local
Illinois6.25% + localChicago: ~10.25%
Tennessee7% + localAvg combined ~9.55%
Alabama4% + localSome locals add 5%+
New York4% + localNYC combined is ~8.875%

Local county and city taxes can add significantly to the state rate. Always verify the specific combined rate for your purchase location.

Multi-Item Sales Tax Calculation

When buying multiple items, you typically:

  1. Sum the pre-tax prices of all taxable items
  2. Apply the tax rate to the combined subtotal

Example: You buy three items for $45.00, $28.50, and $12.00 in a state with 8% sales tax.

Subtotal = $85.50

Tax = $85.50 ร— 0.08 = $6.84

Total = $85.50 + $6.84 = $92.34

Some items may be tax-exempt (groceries in some states, prescription medicine, clothing under a threshold in some states). In that case, only the taxable items are included in the subtotal before applying the rate.

Tax-Exempt Items (Common Examples)

ItemTax Status
Prescription drugsUsually exempt in most US states
Groceries (unprepared food)Exempt or reduced rate in many states
Clothing under $110 (NY, NJ)Exempt below threshold
Baby clothing (some states)Exempt
Prepared food / restaurant mealsUsually taxable
Digital downloadsIncreasingly taxable
ServicesVaries widely by state

Tax exemptions are complex and change over time. For business accounting, always check the current rules for your specific state and product category.

Online Purchases and Sales Tax

US Supreme Court ruling (South Dakota v. Wayfair, 2018) established that states can require online retailers to collect sales tax even if they have no physical presence in that state. Most major online retailers now collect sales tax in all states that have one.

For consumers, this means online purchases are generally now taxed at the same rate as in-store purchases for that delivery address.

VAT vs Sales Tax

Many countries use Value Added Tax (VAT) rather than sales tax. The key difference:

FeatureSales Tax (US)VAT (Europe, etc.)
Applied whereAt point of sale to consumerAt each stage of production
Shown on receiptAdded to subtotalUsually included in listed price
Paid byConsumer at checkoutBusiness at each stage
Typical rate0โ€“10%15โ€“25% in Europe

When shopping internationally, remember that European prices typically include VAT โ€” so the listed price is the final price, unlike the US where the listed price has tax added at checkout.

The Bottom Line

To calculate sales tax, multiply the pre-tax price by the tax rate in decimal form, then add that amount to the original price. If you need the reverse calculation, divide the final total by 1 + tax rate. Use the Tax Calculator when you want a faster way to test different prices and rates.

How to Calculate: Step-by-Step Guide

1

Find the tax rate

Use the local sales tax rate as a percentage.

2

Multiply by the price

Convert the tax rate to a decimal and multiply by the pre-tax amount.

3

Add tax to the subtotal

Combine the tax amount with the original price to get the total.

๐Ÿงฎ
Ready to calculate? Try our Tax Calculator Free, fast, and accurate โ€” right in your browser.
Use Tax Calculator โ†’
Topics: calculating sales taxSales Tax FormulaTax CalculatorGST CalculatorPrice with Tax