HOW IT WORKS
Forward & reverse sales tax formulas
US sales tax is an ad valorem percentage added at checkout to the pre-tax price. Depending on which two values you have, you can solve forward for the receipt total, work backward from a tax-included total, or verify the tax rate charged on a receipt.
Solve for After-Tax Price
Multiply the pre-tax price by the tax rate and add it to the subtotal:
Tax = BeforeTax × (Rate ÷ 100), Total = BeforeTax + TaxReverse: Solve for Before-Tax Price
Divide the tax-included total by (1 + Rate ÷ 100)—never simply subtract the tax percentage from the gross total:
BeforeTax = AfterTax ÷ (1 + Rate ÷ 100)Solve for Sales Tax Rate
When you know both the pre-tax price and final receipt total:
TaxRate (%) = [(AfterTax − BeforeTax) ÷ BeforeTax] × 100