Skip to content
Calculator Collection
← All articles
businessJuly 29, 2026

How to Calculate Sales Tax (Step by Step)

Whether you're a shopper checking a receipt, a business owner setting prices, or a freelancer invoicing a client, sooner or later you need to figure out exactly how much sales tax to add. It sounds simple—just multiply by a percentage—but rates vary by location, some items are exempt, and sometimes you need to work backward from a total that already includes tax.

In this guide, you'll learn how to calculate sales tax step by step, see worked examples, and master trickier scenarios like backing out tax from a tax-inclusive price and stacking state and local rates. By the end, you'll handle any sales tax calculation with confidence—or speed things up with a dedicated tool.

What Is Sales Tax?

Sales tax is a consumption tax charged by governments on the sale of goods and certain services. It's typically expressed as a percentage of the purchase price and is added at the point of sale. The seller collects the tax from the buyer and then remits it to the appropriate tax authority.

In the United States, there's no national sales tax. Instead, individual states set their own rates, and counties, cities, and special districts often add their own local taxes on top. That's why the total rate in one town can differ from the rate just a few miles away. Combined rates commonly range from 0% in states with no sales tax to over 10% in some local jurisdictions.

Sales tax differs from a value-added tax (VAT), which is applied at each stage of production. With sales tax, the full tax is collected only once—at the final retail sale to the consumer.

The Sales Tax Formula

The core calculation is straightforward. To find the tax amount, multiply the price by the tax rate (expressed as a decimal):

Sales Tax = Price × Tax Rate

To find the total amount the customer pays, add the tax to the original price, which simplifies to:

Total = Price × (1 + Tax Rate)

The key step that trips people up is converting the percentage rate into a decimal. To do that, divide the percentage by 100. A rate of 7.25% becomes 0.0725, and 8.5% becomes 0.085. If you're rusty on moving between percentages and decimals, a percentage change calculator can help you double-check your conversions.

A Step-by-Step Worked Example

Let's walk through a real purchase. Suppose you're buying a desk chair priced at $240, and the combined sales tax rate where you live is 7.25%.

Step 1 — Convert the rate to a decimal. Divide 7.25 by 100 to get 0.0725.

Step 2 — Calculate the tax. Multiply the price by the decimal rate: $240 × 0.0725 = $17.40.

Step 3 — Calculate the total. Add the tax to the price: $240 + $17.40 = $257.40. You could also do this in one step using the total formula: $240 × 1.0725 = $257.40.

So the chair that's listed at $240 actually costs $257.40 once tax is applied. The $17.40 is what the retailer collects and forwards to the state and local tax authorities.

How to Back Out Sales Tax from a Total

Sometimes you have the opposite problem: you know the total amount paid (tax included) and need to figure out the pre-tax price or the tax portion. This is common when reconciling receipts, separating tax for expense reports, or pricing items inclusively.

Because the total equals Price × (1 + Tax Rate), you reverse it by dividing:

Pre-Tax Price = Total ÷ (1 + Tax Rate)

Using our chair example in reverse: if you paid $257.40 at a 7.25% rate, the pre-tax price is $257.40 ÷ 1.0725 = $240.00. The tax portion is simply the difference: $257.40 − $240.00 = $17.40.

A common mistake is multiplying the total by the tax rate instead of dividing. Taking $257.40 × 0.0725 gives $18.66—too high, because it applies the rate to a number that already includes tax. Always divide when backing tax out of an inclusive total.

State and Local Rate Stacking

In most U.S. locations, the rate you pay isn't a single number—it's a sum of several layers. A typical combined rate might break down like this:

  • State rate: 6.0%
  • County rate: 1.0%
  • City rate: 0.5%
  • Special district (transit, stadium, etc.): 0.25%
Add them together and the combined rate is 7.75%. You apply that single combined rate to the price; you don't calculate each layer separately and tax the tax. So a $100 purchase in this jurisdiction would incur $100 × 0.0775 = $7.75 in tax, for a total of $107.75.

For businesses, this stacking is the hardest part of compliance. The rate depends on where the sale takes place—and for online sellers, that often means the buyer's shipping address, thanks to economic nexus rules from the 2018 South Dakota v. Wayfair decision. A retailer shipping nationwide may need to track hundreds of combined rates.

What's Taxable and What's Exempt

Not everything is subject to sales tax, and the rules vary widely by state. Common patterns include:

  • Tangible goods like electronics, furniture, and clothing are usually taxable, though some states exempt clothing or tax it only above a price threshold.
  • Groceries (unprepared food) are frequently exempt or taxed at a reduced rate, while prepared meals and restaurant food are typically taxable.
  • Prescription medications are exempt in most states; over-the-counter drugs are often taxable.
  • Services were historically untaxed, but many states now tax certain services like landscaping, repairs, or digital subscriptions.
  • Resale items bought for resale are exempt with a valid resale certificate, since tax is collected at the final sale.
Because exemptions differ so much, always confirm the rules for your state before assuming an item is or isn't taxable. Misclassifying goods is a frequent source of audit issues for small businesses.

Speeding Things Up with a Calculator

Once you understand the mechanics, you can save time and avoid arithmetic slips by using a sales tax calculator. Enter the price and your combined tax rate, and it instantly returns the tax amount and the total. Many calculators also let you reverse the process—plug in a tax-inclusive total to extract the pre-tax price and the tax portion.

This is especially handy for business owners running many calculations, or for shoppers comparing the true out-the-door cost of items across different jurisdictions. It removes the guesswork from rate conversion and the risk of applying the rate to the wrong base figure.

Key Takeaways

The core formula is simple: Sales Tax = Price × Tax Rate, and Total = Price × (1 + Tax Rate). Always convert the percentage to a decimal first by dividing by 100.

To back tax out of an inclusive total, divide by (1 + Tax Rate) rather than multiplying—multiplying the total by the rate overstates the tax.

Rates stack across jurisdictions: combine state, county, city, and special district rates into one combined rate, then apply that single rate to the price.

Taxability varies by state: groceries, prescriptions, and resale goods are often exempt, while tangible goods and many services are taxable—always verify local rules.

A calculator saves time and reduces errors, handling both forward calculations and reverse (back-out) scenarios instantly across different rates.

Calculating sales tax comes down to one reliable formula plus a clear understanding of which rate applies and what's taxable. Master those, and whether you're checking a receipt or pricing products nationwide, you'll get accurate numbers every time—and a good calculator will handle the heavy lifting so you can focus on the decisions that matter.

Looking for a calculator?

Calculator Collection has 4,000+ free calculators. Browse all calculators →