How to Calculate and Add Sales Tax to a Purchase
Sales tax is a percentage added to the price of goods or services at the point of sale
When you buy something in a store or online, the final price you pay often includes sales tax — a percentage that your state or local government adds to the base price. The store collects this tax and sends it to the government. Sales tax rates vary by location, ranging from zero in some states to over 10% in others when state and local taxes combine. You calculate it by multiplying the item's price by the tax rate, then adding that amount to the original price.
The math is straightforward, but the rate you use depends on where you live and sometimes where you're buying. Understanding how to calculate it yourself is useful when you're budgeting, comparing prices, or checking a receipt.
Key Takeaways
- Sales tax is calculated by multiplying the item price by the tax rate as a decimal, then adding the result to the original price.
- Sales tax rates vary by state and sometimes by county or city, so the rate in your area may differ from another location.
- Most stores include sales tax in the final price shown at checkout, so you don't have to calculate it yourself in everyday shopping.
- Some items like groceries or prescription medications are exempt from sales tax in many states, while others like clothing are taxed everywhere.
- Online purchases may or may not include sales tax depending on the seller's location and your state's rules.
The basic formula for calculating sales tax
The calculation uses three pieces of information: the item price, the sales tax rate, and straightforward multiplication. Here's the process:
Step 1: Find the item price. This is the price before tax — what the tag or listing shows.
Step 2: Find the sales tax rate for your location. This is usually shown as a percentage (like 7% or 8.5%). You can find your local rate on your state's tax authority website or by searching "[your city] sales tax rate."
Step 3: Convert the percentage to a decimal by dividing by 100. For example, 7% becomes 0.07, and 8.5% becomes 0.085.
Step 4: Multiply the item price by the decimal. For a $50 item with 7% tax: $50 × 0.07 = $3.50.
Step 5: Add the tax amount to the original price. $50 + $3.50 = $53.50 total.
Real examples of sales tax calculations
A shirt costs $40 in a state with 6% sales tax. Multiply: $40 × 0.06 = $2.40 in tax. Your total is $40 + $2.40 = $42.40.
A grocery store in a county with 8.25% tax sells milk for $3.99. Multiply: $3.99 × 0.0825 = $0.33 in tax (rounded). Your total is $3.99 + $0.33 = $4.32. Note that in many states, milk and other groceries are exempt, so you might pay only $3.99 — check your state's rules.
You buy a laptop online for $800 in a state with 7% sales tax. Multiply: $800 × 0.07 = $56 in tax. Your total is $800 + $56 = $856. However, if the seller doesn't collect sales tax, you might see only $800 at checkout, though your state may require you to pay the tax separately on your tax return.
Why sales tax rates differ by location
Sales tax is not one nationwide rate. Each state sets its own rate, and many cities and counties add their own tax on top. This means the same item can have different final prices depending on where you buy it.
For example, a state might have a 5% state sales tax, but your county adds 1% and your city adds 0.5%, bringing your total local rate to 6.5%. A neighboring county might have only 5.5%. Some states have no sales tax at all — currently Alaska, Delaware, Montana, New Hampshire, and Oregon do not tax most purchases, though some have other taxes or local exceptions.
When you shop online, the tax you owe depends on the seller's location and your state's rules. Some online retailers collect tax based on where you live; others collect based on where they ship from. This is why the same product can show different totals on different websites.
Items that are often exempt from sales tax
Not everything is taxed. Many states exempt certain items because they're considered necessities or for other policy reasons. Common exempt items include unprepared groceries (like raw vegetables and milk), prescription medications, and medical equipment. Some states exempt clothing, though others tax it.
The rules vary significantly by state. For instance, New York taxes clothing, but Pennsylvania does not. Some states tax prepared food but not groceries. If you're unsure whether an item is taxed where you live, check your state's tax authority website or ask the cashier — they know the local rules.
How to find your local sales tax rate
Your state's Department of Revenue or Tax Commission website lists the current rate for your area. Search "[your state] sales tax rate" to find the official page. You can usually enter your zip code or city name to see the exact rate, including any local additions.
Alternatively, look at a recent receipt from a store in your area. The receipt shows the tax amount and sometimes the rate. You can work backward: if an item was $100 and tax was $7, your rate is 7%.
If you're shopping in a different state or city, the store's website or a quick online search will show you the rate there. This is especially useful when comparing prices online or planning a purchase in another location.
Sales tax on online and mail orders
Online shopping complicates sales tax because the seller might be in a different state than you. The rules have changed in recent years. Large online retailers like Amazon now collect sales tax in most states, even if they don't have a physical store there. Smaller sellers may not collect tax, leaving it to you to pay when you file your tax return — though most people don't.
When you check out online, look at the order summary. It should show whether sales tax is included. If it's not, and you live in a state that taxes the item, you may owe tax on it. The amount depends on your state's rate, not the seller's location.
If you're unsure whether to expect tax on an online purchase, check the seller's tax policy or your state's rules. Most major retailers make this clear at checkout.
Frequently Asked Questions
Do I have to calculate sales tax myself when I shop?
No. Stores and online retailers calculate and add sales tax for you at checkout. The price you see at the register or in your cart total already includes tax. You only need to calculate it yourself if you're budgeting before you shop or checking whether a receipt is correct.
Why is the tax amount on my receipt different from what I calculated?
Rounding is the most common reason. When you multiply a price by a tax rate, you often get a number with many decimal places. Stores round to the nearest cent, which can make your calculation differ by a penny or two. Also, some items may be exempt from tax, which reduces the taxable total.
Is sales tax the same everywhere in my state?
No. Most states have a base rate, but cities and counties add their own tax on top. Your total rate depends on your exact location. Two towns 10 miles apart might have different rates. Check your specific zip code or city on your state's tax website to find your exact rate.
Do I pay sales tax on everything I buy?
No. Groceries, prescription medications, and some medical equipment are exempt in most states. Clothing is exempt in some states but taxed in others. Services like haircuts or car repairs are usually taxed, though rules vary. Check your state's list of exempt items if you're unsure about a specific purchase.
What if I buy something online from out of state?
You owe sales tax based on where you live, not where the seller is located. Large retailers collect this tax automatically. Smaller sellers may not, in which case you technically owe the tax to your state, though enforcement is rare for individual purchases. The seller's website should show whether tax is included in the price.
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.