Sales Tax Calculator
Use this Sales Tax Calculator to compute the tax amount and the total price after tax from a pre-tax price and a sales tax rate. It’s built for everyday purchases, receipts, invoices, and quick budgeting when you need reliable numbers without manual math.
Switch modes if you only know the final amount on a receipt. The reverse mode estimates the pre-tax price from the total and rate, so you can compare items, validate checkout totals, or back into the taxable base for records.
For more tools, browse All Calculators or explore the Tax Calculators hub for related tax and percentage calculators.
Accuracy & Method: Calculated locally in your browser; no data is sent to a server.
Rounding: Displayed values round to your selected decimals, while internal calculations keep full precision to reduce drift.
Privacy-first: Inputs stay on your device; use Copy buttons to share results only when you choose.
Last Updated: January 20, 2026
Calculate sales tax in seconds
Choose a mode, enter your price and sales tax rate, then calculate. Results appear below with a breakdown and copy tools.
Results
Enter values and calculate to see your sales tax results.
Step-by-step breakdown (with your numbers)
Result Summary
Your computed sales tax results will appear here after you calculate.
How it works
These formulas are the same ones used on receipts and invoices — the calculator just applies them quickly and consistently.
Variables
- PreTax: the price before sales tax is added.
- Rate: the sales tax rate as a percentage (e.g., 8.25).
- Tax: the tax amount added to the purchase.
- Total: the final price after tax (PreTax + Tax).
Use Mode A when you know the pre-tax price and want the tax and total. Use Mode B when you only know the total after tax and want to estimate the pre-tax base.
Formulas
Rounding is applied only to what you see. The calculator keeps full precision behind the scenes to reduce small differences that can happen if you round too early.
Step-by-step (what the calculator does)
- Read your price and sales tax rate, safely cleaning commas, spaces, and currency symbols.
- Apply the correct formula based on Mode A or Mode B.
- Keep internal precision, then round displayed outputs to your selected decimals.
- Show a breakdown and an animated bar so you can quickly see how much of the total is tax.
Use cases
Real-world situations where a Sales Tax Calculator saves time and prevents mistakes.
Retail shopping
Estimate the total price after sales tax before you reach the checkout, especially for higher-ticket items or bulk purchases.
Online orders and carts
Compare totals across stores by applying the same sales tax rate to different base prices, discounts, or bundles.
Business invoices
Compute tax amount and after-tax totals for taxable line items, or back-calculate the pre-tax base from a paid receipt.
Budgeting and expense tracking
Forecast real spending by including sales tax in your totals so your budget matches what actually leaves your account.
Comparing jurisdictions
Test how different sales tax rates affect the same purchase to understand the impact of local or state rate changes.
If you manage personal spending categories, you may also find value in the Finance Calculators section for budgeting and payment tools that complement sales tax estimates.
Examples
These worked examples show the exact inputs and outputs you’ll get from the Sales Tax Calculator.
Example 1 (Mode A: Pre-tax → Total)
Inputs: Pre-tax price = 120.00, Rate = 8.25%
Outputs: Tax Amount = 9.90, Total Price (After Tax) = 129.90
Example 2 (Mode A: Pre-tax → Total)
Inputs: Pre-tax price = 49.99, Rate = 7%
Outputs: Tax Amount ≈ 3.50, Total Price (After Tax) ≈ 53.49
Example 3 (Mode B: Total → Pre-tax)
Inputs: Total price (after tax) = 215.00, Rate = 10%
Outputs: Pre-tax Price ≈ 195.45, Tax Amount ≈ 19.55, Total Price (After Tax) = 215.00
Common Mistakes
- Entering a rate as 0.0825 instead of 8.25 (mixing decimal vs percent formats).
- Rounding the tax too early and then adding it, which can shift the final total.
- Using the wrong mode when starting from an after-tax total (reverse calculation requires Mode B).
- Forgetting that some items may be exempt or taxed at a different rate (receipts can be itemized).
- Comparing two totals with different rounding settings and assuming the calculator is inconsistent.
Quick Tips
- Always enter the sales tax rate as a percentage (example: 6.5 for 6.5%).
- If you’re checking a receipt, match the receipt’s rounding style (often 2 decimals).
- Use Mode B to estimate the pre-tax base from a total when you only have the final amount.
- Keep the same rounding setting when comparing prices across stores or jurisdictions.
- When in doubt, calculate with more decimals first, then round only for reporting.
FAQ
Answers to common questions about sales tax calculations, receipts, and rounding.
How do I calculate sales tax from a price?
To calculate sales tax from a pre-tax price, multiply the price by the tax rate expressed as a percentage divided by 100. For example, with a price of 120 and a rate of 8.25%, the tax is 120 × (8.25/100) = 9.90. Then add that tax to the pre-tax price to get the total after tax: 120 + 9.90 = 129.90. Mode A in this Sales Tax Calculator performs these steps and rounds the displayed values to your chosen decimals.
How can I find the pre-tax price if I only know the total after tax?
If you only know the total after tax and the sales tax rate, you can reverse the calculation by dividing the total by the multiplier (1 + Rate/100). For example, if the total is 215 and the rate is 10%, the multiplier is 1.10 and the pre-tax price is 215 ÷ 1.10 = 195.4545. The tax amount is then Total − PreTax. Mode B in this Sales Tax Calculator automates this reverse method and clearly shows the substituted formula using your latest inputs.
Why does my receipt tax not match exactly?
Receipts can differ slightly because of rounding rules and item-level taxation. Some systems calculate tax per line item and round each line, then sum the rounded values, while others compute tax on the subtotal and round once. Small differences also appear when discounts are applied before tax, after tax, or proportionally across items. In addition, certain products may be exempt or taxed at different rates. This Sales Tax Calculator keeps full precision internally and then rounds displayed results to your selected decimals to reduce unexpected drift.
What’s the difference between sales tax and VAT?
Sales tax is typically added at the point of sale as a separate amount on top of the listed price, so you often see the tax line and the total on the receipt. VAT (value-added tax) is usually applied throughout the supply chain and is often included in the displayed price in many regions. Because of that, VAT-inclusive pricing can make totals feel “built in,” while sales tax can feel like an add-on at checkout. This Sales Tax Calculator focuses on sales tax style calculations: pre-tax price, rate, tax amount, and total after tax.
What sales tax rate should I enter?
Enter the rate that applies to your purchase in percent form, such as 6.5, 8.25, or 10. If your receipt shows a rate, use that value. If you’re estimating, use the local rate for where the purchase is taxed, which may depend on jurisdiction rules and whether shipping location affects taxation for online orders. If you’re comparing scenarios, keep the rate consistent across calculations so you can isolate the price difference. The calculator also caps unusually high values to prevent accidental inputs like 825 instead of 8.25.
Should I round the tax amount before adding it to the total?
In most cases, you should avoid rounding until the final step, because early rounding can compound small errors. Many receipts show tax rounded to two decimals because currency is typically displayed that way, but the underlying computation can involve more precision. This calculator keeps full precision internally, then rounds the displayed tax and total to your selected decimals. If you need to match a specific receipt, try the same decimal setting and remember that some receipts round per item rather than on the subtotal.
Can the sales tax amount ever be zero?
Yes. If the sales tax rate is 0%, the tax amount is 0 and the total equals the pre-tax price. A tax amount can also be effectively zero if a rate is extremely small and rounding to few decimals pushes it down to 0.00. Additionally, some products or transactions may be exempt from sales tax, even in locations where sales tax exists. This calculator does not determine exemptions; it simply applies the rate you enter. If you suspect exemption, set the rate to 0 or use the applicable reduced rate if you know it.
How do discounts affect sales tax calculations?
Discounts can change the taxable base depending on how the discount is applied. If a discount reduces the pre-tax price before tax, the tax amount is computed on the discounted price, lowering both tax and total. Some receipts apply coupons or promotions differently across items, which can change the item-level taxable amounts. For accurate checking, use the pre-tax subtotal that the receipt treats as taxable and apply the same rate shown on the receipt. You can use Mode A for pre-tax-to-total math or Mode B to back into the pre-tax base from a final total.
Sources & References
- General guidance from state and local tax authority publications on sales tax rates and rounding practices.
- Common retail receipt calculation methods (subtotal vs item-level tax rounding).
- Basic percentage and multiplier math used for tax add-on and reverse calculations.
Related Calculators
Explore other tax tools that pair well with sales tax calculations.