Sales Tax Calculator: Before and After Tax
Add or back out one sales tax percentage you enter, or infer the percentage from the before-tax and checkout amounts.
Result
How is this calculated?
The percentage is a share of the before-tax amount. Add tax to go forward; divide by the gross multiplier to go backward.
Worked example: Apply an entered 6% rate to 175
Multiply 175 by the hypothetical rate 0.06 to get 10.50, then add it for a price of 185.50. The rate is only an example, not a jurisdiction rate.
Method and limits
For one amount and one user-supplied tax percentage only. No rate lookup, jurisdiction, eligibility, exemptions, tax filing or invoicing advice. The linked authority illustrates the arithmetic; its rules and rates are not applied here. Forward calculation rounds tax half up at the selected money precision; a reverse calculation rounds the algebraic net half up, then uses the remaining difference or preserves the tax amount supplied. An implied percentage uses displayed amounts and may differ from the original rate. It is displayed to at most eight decimal places; a tiny positive result can display as zero. Enter one currency throughout.
How to use this calculator
- Choose whether you know the before-tax amount, the after-tax total, or both. Enter the applicable percentage yourself when the mode requires it.
- Pick decimal precision for the money amounts. Use one currency throughout and enter an amount subject to the same percentage.
Back out one entered percentage from a total
With an after-tax total of 185.50 and an entered rate of 6%, divide by 1.06 to get a before-tax amount of 175.00. The difference is 10.50.
Apply the percentage to the amount before tax
Tax = before-tax amount × rate ÷ 100. Starting with a total instead, divide by 1 + rate ÷ 100. Subtracting the entered percentage directly from the total uses the wrong base.
Treat an inferred rate as a check
The inferred rate uses the difference between the two displayed amounts, divided by the before-tax amount. Very small purchases can produce an inferred rate that differs from the original after rounding.
Frequently asked questions
- How do I handle items taxed at different rates?
- Keep separate taxable subtotals and run the calculation for each rate. Add them only after applying the rounding your own records require. This tool does not assign rates.
- Why is the rate estimated from two prices not necessarily exact?
- If the displayed difference was rounded at checkout, dividing it by the displayed original price gives an implied rate. Small amounts can hide more than one underlying rate.
- Which charges are included in the base?
- Supply the applicable single-rate base yourself. The calculator cannot classify discounts, delivery charges, exempt items, or other fees.
- Will reversing a total always reproduce my receipt?
- No. At two decimals, a total of 0.05 and a rate of 10% split algebraically to 0.05 and 0.00. Starting from 0.05 before tax instead rounds the tax to 0.01. The reverse result flags this mismatch.
Common mistakes and limits
- Single-rate arithmetic, not a rate lookup or tax determination. No exemption, filing, or invoicing rules are applied.
- Forward mode rounds the tax once, half up, at the selected precision; reverse mode rounds the before-tax estimate. Receipt line-rounding can differ.
Sources & methodology
Related calculators
- Discount Calculator: Percentage or Fixed Amount
Find the sale price or work backward from a known price and one discount.
- Percent Off Calculator
Calculate the sale price and total savings after one or two sequential percentage discounts, or work backward from a checkout price.
- VAT Calculator: Net, Gross and VAT Amount
Add VAT to a net amount, remove VAT from a gross price, or solve from another known pair using the values you enter.
- Tip Calculator: Compare Tips or Split a Bill
Compare percentages side by side, or split a tipped bill so the payable shares add back to the total.