Sales Tax Calculator

Add sales tax to a price, or work backwards from a tax-inclusive total to the pre-tax price and the tax included.

$
%
Your combined state + local rate. Rates vary by location and item.
Your rate is remembered on this device.

Results

Total including tax
$37.76
Sales tax
$2.88
Price before tax
$34.88

Estimate only. This tool is for informational and educational purposes. Results depend on your inputs and simplifying assumptions, and are not a substitute for professional engineering, design or financial advice. Always verify with a qualified professional and applicable codes before purchasing, building or making decisions.

How it’s calculated

Sales tax is the purchase price times the local tax rate. To reverse it, divide the total by (1 + rate). Subtracting the rate from the total (total × (1 − rate)) is a common mistake and gives the wrong pre-tax price.

Tax = Price × rate Total = Price × (1 + rate) Price before tax = Total ÷ (1 + rate)

Example (OpenStax Contemporary Mathematics, Example 6.22): a 34.88 purchase at 8.25% has tax 34.88 × 0.0825 = 2.88, for a total of 37.76. Reverse (Example 6.26): a 467.64 total at 8.25% came from 467.64 ÷ 1.0825 = 432.00, so the tax included was 35.64.

This is general arithmetic for a single rate. It does not determine which items are taxable or what tax you owe; check your state or local revenue department.

Frequently asked questions

How do I calculate the price before tax?

Divide the total by 1 plus the tax rate as a decimal. At 8.25%, a 108.25 total ÷ 1.0825 = 100.00 before tax.

Why not just subtract the tax percentage from the total?

Because the tax was calculated on the pre-tax price, not on the total. 108.25 × (1 − 0.0825) = 99.32, which is 0.68 too low.

What sales tax rate should I use?

Use the combined state, county and city rate for the place of sale. Your state revenue department publishes official rates; many items (like groceries) may be taxed differently.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Spotted a mistake or missing option? Report a problem · GitHub issue· Suggest a calculator