What Is a Sales Tax Calculator?
A sales tax calculator helps you quickly determine the tax amount and final price of a purchase. It works in two directions: you can add tax to a pre-tax price to find what you will pay at checkout, or you can remove tax from a total price to find the original pre-tax amount. This is useful for shopping, budgeting, accounting, and pricing products for sale.
In the United States, sales tax rates vary by state, county, and city, so this calculator supports both a state base rate and an additional local rate. It also includes a full list of US state tax rates for quick reference.
What This Calculator Does
Inputs Required
- Price: The item price, either pre-tax or total depending on mode
- Mode: Add tax to a price, or remove tax from a tax-inclusive total
- State Tax Rate: The state-level sales tax percentage
- Local Tax Rate: Any additional county or city tax
Outputs Provided
- Tax Amount: The exact dollar amount of sales tax
- Total Price: Pre-tax price plus tax
- Pre-Tax Price: The original price before tax is applied
- Summary Table: Clear breakdown of all components
How the Calculation Works
Sales tax is calculated as a percentage of the pre-tax price. When adding tax, the formula is straightforward. When removing tax from a tax-inclusive total, you need to divide by (1 plus the rate) rather than simply subtracting a percentage.
Adding tax: Total = Pre-Tax Price x (1 + Tax Rate)
Removing tax: Pre-Tax = Total Price / (1 + Tax Rate)
Tax Amount = Total - Pre-Tax
A common mistake is to remove tax by simply multiplying the total by the tax rate. This gives the wrong answer because the tax rate applies to the pre-tax price, not the total. For example, on a $108 total at 8% tax: the pre-tax price is $108 / 1.08 = $100, not $108 x 0.08 = $8.64 subtracted from $108.
How to Use the Calculator
- Select whether you want to add tax to a price or remove tax from a total
- Enter the price amount
- Optionally select your US state to auto-fill the state tax rate
- Adjust the state and local tax rate sliders if needed
- Review the tax amount, total, and itemized summary instantly
Example Calculations
Shopping in California: A $250 item with California's 7.25% state rate plus a 1.5% local rate (8.75% combined) results in a tax of $21.88 and a total of $271.88.
Reverse calculation: You see a receipt total of $54.24 and want to know the pre-tax price at 8% tax. Pre-tax = $54.24 / 1.08 = $50.22. Tax = $4.02.
Real World Scenarios
Budget Shopping
A shopper has $500 to spend. Before going to the store, they use this calculator to determine the maximum pre-tax price they can afford so they do not go over budget after tax is added at checkout.
Business Pricing
A small business owner needs to set a retail price that results in a specific pre-tax amount. Using the reverse calculation, they can work backward from the desired total customer price to find the correct listed price before tax.
Expense Reporting
An employee submitting a business expense needs to separate the tax from the total on a receipt. The reverse mode allows them to extract the pre-tax amount and the tax paid, as required by most expense reporting systems.
Why This Calculation Matters
Sales tax affects every retail purchase, yet many shoppers only discover the full cost at checkout. Knowing your combined tax rate before shopping helps you plan budgets accurately, compare prices across state lines, and avoid surprises. For businesses, correctly calculating and collecting sales tax is a legal obligation.
Common Mistakes to Avoid
- Forgetting local taxes: State rate alone is often not the full rate; cities and counties add their own percentages
- Wrong reverse calculation: Never subtract a percentage of the total to find pre-tax; always divide by (1 + rate)
- Assuming all items are taxed: Many states exempt groceries, prescription drugs, or clothing from sales tax
- Using the wrong jurisdiction: Sales tax is generally based on where the buyer takes possession of the goods, not where the seller is located