How to calculate sales tax
Multiply the price by the tax rate as a decimal to get the tax, then add it to the price. At an 8% rate, a $100 item carries $100 x 0.08 = $8.00 of tax and costs $108.00 in total. In one step, multiply the price by 1 plus the rate: $100 x 1.08 = $108.00.
The calculator runs the same relationship three ways:
| You know | You want | Formula | Example |
|---|---|---|---|
| Price and rate | Total | price x (1 + rate / 100) | $100 at 8% = $108.00 |
| Total and rate | Price before tax | total / (1 + rate / 100) | $108 at 8% = $100.00 |
| Price and total | Rate | (total - price) / price x 100 | $100 to $108 = 8% |
The 8% in these examples is only an illustration. The calculator does not know your rate: you enter it.
Which rate to use
Use the combined rate that applies to the sale. In the United States, sales tax is set by states and often added to by counties, cities and special districts, so the rate can change from one address to the next, and some places charge none. Whether an item is taxed at all also varies: groceries, clothing, software and services are treated differently from place to place.
Look the rate up with the revenue or tax department for the location, or use the rate your point of sale or ecommerce platform applies. For online and out-of-state sales, the rules on which rate applies and when a seller has to collect differ by state. If you are unsure whether you need to collect, ask an accountant. This page explains the arithmetic, not your obligations.
How to remove sales tax from a total
Divide the total by 1 plus the rate. A receipt of $108.00 at 8% is $108 / 1.08 = $100.00 before tax, with $8.00 of tax.
Do not multiply the total by the rate and subtract. $108 x 0.08 = $8.64, which overstates the tax, because the rate applies to the pre-tax price and not to the total. This reverse calculation is the one to use when booking receipts, pulling revenue out of tax-inclusive takings, or checking what a tax-inclusive price leaves you.
How to read the result
For a business, sales tax collected is not revenue. It is money held for the tax authority. Keep it out of the figures you use for profit margin and markup, and work those out on the pre-tax price.
Two details affect the total on real invoices:
- Discounts usually come off first. A percentage discount from the seller normally reduces the taxable price, so apply it before the tax.
- Rounding happens per line or per invoice. Different systems round at different points, which can move a total by a cent.
Common mistakes
- Taking tax off the total with the wrong sum. Divide by 1 plus the rate. Do not subtract rate x total.
- Using one rate everywhere. A single state-level rate is often lower than the combined local rate actually charged.
- Counting tax as income. Tax collected inflates revenue and margin if it is left in.
- Confusing sales tax with VAT. VAT is charged at each stage of the supply chain and prices are often quoted with it included. The arithmetic on this page works for adding or removing either, but the rules behind them differ.