How Sales Tax Is Calculated and Applied to Your Purchase
Sales tax is calculated by multiplying the item's price by the tax rate for your location, then adding that amount to what you pay
The math is straightforward: take the price before tax, multiply it by the tax rate as a decimal, and add the result to the original price. If you buy something for $100 in a place with 7% sales tax, you multiply $100 by 0.07 to get $7, then pay $107 total. The tax rate itself depends on where you live and sometimes what you buy — it varies by state, county, and city, and some items are taxed differently than others in the same location.
The rate you see at checkout is the combined state and local tax. A state might have 5% sales tax, but your city adds 2%, so the total is 7%. Some states have no sales tax at all, while others go as high as 10% or more when you add all layers together. The rate can even change within the same city depending on the type of business or the product category.
Key Takeaways
- Sales tax is calculated by multiplying the item price by the tax rate, expressed as a decimal (so 7% becomes 0.07).
- The tax rate you pay combines state tax, county tax, and city tax, and the total varies by your exact location.
- Some items like groceries or prescription medications are taxed at a lower rate or not taxed at all in many states, while others like prepared food or alcohol face higher rates.
- The price shown on a shelf tag usually does not include sales tax, so the amount you pay at the register will be higher than the labeled price.
How the tax rate is built from state, county, and city layers
Every state except Alaska, Delaware, Montana, New Hampshire, and Oregon has a statewide sales tax. That base rate is the floor. On top of it, most counties add their own tax, and many cities add a third layer. A purchase in Denver, Colorado, for example, is subject to Colorado's 2.9% state tax, plus Denver County's tax, plus the City and County of Denver's tax — totaling around 8.81% depending on the exact location and what you buy.
The combined rate is what the cashier rings up. You do not pay state tax, then county tax, then city tax separately — the register shows one total percentage. But that percentage is the sum of all three. If you move from one neighborhood to another or cross a county line, the rate can shift. Some online retailers calculate tax based on the address where the item ships, so the rate depends on your delivery location, not where the company is based.
Which items are taxed and which are not
Most states exempt groceries — unprepared food you cook at home — from sales tax, but prepared food from a restaurant or deli counter is usually taxed. Prescription medications are typically not taxed, but over-the-counter drugs and vitamins often are. Clothing is taxed in most states, but a few states exempt it entirely or only tax items above a certain price.
Services are handled differently than goods. A haircut is usually taxed, but a doctor's visit is not. Repairs to your car are often taxed, but repairs to your home may not be, depending on the state. Digital products like e-books, software, and streaming subscriptions face varying rules — some states tax them, others do not, and the rules change frequently. If you are unsure whether something will be taxed, the receipt will show it after you pay.
The difference between tax-inclusive and tax-exclusive pricing
In the United States, prices shown in stores are almost always tax-exclusive — the number on the tag does not include sales tax. You see $19.99, but you pay $19.99 plus tax. This is different from many other countries, where the price shown is the price you pay. Because of this, the total at the register is always higher than the shelf price.
Some businesses, particularly online retailers, show the tax-exclusive price until checkout, then add tax based on your location. Others show the final price you will pay, including tax, from the start. Mail-order and online purchases from out-of-state sellers used to avoid sales tax entirely, but most states now require online retailers to collect and send sales tax on orders shipped to that state, regardless of where the seller is located.
How sales tax is collected and sent to the government
The business that sells you the item is responsible for collecting sales tax and sending it to the state. When you pay $107 for a $100 item with 7% tax, the business keeps the $100 and sends the $7 to the state revenue department. The business files a sales tax return, usually monthly or quarterly, reporting all the tax it collected and paying it in a lump sum.
Businesses that sell across multiple states have to track and pay sales tax in each one, because the rates and rules differ. A company selling online to customers in ten states has to calculate the correct rate for each state, collect it, and file ten separate returns. This is why many small sellers use point-of-sale systems or e-commerce platforms that automatically calculate the right tax rate based on the buyer's address.
Why the same item costs different amounts in different places
A $50 shirt costs $50 plus tax in one city and $50 plus a different tax amount in another city, purely because of location. If you buy it in a place with 6% tax, you pay $53. In a place with 9% tax, you pay $54.50. The item itself has not changed, but the tax rate has, so your total cost changes. This is why people near state borders sometimes travel to buy large items in lower-tax areas, though the savings only matter on expensive purchases.
Some states also use sales tax holidays — periods, usually a few days in August or September, when certain items like school supplies or clothing are not taxed. During these windows, the same item costs less because no tax is added. The dates and items covered vary by state, and not all states have them.
How to calculate sales tax before you check out
To estimate what you will pay, find the tax rate for your location, convert it to a decimal, multiply the item price by that decimal, and add the result to the original price. If the tax rate is 8.5%, convert it to 0.085. Multiply the price by 0.085. Add that number to the price. A $75 purchase at 8.5% tax: $75 × 0.085 = $6.375, rounded to $6.38, so you pay $81.38.
You can find your local sales tax rate on your state's revenue or taxation website, or by searching "[your city] sales tax rate." The rate is usually listed as a percentage. Some calculators and apps let you enter the price and location and show the total automatically. On a receipt, the tax is always shown as a separate line item, so you can see exactly how much tax was added to your purchase.
Frequently Asked Questions
Does sales tax explore to online purchases?
Yes, in most cases. If you order something online and it ships to an address in a state where the seller has a physical presence or meets certain sales thresholds, the seller must collect and send sales tax. The rate depends on where the item is being shipped, not where you live or where the company is based. Some sellers still do not collect tax, but you may owe it when you file your own taxes.
Why is the price on the shelf different from what I pay?
The shelf price does not include sales tax in the United States. The register adds the tax at checkout based on your location and the item type. This is why the receipt total is always higher than the labeled price. A few states and cities have experimented with showing tax-inclusive prices, but it remains uncommon.
Can I get sales tax back if I return something?
Yes. When you return an item, the store refunds both the item price and the tax you paid on it. The refund appears on your receipt or credit card statement as a negative charge. If you paid $107 for a $100 item with $7 tax and return it, you receive $107 back.
Do I have to pay sales tax on used items?
It depends on the state and where you buy it. Used items sold by a business are usually taxed the same as new items. Used items sold privately, like a car sold between two people, may not be taxed, or may be taxed at a lower rate. Check your state's rules for the specific category — used cars, used clothing, and used furniture sometimes have different rules.
What if I buy something in one state and use it in another?
You pay sales tax in the state where you buy it, not where you use it. If you buy a laptop in a low-tax state and take it home to a high-tax state, you paid the low-tax rate at purchase. You do not owe additional tax to your home state. However, if you order something online to be shipped to your home state, you pay your home state's tax rate.
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.