Sales tax formula
Sales tax is calculated from the price before tax and the applicable rate. This guide focuses on the arithmetic for a sales-tax calculation; it does not determine which rate legally applies.
Final price = Before-tax price + Sales tax
Worked example: calculate tax on a before-tax price
Suppose an item costs $250 before tax and the applicable rate is 7.5%.
- Convert 7.5% to 0.075.
- Calculate $250 × 0.075 = $18.75.
- Add the tax to the before-tax price: $250 + $18.75 = $268.75.
The tax amount is $18.75 and the final price is $268.75, assuming the stated rate applies and no other charges are included.
Recover the before-tax price from an inclusive total
If the displayed price already includes tax, do not multiply the full total by the rate. Divide the inclusive amount by one plus the rate expressed as a decimal.
Tax portion = Inclusive total − Before-tax price
For example, if a total of $107 includes tax at an assumed 7%, the before-tax amount is $107 ÷ 1.07 = $100 and the tax portion is $7.
Step-by-step calculator workflow
- Confirm the applicable sales-tax rate for the jurisdiction and transaction.
- Identify whether the entered amount is before tax or tax-inclusive.
- Enter the amount and rate into the Sales Tax Calculator.
- Review the tax amount and final price.
- Check rounding and any line-item rules required by your invoicing process.
Rates, exemptions and jurisdiction
Rates can vary by location, product, service, customer and transaction type. Some transactions may be exempt or subject to special treatment. A mathematical result does not prove that a transaction is taxable or that the entered rate is correct.
Rounding and multiple items
For invoices with several line items, totals can differ depending on whether tax is calculated and rounded for each line or on a taxable subtotal. Follow the method required by the relevant jurisdiction or accounting workflow; do not assume one rounding approach applies everywhere.
Common mistakes
- Adding tax to a total that already includes it.
- Entering a percentage as a whole number in a formula that expects a decimal, or vice versa.
- Using a rate from the wrong location.
- Ignoring exemptions or special product rules.
- Rounding intermediate values inconsistently.
Before using the result for an invoice
- Confirm the pre-tax price and tax rate.
- Verify that the transaction is taxable.
- Check the tax amount and final amount.
- Apply the required rounding method.
- Review the invoice against the applicable rules.
Related guide: sales tax and VAT
Sales tax and VAT can both appear as a percentage on a transaction, but their rules and accounting mechanisms differ. For a comparison of tax-exclusive and tax-inclusive prices and the distinction between these tax systems, read the Sales Tax and VAT Calculator Guide.
Important limitation
This guide explains price arithmetic only. It does not provide a legal tax determination or establish the correct rate for your transaction. Verify applicable rules with the relevant tax authority or a qualified professional.
Tax-Exclusive and Tax-Inclusive Prices
A tax-exclusive price is the amount before sales tax is added. A tax-inclusive price already contains the tax. The calculation depends on which amount is known, the applicable tax rate and the rules in the relevant jurisdiction. Do not add tax again to a price that already includes it.
Worked Examples
If a tax-exclusive item costs 80 and the applicable rate is 7.5%, the tax is 80 × 0.075 = 6 and the tax-inclusive total is 86. If the known tax-inclusive total is 86 at the same rate, the pre-tax price is 86 ÷ 1.075 = 80, rounded as appropriate. These examples illustrate the arithmetic only; actual tax treatment and rounding rules vary by location.
| Known amount | Calculation | Result |
|---|---|---|
| Tax-exclusive price | Price × rate | Tax amount |
| Tax-exclusive price | Price × (1 + rate) | Tax-inclusive total |
| Tax-inclusive total | Total ÷ (1 + rate) | Tax-exclusive price |
| Tax-inclusive total | Total − pre-tax price | Included tax amount |
Confirm the Applicable Rate
Sales-tax rules may depend on where a sale is sourced, the type of product or service, exemptions, seller registration and local rules. A general calculator can apply a rate supplied by the user, but it cannot determine every jurisdiction-specific obligation from the price alone. Verify the current rate and taxability with the relevant official tax authority.
Rounding and Multiple Taxes
Some jurisdictions require rounding per line item while others use invoice-level calculations. Local, regional and national taxes may also interact, and not every tax is applied to the same base. If the final invoice differs by a small amount, check the official rounding method, the rate entered and whether more than one tax applies.
Important Limitations
This calculation is a planning aid and is not a tax determination. It does not automatically account for exemptions, resale certificates, special product categories, marketplace rules or cross-border transactions. For invoicing or compliance, confirm the treatment using current official guidance or a qualified tax professional.