# Sales tax calculator

Sales tax added to a price is the price times the rate. The total is the price times (1 + rate). To extract tax from a total, divide the total by (1 + rate). The difference is the tax that was included. A combined rate of 8.25 percent is 0.0825. Rates are local. This page does not look up a ZIP code.

Canonical page: https://tools.torontosoft.com/calculators/business/sales-tax-calculator/

## Formula

Add: tax = amount × rate, total = amount + tax. Extract: pretax = amount ÷ (1 + rate), tax = amount − pretax.

## Worked example

On a $250 pretax price at 8.25 percent, the tax is $20.63 and the total is $270.63. If $270.63 is the amount you were charged, extracting 8.25 percent returns the $250 price.

- Total with tax: $270.63
- Tax: $20.63
- Price before tax: $250.00

## Assumptions

- One flat rate. A state rate plus a city rate should be added together before you type it.
- The item is taxable. Groceries, labor, and resale certificates are jurisdiction-specific and are not detected here.
- Rounding is to the cent at the end, the way a currency display works. A register may round each line.

## Sources

- The add and extract identities are the definition of a flat ad-valorem tax. The rate itself has to come from the taxing authority for the place of sale.

## Questions

### How do I calculate sales tax?

Multiply the pretax price by the rate. At 8.25 percent, tax on $250 is $20.63. Add it to the price for the total.

### How do I remove sales tax from a total?

Divide the total by 1 plus the rate. A total of $108.25 at 8.25 percent is $100 before tax.

### Does this know my state's rate?

No. You enter the rate. Combined rates differ by city and by what is being sold.


This is a planning estimate. It is not engineering, electrical design, or tax advice.
