Guide · Updated April 2026

How to Calculate Sales Tax

A step-by-step guide for consumers, freelancers, and small business owners.

The Sales Tax Formula

Calculating sales tax is straightforward once you know the formula. Here is the basic equation you need:

Sales Tax = Price × Tax Rate
Total Price = Price + Sales Tax = Price × (1 + Tax Rate)

The tax rate is the combined percentage from your state, county, and local jurisdiction. This varies based on your exact location (zip code). In the US, combined rates can range from 0% (in tax-free states like Oregon) to over 10% (in cities like Chicago or Seattle).

Step-by-Step Examples

Example 1: Simple Purchase

You are buying a laptop for $1,200 in Austin, TX where the combined sales tax rate is 8.25%.

Sales Tax = $1,200 × 0.0825 = $99.00
Total = $1,200 + $99.00 = $1,299.00

Example 2: Restaurant Bill

Your dinner costs $65 before tax in New York City (rate: 8.875%).

Sales Tax = $65 × 0.08875 = $5.77
Total = $65 + $5.77 = $70.77
(Tip is calculated on the pre-tax amount of $65)

Example 3: Reverse Calculation (Finding Pre-Tax Price)

You paid $54.25 total in Miami, FL (rate: 7%). What was the pre-tax price?

Pre-Tax = $54.25 ÷ (1 + 0.07) = $54.25 ÷ 1.07 = $50.70
Tax Paid = $54.25 - $50.70 = $3.55

Understanding Your Tax Rate

US sales tax rates are not a single number — they are the sum of multiple layers:

State Tax
Set by the state legislature. Ranges from 0% to 7.25%.
County Tax
Additional tax levied by your county. Varies widely.
City/Local Tax
City and special district add-ons for transit, etc.

This is why two cities in the same state can have very different rates. The only way to know your exact rate is to look up your specific zip code using our free calculator.

Common Exemptions

Not everything is taxed equally. Many states exempt certain categories:

  • Groceries: Most states exempt unprepared food. Alabama, Mississippi, and South Dakota are notable exceptions.
  • Clothing: Exempt in states like New York (under $110), New Jersey, Pennsylvania, and Minnesota.
  • Prescription drugs: Exempt in all states that have a sales tax.
  • Digital goods: Rules vary significantly. Some states tax digital downloads, others don't.

Tips for Businesses

If you run a business that collects sales tax:

  1. Register for a sales tax permit in every state where you have nexus.
  2. Collect the correct rate based on the buyer's shipping destination (destination-based) or your business location (origin-based), depending on the state.
  3. Remit collected taxes on the schedule assigned to you (monthly, quarterly, or annually).
  4. File returns even in periods with zero sales — most states require zero-dollar filings.

Need the exact rate for your zip code?

Use Our Free Calculator →
← All Guides