How To Calculate Sales Tax and VAT

Learn how to add tax to a price, back out tax from an inclusive total, and avoid common rounding errors.

4 min read Updated Jun 2026

Quick Answer

How is sales tax calculated? To add tax, multiply the price by the rate and add it: $100 at 8.25% tax becomes $108.25. To go the other way and reverse tax, divide the total by one plus the rate: $108.25 ÷ 1.0825 = $100.00.

Try the Tax Calculator →

How the Tax Calculator Works

The tool works from one rule: tax is a percentage of the net, pre-tax price. To add tax it computes price × rate ÷ 100 and adds it to the price. To reverse tax from a gross total it divides by 1 + rate ÷ 100, which undoes that multiplication exactly. Everything updates live as you type, and the tax line is shown on its own so you can copy it straight onto an invoice.

Adding Tax To A Price

Sales tax, VAT, and GST all work the same way arithmetically: they are a percentage of the net (pre-tax) price. The tax is price × rate ÷ 100, and the customer pays price + tax. The calculator shows the tax on its own line so you can put it on an invoice or check a quote.

Working Backwards From A Total

A receipt often shows only the tax-inclusive total, and you need the pre-tax figure for bookkeeping. The trap is subtracting the rate from the total: 8.25% of $108.25 is $8.93, which overshoots. Because the tax was charged on the smaller original price, you divide instead: total ÷ (1 + rate ÷ 100). That returns the true $100.00, and the included tax is the $8.25 difference.

Why Totals Can Differ By A Cent

Tax math rarely lands on a clean cent, so every system rounds, but not identically. Some round each line item, others round the tax total, and jurisdictions specify different rules. This tool rounds the displayed amounts to two decimal places, which can occasionally sit a cent away from a particular store's till. For exact filing, follow your local rounding rule.

Adding Tax vs Removing Tax, and Sales Tax vs VAT

Adding tax vs removing tax are inverse operations: adding multiplies the net price by one plus the rate, while removing divides the gross total by the same factor. As a sales tax calculator you enter the pre-tax price; to reverse vat you enter the tax-inclusive price and the tool backs out the net. Sales tax vs VAT is mostly a matter of where the tax sits in the chain: US sales tax is added once at the till, while VAT and GST are collected at each stage, but the arithmetic a vat calculator uses is identical. The tax rate applies to the net figure in every case.

Examples

Add tax to a price. For example, input: $100 at 8.25%. Output: $8.25 tax and a $108.25 total. That is add tax in one step.

Back out tax from a total. For example, a receipt shows $108.25 including 8.25%. Output: $100.00 net and $8.25 tax, because you divide by 1.0825 rather than subtract.

Quote a VAT-inclusive price. For example, a net figure of 200 at 20% VAT gives a 240 tax-inclusive price, ready to show a customer.

Common Mistakes

You May Also Need

You may also need

Next steps

Alternatives

Continue Learning