Skip to main content
Financial 9 min read

How to Calculate Sales Tax: Formula, Examples & Reverse Calculation

Learn how to calculate sales tax using the formula, add tax to any price, reverse-calculate the pre-tax amount, and find the rate, with clear worked examples.

By Daniel Agrici Reviewed by Suresh Chandra, Finance Analyst

Introduction

Sales tax is calculated with one simple formula: sales tax = price × tax rate, where the rate is written as a decimal, so a 7% rate becomes 0.07. To find what you actually hand over at the register, you add that tax back onto the price, which gives total = price × (1 + rate). If you would rather skip the arithmetic and just get an answer, the Sales Tax Calculator will add tax, strip it back out, or solve for the rate in a single step.

Sales tax sits on top of almost every retail purchase in the United States, yet most people never look closely at how the number on their receipt is built. Understanding the math helps you check receipts for errors, price items correctly if you run a business, back out tax for an expense report, and compare the true cost of buying in one jurisdiction versus another. This guide walks through the formula, several worked examples with real numbers, the reverse calculation, and the mistakes that trip people up.

The Sales Tax Formula

Every sales tax calculation starts by converting the percentage into a decimal. You do this by dividing the rate by 100, so 8.25% becomes 8.25 ÷ 100 = 0.0825. From there, two formulas cover almost everything you will ever need:

  • Tax amount: sales tax = price × rate
  • Final total: total = price × (1 + rate)

The second formula is just a shortcut for the first. Instead of calculating the tax and then adding it in a separate step, multiplying by (1 + rate) does both at once. For a 6% rate, 1 + 0.06 = 1.06, so multiplying any price by 1.06 gives you the tax-inclusive total directly.

Keep the decimal conversion front of mind, because forgetting it is the single most common arithmetic slip. Multiplying a $40 item by 7 instead of 0.07 turns a $2.80 tax into a nonsensical $280.

Worked Example: Adding Tax to a Single Purchase

Suppose you are buying a pair of headphones priced at $49.99 in a city with a combined sales tax rate of 8.25%.

Step 1 — Convert the rate to a decimal.

8.25 ÷ 100 = 0.0825

Step 2 — Multiply the price by the rate to get the tax.

49.99 × 0.0825 = 4.124175

Rounded to the nearest cent, the tax is $4.12.

Step 3 — Add the tax to the price.

49.99 + 4.12 = 54.11

Your total is $54.11. As a shortcut, you could have multiplied directly: 49.99 × 1.0825 = 54.11. Both routes land in the same place, which is a handy way to double-check your own math.

Worked Example: A Cart of Multiple Items

Sales tax is applied to the taxable subtotal, not to each item individually, so you total everything first and tax once at the end. Say your cart holds three items:

  • Notebook: $19.99
  • Desk lamp: $34.50
  • Pens: $12.00

Step 1 — Add the items to get the subtotal.

19.99 + 34.50 + 12.00 = 66.49

Step 2 — Apply a 6.5% tax rate to the subtotal.

66.49 × 0.065 = 4.32185, which rounds to $4.32.

Step 3 — Add tax to the subtotal.

66.49 + 4.32 = 70.81

The final total is $70.81. Taxing the subtotal rather than each item avoids the tiny rounding differences that can appear if you round the tax on every line separately, which is exactly how store point-of-sale systems handle it.

How Combined Tax Rates Are Built

The rate you pay is rarely a single number set by your state. Most jurisdictions stack several layers: a statewide base rate, then optional county, city, and special-district rates. The special district might fund transit, a stadium, or a local improvement zone. Here is how a typical combined rate is assembled:

ComponentExample rate
State base rate6.00%
County rate1.00%
City rate0.50%
Special district0.25%
Combined rate7.75%

On a $200 purchase at this combined 7.75% rate, the tax is 200 × 0.0775 = $15.50, for a total of $215.50. Because the local layers vary from one address to the next, two stores a few miles apart can charge noticeably different totals on an identical item. Rate lookups are typically driven by the exact delivery or purchase address, not just the state. Since these local rates change periodically, confirm the current combined rate for your specific location before relying on it for pricing or budgeting.

Reverse Sales Tax: Finding the Pre-Tax Price

Sometimes you have the tax-inclusive total and need to work backward to the original price, for example when filling out an expense report or separating tax for bookkeeping. The key is to divide, not subtract a percentage. The formula is:

price = total ÷ (1 + rate)

Example 1 — Clean numbers. A receipt shows a total of $128.40 and you know the rate was 7%.

price = 128.40 ÷ 1.07 = 120.00

So the pre-tax price was $120.00, and the tax portion was 128.40 - 120.00 = $8.40. You can verify this: 120 × 1.07 = 128.40. It checks out.

Example 2 — Messier numbers. Your total is $75.00 at a rate of 8.875%.

price = 75.00 ÷ 1.08875 = 68.8862...

Rounded, the pre-tax price is about $68.89, and the tax was roughly $6.11. A frequent mistake here is to take 8.875% of the $75 total instead of dividing. That would give 75 × 0.08875 = $6.66, which overstates the tax, because the percentage is measured against the smaller pre-tax price, not the larger total.

Finding the Tax Rate From Two Numbers

If you know both the pre-tax price and the total (or the tax amount), you can recover the rate that was applied:

rate = (total - price) ÷ price

Say an item cost $80.00 before tax and the receipt total came to $85.60.

Step 1 — Find the tax amount.

85.60 - 80.00 = 5.60

Step 2 — Divide the tax by the pre-tax price.

5.60 ÷ 80.00 = 0.07

Step 3 — Convert back to a percentage.

0.07 × 100 = 7%

The applied rate was 7%. This is genuinely useful for verifying that a business charged you the correct rate, or for reverse-engineering the rate from an old receipt when you have lost track of it.

Quick Reference: Tax on a $100 Purchase

When you want a fast gut-check, it helps to see how common combined rates translate into dollars on a round $100 purchase. Because the base is exactly $100, the tax in dollars equals the rate itself.

Combined rateTax on $100Total
0%$0.00$100.00
4.00%$4.00$104.00
6.00%$6.00$106.00
7.25%$7.25$107.25
8.25%$8.25$108.25
9.50%$9.50$109.50
10.25%$10.25$110.25

To scale this to any price, multiply the tax-on-$100 figure by your price divided by 100. On a $250 purchase at 8.25%, that is 8.25 × 2.5 = $20.63 in tax.

Sales Tax vs. Value-Added Tax

Travelers and online shoppers often confuse US sales tax with the value-added tax (VAT) or goods-and-services tax (GST) used in much of the world. The math you pay looks similar, but the mechanics differ. US sales tax is charged once, at the final retail sale, and the listed price is almost always shown before tax, so the tax is added at checkout. VAT is collected in stages throughout the supply chain, and in most countries the advertised price already includes it, so what you see on the shelf is what you pay.

The practical takeaway for the formulas above is that when a price already includes tax, as with VAT, you use the reverse calculation to strip it out. When a price excludes tax, as with US sales tax, you use the forward calculation to add it on.

What Is Taxable Varies by State

Not every item is taxed, and not every item is taxed at the same rate. Rules differ widely by state, and this is one of the biggest sources of confusion when people expect a single flat rate to apply to an entire receipt. Common variations include:

  • Groceries are frequently exempt or taxed at a reduced rate, though prepared and restaurant food is usually taxed at the full rate.
  • Prescription drugs are exempt in many states, while over-the-counter medicine may or may not be.
  • Clothing is exempt or partially exempt in some states, sometimes only below a price threshold.
  • Digital goods and services such as software subscriptions and streaming are taxed in a growing number of states, but the treatment is far from uniform.

Because these categories change with legislation, treat any specific exemption as something to confirm against your state’s current official guidance rather than a permanent rule. A mixed cart of taxable and exempt items will have tax applied only to the taxable subtotal, which is why the tax on your receipt sometimes seems lower than the headline rate would suggest.

Common Mistakes to Avoid

  • Forgetting to convert the percentage to a decimal. Multiplying by 8.25 instead of 0.0825 inflates the tax by a factor of 100. Always divide the rate by 100 first.
  • Subtracting a percentage to reverse tax. To back out tax from a total, divide by (1 + rate). Taking the rate as a percentage of the tax-inclusive total overstates the tax, because the rate is measured against the smaller pre-tax price.
  • Taxing each line item separately and rounding as you go. Round-off errors accumulate. Total the taxable subtotal first, then apply tax once, which is how registers do it.
  • Assuming the state rate is the whole rate. County, city, and special-district add-ons can push the combined rate a full point or two above the state base. Look up the rate for the exact address.
  • Applying one rate to a mixed cart. Exempt items such as certain groceries or medicine should be excluded from the taxable subtotal before you calculate tax.
  • Ignoring rounding to the cent. Tax almost always rounds to two decimal places at the item or transaction level, so $4.124 becomes $4.12. Small discrepancies from unrounded intermediate figures are normal.

The Bottom Line

Calculating sales tax comes down to two moves: convert the rate to a decimal, then multiply. Adding tax to a price uses price × (1 + rate), reversing it uses total ÷ (1 + rate), and finding an unknown rate uses (total - price) ÷ price. Once those three relationships click, you can check any receipt, price your own products, or separate tax for accounting without second-guessing the arithmetic. The one variable you always need to confirm is the combined rate for your exact location, since local layers make it move around more than most people expect.

To run any of these calculations instantly, including combined rates and reverse lookups, use the Sales Tax Calculator. If you want to keep building your financial math toolkit, two closely related guides are worth a read: How to Calculate Compound Interest shows how small percentages grow dramatically over time, and How to Calculate Mortgage Payments walks through the formula behind the biggest purchase most people ever make.

Sources

Frequently Asked Questions

What is the basic formula for calculating sales tax? +

Multiply the pre-tax price by the tax rate written as a decimal: tax = price × (rate ÷ 100). A 7% rate on a $50 item is 50 × 0.07 = $3.50 in tax, making the total $53.50. The percentage sign always converts to a decimal before you multiply.

How do I calculate the price before sales tax was added? +

Divide the total by 1 plus the rate as a decimal. If a receipt total is $107 and the rate is 7%, the pre-tax price is 107 ÷ 1.07 = $100, and the tax portion is $7. This reverse calculation is useful for expense reports and bookkeeping.

Is sales tax calculated on the item price or the discounted price? +

In most US states, sales tax applies to the price after store discounts and coupons are subtracted, but before manufacturer rebates. Because rules vary by state, always confirm your own state's treatment of coupons and rebates. The taxable amount printed on your receipt is the figure the rate is applied to.

Why is the sales tax rate different from one town to the next? +

The rate you pay is usually a state base rate plus optional county, city, and special-district rates stacked on top. Two towns in the same state can have different totals because their local add-ons differ. This is why a single state can contain dozens of distinct combined rates.

Do all products and services get taxed at the same rate? +

No. Many states exempt or reduce tax on categories such as groceries, prescription drugs, and clothing, while some services are taxed and others are not. The general combined rate applies to standard taxable goods, but special categories can carry a lower rate or none at all. Check your state's current rules for the specific item.

D

Daniel Agrici

NovaCalculator Editorial Team

Our writers combine mathematical expertise with clear writing to make calculations accessible to everyone. Content is checked against authoritative sources including NIST, WHO, and CFPB.

Try the Calculator

Sales Tax Calculator

Use the free tool to calculate instantly — no signup needed.

Open Calculator →

Share this article