To add sales tax to a total, multiply the purchase subtotal by the sales tax rate (expressed as a decimal), then add that tax amount back to the subtotal. Written as a formula: Subtotal × Tax Rate = Tax, and Subtotal + Tax = Total. The arithmetic is simple. Getting the right answer depends on using the correct local rate, applying tax only to taxable items, and handling a few quirks around coupons and shipping.
The Two-Step Calculation
Start with the subtotal, the combined price of everything in the cart before tax. Convert the sales tax rate from a percentage to a decimal by dividing by 100. A rate of 8.25% becomes 0.0825. A rate of 5% becomes 0.05.
Multiply the subtotal by that decimal. If the subtotal is $150.00 and the rate is 7%, the tax is $150.00 × 0.07 = $10.50. Add it back: $150.00 + $10.50 = $160.50. That’s the total.
There’s a one-step shortcut. Multiply the subtotal by 1 plus the tax rate instead of multiplying and then adding. Using the same numbers, $150.00 × 1.07 = $160.50. Same result, one operation. It’s the faster move for mental math or a spreadsheet formula.
Rounding
When the tax lands on a fraction of a cent, round to the nearest whole cent. Most states require the tax to be calculated to three decimal places and then rounded, so $4.3849 becomes $4.38 and $4.385 rounds up to $4.39.
Finding the Right Rate
Sales tax rates in the United States are not uniform. The rate depends on where the transaction happens, and it’s almost always a combination of a base state rate and additional local levies from the county, city, or a special district. Base state rates range from 2.9% to 7.25%, and local additions can push combined rates several percentage points higher.
The reliable way to find the exact rate is your state’s department of revenue website. Most offer an address lookup that returns the combined rate for that specific location. That precision matters, because the rate can change across a city line. A store two miles down the road may sit in a different tax jurisdiction than the one closest to you.
Five states have no statewide sales tax: Alaska, Delaware, Montana, New Hampshire, and Oregon. Alaska still allows local governments to impose their own sales taxes, so some Alaskan cities and boroughs do charge one.
When the Cart Mixes Taxable and Exempt Items
Not everything is taxable. Most states exempt groceries (or tax them at a reduced rate), prescription medications, and certain medical supplies. Some also exempt clothing, diapers, and feminine hygiene products. The rules vary, so a bag of chips might be taxable in one state and exempt in another depending on how prepared food is defined versus grocery staples.
When a cart mixes taxable and exempt items, apply the tax rate only to the taxable portion. Sort the items into two groups, total each group, then calculate tax on the taxable subtotal alone. Add the tax to the combined subtotal of both groups.
For example: $40 of groceries (exempt) plus $25 of cleaning supplies (taxable) at a 6% rate. Tax is $25.00 × 0.06 = $1.50. Total is $40.00 + $25.00 + $1.50 = $66.50. The groceries pass through untaxed.
Receipts usually flag exempt items with a different code so you can check that the store split them correctly. If something looks off, the item categories defined by your state’s department of revenue are the final word on what qualifies.
Discounts, Coupons, and Shipping
A store discount or store-issued coupon reduces the price the retailer actually receives, so tax is calculated on the lower price after the discount. A $50 shirt marked 20% off is taxed on $40.
Manufacturer coupons work differently in most states. Because the manufacturer reimburses the store for the coupon’s value, the store technically receives the full price, so tax is calculated on the original price before the coupon reduction. Use a $5 manufacturer coupon on a $30 item and you’ll typically owe tax on the full $30, even though you only pay $25 out of pocket. A handful of states treat both kinds of coupons the same, but the manufacturer-coupon rule catches people off guard in most places.
Shipping adds another wrinkle. Whether it’s taxable depends on state rules and how the charge appears on the invoice. In many states, a shipping charge listed separately and reflecting only the actual delivery cost is not taxable. Bundle shipping with handling into a single line item, though, and the whole charge often becomes taxable. The rules genuinely differ from state to state, so check yours if the amount is large enough to matter.
Working Backward From a Tax-Inclusive Total
Sometimes you have a receipt total that already includes tax and you need the pre-tax price, for a reimbursement, expense report, or split bill. Divide the total by 1 plus the tax rate (as a decimal).
Paid $107.00 at a 7% rate? Divide $107.00 by 1.07 to get $100.00 as the pre-tax subtotal. The tax portion is the difference: $107.00 − $100.00 = $7.00. This reverses the one-step multiplication that produced the total in the first place.
A common mistake is multiplying the total by the tax rate to find the tax. That produces a number slightly too high, because you’d be calculating tax on an amount that already includes tax. Always divide when working backward from a tax-inclusive total.
Online Purchases
The math is the same online, but the rate is based on where the item is delivered, not where the seller sits. Major marketplaces handle it automatically: every state with a sales tax now requires marketplace platforms to collect and remit tax on behalf of third-party sellers who use the platform. At checkout, you’ll see the tax calculated from your shipping address, and the marketplace forwards it to the state.
Smaller independent sellers who operate outside those platforms may not charge sales tax at all. That doesn’t erase the obligation. It shifts to you as a “use tax” at the same rate as your local sales tax. Most states include a line on the individual income tax return where you’re supposed to report and pay use tax on untaxed purchases. Enforcement for individuals leans on the honor system, but the legal obligation is real.