Guides

How to Calculate Sales Tax: Formulas and Worked Examples

Learn how to calculate sales tax forward or backward from a total, combine state and local rates, handle shipping and trade-ins, and claim deductions.

Prepared by Aldro Accounting · Updated · Sources checked · Editorial policy

The quick answer

To calculate sales tax, divide your combined percentage rate by 100 and multiply that decimal by the item's taxable price. Add that tax to the pre-tax price for your final total, or divide a receipt total to find pre-tax cost. Per the California Department of Tax and Fee Administration, California combines a 7.25% base rate with local district taxes from 0.10% to 2.00%.

The sales tax formula and step-by-step math

Calculating sales tax takes three arithmetic steps once you know the taxable price and combined tax rate.

First, add the state, county, city, and special district rates for the sale location into one combined percentage.

Second, divide that combined percentage rate by 100 to convert it into a decimal, moving the decimal point two places left.

Third, multiply the pre-tax taxable price by that decimal rate to find the sales tax in dollars and cents.

Add that sales tax amount to the pre-tax price, or multiply the pre-tax price by 1 plus the decimal rate in one step.

Here is a worked example written by our team using official California city rates effective October 1, 2026.

Suppose you buy $200.00 of taxable office furniture in Los Angeles, where the combined rate is 10.25%.

Divide 10.25 by 100 to get 0.1025, then multiply $200.00 by 0.1025 to find $20.50 in sales tax.

Add $20.50 to $200.00, or multiply $200.00 by 1.1025 in one step, to reach the $220.50 final total.

  • Decimal Tax Rate = Combined Tax Rate Percentage / 100
  • Sales Tax Amount = Taxable Price x Decimal Tax Rate
  • Total Price After Tax = Taxable Price + Sales Tax Amount
  • One-Step Total Price = Taxable Price x (1 + Decimal Tax Rate)

How to calculate sales tax backward from a receipt total

When you only have a tax-inclusive receipt total, use division to separate the pre-tax price from the embedded sales tax.

Add 1 to your decimal tax rate, then divide the receipt total by that number to get the pre-tax price.

Subtract that pre-tax price from the receipt total to find the exact sales tax paid.

Never multiply the post-tax receipt total by the percentage rate and subtract that figure from the total.

A receipt total already includes sales tax, so multiplying the total by the rate calculates tax on top of tax.

On our $220.50 Los Angeles receipt at 10.25%, dividing $220.50 by 1.1025 returns the $200.00 pre-tax price and $20.50 tax.

Multiplying $220.50 by 0.1025 mistakenly shows $22.60 in tax and $197.90 pre-tax, throwing your books off by $2.10.

If a receipt lists both the pre-tax price and tax, divide the tax amount by the pre-tax price and multiply by 100.

Retailers who build tax into shelf prices in California must notify buyers on signs, price tags, or advertisements.

The required statement tells buyers that taxable item prices include sales tax reimbursement computed to the nearest mill.

By our calculation from California's city and county rate schedule, combined rates span 4.50 percentage points, creating a $9.00 gap on $200.

  • Pre-Tax Price = Total Receipt Price / (1 + Decimal Tax Rate)
  • Embedded Sales Tax = Total Receipt Price - Pre-Tax Price
  • Effective Tax Rate Percentage = (Sales Tax Amount / Pre-Tax Price) x 100

How state, county, city, and district tax rates stack

The sales tax rate on an invoice is usually a stack of separate state and local layers.

In California, every location combines the state tax rate, the uniform local rate, and any voter-approved district tax rates.

More than three-fourths of California businesses are located or do business in an area with at least one district tax.

Looking up a rate by ZIP code or mailing address alone can give you the wrong percentage.

Both federal and state tax agencies note that a single ZIP code can cross city, county, and special district borders.

Addresses outside incorporated city limits use the unincorporated county rate rather than a neighboring city's higher rate.

Unincorporated Sacramento County charges 7.75%, whereas incorporated Sacramento charges 8.75% and nearby Galt charges 9.25%.

Which rate a seller charges also depends on whether the seller is engaged in business inside the buyer's district.

A California seller without physical presence, delivery staff, or $500,000 in statewide sales charges the 7.25% base rate on out-of-district deliveries.

Vehicles, undocumented vessels, and aircraft follow a special rule and take the district rate where registered or licensed.

New voter-approved district tax rates generally take effect on the first day of the next calendar quarter, at least 110 days after adoption.

How shipping, trade-ins, labor, and exemptions change the taxable amount

Accurate tax math requires adjusting the taxable base before you multiply by the decimal tax rate.

California's seller's permit guide sets clear rules on delivery fees, trade-ins, barters, labor, foreign currency, and exempt products.

Because tax laws vary by location, confirm your state's rules through the U.S. Small Business Administration state revenue directory.

  • Third-party carrier shipping: Delivery by common carrier, U.S. Postal Service, or independent contractor is nontaxable when stated separately at actual cost.
  • Bundled delivery totals: Charging one $800 lump sum for a $750 refrigerator and $50 carrier delivery makes all $800 taxable.
  • Shipping markups: If an independent carrier bills you $50 and your invoice states $60 for delivery, the $10 markup is taxable.
  • Seller vehicles and handling: Deliveries in your own vehicle and handling charges are generally taxable, even when postage appears on the package.
  • Trade-in allowances: California does not deduct trade-ins, so a $20,000 car with a $4,000 trade-in is taxed on $20,000.
  • Barters and exchanges: Trading a $500 store television to pay a dental bill owes sales tax on the $500 fair market value.
  • Fabrication versus repair labor: Labor making a new custom ring is taxable, while separately stated repair or installation labor is ordinarily nontaxable.
  • Exempt and excluded items: Certain human food products, prescription medicines, and U.S. government sales are exempt. Gift certificates are taxed only when redeemed.
  • Foreign currency sales: Payments in foreign currency convert to U.S. dollars using the exchange rate on the sale date.

Worked example: Calculating a mixed-item retail invoice

Customer orders often combine taxable goods, exempt repair labor, trade-in credits, and shipping charges on one bill.

Here is a worked example written by our team applying California retail rules in Sacramento at an 8.75% combined rate.

A jeweler charges $400.00 to make a custom silver ring and lists a separate $80.00 charge to repair a watch.

On the same invoice, the buyer purchases a $600.00 antique clock and trades in an older clock for $150.00.

The jeweler pays an independent carrier $40.00 to ship the order and states a separate $60.00 shipping fee.

Multiplying the $990.00 net invoice subtotal by 8.75% would yield $86.63, undercollecting sales tax by $2.62.

Checking each line keeps the $80.00 repair and $40.00 carrier cost untaxed while taxing the $600.00 clock and $20.00 shipping markup.

Seller collection rules, rounding, and setup checklist

Whether you must register and collect tax depends on physical presence and economic sales volume in each state.

Physical presence in California includes holding an office, warehouse, inventory, leased equipment, computer server, or sales representative there.

Out-of-state sellers must also collect California tax once combined tangible property sales into California exceed $500,000 in the prior or current year.

A California seller's permit is free, and buyers purchasing inventory avoid tax at checkout by providing a signed resale certificate.

Misusing a resale certificate for personal or business use triggers unpaid tax, interest, and a penalty of 10% or $500, whichever is greater.

Untaxed out-of-state equipment bought for business use owes use tax at the local rate, minus credit for another state's tax properly paid.

On California sales tax returns, you may round figures to the nearest whole dollar.

Amounts under 50 cents round down, like $127.49 to $127.00, while 50 cents or more rounds up, like $127.50 to $128.00.

If you accidentally collect excess sales tax from a buyer, you must refund the customer or remit the excess to the state.

Even if your general books use cash accounting, where a $200 January sale paid in February lands in February, sales tax follows the sale date.

A $500 credit sale delivered in June belongs on your June period return, due July 31, the last day of the following month.

Businesses averaging $17,000 or more in monthly taxable sales must make prepayments.

Our team wrote this five-step setup checklist to keep your register and online checkout accurate.

  • Map your nexus: Register with each state revenue agency where you hold offices, inventory, servers, staff, or high sales volume.
  • Use street-address lookups: Set your online virtual shopping cart to require full street addresses when calculating order total, tax, and shipping.
  • Separate invoice lines: List taxable merchandise, repair labor, and actual carrier delivery fees on distinct lines labeled shipping, delivery, or postage.
  • Verify resale certificates: Confirm each certificate shows the buyer's name, address, permit number, item description, date, signature, and for-resale wording.
  • Reconcile and archive: Reconcile collected tax monthly to refund or remit any excess, and keep tax records for at least four years.

How to calculate the sales tax deduction on federal Schedule A

Individuals also calculate sales tax when itemizing deductions on Form 1040 or Form 1040-SR, Schedule A, Line 5a.

Under Internal Revenue Service instructions for Schedule A, you can deduct state and local general sales taxes instead of income taxes, never both.

For the 2025 tax year, combined state and local income, sales, and property tax deductions cap at $40,000, or $20,000 if married filing separately.

That $40,000 cap drops by 30% of modified adjusted gross income above $500,000, or $250,000 if married filing separately.

Regardless of income, the state and local tax cap is never reduced below $10,000, or $5,000 if married filing separately.

If you file married filing separately and your spouse takes the standard deduction, you cannot claim the sales tax deduction.

When spouses filing separately both deduct sales tax and one uses the optional tables, both must use them.

  • Actual receipts: Add general sales and compensating use taxes on saved personal receipts, excluding any items used in a trade or business.
  • Special receipt rates: Taxes on food, clothing, and medical supplies count at lower rates. Motor vehicle taxes cap at the general rate.
  • Optional tables: Look up a state base amount using family size and adjusted gross income plus nontaxable items like tax-exempt interest.
  • Local worksheet thresholds: California and Nevada filers enter local rates on the worksheet only for combined rates above 7.2500% and 6.8500%.
  • Online calculator: The four-step General Sales Tax Deduction Calculator saves no personal data and averages multi-district ZIPs, such as 1% and 2% to 1.5%.
  • Moves and rate changes: Prorate mid-year moves or local rate changes by days out of 365.
  • Big-ticket additions: Add general sales tax paid on a motor vehicle, leased vehicle, boat, aircraft, or qualifying home or major renovation.

Common questions

How do you calculate sales tax on a purchase?

Divide your combined state and local percentage rate by 100 to get a decimal, then multiply that decimal by the taxable price. Add the tax to the pre-tax price for your total. For example, $200.00 at California's 7.25% base rate is $200.00 times 0.0725, equaling $14.50 in tax and $214.50 total.

How do I back out sales tax from a total price?

Add 1 to the decimal tax rate and divide the receipt total by that figure to find the pre-tax price. Subtract the pre-tax price from the receipt total to see the exact sales tax paid. Never multiply the receipt total directly by the percentage rate, because that taxes an amount that already includes tax.

Why can two addresses in the same ZIP code have different sales tax rates?

Postal ZIP codes route mail and do not match city, county, or special taxing district borders. One block in a ZIP code can sit in an unincorporated county area while the next sits inside an incorporated city with district taxes. Always look up the full street address on your state revenue agency's tool.

Are shipping fees and trade-ins included when calculating sales tax?

Rules vary by state, and in California shipping by common carrier, mail, or independent contractor is nontaxable when stated separately at actual cost. Handling fees and shipping markups above actual carrier cost are taxable, and trade-in credits are not deducted from the taxable selling price.

What happens if a seller collects too much sales tax, or how do individuals deduct it?

Under California law, a seller who collects excess sales tax cannot keep it and must refund the buyer or remit it to the state. On federal returns, itemizers on 2025 Schedule A can deduct actual personal sales tax receipts or optional table amounts within the $40,000 state and local tax cap.

The cheapest way to get your business taxes done for you: $599 flat for the year.

Business tax filing is $599 USD a year, and it covers everything tax for that year.

What's included

$599 a year covers everything tax for that tax year.

  • Every business return for the year. All the federal and state business returns you need for the tax year: Schedule C, 1065, 1120-S or 1120, and their state returns.
  • More than one state. Multi-state returns are included at the same price.
  • Your personal return. The owner’s personal return (Form 1040) is included when it’s needed for the business income.
  • Extensions and reminders. Extensions (Form 7004 or 4868) and quarterly estimate reminders are included.
  • Information returns. 1099-NEC forms are included in the tax price.
  • City and excise returns. City and local business tax returns, and state excise returns such as Washington B&O, are included in the yearly price.
  • Franchise tax reports. State franchise tax reports, such as the Texas franchise tax report, are included.
  • Estimated tax and instalment amounts. We work out your quarterly estimated tax payments and tell you what to pay and when.
  • Unfiled past years. Each unfiled prior-year return is $599 per tax year, the same flat price.
  • Bookkeeping at $20 a month. Unlimited bank and card accounts, monthly reconciliation and monthly statements.

Basic inventory tracking for online stores, such as Shopify, is included. Full cost-of-goods reconciliation is $299 per tax year in the US, with tax filing; in Canada, and without tax filing, it's quoted separately. Payroll processing and sales-tax filing aren’t included in bookkeeping. Prices are in USD. Our team prepares and files your return.

Sources

This guide explains general rules from the sources listed. It isn’t tax advice for your situation.

Related