Skip to main content

HomeAll guides

How to Calculate Sales Tax on Your Purchase

Sales tax is added to the price at checkout, and the amount depends on your state and sometimes your city or county

Sales tax is a percentage of the purchase price that you pay to the state or local government when you buy most goods. The tax rate varies by location — some states have no sales tax at all, while others charge as much as 10 percent or more. The rate can also change depending on what you are buying and where you are buying it. When you see a price tag in a store, that price does not include sales tax; the tax gets added when you pay.

The basic math is straightforward: multiply the price by the tax rate, then add that amount to the original price. If you buy something for $100 in a place with 7 percent sales tax, you multiply $100 by 0.07 to get $7, then pay $107 total. Most cash registers do this automatically, but knowing how to do it yourself helps you budget and spot errors on your receipt.

Key Takeaways

  • Sales tax rates range from zero percent in some states to over 10 percent in others, and can vary by city or county within the same state.
  • To calculate sales tax, multiply the item price by the tax rate as a decimal (for example, 7 percent becomes 0.07), then add that amount to the original price.
  • Different types of items are taxed differently — groceries and prescription medications are often exempt, while clothing and electronics are usually taxed.
  • Online purchases are increasingly subject to sales tax, even when shipped from out of state, depending on where you live and where the seller is located.

The basic formula for calculating sales tax

To find the sales tax amount, convert the tax rate to a decimal and multiply it by the price. A 6 percent tax rate becomes 0.06. If you are buying an item for $50, multiply $50 by 0.06 to get $3. That $3 is the tax. Your total cost is $50 plus $3, which equals $53.

For multiple items, add up all the prices first, then multiply the total by the tax rate. If you buy three items for $20, $15, and $30, your subtotal is $65. At 8 percent tax (0.08), you owe $65 times 0.08, which is $5.20 in tax. Your total is $65 plus $5.20, which equals $70.20.

If you know the total amount you paid and want to work backward to find the tax, divide the total by 1 plus the tax rate as a decimal. If you paid $107 total and the tax rate is 7 percent, divide $107 by 1.07 to get approximately $100 as the original price, meaning you paid about $7 in tax.

Sales tax rates vary by state and sometimes by city

Five states have no sales tax: Alaska, Delaware, Montana, New Hampshire, and Oregon. Every other state charges sales tax, but the rates differ. Some states charge a flat rate across the entire state — for example, Colorado charges 2.9 percent statewide. Other states allow cities and counties to add their own local tax on top of the state rate.

In California, the state rate is 7.25 percent, but many cities add an extra 0.5 to 2.5 percent, so your actual rate might be 8.5 or 9.25 percent depending on where you shop. In Texas, the state rate is 6.25 percent, but local rates can push the total to 8.25 percent or higher. When you travel or shop online, the tax rate that applies is usually the rate where the item is being delivered or picked up, not where you live.

You can find your local sales tax rate by searching online for your city and state plus "sales tax rate," or by asking a cashier. Many state revenue department websites have tax rate lookup tools where you can enter your address and see the exact rate that applies to you.

What items are taxed and what items are exempt

Most states exempt groceries and prescription medications from sales tax, though the rules vary. Some states tax prepared foods but not raw ingredients. Others tax candy and soda but not bread or milk. If you are unsure whether a specific food item is taxed, check your receipt — the taxable and non-taxable items are usually listed separately.

Clothing is generally taxed, though a few states exempt it entirely. Medical equipment like wheelchairs and hearing aids is often exempt. Gasoline is taxed in most states, but the tax is usually built into the pump price rather than added at checkout. Services like haircuts, car repairs, and plumbing are sometimes taxed and sometimes not, depending on your state.

The rules are complex and change by state, so if you need to know whether a specific purchase will be taxed, your best option is to ask the seller before you buy or check your state's revenue department website for a list of exempt items.

How sales tax applies to online purchases

Online retailers are now required to charge sales tax in most states, even if the company is located out of state. The tax rate that applies is usually the rate where the item is being shipped, not where the seller is based. If you order something online to be delivered to an address in California, you pay California's sales tax rate for that delivery address.

Some online sellers still do not charge sales tax, particularly small businesses or sellers on third-party platforms. This does not mean the purchase is tax-free — you may be responsible for paying use tax, which is a tax on items you buy out of state and bring into your state. Most people do not pay use tax voluntarily, and most states do not actively enforce it for individual purchases, but technically the obligation exists.

When you shop online, the sales tax should appear in your cart before you complete the purchase. If it does not, contact the seller to ask whether tax will be added at checkout or if you need to pay it separately.

Common mistakes when calculating or checking sales tax

One frequent error is forgetting to convert the percentage to a decimal. If the tax rate is 8 percent, you must use 0.08, not 8. Using 8 instead of 0.08 will make your calculation 100 times too large.

Another mistake is calculating tax on the tax. Some people multiply the original price by the tax rate, get a number, then multiply that number by the tax rate again. You only multiply once. The tax is a percentage of the original price, not a percentage of the tax.

A third error is assuming the tax rate is the same everywhere. If you travel between cities or states, the rate changes. Always check the rate for your current location before calculating. On receipts, verify that the tax amount shown matches your calculation — cashier errors and register mistakes do happen, though they are uncommon.

How to budget for sales tax when planning purchases

If you have a budget for a purchase, add the sales tax to your target price to find out how much money you actually need. If you want to spend $100 on a shirt and the tax rate is 7 percent, you need $107 total. Working backward, if you have $100 to spend and the tax rate is 7 percent, divide $100 by 1.07 to find that you can afford an item priced at about $93.46 before tax.

For large purchases like appliances or furniture, the tax can be significant. A $1,000 item in a place with 9 percent tax costs $1,090 total. Knowing this ahead of time prevents surprises at checkout and helps you decide whether to make the purchase now or wait.

Some states allow you to use a sales tax exemption certificate if you are buying items for business use or resale. If you own a small business, ask the seller whether you can provide a certificate to avoid paying tax on wholesale purchases. The rules for who qualifies vary by state.

Frequently Asked Questions

Do I have to pay sales tax on everything I buy?

No. Most states exempt groceries, prescription medications, and certain medical equipment. Some states also exempt clothing or services. The items that are taxed depend on your state's rules. Check your receipt to see which items were taxed and which were not.

What is the difference between sales tax and use tax?

Sales tax is charged by the seller at the point of purchase. Use tax is a tax you owe on items you buy out of state and bring into your state, if the seller did not charge sales tax. Most people do not pay use tax voluntarily, and enforcement is rare for individual purchases.

Why is the price on the tag different from the price I pay?

The tag shows the price before sales tax. Sales tax is added at checkout. The amount added depends on your location and what you are buying. If you want to know the total cost before you reach the register, multiply the tag price by your local tax rate and add it to the tag price.

Can I get a refund of sales tax if I return an item?

Yes. When you return an item, the store refunds both the item price and the sales tax you paid. The refund appears as a credit to your original payment method. Keep your receipt so you can show proof of the original purchase.

Do I pay sales tax on items I buy with a gift card?

Yes. A gift card is treated like cash — you pay sales tax on whatever you buy with it, just as you would if you paid with money from your wallet. The tax is calculated on the item price, not on the gift card balance.

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.