How to Calculate Sales Tax: Formula, State Rates & What Is Actually Taxable
The basic formula takes five seconds. What actually varies by state, what is and is not taxable, and what the Wayfair ruling changed for online shopping — that takes longer.
Sales tax calculation is one of those things that seems trivial until you're running a business, trying to budget accurately for a large purchase, or shopping across state lines online. The mechanics are simple, but the patchwork of rules across 50 states (and thousands of local jurisdictions) makes getting it right genuinely complicated.
The Basic Formula
Price × Sales Tax Rate = Tax Amount Price + Tax Amount = Total Price
If you're buying a $1,200 laptop in a state with 7% sales tax: $1,200 × 0.07 = $84 in tax, for a total of $1,284.
Or you can calculate it in one step: $1,200 × 1.07 = $1,284. Same result, fewer steps.
To reverse-engineer the pre-tax price from a total that already includes tax: divide the total by (1 + tax rate). So if you see a receipt total of $1,284 and want to know what the pre-tax price was: $1,284 ÷ 1.07 = $1,200.
State vs. Local Tax Rates: Why the Headline Rate Isn't the Real Rate
Most states have a state sales tax rate plus separate county and municipal rates that stack on top. When Tennessee says its sales tax is 7%, that's the state rate — but combined with local taxes, residents in Memphis pay 9.75%, and in Nashville around 9.25%.
California's state rate is 7.25%, but it routinely gets pushed to 10.25% or higher in cities like Los Angeles and San Francisco with additional local taxes. Louisiana's combined rates exceed 11% in some parishes — among the highest in the country.
This is why using a generic "state tax rate" for budgeting gives you the wrong number almost everywhere. The combined rate for your specific city or county is what actually shows up on the receipt. A sales tax calculator that uses location-specific data is essential for getting this right.
What's Taxable (and What Isn't)
The categories of items exempt from sales tax vary dramatically by state. But some common patterns:
Groceries: 37 states exempt most food items from sales tax. But "food" gets defined differently. Texas exempts most grocery items but taxes prepared food and candy. Alabama fully taxes groceries. Several states tax groceries at a reduced rate rather than full exemption.
Prescription drugs: almost universally exempt.
Clothing: New York exempts clothing items under $110. Pennsylvania exempts clothing entirely. Most states tax it fully.
Digital goods: software downloads, streaming subscriptions, and digital books are increasingly taxed, but the rules are inconsistent. Some states tax downloaded software but not streaming. Others distinguish between cloud-based SaaS and installed software. This area is evolving quickly as states try to capture revenue from digital commerce.
Services: traditionally exempt in most states, but states are increasingly expanding sales tax to cover certain services — landscaping, pet grooming, some repair services. What's taxable in New Mexico or Hawaii (which has a broad consumption tax) differs sharply from what's taxable in New York.
Online Sales Tax After South Dakota v. Wayfair
Before 2018, states could only require retailers to collect sales tax if they had a physical presence in the state. Amazon, for example, only collected tax in states where they had warehouses. The Supreme Court's 2018 Wayfair decision changed that: states can now require out-of-state sellers to collect and remit sales tax if they exceed a certain sales threshold in that state.
Every state now has what's called "economic nexus" rules — typically triggered when a remote seller exceeds $100,000 in sales or 200 transactions in the state in a year. If you run an e-commerce business, this matters enormously. You may be required to collect and remit sales tax in dozens of states, each with its own rate, filing schedule, and exempt product categories. Software like Avalara or TaxJar exists specifically to automate this.
For consumers: this means you can no longer avoid tax by buying from an out-of-state retailer online. All major platforms — Amazon, eBay, Etsy — now collect sales tax in all applicable states automatically.
Calculating Sales Tax for a Business
If you run a retail operation, the sales tax process has three steps: collection (charging customers the correct rate at point of sale), record-keeping (tracking taxable sales by jurisdiction), and remittance (paying what you collected to the state, usually monthly or quarterly depending on volume).
Don't blend your sales tax collections with your operating revenue. The money you collect as sales tax belongs to the state — it's a liability on your books from the moment of collection. Commingling it with business funds and coming up short at filing time is one of the most common (and costly) small business bookkeeping mistakes.
If you're in a state that allows it, check whether you qualify for a vendor's discount — some states let you keep a small percentage (usually 1-3%) of what you collect as compensation for the administrative burden of collection.
The Tax-Included Price vs. Tax-Exclusive Price Trap
Internationally, Value Added Tax (VAT) is typically included in the displayed price — what you see on the shelf is what you pay. In the U.S., sales tax is added at the register, which means the sticker price is always lower than the final price. This creates occasional budgeting confusion, especially for people accustomed to VAT-inclusive pricing.
For any purchase over a few hundred dollars, mentally adding your local combined tax rate to the listed price before deciding to buy is good practice. On a $3,500 living room set in Los Angeles at 10.25% tax, the actual outlay is $3,858. That's a $358 difference that can tip a budget.
Related Calculators
Written by
Marcus Webb
Personal Finance Writer
Marcus spent eight years as a mortgage loan officer at a regional bank in Nashville before leaving to write about the financial decisions most people get wrong. He's been broke, gotten out of debt, and bought two houses — which he thinks qualifies him to explain this stuff better than someone who's only read about it.