How to Calculate Sales Tax
Learn how to calculate sales tax on purchases and selling prices, how to back out tax from a total, understand origin vs. destination-based sourcing, and handle multi-state nexus.
The Basic Sales Tax Formula
Sales Tax Amount = Pre-Tax Price × (Tax Rate / 100). Total Price = Pre-Tax Price + Sales Tax Amount, or equivalently, Total Price = Pre-Tax Price × (1 + Tax Rate / 100). If a product costs $85.00 before tax and the tax rate is 8.25%, the tax is $85.00 × 0.0825 = $7.01, and the total is $92.01. The pre-tax price is also called the base price or taxable amount; not all items in a transaction may be taxable.
Back-Calculating the Pre-Tax Price from a Total
When you know only the tax-inclusive total, use: Pre-Tax Price = Total Price / (1 + Tax Rate / 100). At an 8.25% rate, if the total is $92.01, the pre-tax price is $92.01 / 1.0825 = $85.00. This reverse calculation is needed when a receipt shows only the total, when pricing products "tax included," or when reconciling tax collected from a lump-sum payment. It is a common bookkeeping task for retail and e-commerce businesses.
Combined State, County, and Local Rates
In the United States, sales tax is a composite of state, county, city, and special district rates that must be added together. California's base state rate is 7.25%, but county and city additions push some locations above 10.75%. New York City's combined rate is 8.875%. Over 13,000 taxing jurisdictions exist in the US, each with its own rate and rules. SaaS sellers, marketplace facilitators, and businesses with multi-state operations must apply the rate at the customer's delivery address, not the seller's location.
Origin-Based vs. Destination-Based Sourcing
Most states use destination-based sourcing: the sales tax rate is determined by where the buyer receives the goods or services. A few states — notably Texas for in-state sellers, Arizona for remote sellers, and parts of California — use origin-based sourcing, where the seller's location determines the rate. This distinction matters enormously for e-commerce businesses. Misapplying an origin rate in a destination-based state, or vice versa, creates tax liability and exposure to penalties during an audit.
Economic Nexus and Remote Sellers
Since the Supreme Court's 2018 South Dakota v. Wayfair ruling, states can require out-of-state sellers to collect sales tax once they exceed an economic nexus threshold — typically $100,000 in annual sales or 200 transactions in the state, though thresholds vary. A business that exceeds the threshold must register, collect, and remit sales tax in that state even without a physical presence. Most states adopted economic nexus laws by 2019. Businesses that have not assessed their nexus exposure in all states may face significant back-tax liability.
Exemptions and Taxable vs. Non-Taxable Items
Not all sales are subject to sales tax. Most states exempt groceries (unprepared food), prescription drugs, and medical equipment. Clothing exemptions exist in Minnesota, New Jersey, Pennsylvania, and others — though some states tax clothing above a price threshold. Digital goods and SaaS are taxable in approximately half of US states and exempt in the rest. Businesses must classify every product or service they sell against the taxability rules in each state where they have nexus and obtain exemption certificates from qualifying buyers such as resellers and nonprofits.
Remittance, Filing, and Penalties
After collecting sales tax from customers, businesses must file returns and remit the collected tax to the state revenue agency on a schedule determined by their sales volume — monthly, quarterly, or annually. Late filing penalties typically range from 5% to 25% of tax due, plus interest. Most states now require electronic filing. Sales tax automation software (Avalara, TaxJar, Vertex) integrates with e-commerce platforms and ERP systems to calculate, collect, file, and remit sales tax automatically, which is nearly essential for any business selling in more than a few states.
Try These Calculators
Put what you learned into practice with these free calculators.
Related Guides
How to Calculate Markup and Margin
Learn the difference between markup and margin, how to calculate each from cost and selling price, and why confusing them is one of the most common pricing mistakes in business.
How to Calculate Revenue Growth Rate
Learn how to calculate period-over-period revenue growth rate, compound annual growth rate (CAGR), and how to use these metrics to evaluate business performance.
How to Calculate Payroll Taxes
A step-by-step guide to calculating federal payroll taxes including FICA, FUTA, withholding, and employer contributions, with formulas and worked examples.