Sales Tax Calculator

Find the tax amount and final total in one step. Great for budgeting purchases, comparing “before tax” quotes, and checking receipts.

Shopping bags and a paper receipt on a clean white surface, retail and sales tax concept
Tax amount
,
Subtotal (before tax)
,
Total (after tax)
,

Sales tax rules vary by state and locality. This tool uses a single combined rate you provide.

Last updated: May 9, 2026

Sales tax calculator (the two common cases)

People typically need sales tax math for one of two reasons: (1) add tax to a listed price to budget the final total, or (2) extract tax from a tax‑inclusive total to see the true pre‑tax price. This calculator supports both modes so you can match what you’re seeing on a tag, invoice, or receipt.

Case 1: Price is before tax (add tax)

If a product is listed at $100 and your tax rate is 8%, the tax is $8 and the total is $108. The formula is straightforward: tax = price × rate, total = price + tax. This is the “add tax” mode.

Case 2: Price already includes tax (extract tax)

Sometimes you only know the final total. If $108 already includes 8% tax, the pre‑tax price isn’t $100 by subtracting 8% of 108. Instead, you divide by (1 + rate): subtotal = total ÷ (1 + rate). Then tax = total − subtotal. This is the “extract tax” mode.

Why small differences happen

Real receipts may round tax at different steps (per item vs. on the final subtotal), and some items may be exempt or taxed at different rates. This tool assumes a single flat rate and rounds to cents for display, perfect for budgeting and quick checks.

Detailed explanation

Sales tax seems simple until you run into real‑world details: combined city + county + state rates, tax‑inclusive pricing, and rounding rules. The good news is that for most everyday purchases, you can get an accurate estimate with one combined rate and a clear understanding of which number you’re starting from.

Start by identifying the base. Is the number you see on a price tag the price before tax, or does it already include tax? In the US, most shelf prices are pre‑tax, and tax is added at checkout. But some invoices and service quotes may show totals that already include tax. If you choose the wrong mode, the math will still produce a number, but it will answer the wrong question.

Adding tax is “percentage of a base.” When you add tax, you’re taking a percentage of the pre‑tax price. If the rate is 8.25%, the decimal rate is 0.0825. Multiply price × 0.0825 to get tax. Add it back to get the total. That’s it.

Extracting tax is “reverse percentage.” When a total includes tax, you can’t just subtract 8.25% of the total because the total includes the tax itself. The correct reverse operation is to divide by (1 + rate). This is the same idea as backing out a markup: if something is “plus 8.25%,” the multiplier is 1.0825. Dividing by that multiplier returns you to the original base.

Rounding and line-item effects. Many systems compute tax per line item and then round each line to the nearest cent, while others compute tax on the final subtotal. With multiple items, those two approaches can differ by a cent or two. When you’re verifying a receipt, match the approach: if each item has its own tax calculation, your totals can differ slightly from a single aggregated estimate.

Use cases where this calculator shines. It’s great for budgeting bigger purchases (phones, furniture, electronics), quickly estimating checkout totals, and comparing two offers in different areas with different tax rates. It’s also helpful when you’re reimbursing expenses and need to separate pre‑tax cost from tax in a simple way.

Use cases where you need more detail. If your basket includes tax‑exempt items (like some groceries), items with special taxes, or complex local rules, you’ll need a more specialized calculator or the actual point‑of‑sale breakdown. For most people, though, a single combined rate is the fastest path to a useful answer.

FAQ

How do I calculate sales tax?

Multiply the pre‑tax price by the tax rate (as a decimal). Example: $100 at 8% tax → $8 tax.

How do I add sales tax to a price?

Total = price × (1 + rate). Example: $100 at 8% → $100 × 1.08 = $108.

How do I remove sales tax from a total?

Subtotal = total ÷ (1 + rate), then tax = total − subtotal.

Why can’t I just subtract 8% from the total?

Because the total includes tax. The correct reversal is dividing by (1 + rate), not subtracting a percent of the total.

Do different items have different sales tax?

Sometimes. Exemptions and special categories exist. This calculator assumes one combined rate for simplicity.