How sales tax is calculated, and how to reverse it
A 100.00 sale in California at a 7.25% state rate and a 2.00% local rate carries 9.25 of tax and a 109.25 total. The arithmetic is one multiplication, but the rules around it are not: which rate applies, whether you have to collect at all, and whether the price you quoted already includes the tax. This guide works the default sale line by line, then runs the same numbers backwards the way a receipt forces you to.
1. The default sale in four lines
The state rate is 7.25% and the local rate is 2.00%, so the combined rate is 9.25%. On a 100.00 unit price and one unit, the pre-tax subtotal is 100.00, the tax is 9.25, and the total is 109.25. The effective burden is 9.25 / 109.25 = 8.47%, which is a different number from the 9.25% rate and is the one that tells you what share of the money collected belongs to the state.
| Step | Calculation | Result |
|---|---|---|
| State rate | California | 7.25% |
| Local rate | input | 2.00% |
| Combined rate | 7.25% + 2.00% | 9.25% |
| Taxable subtotal | 100.00 x 1 | $100.00 |
| Tax | 100.00 x 9.25% | $9.25 |
| Total with tax | 100.00 + 9.25 | $109.25 |
| Effective burden | 9.25 / 109.25 | 8.47% |
Nothing in that chain is optional. A seller cannot apply the state rate and skip the local rate, cannot round the rate to 9% for convenience, and cannot treat the 9.25 as revenue. The tax is collected on behalf of the state and the locality, which is why it sits in a liability account rather than in the sales line.
2. Two rates, one tax base
The state rate is uniform within the state and is set by statute. California is 7.25%, Texas 6.25%, New York 4.00%, Florida 6.00% and so on. The local rate is set by counties, cities and special districts, and it is added to the state rate rather than replacing part of it. In California the state portion is 7.25% and local add-ons can push the combined rate to 10.25% in some cities.
The combined rate applies to the same base, which is the taxable selling price. That sounds obvious until a seller applies the local rate to a price that already includes the state tax, which produces a total that is too high. Rates stack on the price; they do not stack on each other. 7.25% plus 2.00% on 100.00 is 9.25, and 7.25% on 100.00 plus 2.00% on 107.25 would be 9.40, which is not how any state computes it.
Some states also allow transit, stadium or special district taxes that behave like local rates but are reported separately. Those add to the same combined figure, so the number on the receipt is still a single percentage, even though the remittance form may split it into three lines. The calculator treats the local input as a single number, which is enough for pricing and not enough for filing.
3. Where the local rate comes from
Local rates vary by destination, not by the seller. In most states with a sales tax, the rate that applies to a shipped good is the rate at the delivery address, which means a seller with customers in several cities has to know several combined rates. Los Angeles is 9.50%, San Francisco 8.625%, Seattle 10.25% and Chicago 10.25%, and none of those figures can be derived from the state rate alone.
Rate tables are published by the state and by private tax engines, and they change on known effective dates, usually the first of January, April, July or October. A rate change in the middle of a reporting period means the same 100.00 sale carries two different tax amounts depending on the ship date, so a single blended rate for the quarter will not reconcile. Storing the rate and the effective date on each transaction is the simplest defence.
Sourcing rules decide which local rate applies. Destination sourcing uses the delivery address, origin sourcing uses the seller location, and some states use a hybrid. The rule can differ by transaction type, so a service delivered remotely and a good shipped to a home may not use the same rate even from the same seller. This is the point where a calculator stops and a tax table starts.
4. Nexus: when you have to collect at all
Physical presence is the traditional test: an office, a warehouse, an employee or inventory in the state creates nexus, and the seller must register and collect. The modern test is economic. After the 2018 South Dakota decision, states can require collection from remote sellers that exceed a sales or transaction threshold, and most states now have such a rule.
The thresholds are not uniform. Many states use 100,000 dollars of sales into the state, some use 100,000 dollars or 200 transactions, and the largest states set higher figures: California and Texas use 500,000 dollars, and New York uses 500,000 dollars plus 100 transactions. A seller can be under the threshold in one state and over it in another on the same revenue, which is why nexus is tracked state by state rather than nationally.
Marketplace sales complicate the count. In most states the marketplace facilitator collects and remits the tax on marketplace transactions, and those sales may or may not count toward the seller own threshold. A seller doing 400,000 dollars on a marketplace and 120,000 dollars on a website can be surprised to learn which of the two channels created the registration obligation. Read the state guidance rather than assuming the marketplace handles everything.
5. Tax-inclusive pricing and the reverse formula
When the price already includes tax, the tax is not 9.25% of the price. It is the difference between the price and the pre-tax amount, and the pre-tax amount is the price divided by one plus the rate. For 100.00 at 9.25%, the subtotal is 100.00 / 1.0925 = 91.53 and the tax is 100.00 - 91.53 = 8.47. Multiplying 100.00 by 9.25% would give 9.25 of tax on a 100.00 subtotal, which adds up to 109.25 and contradicts the price the customer paid.
| Treatment | Price entered | Subtotal | Tax | Total | Effective burden |
|---|---|---|---|---|---|
| Tax added at checkout | $100.00 | $100.00 | $9.25 | $109.25 | 8.47% |
| Tax already included | $100.00 | $91.53 | $8.47 | $100.00 | 8.47% |
Both rows have the same effective burden because the rate is the same, but the amounts differ by 78 cents of tax and 8.47 of subtotal. The reverse formula is exact: 91.53 x 1.0925 = 100.00, and 100.00 / 1.0925 = 91.53. Sellers who run the inclusive case as a multiplication overstate the tax, understate revenue and over-remit, which is a real cash cost even though it looks conservative.
The reverse formula also works for a receipt that combines several items. If a 109.25 total covers taxable goods at 9.25% and nothing exempt, the taxable subtotal is 100.00 and the tax is 9.25. If part of the basket is exempt, the reverse formula has to be applied only to the taxable portion, which is why line-level tax codes matter more than a single rate on the invoice.
6. Why the effective burden is not the tax rate
The headline rate is a percentage of the pre-tax price. The effective burden is the tax divided by the amount the customer actually paid, which includes the tax. At 9.25% those two figures are 9.25% and 8.47%, and at 10.25% they are 10.25% and 9.30%. The gap widens as the rate rises, because the tax becomes a larger part of the total that is being used as the denominator.
The effective burden is the right number for a few specific questions: how much of the cash collected is not mine, what share of gross receipts goes to the state, and how much room a discount has before it eats into the tax. It is the wrong number for computing the tax itself, which always uses the pre-tax price. Mixing the two up produces a tax that is slightly too low, and the error is easy to miss because it is under a percentage point.
For a 10,000.00 month of taxable sales at 9.25%, the tax is 925.00 and the total collected is 10,925.00, so the effective burden is 8.47%. If a seller sets aside 8.47% of gross receipts instead of 9.25% of taxable sales, the reserve comes out at 925.35 rather than 925.00, which happens to be close. On a mixed basket with exempt items, the two methods diverge sharply and the reserve is wrong.
7. Quantity, rounding and line-level tax
Quantity multiplies before tax, not after. Three units at 49.99 are 149.97 of taxable receipts, and 9.25% of that is 13.87, giving a total of 163.84. Taxing each unit separately would give 4.62 per unit, which is 4.6245 rounded down, and three of those is 13.86, a one-cent difference that shows up as a reconciliation item at the end of the month.
Rounding rules vary by state. Some require rounding to the nearest cent at the invoice level, others allow rounding per line or per item, and a few specify half-up rather than half-even. The calculator rounds the subtotal to cents, computes tax on that, and rounds the tax to cents, which matches the common invoice-level method. If your point-of-sale rounds per line, expect occasional one-cent differences on multi-line orders.
Discounts applied before tax reduce the taxable base, while discounts applied after tax do not. A 10.00 coupon on a 100.00 order at 9.25% reduces the tax by 0.93 if it is treated as a pre-tax discount, and by nothing if it is a post-tax payment. Shipping charges are taxable in some states and not in others, and handling fees often follow the goods. Each of those choices moves the tax on the same basket.
8. Product taxability and exemptions
The rate is only half of the calculation; the base is the other half. Grocery food is exempt or reduced in many states, clothing is exempt in some and taxed in others, and digital goods, software as a service and professional services are treated differently in nearly every state. A seller with a single combined rate but a mixed catalog will still get the tax wrong if every line is treated as taxable.
Exemption certificates shift the responsibility. A resale certificate or a nonprofit exemption certificate means the seller does not collect tax, but the certificate has to be on file and valid for the state and the transaction. Collecting tax from an exempt buyer and remitting it is usually fixable; failing to collect from a taxable buyer is the seller liability, which is the more expensive error.
Use tax closes the loop. If a seller has nexus in a state but does not collect tax on a sale, the buyer may owe use tax, and some states pursue the seller for failing to collect. That is why the nexus question comes before the rate question: a beautiful 9.25% calculation on a sale where no tax was due is still wrong, just in the other direction.
9. Five checks before you file
- Confirm the combined rate against the delivery address, not the warehouse ZIP, because local rates follow destination in most states.
- Check the effective date on every rate change, since a mid-period change splits one reporting period into two rates.
- Separate taxable and exempt lines before applying the rate, because the rate cannot fix an incorrect base.
- Decide whether the price is tax-inclusive, then use division for the subtotal and subtraction for the tax.
- Reconcile the tax liability to gross receipts using the effective burden, and to taxable sales using the headline rate.
The two reconciliations catch different errors. If the liability divided by gross receipts is off, a rate or a tax-inclusive price is wrong. If the liability divided by taxable sales is off, the base is wrong. Running both takes a minute and narrows the problem before an auditor does it for you.
This calculator is for general education and is not financial, tax or legal advice. State and local rates, nexus thresholds and product taxability change often, so confirm the current rules with the state revenue department before you collect or remit tax.