How to Calculate Sales Tax: Formula and Steps

To calculate sales tax, multiply the item’s taxable price by the sales tax rate. If a product costs $50 and the combined sales tax rate is 8%, the tax is $4, making the total $54. The math is straightforward, but knowing which rate to use, which items are taxable, and how to handle multiple tax layers requires a bit more understanding.

The Basic Sales Tax Formula

Every sales tax calculation uses the same two-step formula:

  • Sales Tax = Taxable Price × Sales Tax Rate
  • Total Cost = Price + Sales Tax

Start by converting the tax rate from a percentage to a decimal. Divide the rate by 100, then multiply by the item price. A 7.5% rate becomes 0.075. On a $200 purchase, that gives you $200 × 0.075 = $15 in tax, for a total of $215.

If you need to work backward from a receipt that shows only the total and the tax rate, divide the total by 1 plus the decimal tax rate. For that same 7.5% rate, divide the total by 1.075 to find the pre-tax price.

How State, County, and Local Rates Stack

Most shoppers see a single tax rate on their receipt, but that number is usually a combination of multiple layers. A state imposes its own rate, and then a county, city, or special purpose district (like a transit authority or stadium district) may add additional percentages on top. These layers are collected together as one combined rate.

When calculating tax in an area with multiple layers, combine all the rates first, then multiply once. If your state rate is 6%, the county adds 1%, and the city adds 0.5%, the combined rate is 7.5%. Multiply the purchase price by 0.075 and you have your total tax. You don’t need to calculate each layer separately unless you’re filing tax returns as a business.

Combined rates vary widely depending on where you are. Some areas have no local additions to the state rate, while others stack several layers that push the combined rate above 10%. You can look up the exact combined rate for any address through your state’s tax authority website or a free rate-lookup tool online.

Which Items Are Actually Taxable

Not everything you buy is subject to sales tax, and the rules differ by state. Getting the calculation right starts with knowing whether the item is taxable in the first place.

Groceries are a common area of confusion. Many states exempt unprepared food (the items you’d buy at a grocery store and cook at home) but tax prepared food, candy, and soft drinks. Prescription medications and medical devices are exempt in most states. Clothing is taxable in the majority of states, though a handful exempt it entirely or exempt items below a certain price.

Digital goods get complicated. Electronically delivered products like ebooks, downloaded software, mobile apps, and digital images are not taxable in some states because no physical product changes hands. However, if the seller provides a physical copy alongside the digital transfer, such as a backup on a flash drive or a printed version, the entire sale may become taxable. The distinction often comes down to whether a tangible item is involved.

Services follow a similar patchwork. Some states tax a broad range of services (landscaping, auto repair, dry cleaning), while others tax almost none. If you’re unsure whether a specific purchase is taxable, your state’s department of revenue publishes lists of taxable and exempt categories.

Calculating Tax on Discounted or Bundled Items

When an item is on sale, you calculate tax on the discounted price, not the original sticker price. If a $100 jacket is marked down to $70, you owe tax on $70. The same applies to manufacturer coupons and store discounts applied before checkout.

Rebates work differently. A mail-in rebate refunds money after the transaction, so tax is calculated on the full price you pay at the register. You don’t get the tax back when the rebate check arrives.

Bundled purchases that combine taxable and non-taxable items can go either way. Some states tax the entire bundle if any part of it is taxable, while others let the seller split the price and tax only the taxable portion. If you’re selling bundled products, check your state’s rules on how to handle the split.

Sales Tax When Selling Online

If you sell products online, calculating sales tax depends on where your customer is located, not where your business sits. You charge the combined rate for the buyer’s shipping address.

For sellers using platforms like Amazon, Etsy, or similar marketplaces, the platform itself is typically required to calculate, collect, and remit sales tax on your behalf. These marketplace facilitator laws now exist in nearly every state that has a sales tax. The platform handles the math and sends the tax to the state, so individual sellers on those platforms generally don’t need to calculate or remit tax for those sales. If you sell through your own website, though, the responsibility falls on you.

Businesses selling directly to customers need to determine where they have a tax obligation, sometimes called “nexus.” This can be triggered by having a physical presence in a state or by exceeding a sales threshold (commonly $100,000 in annual sales or 200 transactions in a state). Once you cross that threshold, you must register with the state, collect tax at the buyer’s local rate, and file returns on the state’s schedule.

Tools That Do the Math for You

For a quick personal calculation, any calculator works. Multiply the price by the decimal rate, add the result to the price, and you have your total. Most smartphone calculator apps can handle this in seconds.

For businesses processing many transactions, manual calculation isn’t practical. Point-of-sale systems and e-commerce platforms can be configured with tax rates that update automatically. Tax automation software like Avalara, TaxJar, or the built-in tax tools in Shopify and QuickBooks pulls the correct combined rate based on the buyer’s address and applies it at checkout. These services also track which product categories are exempt in each jurisdiction, removing the guesswork from taxability decisions.

If you just need to look up a rate, your state’s tax authority website is the most reliable free source. Enter an address and it returns the exact combined rate, broken down by each taxing jurisdiction. This is especially useful if you’re buying or selling in an area where city and district taxes push the rate higher than the state base rate alone.