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.
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
- Start with the pre-tax price.
- Convert the tax rate to a decimal.
- Multiply price by tax rate to find the tax amount.
- 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 know | Formula to use |
|---|---|
| Pre-tax price | Price x Tax rate |
| Tax amount | Price + Tax |
| Tax-inclusive total | Total / (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.
| State | State Rate | Note |
|---|---|---|
| Oregon | 0% | No state sales tax |
| Montana | 0% | No state sales tax |
| New Hampshire | 0% | No state sales tax |
| Delaware | 0% | No state sales tax |
| Hawaii | 4% | Low rate but applies broadly |
| California | 7.25% + local | Up to 10.75% with local |
| Illinois | 6.25% + local | Chicago: ~10.25% |
| Tennessee | 7% + local | Avg combined ~9.55% |
| Alabama | 4% + local | Some locals add 5%+ |
| New York | 4% + local | NYC 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:
- Sum the pre-tax prices of all taxable items
- 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)
| Item | Tax Status |
|---|---|
| Prescription drugs | Usually 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 meals | Usually taxable |
| Digital downloads | Increasingly taxable |
| Services | Varies 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:
| Feature | Sales Tax (US) | VAT (Europe, etc.) |
|---|---|---|
| Applied where | At point of sale to consumer | At each stage of production |
| Shown on receipt | Added to subtotal | Usually included in listed price |
| Paid by | Consumer at checkout | Business at each stage |
| Typical rate | 0โ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
Find the tax rate
Use the local sales tax rate as a percentage.
Multiply by the price
Convert the tax rate to a decimal and multiply by the pre-tax amount.
Add tax to the subtotal
Combine the tax amount with the original price to get the total.