Contact Us
Audit Case Study
A client sales tax audit case summary
Blog
Insights, stories, and helpful resources
Sales Tax By State
Sales tax rates and rules for every U.S. state
Sales Tax Software Comparison
Compare sales tax solutions from TaxHero, Zamp, Kintsugi, and Numeral.
TaxHero vs Avalara
Compare two leading tax-automation platforms and their pros/cons

How to Calculate US Sales Tax

  • General
Learn to calculate sales tax: Multiply purchase cost by state & local rates. Discover the sales tax formula in our blog.
Knowing how to calculate sales tax properly ensures accurate budgeting and compliance with tax regulations. While using a sales tax calculator is a reliable option, understanding the formula is also necessary if you need to compute it manually.
This guide explains how to calculate US sales tax, with step-by-step instructions and practical examples for consumers and online sellers.

Key Takeaways

  • Multiply the taxable sales amount by the combined sales tax rate to calculate sales tax.
  • Combined sales tax rates include applicable state, county, city, and special district taxes.
  • Product taxability, shipping charges, exemptions, and discounts can affect the taxable amount.
  • Online sellers must determine the correct tax jurisdiction using applicable sourcing rules.
  • Businesses generally need sales tax nexus and the required registration before collecting sales tax.
  • A sales tax calculator can help determine the applicable rate and estimate the tax amount.

How is sales tax determined?

To help you calculate sales tax correctly, let’s define sales tax. Sales tax has two standard levels and a combined level. Here’s what each one covers:
  • State sales tax – Administered by the state administration. Statewide sales tax rates and rules generally apply to all localities it governs, unless there are specified exemptions.
  • Local sales tax – Imposed by the state’s local jurisdictions, such as cities, counties, and districts. Localities can also have optional taxes or special district taxes.
  • Combined sales tax rate – The combination of the state’s base tax rate and the local rates. When computing sales tax, you need the combined sales tax rate.
To calculate the combined sales tax rate, add the state, county, and city sales tax rates if the location has local sales tax rates.
The sales tax rate is also given as a percentage, but converting it to decimal format is easier for calculations. To do this, remove the % and divide the sales tax rate by 100, moving the decimal two places to the left.
For example, a 7% sales tax rate is 0.07 as a decimal.

How is US sales tax calculated?

US sales tax is calculated by multiplying the price of the goods by the state’s combined sales tax rate in decimal form. But before we jump straight to the formula, check if these 7 factors could affect your calculation: 
  • Product taxability – What’s taxable in one state may be exempt in another. Always check the taxability of the goods or services before including them in your sales tax computation.
  • Taxable shipping charges – If the product is taxable, shipping is also generally taxable. However, some states exempt shipping and handling charges if they are listed separately on the invoice. Depending on a state’s specific rule, you may or may not have to include shipping costs in your calculation.
  • Additional local sales tax – Remember that a state’s sales tax rate is not the sole basis for computing sales tax. You must also include local taxes, plus any applicable special district taxes or optional taxes. Calculating with precision is crucial to avoid inaccurate reports, so keep in mind that local taxes vary across jurisdictions.
  • Economic nexus requirements – You’re only required to collect sales tax if you meet the economic nexus threshold of a particular state. Before collecting, you must first register your business. Otherwise, you may be penalized for unlawful solicitation.
  • Qualified exemptions – Resellers or wholesalers with valid resale certificates can claim tax exemption on purchases for resale. Tax-exempt organizations may also qualify for specific sales tax exemptions. 
  • Sales tax holidays – A sales tax holiday is a state-designated period where certain goods and services are exempt from sales tax. This limited exemption and the qualified items vary across states. 
  • States without sales tax – There are five states in the US without sales tax, abbreviated as the NOMAD states. Its members are New Hampshire, Oregon, Montana, Alaska, and Delaware. While Alaska doesn’t have a statewide sales tax, its jurisdictions can impose local sales tax. When buying or selling in these states, sales tax generally doesn’t apply, except for Alaska’s local taxes.
Another situational aspect to consider when calculating sales tax is the constantly changing rules.
Basically, what may have been exempt yesterday could be subject to sales tax today.
For instance, more states are expanding their tax coverage on digital goods in 2026. A good example is Washington’s taxation of digital clothing, a.k.a. “skins” in virtual spaces, such as online video games.
So if you are buying or selling such products, first check whether your state taxes them.

Sales Tax Formula

Now that you understand the fundamentals above, it’s time to start computing. Here is the standard formula to calculate the sales tax amount for purchasing any taxable item or service:
sales tax formula | taxhero

         

Sales Tax Amount = Price of item x [State sales tax rate in decimals + Local sales tax rate in decimals]
To calculate the total purchase price, use:
Total Price = Taxable Sales Amount + Sales Tax
The taxable sales amount is the portion of a transaction subject to sales tax. It may include the product price and taxable shipping or other charges, depending on state law.
The combined sales tax rate consists of the applicable state and local rates.
For example: A location may have the following:

  • State sales tax rate: 6%
  • County sales tax rate: 1%
  • City sales tax rate: 0.5%

The combined sales tax rate is 7.5%

How to Calculate Sales Tax in 5 Easy Steps

Follow these five steps to calculate sales tax manually.
  1. First, determine the selling price of the item or service you intend to purchase. Remember the factors mentioned in the section above, and ensure the taxability is properly verified.
  2. Next, add all sales tax rates applicable at the point of sale. This refers to the state, county, and city tax rates. See the sales tax rates in different states here. For online orders, the buyer’s shipping address is the point of sale and where sales tax should be based.
  3. Now, convert the sales tax rate into decimal format. For example, California’s 7.25% sales tax rate is 0.0725 as a decimal.
  4. Calculate the sales tax amount using the formula mentioned above. That means you must multiply the price of goods by the state’s combined sales tax rate in decimal form.
  5. Finally, add the sales tax amount to the selling price of the item or service. This amount is the total that the customer will pay for your item or service.

TaxHero Sales Tax Calculator

Use the TaxHero calculator for a straightforward way to apply the sales tax formula.

 

SALES TAX CALCULATOR
0.00%
Sales tax amount = N/A
State 0.00%
County 0.00%
City 0.00%
District(s) 0.00%
The TaxHero sales tax calculator provides a combined sales tax rate based on a full address lookup. A complete address ensures precision since ZIP codes may cross different tax jurisdictions. Results are for reference and may need additional context for compliance. Contact us today for a demo and learn how TaxHero can support your business.

US Sales Tax Computation Example

The following examples demonstrate different ways to calculate sales tax.

Calculating Sales Tax on a Regular Purchase

Suppose a customer purchases a $250 item in an area with a combined sales tax rate of 7.5%.
  1. First, convert the percentage into decimal form: 7.5% ÷ 100 = 0.075
  2. Next, multiply the purchase price by the decimal rate: $250 × 0.075 = $18.75
  3. Lastly, add the tax to the original purchase price: $250 + $18.75 = $268.75
Final purchase price: $268.75

Calculating Sales Tax on an Online Order

Suppose an ecommerce business sells a taxable product for $100. The customer pays $10 for shipping.
For this example, assume the applicable jurisdiction taxes both the product and shipping charge. The combined sales tax rate is 8%.
  1. First, determine the taxable sales amount: $100 + $10 = $110
  2. Next, convert the sales tax rate: 8% ÷ 100 = 0.08
  3. Afterward, calculate the sales tax: $110 × 0.08 = $8.80
  4. Finally, calculate the total order amount: $100 + $10 + $8.80 = $118.80
Final order total: $118.80
Note that shipping charges are not taxable in every state or transaction. Always check the applicable jurisdiction’s rules before including shipping in the taxable amount.

Calculating Sales Tax from a Tax-Inclusive Total

Sometimes, a customer or business already has a total price that includes sales tax. In this situation, you can work backward to identify the original price and tax amount.
Use this formula:
Pre-Tax Price = Tax-Inclusive Total ÷ (1 + Sales Tax Rate)
Suppose a customer pays $108 for an item, including an 8% sales tax rate.
  1. First, convert the rate into decimal form: 8% ÷ 100 = 0.08
  2. Next, add 1 to the decimal rate: 1 + 0.08 = 1.08
  3. Divide the total price by 1.08: $108 ÷ 1.08 = $100
  4. Subtract the original price from the total: $108 − $100 = $8
Sales tax included: $8
This method is useful when reviewing receipts, reconciling transactions, or extracting sales tax from tax-inclusive prices.

Automatic Sales Tax Calculation in Ecommerce Platforms

Marketplace facilitators such as Amazon, eBay, and Etsy will automatically calculate and collect sales tax from customers once you complete additional steps to set up your tax settings.
As part of our all-inclusive, full-stack sales tax solution, TaxHero will help configure your tax settings in your ecommerce platforms to ensure you’re collecting the right amount for every order.
Calculate sales tax automatically with the help of sales tax software

Automatic Sales Tax Calculation for Shopify Sellers

Shopify is not a marketplace facilitator and is not required to collect and remit sales tax. However, with its new features, it now offers automatic filing features for eligible merchants and may charge a filing fee whenever you use the feature.
Alternatively, with TaxHero’s services, we can set up your Shopify store to automate your sales tax calculations and effortlessly apply the correct rates to your products. Moreover, with the right sales tax software for your ecommerce business, simplifying sales tax calculations and other compliance is attainable.

Why do you need to calculate sales tax?

State authorities require businesses to calculate sales tax. For buyers in general, they need to compute it to ensure fair collection. But for ecommerce businesses, here are the legal reasons why you need to comply: 
  • Your business has an economic nexus – The moment you establish an economic nexus in any state, you become legally required to comply with sales tax regulations. Therefore, learning how to calculate sales tax helps ensure accurate collections.
  • Filing accurate sales tax reports – Any discrepancies in your sales tax returns could be reviewed and questioned by the state authorities, leading to potential sales tax audits. The process can be lengthy and can negatively impact your business.
  • Prevent non-compliance penalties – Even when it’s an honest mistake, the law can be critical of inaccurate reports and charge you for non-compliance. In general, these penalties are often in the form of financial fees, permit revocations, or even imprisonment.
  • Support the state’s revenue for public projects – Collecting sales tax is mandatory to help fund the state’s projects, such as building new public infrastructure or starting programs that can help its citizens. Thus, calculations must be accurate to ensure fairness.
Ever wondered what happens if you don’t pay or collect sales tax? Find out here →Sales Tax Penalties and How to Avoid Them

Frequently Asked Questions

1. What is the formula to calculate sales tax?+

To calculate sales tax in the US, multiply the product price by the state’s combined sales tax rate. This is the simplified formula, but here’s a detailed breakdown example. 
Formula:
  • Price of Goods + Shipping Fee x
  • State Sales Tax Rates +
  • Local Sales Tax Rates
  • = Your Total Sales Tax
Scenario:
  • You’re selling a taxable product worth $100 with a shipping fee of $50. This brings your total sale price to $150.
  • The product was shipped to Los Angeles, California, where shipping is taxable.
    • The combined state, county, city, and other local sales tax rate in Los Angeles, California, is currently 9.50%.
  • Convert the state’s combined sales tax rate into decimal format.
    • 9.50% turned into decimal format is: 0.095
  • Now, multiply your sale price by the decimal format of the combined sales tax rate of the city, county, and state.
    • 150 x 0.0950 = $14.25
  • Finally, add everything to your base sales price to accurately collect sales tax from your customers.
    • [Product Price] $100 +
    • [Shipping Fee] $50 +
    • [Calculated Sales Tax] $14.25
    • TOTAL = $164.25
To simplify the calculation, you can also use TaxHero’sFREE Sales Tax Calculator.

2. Is USA sales tax the same as VAT?+

No, USA sales tax is not the same as VAT. The USA does not have VAT. States impose sales tax as a consumption tax at the final point of sale, whereas VAT is imposed at different stages of the transaction.

3. Is there VAT on sales to the USA?+

No, there is no VAT on sales to the USA. The USA does not have VAT. Instead, the USA imposes a different type of consumption tax known as sales tax.

4. What’s the difference between sales tax and US tax?+

States impose sales tax on the sale of taxable goods and services. Meanwhile, “US tax” could refer to different types of taxes in the USA, such as income taxes or payroll taxes. If you’re referring to “Use tax,” states impose the tax on the purchase of goods meant for storage or consumption.

5. How is sales tax calculated in the USA?+

In the USA, businesses calculate sales tax using a simple formula. In general, the formula involves multiplying the product’s price by the state’s combined sales tax rate. Keep in mind that sales tax rates vary across states. Therefore, you need to double-check your calculations.

Need help calculating sales tax? Let TaxHero do the math

As an online business, you can find that calculating sales tax for every transaction and ensuring you collect all sales tax due can become complicated.
TaxHero offers an all-inclusive, full-stack sales tax solution by handling your sales tax calculation, collection, filing, and all other functions. Talk to our CEO to see how we can help transform your sales tax compliance.