Tax
How To Calculate Sales Tax
Sales tax and VAT calculations have one common trap: the rate applies to the net price, not to the gross. Adding tax to a net figure means multiplying; removing tax from a gross figure means dividing, and using the wrong operation gives an answer that is close enough to look right but wrong by the tax amount.
Quick Answer
Gross = net x (1 + rate) ; Net = gross / (1 + rate)
- rate
- Sales tax or VAT rate as a decimal
- net
- Price before tax
- gross
- Price including tax
To add tax, multiply the net price by one plus the rate. To remove it, divide the gross by one plus the rate. A 100 net price at 8% becomes 108 gross, and a 108 gross price strips back to 100 net with 8 of tax. The second step divides, never multiplies, because the rate applies to the smaller pre-tax figure, not the larger total.
What Is Sales Tax?
Sales tax is charged on the sale of goods and services and is added to the price the buyer pays. In most systems the seller collects it and remits it to the tax authority. VAT works the same way from the buyer's point of view but is collected at each stage of production.
The rate applies to the net, or pre-tax, price. To add the tax you multiply the net price by one plus the rate. A 100 item at 8% costs 108, of which 100 is the seller's revenue and 8 is the tax.
To work backwards from a gross price, divide rather than multiply. A gross of 108 divided by 1.08 gives 100 net and 8 of tax. Multiplying 108 by 8% instead gives 8.64, which is the single most common error in these calculations and overstates the tax.
The reason the two directions are not symmetric is that the base is different. When adding, the base is the net price. When removing, the gross already includes the tax, so the tax rate must be applied to a figure that is lower than the gross by exactly the tax amount.
Multiple rates complicate the picture. Many jurisdictions charge a lower rate on essentials and a higher rate on luxury goods, and some items are exempt entirely. Each rate should be applied to the portion of the basket it governs.
In the United States sales tax is set at state and local level and is generally not included in the displayed price, so the buyer adds it at the till. In many other countries VAT is included in the displayed price by law, so the calculation runs in the other direction.
Businesses registered for VAT or sales tax usually reclaim the tax they pay on inputs, so for them the tax is not a true cost. Consumers cannot reclaim it, so the full amount is a real cost to them.
The formula here handles a single rate on a single price. For a mixed basket, apply the calculation to each taxed portion and add the results, keeping exempt items out of the taxable base entirely.
Rounding rules matter more than they look. Tax authorities often require the tax to be rounded to the nearest cent at the level of each line item rather than on the invoice total, and the two approaches can differ by a cent or two on a long receipt. For a single purchase the difference is trivial, but for a business filing thousands of transactions it becomes a reconciliation headache.
The tax is regressive in effect. A flat rate takes a larger share of a low income than a high one, because spending consumes a bigger fraction of a smaller budget. That is why many jurisdictions exempt food, medicine, and children's clothing, so that the poorest households pay little or no tax on the essentials they cannot avoid buying.
Compliance sits with the seller, not the buyer. A business that fails to charge the right tax, or charges it and then fails to remit it, is liable for the shortfall even though the money came from customers. Good point-of-sale systems apply the correct rate by product category automatically, which is why getting the product tax codes right at setup saves real money later.
Internet sales changed the landscape. For years, remote sellers could avoid collecting tax where they had no physical presence, giving them a price advantage over local shops. Modern rules in most countries now require collection once a seller crosses a threshold of sales into a state or country, which has largely levelled the playing field.
When you quote a price to a customer, be explicit about which figure you mean. A quote of 100 that the buyer assumes is final can turn into a dispute when 8 of tax appears at the till. Stating whether a figure is net or gross, and naming the rate, removes the ambiguity entirely and is standard practice in business-to-business contracts.
Formula
Gross = net x (1 + rate)
Multiply the pre-tax price by one plus the rate.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| N | Net price | currency | Price before tax. |
| r | Tax rate | rate | Rate as a decimal. |
Net = gross / (1 + rate)
Divide the gross price by one plus the rate to recover the pre-tax amount.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| G | Gross price | currency | Price including tax. |
| r | Tax rate | rate | Rate as a decimal. |
How To Calculate Sales Tax
- 1
Decide which figure you have
If you have the pre-tax price you are adding tax; if you have the total you are removing it. The two use different operations.
- 2
Convert the rate to a decimal
8% becomes 0.08 and 20% becomes 0.20.
- 3
Add one to the rate
This gives the multiplier, such as 1.08 for 8% or 1.20 for 20%.
- 4
Multiply or divide
Multiply a net price by the factor to get gross, or divide a gross price by the factor to get net.
- 5
Find the tax amount
The tax is the gross minus the net, which is 8 for a 108 gross at 8%, or 16.67 for a 100 net at 20%.
Examples
Example 1: Adding 8% sales tax to a 100 net price
- Price
- 100
- Rate
- 8%
- Mode
- add
| Step | Calculation | Result |
|---|---|---|
| Multiplier | 1 + 0.08 | 1.08 |
| Gross price | 100 x 1.08 | 108.00 |
| Tax amount | 108.00 - 100 | 8.00 |
Result: The gross price is 108.00, of which 8.00 is sales tax.
Example 2: Removing 20% VAT from a 120 gross price
- Price
- 120
- Rate
- 20%
- Mode
- remove
| Step | Calculation | Result |
|---|---|---|
| Divisor | 1 + 0.20 | 1.20 |
| Net price | 120 / 1.20 | 100.00 |
| Tax amount | 120 - 100 | 20.00 |
Result: A 120 gross price is 100.00 net plus 20.00 of VAT, not 96.00 as multiplying by 20% would wrongly suggest.
Calculator
Price including tax
$108.00
- Price before tax
- $100.00
- Tax amount
- $8.00
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the Sales Tax calculator page.
Common Mistakes
Multiplying the gross price by the rate to remove tax
This is the classic error. A 120 gross at 20% VAT is 100 net, not 96, because the rate applies to the net figure, not the total. Always divide when removing tax.
Applying the rate to the wrong base
Tax is calculated on the pre-tax price. Adding it to an already-taxed figure double-counts and inflates the total.
Mixing up included and excluded pricing
Some regions display prices with tax included and others without. Check which convention applies before choosing the direction of the calculation.
Forgetting that rates vary by item
Essentials, luxury goods and exempt items can carry different rates. Apply each rate to its own portion rather than one rate to the whole basket.
Ignoring local add-ons
Sales tax often stacks state, county and city rates. The combined rate, not the headline state rate, is what the buyer pays.
Assuming businesses bear the tax
Registered businesses usually reclaim input tax, so the tax is ultimately borne by the consumer. Only unregistered buyers cannot recover it.
Rounding the tax before summing
Rounding each line before adding can produce a total a few cents off. Round once at the end for a clean figure.
FAQ
How do I remove sales tax from a total price?
Divide the total by one plus the rate. For a 108 total at 8%, divide by 1.08 to get 100 net and 8 of tax. Multiplying by 8% gives the wrong answer.
What is the difference between sales tax and VAT?
Sales tax is added once at the final sale. VAT is collected at each stage of production but ultimately paid by the consumer. From the buyer's arithmetic the two are identical.
Why is removing tax not the reverse of adding it?
The base differs. Adding applies the rate to the net price; removing has to work backwards from a gross that already includes tax, so it divides by one plus the rate rather than subtracting the rate.
Do all items carry the same rate?
No. Many jurisdictions tax essentials at a reduced rate and exempt some goods entirely. Apply each rate to the portion it covers and exclude exempt items from the taxable base.
Do businesses pay sales tax?
Registered businesses usually reclaim the tax on their purchases, so it is not a true cost to them. Consumers cannot reclaim it, so they bear the full amount.
How do I handle multiple tax rates?
Split the basket by rate, calculate tax on each portion separately, then add the tax amounts and the net amounts. Keep exempt items out of the taxable base entirely.
References
- [1]Investopedia, Sales tax — https://www.investopedia.com/terms/s/salestax.asp
- [2]OECD, Value added tax — https://www.oecd.org/tax/consumption-taxes/
- [3]Tax Foundation, State and local sales tax rates — https://taxfoundation.org/data/all/state/state-sales-gasoline-cigarette-tax-rates/