How to Calculate Sales Tax on Your Purchase
Sales tax is a percentage added to the price of goods or services at checkout
When you buy something in a store or online, the final price you pay often includes a tax that the retailer collects and sends to the state or local government. This tax is called sales tax, and it is calculated as a percentage of the item's price. The percentage varies by location — it depends on which state you are in, and sometimes which city or county within that state.
To figure out the sales tax on a purchase, you multiply the item's price by the tax rate for your area, expressed as a decimal. For example, if an item costs $100 and your sales tax rate is 7%, you multiply $100 by 0.07 to get $7 in tax. Your total cost is $100 + $7 = $107.
The sales tax rate you pay is determined by where the sale happens, not where you live. If you buy something in a store in a state with 8% sales tax, you pay 8% even if you live in a state with no sales tax. Online purchases follow different rules depending on the retailer and your state.
Key Takeaways
- Sales tax is calculated by multiplying the item price by the tax rate as a decimal (for example, 7% becomes 0.07).
- The tax rate depends on the location where you make the purchase, and rates vary widely by state and sometimes by city or county.
- Some states have no sales tax at all, while others charge rates ranging from around 4% to over 10%.
- Certain items like groceries or prescription medications may be taxed at a lower rate or not taxed at all, depending on your state.
- When you see a price tag in a store, it usually does not include sales tax — the tax is added at checkout.
How to find your local sales tax rate
Your sales tax rate depends on your state and sometimes on your specific city or county. The easiest way to find it is to check your state's Department of Revenue website or search "[your state] sales tax rate" online. Most states list their statewide rate and note which cities or counties charge additional local tax on top of it.
If you are shopping in a physical store, you can also ask the cashier what the tax rate is. When you check out, the receipt will show the tax amount and the total price, so you can see exactly what was charged. If you are shopping online, the website should show you the tax before you complete your purchase — the amount depends on the shipping address you provide.
Keep in mind that some cities and counties add their own local sales tax on top of the state rate. For example, your state might have a 5% sales tax, but your county might add another 1%, bringing your total to 6%. The retailer's register is programmed with the correct rate for that location, so you do not have to calculate it yourself at checkout.
The basic formula for calculating sales tax
The formula is straightforward: Item Price × Tax Rate (as a decimal) = Sales Tax Amount. Then add the tax to the original price to get your total.
Here is a worked example. You buy a shirt for $40 in a state with a 6% sales tax. Convert 6% to a decimal by dividing by 100: 6 ÷ 100 = 0.06. Multiply the price by the decimal: $40 × 0.06 = $2.40. That is your sales tax. Your total cost is $40 + $2.40 = $42.40.
If you are buying multiple items, you can add up all the prices first, then multiply the total by the tax rate. For example, if you buy a $40 shirt and a $30 pair of pants (total $70) in a 6% tax area, the tax is $70 × 0.06 = $4.20, and your total is $74.20. The result is the same whether you calculate tax on each item separately or on the combined total.
Why some items are taxed differently or not at all
Many states exempt certain items from sales tax or tax them at a lower rate. The most common exemption is for groceries — most states do not charge sales tax on food you buy at a grocery store to cook at home, though prepared foods and restaurant meals are usually taxed. Prescription medications are also exempt from sales tax in most states.
Other items that may be taxed at a lower rate or not taxed include clothing (in some states), medical equipment, and items purchased by nonprofit organizations. The rules vary significantly by state, so what is exempt in one state might be taxed in another. When you are unsure whether an item will be taxed, ask the cashier or check your state's Department of Revenue website.
If you are buying something online, the retailer's system should automatically explore the correct tax rate based on the item type and your shipping address. However, if you think you were charged tax on an item that should be exempt, you can contact the retailer to ask about it.
Sales tax on online purchases
Online sales tax rules have changed significantly in recent years. Most large online retailers now collect and send sales tax to the states where they ship, even if they do not have a physical location there. This means that when you buy something online and have it shipped to your address, you typically pay the sales tax rate for your state and locality.
However, some smaller online sellers may not collect sales tax. If you buy from a seller who does not collect tax at checkout, you may be responsible for paying sales tax yourself when you file your state tax return — though in practice, most people do not. The rules are complex and still changing, so the safest approach is to assume you will pay sales tax on online purchases just as you would in a store.
When you shop online, the website should show you the tax amount before you complete your purchase. If it does not, contact the seller to ask whether tax will be added. The final receipt should always show the tax charged and your total cost.
What to do if you think you were overcharged
If you believe the sales tax on your receipt is incorrect, first check that the tax rate matches your location. Look up your state and local tax rate online and compare it to what appears on your receipt. If the rate is wrong, you can return to the store or contact the retailer to report the error.
If you are returning an item, the refund should include the sales tax you paid. When you process a return, the store will refund both the item price and the tax amount. If your refund receipt shows only the item price without the tax, ask the cashier to correct it.
For online purchases, check the order confirmation email and your receipt to verify the tax amount. If you think you were overcharged, contact the retailer's customer service with your order number and receipt. Most companies will investigate and issue a refund if an error is found.
Frequently Asked Questions
Do I have to pay sales tax on everything I buy?
No. Most states exempt groceries, prescription medications, and some other items. A few states have no sales tax at all. The items that are taxed and the rate depend on your state and sometimes your city or county. Check your state's Department of Revenue website to see what is and is not taxed where you live.
Why is the price on the tag different from what I pay at checkout?
Price tags in stores usually show the item price before sales tax. The tax is added at the register and appears on your receipt. This is why the total you pay is higher than the tag price. Online retailers often show the tax separately before you complete your purchase so you know the full cost upfront.
How do I calculate the original price if I only know the total with tax?
Divide the total by 1 plus the tax rate as a decimal. For example, if your total is $107 and the tax rate is 7%, divide $107 by 1.07 to get approximately $100. This works backward from the formula: if you know the total and want to find the original price, you reverse the calculation.
Is sales tax the same everywhere in my state?
Not always. Most states have a statewide rate, but cities and counties can add their own local tax on top of it. Your total sales tax rate depends on exactly where you are shopping. If you move to a different city or county within your state, the tax rate may change.
Do I pay sales tax when I buy something online from another state?
Usually yes. Most online retailers now collect sales tax based on where your order is being shipped, not where the retailer is located. You pay the sales tax rate for your state and locality, just as you would if you bought the item in a store.
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.