Sales tax by state › How it is calculated
How Sales Tax Is Calculated
Sales tax has one formula — tax = taxable price × combined rate — and one complication: the combined rate is a stack. Start with the state rate, then add the county rate, the city rate and any special district rates (transit, stadium, tourism and similar) that apply at the address of the sale. In Chicago that stack is 6.25% state + county, city and district layers = 10.25%. In most of Montana it is 0% + nothing = 0%. Everything else about sales tax calculation is applying that stack carefully.
A worked example, step by step
Take a $250 taxable purchase delivered to an address in Houston, Texas. The Texas state rate is 6.25% and Houston's combined rate is 8.25%. Tax = $250 × 0.0825 = $20.625, which rounds to $20.63, for a total of $270.63. The same item delivered to a rural Texas address with only a 1% county layer would be taxed at 7.25%: $18.13 of tax and a $268.13 total. Notice that the item, the seller and the state never changed — only the delivery address did. That is destination sourcing, the rule most states apply to most transactions: the rate follows where the buyer receives the goods.
Three rules that change the math
Rounding. Tax is computed on the total taxable amount of the transaction in most states, then rounded to the nearest cent — not rounded per item, which can produce a different cent. Exemptions come first. The rate applies only to the taxable portion: exempt items, resale purchases and the value of trade-ins (where a state allows a trade-in credit, as many do for vehicles) come out of the price before the percentage is applied. Discounts and coupons. Store discounts usually reduce the taxable price; manufacturer coupons usually do not, because the store is reimbursed. The details are state law, not arithmetic, which is why identical carts can be taxed differently across state lines even at identical rates.
To run any price at any state's average combined rate, use our sales tax calculator — and for a total that already includes tax, divide by (1 + rate) to back the tax out, as the calculator page explains. The rates themselves live on the sales tax by state table.
Frequently asked questions
Do you round sales tax per item or per purchase?
In most states, per transaction: the tax is calculated on the total taxable amount and rounded once to the nearest cent.
Is shipping taxed?
It depends on the state and on whether delivery charges are separately stated; many states tax delivery that is part of a taxable sale. Check the destination state's rules for the exact treatment.
Sources: Tax Foundation, State & Local Sales Tax Rates, Midyear 2025 (state rates and population-weighted average local rates as of July 1, 2025; underlying data from the Sales Tax Clearinghouse and state revenue department websites), checked October 2026.