Calculator of Alexandria

Sales tax calculator

Add sales tax to a price, or back the tax out of a total that already includes it.

The price I have is
Price with tax
Tax
Price before tax

Formula

T=x(1+r100)T = x\left(1 + \frac{r}{100}\right)
How it's derived

The formula

T=x(1+r100)T = x\left(1 + \frac{r}{100}\right) x=T1+r/100x = \frac{T}{1 + r/100}

xx is the price before tax, rr the tax rate in percent and TT the total you pay.

Where it comes from

The tax is rr percent of the price, x⋅r/100x \cdot r/100. Adding it to the price and factoring out xx gives the multiplier form:

T=x+x⋅r100=x(1+r100)T = x + x\cdot\frac{r}{100} = x\left(1 + \frac{r}{100}\right)

At 8.25%, every price is multiplied by 1.0825. Going backwards, from a receipt total to the pre-tax price, means dividing by that same multiplier.

Worked example

A $49.99 item at 8.25% tax:

T=49.99×1.0825=54.11T = 49.99 \times 1.0825 = 54.11

Backing tax out of a $108.25 total: 108.25/1.0825=100.00108.25 / 1.0825 = 100.00, so $8.25 of it was tax.

Watch out for

  • Don’t subtract the percentage from the total. 8.25% of $108.25 is $8.93, more than the $8.25 of tax actually paid. The tax was a percentage of the smaller, pre-tax number.
  • Rates are local. In the US, state, county and city rates stack, so look up the combined rate for the address.

Last checked