The basic formula: multiply the price by the tax rate
Sales tax is calculated by taking the item's price and multiplying it by the tax rate for your location. If an item costs $100 and your sales tax rate is 8%, you multiply $100 by 0.08 to get $8 in tax. The total you pay is $100 + $8 = $108.
The tax rate varies by state and sometimes by county or city within that state. Some states have no sales tax at all. Others range from around 4% to over 10%. When you shop online or in a store, the cashier or checkout system does this calculation automatically — but understanding how it works helps you budget and spot errors on receipts.
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.
- Tax rates vary by state and sometimes by county or city, so the same item costs different amounts in different places.
- Some items are tax-exempt in most states, including groceries, prescription medications, and clothing in certain states.
- When multiple items are in your cart, you can calculate tax on each item separately or on the subtotal — the result is the same.
- Online retailers must now collect sales tax in most states, even if they have no physical location there.
Converting a percentage to a decimal for the calculation
The most common mistake is using the percentage number directly instead of converting it to a decimal. If your tax rate is 7%, you do not multiply by 7 — you multiply by 0.07. To convert any percentage to a decimal, divide by 100 or move the decimal point two places to the left.
Here are common tax rates converted to decimals:
| Tax Rate | As a Decimal |
|---|---|
| 4% | 0.04 |
| 6% | 0.06 |
| 8% | 0.08 |
| 9.5% | 0.095 |
| 10% | 0.10 |
Once you have the decimal, the math is straightforward. A $50 item in a place with 6% tax: $50 × 0.06 = $3 in tax, for a total of $53.
Calculating tax on multiple items in one transaction
When you buy several items at once, you have two ways to calculate the total tax. You can find the tax on each item separately and add them together, or you can add up all the prices first and then calculate tax on that subtotal. Both methods give you the same answer.
Example: You buy a $20 shirt, a $15 pair of socks, and a $30 pair of pants in a place with 8% tax. Method one: ($20 × 0.08) + ($15 × 0.08) + ($30 × 0.08) = $1.60 + $1.20 + $2.40 = $5.20 in tax. Method two: ($20 + $15 + $30) × 0.08 = $65 × 0.08 = $5.20 in tax. The total you pay is $65 + $5.20 = $70.20 either way.
In real stores and online checkouts, the system calculates tax on the subtotal automatically. You see the subtotal, the tax amount, and the final total on your receipt or order summary.
Tax-exempt items that do not have sales tax added
Not everything you buy is taxed. Most states do not charge sales tax on groceries, prescription medications, and medical equipment. Some states also exempt clothing, shoes, or diapers. The rules differ by state, so an item that is tax-free in one place may be taxed in another.
When you check out, the cashier or system knows which items are exempt based on the item code and your location. If you buy groceries and a magazine in the same transaction, tax is added only to the magazine. You do not need to do anything — the system handles it. If you think an item was taxed incorrectly, check your receipt against your state's tax-exempt list or ask the store.
How tax rates vary by location
Your state sets a base sales tax rate, but cities and counties can add their own tax on top of that. This is called a local sales tax. A state might have 5% tax, but your county adds 1%, so your total rate is 6%. The rate you pay depends on where the sale happens, not where you live.
If you buy something in a store, the tax rate for that store's location applies. If you order online, the tax rate for the address where the item is being shipped applies. This is why the same item might cost different amounts depending on where you buy it. You can find your local tax rate by searching "[your city] sales tax rate" or checking your state's tax department website.
Rounding and how it appears on receipts
When the tax calculation results in a fraction of a cent, stores round to the nearest cent. Most systems round 0.5 cents and above up to the next cent, and anything below 0.5 cents down. This means the tax amount on your receipt might be slightly different from what you calculate by hand, but the difference is never more than a penny per item.
If you buy one item for $19.99 with 8% tax, the exact tax is $1.5992, which rounds to $1.60. Your total is $21.59. When you buy multiple items, rounding happens on the final total, not on each item, so the difference is usually unnoticeable. If you spot a difference of more than a few cents between what you calculated and what the receipt shows, ask the store to explain it.
Sales tax on online purchases and shipping
Online retailers must now collect and send sales tax to states where they have customers, even if they have no store or warehouse in that state. The tax is calculated on the item price and, in most states, on shipping charges as well. Some states do not tax shipping, so the rules vary.
When you check out online, the system determines your tax rate based on the shipping address you provide. The tax is added to your total before you pay. You see the subtotal, the tax amount, and the final total just as you would in a physical store. If you think the tax is wrong, check that the shipping address is correct — an incorrect address can result in the wrong tax rate being applied.
Frequently Asked Questions
Do I calculate tax before or after a discount?
Tax is calculated on the price after the discount is applied. If an item is $100, you get a $20 discount, and the tax rate is 8%, you calculate tax on $80, not $100. The tax is $80 × 0.08 = $6.40, so your total is $86.40. The store's system does this automatically.
What if I buy something in one state and use it in another?
You pay the sales tax of the state where you make the purchase. If you buy a shirt in New York and move it to Florida, you do not pay Florida tax on it. Sales tax is a one-time tax at the point of sale, not an ongoing tax based on where you use the item.
How do I know if an item is tax-exempt in my state?
Your state's tax department website lists all tax-exempt items. Search "[your state] sales tax exempt items" to find the official list. Common exemptions include groceries, prescription drugs, and medical equipment, but the details vary. When you buy something, the cashier or online system applies the correct tax based on the item code and your location.
Can I get sales tax back if I overpaid?
If the receipt shows more tax than should have been charged, contact the store with your receipt. Most stores will refund the difference. Keep your receipt for at least 30 days. If you cannot resolve it with the store, contact your state's tax department for guidance on how to file a complaint.
Is sales tax the same everywhere in my state?
No. Your state has a base rate, but cities and counties add local tax on top of it. Two towns 10 miles apart might have different total rates. The tax you pay depends on where the store or shipping address is located. You can find your exact local rate by searching your city name and "sales tax rate."