Skip to main content

HomeAll guides

How to Calculate and Add Sales Tax to a Purchase

Sales tax is a percentage added to the price of goods or services at the point of sale

When you buy something, the store adds sales tax to your total. The tax rate depends on where you live — your state, county, or city sets the percentage. Some states have no sales tax at all. Others charge between 4% and 10%, and a few cities add an extra local tax on top of that.

The math is straightforward: multiply the price before tax by the tax rate as a decimal, then add that amount to the original price. If you see a price tag that says $20 and your sales tax rate is 8%, you multiply $20 by 0.08 to get $1.60 in tax, making your total $21.60.

Key Takeaways

  • Sales tax rate varies by state and sometimes by county or city, so you need to know the rate where you are making the purchase.
  • To find the tax amount, multiply the pre-tax price by the tax rate as a decimal (8% becomes 0.08).
  • Add the tax amount to the original price to get your final total.
  • Most checkout systems calculate this automatically, but knowing how it works helps you verify your receipt.
  • Some items like groceries or prescription medications are often exempt from sales tax, depending on your state.

Finding your local sales tax rate

Your sales tax rate depends on where the purchase happens, not where you live. If you buy something in another state while traveling, you pay that state's rate. Most states publish their sales tax rates online through the state revenue or taxation department website.

Many states have a base state rate, but cities and counties can add their own local tax on top. For example, Colorado's state rate is 2.9%, but Denver adds 3.62% more, bringing the total to 6.52%. To find your exact rate, search "[your city] sales tax rate" or call your local tax assessor's office.

The step-by-step calculation

Start with the price before tax — this is what the price tag shows. Let's say you buy a shirt for $35 and your sales tax rate is 7%.

Step 1: Convert the percentage to a decimal by dividing by 100. Seven percent becomes 0.07.

Step 2: Multiply the pre-tax price by this decimal. $35 × 0.07 = $2.45.

Step 3: Add the tax to the original price. $35 + $2.45 = $37.45. That is your final total.

If you are buying multiple items, add up all the pre-tax prices first, then multiply that total by the tax rate, then add the tax to the combined price.

Using a calculator or spreadsheet

For quick calculations, use your phone's calculator app. Enter the price, multiply by the tax rate as a decimal, and add the result to the original price. Most people do this in their head or on a calculator before checkout to see what they will actually pay.

If you are tracking expenses in a spreadsheet — for business, budgeting, or accounting — create a column for the pre-tax amount, a column for the tax rate, and a formula that multiplies them together. In Excel or Google Sheets, the formula would be something like =A1*(1+B1), where A1 is the price and B1 is the tax rate as a decimal. This adds the tax in one step.

Items that may not have sales tax

Many states exempt certain items from sales tax. Groceries — fresh produce, meat, dairy, and bread — are often tax-free, though prepared foods and snacks usually are not. Prescription medications are typically exempt in most states, but over-the-counter medicines may not be.

Clothing is tax-free in some states but taxed in others. A few states exempt children's clothing or items under a certain price. Services like haircuts, repairs, and professional fees are handled differently by each state — some tax them, some do not. When in doubt, ask the cashier or check your state's tax department website for a list of exempt items.

Why the receipt total does not match the price tag

If you add up the price tags in your cart and the receipt is higher, sales tax is the reason. Stores display the pre-tax price on the shelf, and the register adds tax at checkout. This is standard practice across the United States.

Some stores show the total-with-tax price on the shelf label, but this is not required and is less common. If you see a discrepancy on your receipt — a tax amount that does not match the rate you know — check the receipt carefully. Occasionally a cashier rings up the wrong item, or an item that should be exempt gets taxed by mistake. Most stores will correct this if you point it out before you leave.

Sales tax on online and mail orders

Online purchases are taxed based on where the item is shipped, not where you live or where the seller is located. If you order something online and it ships to your address, the seller charges your state's sales tax rate for that delivery address.

This rule applies to most major retailers. Some smaller sellers or out-of-state businesses may not collect sales tax, but you may owe it anyway when you file your taxes — this is called "use tax" and works the same way as sales tax. The tax is still calculated the same way: multiply the pre-tax price by your local rate and add it to the total.

Frequently Asked Questions

Do I pay sales tax on everything I buy?

No. Groceries, prescription medications, and some services are often exempt depending on your state. Clothing may or may not be taxed. Check your state's tax department website or ask the cashier if you are unsure whether a specific item is taxed.

What if the tax on my receipt does not match what I calculated?

Double-check that you used the correct tax rate for where you made the purchase. If the rate is right but the math is off, the cashier may have rung up a different item or quantity than you intended. Ask the store to review the receipt with you — they can usually correct it on the spot.

Is sales tax the same everywhere in my state?

No. Most states have a base rate, but cities and counties add their own local tax. Two stores in the same state can have different tax rates if they are in different cities. Search for your specific city's rate or call your local tax assessor to confirm.

How do I calculate sales tax if I am buying something out of state?

Use the sales tax rate where you are making the purchase, not where you live. If you buy something in a state with no sales tax, you pay nothing. If you buy in a state with 6% tax, you pay 6% regardless of your home state.

Can I get sales tax refunded if I return an item?

Yes. When you return an item, the store refunds both the pre-tax price and the tax. The refund appears on your receipt or credit card statement as a negative charge, reducing what you paid overall.

This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.