Get 80% off your plan for your first 3 months*
Guide

How to calculate sales tax

Learn the sales tax formula and how to apply it to your business transactions.

Two small business owners calculating sales tax with Xero

Written by Lena Hanna—Trusted CPA Guidance on Accounting and Tax. Read Lena's full bio

Published Wednesday 27 May 2026

Table of contents

Key takeaways

  • To calculate sales tax, multiply the item price by the tax rate as a decimal. Add that amount to the original price for the total cost.
  • Your combined tax rate includes both state and local components. Rates vary by location and can change throughout the year, so check them regularly.
  • Selling across multiple states means tracking different tax laws, exemptions, and nexus rules for each location.
  • Automating sales tax calculations with accounting software can help reduce manual errors, apply current rates, and keep your business compliant.

What is sales tax and why does it matter to your business?

Sales tax is a consumption tax that state and local governments add to the price of goods and services at the point of sale. As a small business owner, understanding how sales tax works helps you stay compliant and avoid costly penalties.

Your business acts as a tax collector on behalf of the government. You charge sales tax on qualifying purchases and collect it from your customers. Then you remit it to the correct tax authority on a set schedule.

Not everything is taxable. Tax exemptions vary by state but commonly include groceries, prescription medications, and certain clothing items. If you sell exempt products, keep documentation such as resale or exemption certificates on file.

Sales tax also applies to online transactions when you have nexus (a business presence) in a state. Nexus can be physical, such as a storefront or warehouse, or economic, based on your sales volume in that state.

Sales tax calculation formula

Calculating sales tax is a straightforward 2-step process. You find the tax amount first, then add it to the original price.

Here are the formulas you need:

  • Sales tax amount = item price x sales tax rate (as a decimal)
  • Total cost = item price + sales tax amount

Before using these formulas, convert the tax percentage to a decimal by dividing it by 100. For example, a 7% sales tax rate becomes 0.07. A 6.25% rate becomes 0.0625.

How to calculate sales tax step by step

Follow this simple 3-step process to calculate sales tax on any transaction.

1. Find the sale price

Start with the price of the product or service before any taxes are applied. This is the base price your customer pays for the item itself. If you offer discounts or promotions, apply those first to get the adjusted sale price.

2. Apply the correct tax rates

Look up the combined tax rate for the location where the sale takes place. Combined rates include both the state rate and any local taxes from cities, counties, or special districts. For example, Texas rates can reach 8.25% when local taxes are added to the 6.25% state rate.

In New York, a business pays a 4% state rate plus a local rate that varies by location. Similarly, California businesses combine a state base rate with district taxes that differ by county.

3. Calculate the total sales tax

Convert the combined tax rate to a decimal by dividing it by 100. Multiply the sale price by the decimal rate to get the tax amount. Then add the tax amount to the sale price for the total cost.

For example, on a $50 item with a combined 8.25% tax rate: $50 x 0.0825 = $4.13 in sales tax. The total cost is $50 + $4.13 = $54.13.

How to calculate sales tax from a total price

Sometimes you need to work backward from a total price to find the original sale price and the tax amount. This is called a reverse sales tax calculation. It comes up when receipts show only the total or when you set tax-inclusive prices.

Use this formula to separate the sale price from the total:

  • Sale price = total price / (1 + tax rate as a decimal)
  • Sales tax amount = total price - sale price

Here is how it works step by step:

  1. Convert the tax rate to a decimal. For example, 6% becomes 0.06.
  2. Add 1 to the decimal rate: 1 + 0.06 = 1.06.
  3. Divide the total price by that number. For a $53 total: $53 / 1.06 = $50.
  4. Subtract the sale price from the total to find the tax: $53 - $50 = $3 in sales tax.

This reverse calculation is useful for verifying receipts, reconciling your records, or setting tax-inclusive prices for your customers.

Example sales tax calculations

Seeing real numbers helps make the formulas click. Here are a few practical examples at different tax rates.

Here is an example with a 6.5% combined tax rate on a $100 sale. First, convert the percentage to a decimal: 6.5% / 100 = 0.065. Then calculate the tax: $100 x 0.065 = $6.50. Finally, add the tax to the price: $100 + $6.50 = $106.50 total.

Here are more examples at commonly used rates:

  • $250 item at 7% tax: $250 x 0.07 = $17.50 tax, for a total of $267.50
  • $75 item at 8.875% tax: $75 x 0.08875 = $6.66 tax, for a total of $81.66
  • $500 item at 4% state tax plus 4.5% local tax (8.5% combined): $500 x 0.085 = $42.50 tax, for a total of $542.50

Notice how small differences in tax rates add up on higher-priced items. Always use the exact combined rate for your location to avoid under-collecting or over-collecting.

Sales tax rates by state and locality

Sales tax rates vary by state and locality across the United States. The rate you charge depends on where the sale takes place. Most states set a base rate, and cities, counties, or districts may add local taxes on top.

A table comparing sales tax by state

Here is how state and local components work together:

  • State tax: a base rate set by the state government that applies statewide
  • Local tax: additional rates imposed by cities, counties, or special taxing districts
  • Combined rate: the state rate plus all applicable local rates, which is the total you charge customers

5 states have no state-level sales tax. These are sometimes called the NOMAD states:

  • Alaska (some local jurisdictions still charge local sales tax)
  • Delaware
  • Montana
  • New Hampshire
  • Oregon

If you sell in multiple states, you need to track the correct rate for each location. In 2025 alone, there were 681 combined sales tax rate changes across the US. That included 12,414 new and updated tax jurisdictions at the city, county, district, and state levels. You can find current state and average combined sales tax rates on the Tax Foundation site.

Common sales tax mistakes to avoid

Even small sales tax errors can lead to penalties, audits, or unhappy customers. Here are the most common mistakes small business owners make and how to avoid them.

  • Using the wrong tax rate: always use the combined state and local rate for the location where the sale happens, not your business address. Rates change frequently, so verify them before each filing period.
  • Missing nexus thresholds: if your sales in a state cross that state's economic nexus threshold, you must register and start collecting tax there. Track your sales by state so you know when you reach these limits.
  • Failing to update rates on time: tax rates can change multiple times a year. Set a quarterly reminder to review your rates, or use software that updates them automatically.
  • Misclassifying products or services: some items are taxable in one state but exempt in another. Check the tax rules for each product category in every state where you sell.
  • Keeping poor records: incomplete records make filing harder and increase your risk during an audit. Save all invoices, receipts, exemption certificates, and tax filings in an organized system.

Catching these mistakes early saves you time, money, and stress at tax time. Consider consulting a tax professional or accountant if your sales tax situation is complex.

Who needs to collect sales tax?

Whether you need to collect sales tax depends on where and how you sell. The key concept is nexus, which means having a sufficient business connection to a state.

There are 2 main types of nexus that trigger a sales tax collection requirement:

  • Physical nexus: you have a physical presence in the state, such as a store, office, warehouse, or employees working there
  • Economic nexus: you exceed a state's sales threshold, typically $100,000 in revenue or 200 transactions per year, even without a physical presence
  • Marketplace nexus: some states require marketplace facilitators like Amazon or Etsy to collect and remit sales tax on behalf of sellers using their platforms

Online sellers should pay close attention. The 2018 South Dakota v. Wayfair Supreme Court decision changed the landscape. Most states can now require out-of-state sellers to collect sales tax once they meet economic nexus thresholds.

If you are unsure about your obligations, check each state's tax department website or consult a tax advisor. Failing to collect when required can result in back taxes, interest, and penalties.

Simplify your sales tax calculations with Xero Accounting Software

Managing sales tax manually takes time and increases the chance of errors, especially if you sell across multiple states. Automating your calculations can help you stay accurate and compliant without the extra admin work.

Xero Accounting Software integrates with Avalara and can help automate your sales tax process. This integration can automatically apply current tax rates for any location and calculate sales tax on invoices. It can also generate compliance reports showing exemptions and filing deadlines.

Whether you sell in 1 state or 20, Xero Accounting Software can help simplify your sales tax workflow. Get one month free and see how much easier managing your business finances can be.

FAQs on calculating sales tax

Here are answers to frequently asked questions about calculating sales tax for your business.

What's the difference between state and local sales taxes?

State sales tax is a base rate set by the state government that applies uniformly across the entire state. Local sales tax is an additional rate imposed by cities, counties, or special districts. Your customers pay the combined total of both.

How often should I update my sales tax rates?

Review your rates at least once per quarter. In the first half of 2025, states made 408 sales tax rate changes, a 24% increase over the same period in 2024. Xero Accounting Software with Avalara integration can update rates automatically.

What happens if I collect the wrong sales tax amount?

Under-collecting means your business is liable for the difference, plus potential penalties and interest. Research from Anrok found that non-compliant businesses lose an average of 4.3% of revenue to penalties and fines. In high-tax states like New York, that figure rises to over 11%.

How do I handle sales tax for tax-exempt products or services?

First, check whether your products or services qualify for an exemption in each state where you sell. Collect and store the required documentation, such as resale certificates or exemption certificates, and keep them on file in case of an audit.

Do I have to collect sales tax on my online transactions?

You must collect sales tax in any state where you have nexus. Many states now enforce economic nexus laws, which means you may need to collect tax even without a physical presence if your sales exceed a certain threshold in that state.

How do I calculate sales tax for bundled products or services?

If items in the bundle have different tax rules, you may need to apply the tax rate to each item separately. Some states let you apply a single rate to the whole bundle, while others require you to itemize. Check your state's regulations to make sure you handle bundled sales correctly.

Get one month free

Sign up to any Xero plan, and we will give you the first month free.