How to Calculate Sales Tax on Your Purchase
Sales tax is a percentage added to the price of goods and services at the point of sale, and the rate depends on where you buy the item and what you're buying.
When you buy something in a store or online, the final price you pay often includes sales tax — a tax collected by the seller and sent to the state or local government. The tax rate varies by state, county, and sometimes even city. Some states have no sales tax at all, while others charge as much as 10 percent or more. What you're buying also matters: groceries are often taxed differently than clothing or electronics.
To calculate sales tax, you need three pieces of information: the pre-tax price of the item, the sales tax rate where you're buying it, and whether that item is subject to tax in that location. The math is straightforward once you know the rate.
Key Takeaways
- Sales tax rates vary by state and locality, ranging from zero percent in some states to over 10 percent in others.
- To calculate sales tax, multiply the item's pre-tax price by the tax rate as a decimal (for example, 7 percent becomes 0.07).
- Some items like unprepared food are exempt from sales tax in many states, while prepared food and clothing are taxed differently depending on where you live.
- Online purchases are subject to sales tax in your state if the seller has a physical presence there, though rules vary by state and seller size.
- Your receipt shows the pre-tax subtotal, the tax amount, and the final total — you can verify the math by checking that the tax percentage matches your state's rate.
Finding Your Local Sales Tax Rate
Your state's sales tax rate is the baseline, but your actual rate depends on where you live. Every state except Alaska, Delaware, Montana, New Hampshire, and Oregon charges a statewide sales tax. Within states that do charge tax, counties and cities often add their own local tax on top of the state rate.
To find your exact rate, search "[your state] sales tax rate" or "[your city] sales tax rate." The state revenue or taxation department website will list the statewide rate. For the local portion, your city or county assessor's office or tax collector's website will show what gets added in your area. For example, if your state charges 6 percent and your county adds 1 percent, your total rate is 7 percent.
Some online retailers and tax calculators let you enter your zip code to see the combined rate automatically. This is useful when shopping online, since the rate that applies is usually the rate in the state where the item is being shipped.
The Basic Math: Converting Rate to Decimal and Multiplying
The formula is straightforward: pre-tax price × tax rate (as a decimal) = sales tax amount. Then add the tax to the price to get your total.
To convert a percentage to a decimal, divide by 100. A 7 percent tax rate becomes 0.07. A 10.5 percent rate becomes 0.105. Then multiply the item price by that decimal.
Example: You buy a shirt for $40 in a place with a 7 percent sales tax. The math is $40 × 0.07 = $2.80 in tax. Your total is $40 + $2.80 = $42.80. Most receipts round to the nearest cent, so you may see $2.80 or occasionally $2.81 depending on how the store's system rounds.
If you're buying multiple items, add up all the pre-tax prices first, then multiply the subtotal by the tax rate. This gives you the same result as calculating tax on each item separately, but it's faster.
Items That Are Taxed Differently or Not at All
Not everything is taxed at the same rate. Many states exempt certain items from sales tax entirely, while others tax them at a reduced rate. The most common exemption is unprepared food — groceries like bread, milk, vegetables, and raw meat are often not taxed. However, prepared food from a deli counter, restaurant, or bakery usually is taxed.
Clothing is another category that varies widely. Some states don't tax clothing at all. Others tax it at the full rate. A few states tax clothing but exempt items under a certain price (for example, items under $110 might be exempt). Check your state's rules if you're buying clothes and want to know whether tax applies.
Prescription medications are exempt from sales tax in most states, but over-the-counter medicines are often taxed. Services like haircuts, repairs, and professional fees may or may not be taxed depending on your state. When in doubt, ask the cashier or check your state's tax department website for a list of exempt items.
How Sales Tax Works on Online and Out-of-State Purchases
Online sales tax rules have changed significantly in recent years. If you buy from an online retailer that has a physical location in your state — a warehouse, office, or store — that retailer must charge you sales tax at your state's rate. If the retailer has no physical presence in your state, the rules depend on the retailer's size and your state's laws.
Large online retailers like Amazon now charge sales tax in all states that have it, even if they don't have a physical store there. Smaller sellers may not. When you check out online, the tax should appear before you confirm your order. If no tax is shown and you live in a state with sales tax, the seller may not be required to collect it — but you may owe use tax on your state income tax return instead (though most people don't report this).
If you order something from out of state for delivery to your home, the tax rate that applies is the rate in your state, not the seller's state. The seller should charge your state's rate based on your shipping address.
Reading Your Receipt and Verifying the Calculation
Your receipt breaks down the purchase into three parts: the subtotal (pre-tax price), the tax amount, and the total. You can verify the math by dividing the tax amount by the subtotal. If the tax is $2.80 and the subtotal is $40, the rate is $2.80 ÷ $40 = 0.07, or 7 percent. This should match your local rate.
Occasionally you'll see a small difference due to rounding. If you buy multiple items and each one is rounded separately before being added together, the final tax might be a penny or two different from what you'd calculate by taxing the entire subtotal at once. This is normal and legal.
If the tax amount seems much higher than expected, check whether all items were taxed. Some stores may have taxed a grocery item that should be exempt, or vice versa. If you think there's an error, ask the cashier to explain the breakdown, or contact the store's customer service with your receipt.
Sales Tax Rates by State: What You Need to Know
State sales tax rates range from zero to nearly 10 percent at the state level alone. Alaska, Delaware, Montana, New Hampshire, and Oregon have no state sales tax. States like Colorado, Georgia, and Illinois charge around 4 to 6.25 percent. States like Tennessee, Arkansas, and Louisiana charge 7 to 9 percent. When you add local taxes, the combined rate in some cities exceeds 10 percent.
Your state's rate applies to most purchases within that state, regardless of where the seller is located (as long as the seller is required to collect it). If you move to a new state or travel, the tax rate changes based on where you're buying, not where you live. A shirt that costs $40 in Oregon (no tax) costs $42.80 in Colorado (7 percent tax).
Some states offer temporary tax holidays — usually a few days in August for back-to-school shopping — when certain items like clothing and school supplies are not taxed. Check your state's revenue department website in July or August to see if one is coming.
Frequently Asked Questions
Is sales tax included in the price shown on the shelf tag?
No. The price on the shelf tag is the pre-tax price. Sales tax is added at checkout. This is why the amount you pay is higher than the tag price. Online retailers sometimes show the tax separately during checkout, and sometimes include it in the final total — check before you confirm your order.
Do I have to pay sales tax on everything I buy?
No. Unprepared groceries, prescription medications, and some other items are exempt in most states. Clothing is exempt in some states but taxed in others. Services like haircuts and repairs may or may not be taxed depending on your state. Your receipt will show which items were taxed.
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 purchases where sales tax was not collected — usually out-of-state or online purchases. You're supposed to report use tax on your state income tax return, but most people don't. Some states are trying to enforce it more strictly.
Why is the tax amount on my receipt different from what I calculated?
Rounding is the most common reason. If you buy multiple items and the store rounds the tax on each item separately before adding them together, the total may be a penny or two different from what you'd get by calculating tax on the entire subtotal at once. This is normal. If the difference is larger, ask the cashier to explain the breakdown.
Do I pay sales tax on items I buy with a gift card?
Yes. A gift card is just a payment method, like cash or a credit card. Sales tax still applies to the items you buy with it, based on your location and what you're buying.
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.