Personal finance

How to Calculate Sales Tax: Formula, Rates and Examples

Calcuonline · Updated · 6 min

A long store receipt beside a shopping bag and a tag with a percent sign drawn on it

To calculate sales tax, multiply the price by the tax rate written as a decimal: on an $80 purchase at 7%, the tax is $80 × 0.07 = $5.60 and the total is $85.60. The hard part is usually not the math but the rate, because in the US it depends on the state, the county and the city where you buy. This guide shows the formula with worked examples, how state and local sales tax rates add up, and how to find the price before tax from a receipt total.

The sales tax formula

  1. Turn the rate into a decimal by dividing it by 100: 7% is 0.07 and 8.25% is 0.0825.
  2. Multiply the price by it to get the tax: sales tax = price × rate.
  3. Add the tax to the price for the total, or do both at once: total = price × (1 + rate).
Price Rate Sales tax Total
$25.00 6% $1.50 $26.50
$80.00 7% $5.60 $85.60
$149.99 8.25% $12.37 $162.36
$1,200.00 9.5% $114.00 $1,314.00

The tax is rounded to the cent, as on the third row ($12.3742 becomes $12.37), so a receipt that rounds the tax item by item can be a cent off from a result worked out on the total.

How state and local sales tax rates work

In the US, sales tax is set by the states and by the local governments they allow to levy it. According to the Tax Foundation, 45 states levy a statewide sales tax, and 38 states allow local sales taxes. Five states have no statewide sales tax: Alaska, Delaware, Montana, New Hampshire and Oregon, and of these, in the Tax Foundation’s count, only Alaska lets its localities add one.

The rate you pay is the combined rate: the state rate plus every local rate that applies where the sale happens, which can include a county, a city and special districts such as a transit authority. Texas is a typical example: it charges 6.25%, and cities, counties, special purpose districts and transit authorities can add up to 2% more, “for a maximum combined rate of 8.25 percent”.

Layer Rate Who sets it
State 6.25% The state
Local up to 2% City, county, districts
Combined up to 8.25% What you pay

Because local rates add on top, two stores a few miles apart can charge different rates, and a state with a moderate statewide rate can have a high combined one. Nationwide, the population-weighted average combined rate was 7.53% in mid-2026, according to the same Tax Foundation data. Rates change, so for a big purchase look up the exact rate for the address with your state’s revenue department.

Not everything is taxed at the same rate, either: the Tax Foundation notes that many governments exempt goods like groceries, so the tax on a receipt can differ from line to line.

Note: to find the price before tax, do not subtract the rate from the total. For a $107.00 total at 7%, $107.00 − 7% gives $99.51, which is wrong; the right answer, as the next section shows, is $100.00.

How to find the price before tax

If you know the total and the rate, divide the total by 1 plus the rate:

price before tax = total ÷ (1 + rate)

Total paid Rate Price before tax Sales tax
$107.00 7% $100.00 $7.00
$54.13 8.25% $50.00 $4.13
$26.50 6% $25.00 $1.50

The tax is then the total minus the price before tax. The same division works out a rate you do not know: divide the total by the price before tax and subtract 1. A $54.13 total on a $50.00 price is 54.13 ÷ 50 − 1 = 0.0826, so about 8.25% once the rounding to the cent is allowed for.

Sales tax on online purchases and use tax

Online stores charge sales tax too. Since the Supreme Court’s 2018 decision in South Dakota v. Wayfair, which overruled the old physical presence rule, a state can require an out-of-state seller to collect its sales tax, even when the seller has no store or office there.

When a seller does not collect it, the buyer may owe use tax instead. Washington’s Department of Revenue describes it as “a tax on the use of goods or certain services in Washington when sales tax was not paid at the time of purchase”, at the state rate plus the local rate of the place where you first use the item. Texas, likewise, levies its 6.25% as a “sales and use tax”.

Sales tax and VAT

Most countries outside the US use a value-added tax (VAT) instead. The Tax Foundation describes VAT as “a consumption tax assessed on the value added in each production stage of a good or service”: each business in the chain pays it and gets a credit for the VAT it already paid, while a US sales tax is charged once, on the final retail sale. At the checkout, though, the math the shopper sees is the same: a percentage added to the price.

That is why the VAT calculator works for sales tax. Pick a rate from its list, enter the price, and it shows the tax and the total; tick “The price includes VAT” and it takes the tax out of a total instead. Its list holds the VAT rates of many countries, so it suits a whole-number rate such as 6% or 7%: the full rate in Kentucky, Maryland and Michigan (6%) or in Indiana and Rhode Island (7%), none of which adds a local sales tax. For a combined rate like 8.25%, use the formula above.

How to calculate sales tax in 4 steps

  1. Find the combined sales tax rate for the place of sale: the state rate plus the local rates.
  2. Divide the rate by 100 to turn it into a decimal.
  3. Multiply the price by that decimal to get the tax, and add it to the price for the total.
  4. To go the other way, divide the total by 1 plus the rate to get the price before tax, or tick “The price includes VAT” in the VAT calculator.

Calculators in this article