Calculators

How Sales Tax Is Calculated

Learn how sales tax is calculated, why rates vary by location, and how to find the pre-tax price from a tax-included total.

Brekzy Team Published September 8, 2026

On this page
  1. The Sales Tax Formula
  2. Worked Example
  3. Why Tax Rates Vary
  4. Common Mistakes
  5. Use the Sales Tax Calculator

Sales tax calculation itself is simple multiplication, the complexity comes from the fact that rates vary by location, and not every item is taxed the same way.

The Sales Tax Formula

Sales Tax = Price × Tax Rate
Total Price = Price + Sales Tax

Worked Example

Item price: $50
Tax rate: 8%

Sales tax = 50 × 0.08 = $4

Total price = 50 + 4 = $54

Why Tax Rates Vary

Sales tax rates are set locally, by country, state or province, and sometimes even city or district, so the same $50 item can carry a genuinely different tax amount depending on where it’s purchased. Some categories of goods (like groceries or certain medical items, depending on the jurisdiction) are taxed at a reduced rate or exempted entirely.

Common Mistakes

  • Assuming one universal tax rate. Sales tax rates differ by location, applying a rate from the wrong jurisdiction gives an incorrect total.
  • Forgetting some items are tax-exempt or reduced-rate. Certain categories of goods are commonly taxed differently from standard merchandise, depending on local rules.
  • Calculating tax on the post-discount price incorrectly. When an item is discounted, tax is typically calculated on the discounted price, not the original price, unless the specific jurisdiction’s rules say otherwise.

Use the Sales Tax Calculator

The Sales Tax Calculator calculates sales tax and total price instantly for any price and tax rate.

Try it yourself

Sales Tax Calculator

Try our Sales Tax Calculator →

Frequently Asked Questions

How do I calculate sales tax?

Multiply the price by the tax rate (as a decimal) to get the tax amount, then add that to the original price for the total.

Why do sales tax rates differ between locations?

Sales tax is set locally, by country, state, or sometimes even city, so the rate that applies depends entirely on where the purchase happens.

Are all items taxed at the same rate?

Not always. Some categories, like groceries or certain medical items, may be taxed at a reduced rate or exempted, depending on the specific jurisdiction’s rules.

Is sales tax calculated before or after a discount?

Typically after the discount is applied, so tax is calculated on the discounted price, though this can vary by jurisdiction.

How do I find the pre-tax price from a total that includes tax?

Divide the total by (1 + the tax rate as a decimal). For a $54 total at 8% tax, that’s 54 ÷ 1.08 = $50.

Explore More

Find the right tool, or keep reading Brekzy's other guides.