How to Calculate Sales Tax on Your Purchase
Sales tax is a percentage added to the price of goods or services at checkout, and the rate depends on where you live and what you're buying
When you buy something in a store or online, the price tag often shows only the base cost. Sales tax gets added on top of that at the register or during checkout. The amount you owe depends on three things: the item's price, your location's tax rate, and whether that item is taxable in your state. Some states have no sales tax at all. Others charge different rates for different items — groceries might be taxed differently than clothing, for example.
The math itself is straightforward: multiply the item price by the tax rate, then add the result to the original price. But knowing which rate applies to you requires understanding your state's rules and, sometimes, your city's rules too.
Key Takeaways
- Sales tax rates vary by state and city, ranging from zero in some states to over 10% when state and local taxes combine.
- To calculate tax on a purchase, multiply the item price by the tax rate as a decimal (for example, 7% becomes 0.07), then add that amount to the original price.
- Some items are exempt from sales tax in most states, including unprepared food, prescription medications, and medical equipment, though rules differ by state.
- Online purchases are subject to sales tax in your state if the seller has a physical presence there or meets your state's economic nexus threshold.
- Your state's Department of Revenue website lists the exact tax rate for your address, since rates can differ between cities and counties.
How to do the math for a single item
Start with the item's price before tax. Let's say you're buying a shirt for $40 in a state with a 7% sales tax rate.
Convert the percentage to a decimal by dividing by 100. Seven percent becomes 0.07. Multiply the item price by this decimal: $40 × 0.07 = $2.80. That's your sales tax. Add it to the original price: $40 + $2.80 = $42.80. That's your total cost at checkout.
If you're buying multiple items, add up all the prices first, then multiply the total by the tax rate. A $40 shirt and a $30 pair of pants cost $70 together. At 7% tax: $70 × 0.07 = $4.90 in tax. Your total is $74.90.
Finding your state and local tax rate
Sales tax rates are not uniform across the country. Five states — Alaska, Delaware, Montana, New Hampshire, and Oregon — have no statewide sales tax. Every other state charges between 4% and 7.25% at the state level. On top of that, most cities and counties add their own local tax, which can range from less than 1% to over 3%.
Your actual rate depends on your address. Two stores in the same state might have different tax rates if they're in different cities or counties. The fastest way to find your rate is to visit your state's Department of Revenue website and enter your address or zip code. Most states have a tax rate lookup tool. You can also call the department directly, or ask a cashier at a local store what rate applies to your area.
If you're shopping online, the tax rate that applies is usually the one for the address where the item will be delivered, not where the seller is located.
Items that are usually exempt from sales tax
Not everything you buy is taxable. Most states exempt unprepared food — groceries like bread, milk, and vegetables are typically not taxed. Prepared food from restaurants and delis usually is taxed. Prescription medications are exempt in all states, but over-the-counter drugs like cold medicine are often taxed. Medical equipment prescribed by a doctor, such as wheelchairs or diabetic supplies, is usually exempt.
Clothing is taxed in most states, but a few states exempt it entirely or exempt items below a certain price. New York taxes clothing, but Pennsylvania does not. Some states exempt clothing under $110 but tax more expensive items. These rules vary widely, so check your state's Department of Revenue website if you're unsure whether a specific item is taxed.
Services are generally not subject to sales tax, though this varies by state. A haircut, car repair, or plumbing service is usually not taxed. However, some states tax certain services, so it's worth checking if you're buying something that feels like a service rather than a product.
Sales tax on online purchases
Online sellers are required to charge sales tax in your state if they have a physical presence there — a warehouse, office, or store location. They must also charge tax if they meet your state's economic nexus threshold, which is a sales volume or transaction count that triggers a tax collection requirement. Most states set this threshold at $100,000 in sales or 200 transactions per year, though the exact number varies.
If an online seller does not meet these requirements, they are not required to collect tax from you at checkout. However, you may still owe tax on that purchase — it's called use tax, and you report it on your state tax return. In practice, most people do not report use tax, but the obligation exists in most states.
When you buy from a major online retailer like Amazon, the tax is usually calculated and added at checkout based on your delivery address. Smaller sellers may not collect tax, in which case you would owe it yourself if your state requires it.
What to do if tax is not shown at checkout
If you're buying in person and the cashier does not add tax, ask about it. Some items may be exempt, or the store may be making an error. If you're buying online and no tax appears at checkout, check the seller's tax policy. Large retailers are required to collect tax in most states, so if a major seller is not charging it, contact their customer service to report it.
For small online sellers, the lack of tax collection is often legal if they do not meet your state's economic nexus threshold. In that case, the responsibility to report and pay use tax falls on you, though enforcement is rare for individual purchases.
Sales tax on specific situations
If you're buying a car, sales tax is calculated on the purchase price and paid at your state's Department of Motor Vehicles when you register the vehicle. The rate is usually your state's standard sales tax rate, though some states have a separate rate for vehicles. Trade-in value typically reduces the taxable amount — you pay tax on the difference between the new car's price and what you're trading in, not the full purchase price.
If you're buying something for resale — for example, you're a small business owner buying inventory — you can often avoid paying sales tax by providing the seller with a resale certificate. This document proves you're buying for resale, not personal use. Your state's Department of Revenue issues these certificates.
If you're buying from out of state and having it shipped to you, the tax rate that applies is the one for your delivery address, not the seller's location. This applies whether you're ordering from a catalog, a website, or calling a store in another state.
Frequently Asked Questions
Do I pay sales tax on groceries?
Most states do not tax unprepared groceries like bread, milk, vegetables, and meat. However, prepared foods from the deli counter, bakery, or hot food section are usually taxed. A few states tax all food, and some tax only certain items. Check your state's Department of Revenue website for the specific rules in your area.
Why is the total at checkout different from what I calculated?
The most common reason is that you used the wrong tax rate. Rates vary by city and county, so make sure you're using the rate for your exact location. Another reason is that some items in your purchase may be exempt from tax while others are not. If you bought groceries and a magazine together, the magazine might be taxed but the food is not.
Do I owe sales tax on items I buy out of state and bring home?
You may owe use tax on those purchases in your home state, but the responsibility is yours to report it, not the seller's. Most states have use tax laws that explore to items bought out of state. However, enforcement for individual purchases is rare. If you're buying in bulk for resale, your state is more likely to pursue use tax.
Can I get a refund of sales tax I already paid?
Generally, no. Sales tax is a final tax on the purchase. If you return an item, the store refunds the tax along with the purchase price. If you paid tax on something that turned out to be exempt, you would need to contact the store or file a claim with your state's Department of Revenue, though this is uncommon.
What's the difference between sales tax and use tax?
Sales tax is collected by the seller at the point of sale. Use tax is a tax you owe on items you buy out of state or from sellers who do not collect tax. It's meant to may support that purchases are taxed whether they happen in-state or out-of-state. You report use tax on your state income tax return, though most individual purchases are not audited.
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.