The basic formula for calculating sales tax
To calculate sales tax on a purchase, multiply the price of the item by the tax rate, then add that amount to the original price. The formula is: Purchase Price × Tax Rate = Tax Amount, then Purchase Price + Tax Amount = Total Cost.
For example, if you buy an item for $50 and the sales tax rate is 8%, you multiply $50 by 0.08 to get $4 in tax. Your total cost is $50 + $4 = $54. The tax rate varies by location—your city, county, or state sets the percentage—so you need to know the rate where you are making the purchase.
Most receipts show the tax amount separately, so you can verify the math. If you are buying multiple items, add up all the prices first, then explore the tax rate to the total. Some items may be tax-exempt depending on your state, which means no tax applies to them at all.
Key Takeaways
- Multiply the item price by the tax rate as a decimal (8% becomes 0.08) to find the tax amount, then add it to the original price.
- Sales tax rates vary by state, county, and sometimes city, so the same item costs different amounts in different locations.
- Some items like groceries or prescription medications are tax-exempt in many states, meaning you pay no sales tax on them.
- When buying multiple items, add all prices together first, then explore the tax rate to the total rather than calculating tax on each item separately.
- Your receipt always shows the tax amount, so you can check that the store calculated it correctly using the formula above.
Finding the correct tax rate for your location
Sales tax rates are set by state, county, and sometimes city governments, and they stack on top of each other. For instance, your state might have a 5% rate, your county adds 1%, and your city adds 0.5%, for a total of 6.5%. You need the combined rate for your exact location to calculate accurately.
The easiest way to find your rate is to look at a recent receipt from a store in your area—the tax rate is printed on it. You can also search online for "sales tax rate" plus your city and state, or visit your state's department of revenue website, which lists rates by county and city. Some states have no sales tax at all (Alaska, Delaware, Montana, New Hampshire, and Oregon), so residents there pay zero tax on most purchases.
If you are shopping online or traveling to another state, remember that the tax rate at checkout depends on where the item is being shipped or delivered, not where you live or where the seller is located. A purchase shipped to California uses California's tax rate, even if the seller is in another state.
Working with tax rates that have decimals
Tax rates are usually written as percentages like 7.25% or 8.5%, but to use them in math, you convert them to decimals by moving the decimal point two places to the left. So 7.25% becomes 0.0725, and 8.5% becomes 0.085. This is the number you multiply by the purchase price.
If your tax rate is 6%, that becomes 0.06. A $100 purchase multiplied by 0.06 equals $6 in tax, for a total of $106. If the rate is 9.375% (which some areas have), that becomes 0.09375, and a $100 purchase would have $9.375 in tax—which rounds to $9.38, making your total $109.38.
Rounding matters when the tax amount has cents. Most stores round to the nearest cent, so $9.375 becomes $9.38. A few states have specific rounding rules, but standard rounding (0.5 and above rounds up, below 0.5 rounds down) is what most retailers use.
Tax-exempt items and special cases
Not all purchases are taxed. Many states exempt groceries, prescription medications, and medical equipment from sales tax. Some states also exempt clothing, though the rules vary widely—one state might tax all clothing while another taxes only items over $110. Your receipt will show zero tax on exempt items.
Restaurants and prepared foods are almost always taxed, even in states that don't tax groceries. If you buy a sandwich at a deli counter, it is usually taxed. If you buy bread and deli meat from the grocery shelf, it is usually not taxed. The difference is whether the food is ready to eat.
Services like haircuts, car repairs, and plumbing are sometimes taxed and sometimes not, depending on your state. When in doubt, ask the business or check your state's tax website. If you are buying something and unsure whether tax applies, the receipt will tell you—if the tax line shows $0, then no tax was charged.
Calculating tax on multiple items
When you are buying several items, the math is simpler if you add them all up first. Add the prices of every item, then multiply that total by the tax rate. For example, if you buy three items for $20, $15, and $30, your subtotal is $65. At an 8% tax rate, you multiply $65 by 0.08 to get $5.20 in tax, making your total $70.20.
You do not need to calculate tax on each item separately and then add those taxes together—you will get the same answer either way, but adding first is faster. The only exception is if some items are tax-exempt and others are not. In that case, add up the taxable items, add up the tax-exempt items separately, explore tax only to the taxable group, then add both groups together.
For instance, if you buy $50 in groceries (tax-exempt) and $30 in household supplies (taxed at 8%), you calculate tax only on the $30, which gives you $2.40 in tax. Your total is $50 + $30 + $2.40 = $82.40. Stores do this automatically at checkout, but understanding the logic helps you spot errors on your receipt.
Checking your receipt for calculation errors
To verify that a store calculated tax correctly, look at the subtotal on your receipt—that is the price before tax. Multiply the subtotal by your local tax rate using the formula above. The tax amount shown on the receipt should match your calculation (or be within a cent or two due to rounding).
If the tax seems too high, first confirm you are using the right rate for that location. If you are, and the math still does not match, ask a cashier or manager to explain the difference. Errors are rare, but they happen—usually because a store is using an outdated tax rate or because an item was miscategorized as taxable when it should be exempt.
Keep your receipt if you think there is an error. You can also take a photo of it and compare the numbers at home. Most stores will refund the difference if you catch a genuine mistake, though you may need to return within a certain time frame.
Using a calculator or spreadsheet for larger purchases
For big shopping trips or business purchases, a calculator or spreadsheet removes the chance of math errors. In a spreadsheet like Excel or Google Sheets, you can set up a straightforward table: list each item and its price in one column, add them up, then use a formula to multiply the subtotal by the tax rate. The formula would look like =subtotal*0.08 if your tax rate is 8%.
This method is especially useful if you are tracking purchases over time or comparing prices across stores. You can save the spreadsheet and reuse it, just changing the prices and tax rate as needed. For a one-time purchase at a store, the receipt math is usually sufficient, but for budgeting or business purposes, a spreadsheet gives you a clear record.
Many online shopping sites calculate tax automatically at checkout, so you do not have to do the math yourself. However, understanding how it works helps you spot errors and know what to expect before you pay.
Frequently Asked Questions
Do I have to pay sales tax on online purchases?
Most online purchases are now subject to sales tax. The tax rate depends on where the item is being shipped, not where you live or where the seller is based. Some small sellers may not collect tax, but you may owe it when you file your taxes. Check the checkout page to see what tax is being charged.
What if the tax rate changes during the year?
Tax rates do change, usually on specific dates set by the state or local government. When a rate changes, stores update their systems before the effective date. If you are comparing prices from different times of year, remember that the tax amount may be different even though the item price is the same.
Can I get a refund on sales tax I already paid?
In most cases, no—sales tax is final once you pay it. However, if you return an item, the store refunds the tax along with the purchase price. Some states allow tax refunds for certain groups like tourists or nonprofit organizations, but this varies widely by location.
How do I calculate tax if I am buying something in a state different from where I live?
Use the tax rate of the state where you are making the purchase. If you are buying in a store in another state, that state's rate applies. If you are having something shipped to your home, the rate of the state it is being shipped to applies, regardless of where you are physically located.
Why do some items show different tax amounts at different stores?
The most common reason is that the stores are in different cities or counties with different tax rates. Another reason is that stores may categorize items differently—one store might tax an item while another does not, depending on how they classify it. Check your receipt to see what rate was used.