Blog › Sales Tax Calculator guide
How to Calculate Sales Tax Both Ways
Sales tax math has two directions and people constantly need the less obvious one: adding tax to a price is easy, but extracting the tax from a total you already charged is where errors creep in. This guide covers both, with the formulas, and gives you the calculator for any rate.
Step by step
- Open the Sales Tax Calculator and enter the amount.
- Enter your tax rate as a percentage.
- To add tax: read the tax amount and the total with tax.
- To extract tax: use the tax-included mode to see the pre-tax amount and the tax inside your total.
Tips for better results
- Adding tax: Total = Amount × (1 + rate). Extracting tax: Pre-tax = Total ÷ (1 + rate) — dividing by 1.08 at 8% is NOT the same as subtracting 8%.
- Keep the rate current — jurisdictions change rates, and using last year's rate under-collects.
- On invoices, show the tax as its own line; clients and accountants both prefer it visible.
Quick examples
The same two calculations, worked out at 8% — the numbers the calculator gives you:
- Add tax: $100 at 8% → tax $8, total $108.
- Extract tax: $108 total at 8% → pre-tax $100, tax $8. (Taking 8% of 108 gives $8.64 — that is the common mistake.)
Sales tax examples by state
Texas is the most-searched state example, so here it is worked out. The state rate is 6.25% and cities and counties can add up to 2%, so the most you will ever pay is 8.25%. Example: an $80 item at the full 8.25% — $80 × 0.0825 = $6.60 tax, $86.60 total. The exact local rate depends on the delivery address — the Texas Comptroller's rate locator gives the combined rate for any address. Other states work the same way: pick your state in the calculator, enter the amount, and it applies the right combined rate.
Related guides: How US Paycheck Tax Works: Federal, FICA and State — in Plain English · Salary vs Hourly: How to Compare Two Job Offers Properly
How to work out sales tax — add it to a price, or take it out
To work out sales tax, decide which way round the price is. If you are wondering how to add taxes to a price that has no tax in it yet, use the Sales Tax Calculator in Add tax mode: enter the price before tax and the rate, and it adds the sales tax amount. If the price already has tax included, use Extract mode instead — it works backwards to find the pre tax price and the tax inside it. Either way, enter the combined sales tax rate for the delivery address: the state rate plus any city and county rate.
Sales tax rates differ by state — how to find your total cost
There is no single US sales tax rate: your state sales tax rate is set by your state, and local sales taxes from the city and county can apply on top of it. The total cost of a sale is the price plus the state rate plus any local rate for the delivery address — add the rates together first, then apply the combined rate. This page explains how to find the right rate and where the sales tax laws for your state are published. No rates are listed here, because they change — always check the official source before you charge.
Frequently asked questions
How do I add 8% tax to $100?
Tax = $100 × 0.08 = $8. Total = $108. In general: total = amount × (1 + rate as a decimal).
How do I find the tax inside a $108 total at 8%?
Pre-tax = 108 ÷ 1.08 = $100, so the tax inside is $8. Never just take 8% of 108 (that gives $8.64 — wrong).
Does the calculator work for VAT and GST too?
Yes — the math is identical. Enter your VAT/GST rate and use add or extract mode the same way.
How do I calculate sales tax?
Multiply the item's price by the sales tax rate written as a decimal. For example, 8% tax on a $100 item is $100 × 0.08 = $8.00, so the total is $108.00. This calculator does it instantly — just enter the price and the rate.
What is the sales tax formula?
Sales tax = price × tax rate, and total price = price + sales tax. To work backwards from a tax-inclusive total: price before tax = total ÷ (1 + tax rate).
How do I calculate sales tax in a different state or country?
Enter the local rate where the sale happens — rates differ by state, city, and country. The calculator accepts any rate, and it works for VAT and GST too: just enter the VAT percentage as the rate.
Do I charge sales tax on shipping in Texas?
Yes, if the sale itself is taxable — delivery charges are part of the taxable sales price in Texas. If the item is exempt, the delivery is exempt too.
Are groceries taxable in Texas?
No — most grocery food is exempt in Texas. Prepared food, like restaurant meals and hot food, is taxable.
Do I have to collect Texas sales tax as an out-of-state seller?
If your sales into Texas exceed $500,000 in the previous 12 months, you have economic nexus and must register with the Comptroller and collect Texas tax.
How do I add sales tax to a price?
Enter the price before tax and the rate, then use Add tax mode — the calculator works out the sales tax amount and adds it to the price. For example, a $100 item at 8% gives $8 of tax and a $108 total. Use the combined sales tax rate for the delivery address: your state rate plus any city and county rate.
How do I add tax on a calculator?
Type the pre tax price, type the rate, and pick Add tax. If the price you have already has tax included, pick Extract instead — the calculator works backwards to find the pre tax price and the tax inside it. The calculator does not look up rates by zip code, so enter the combined rate for the place of delivery.
Do I have to collect sales tax when selling online?
Selling online does not exempt you — it depends on where your buyers are and whether you have sales tax nexus in their state. Most states require you to collect once your sales into the state pass their threshold. This calculator is a manual tool: it works out the tax on a price, but it does not do automated sales tax filing or registration — check with your state and local taxing authority before you start collecting.
How do I find my state sales tax rate?
Your state sales tax rate is set by your state — check your state revenue department's website for the current rate. The rate you charge is the state rate plus any local sales taxes for the delivery address, so look up the local rate for the same place. This calculator does not look rates up for you: enter the combined rate by hand, and check again if you have not looked in a while, because rates change.
Do local sales taxes apply on top of the state rate?
Yes, in many places. The total cost of a sale is the price plus the state sales tax rate plus any city and county rate that applies where the buyer takes delivery. Add the rates together first, then apply the combined rate to the price — that is the total cost the buyer pays. Some places have no local rate at all, so the state rate alone is the whole tax.
Where can I check the sales tax laws for my state?
Your state revenue department or comptroller publishes the sales tax laws for your state — what is taxed, which rates apply, and when you must register and collect. This calculator works out the tax on a price; it does not track the law, so check the official source before you start collecting in a new state.