Skip to content
Built in Lahore, PakistanHow we check the math
mathbehind

VAT and Sales Tax Calculator

Add tax to a net price, or take it out of a price that already includes it. Works with any currency and any rate.

By Muhammad Ahmad, Software EngineerLinkedIn· figures checked

Your numbers

Before tax if adding, including tax if removing. Any currency.

%

For example 20% UK VAT, or your state's sales tax rate.

Your answer

120.00

Price before tax
100.00
Tax amount
20.00
Price including tax
120.00
The math behind it
  1. Tax

    100 × 20%equals20

  2. Price including tax

    100 + 20equals120

Adding tax to a price is easy. Taking it back out is where people slip, because you cannot simply subtract the tax rate from a price that already includes it. This calculator does both directions, for VAT, GST or sales tax, at any rate.

Figures checked by Muhammad Ahmad against HMRC: VAT rates, European Commission: VAT rates in EU countries and UAE Federal Tax Authority: VAT. Prices and rules change, so confirm with the official source before relying on them. How we check the math

How it works

To add tax, multiply the net price by the tax rate to get the tax, then add it on. At 20%, a price of 100 gets 20 of tax and becomes 120.

To remove tax, divide the gross price by (1 + the tax rate). At 20%, that means dividing by 1.2. A price of 100 including tax is 83.33 before tax, and the tax inside it is 16.67.

Taking 20% off 100 would give 80, which is wrong. The tax was 20% of the net price, not of the gross price, so removing it needs division rather than subtraction.

A worked example

At a 20% rate, adding tax to 100 gives 120. Removing tax from a price of 100 that already includes it gives 83.33 before tax, with 16.67 of tax included.

More examples

Removing 18% tax from 1,180 gives 1,000 before tax and 180 of tax. Divide by 1.18; don't subtract 18%.

Common mistakes

  • Subtracting the rate instead of dividing by (1 + rate).
  • Rounding each invoice line and then the total differently.
  • Using the standard rate for goods that have a reduced rate.
  • Applying a fixed-amount discount after tax when the invoice applies it before.

Questions people ask

Why is removing 20% VAT not the same as taking 20% off?

Because the 20% was calculated on the smaller, pre-tax price. Taking 20% off the bigger, tax-inclusive price removes too much. Dividing by 1.2 reverses the original multiplication exactly.

Which currency does this use?

Any. The calculator works on plain amounts, so the results are in whatever currency you entered.

What rate should I use?

Use the rate that applies to what you are selling and where. Rates differ by country, and within a country there can be reduced rates for some goods, or different sales tax rates by state and city. Check your tax authority's current rates for anything you invoice.

How do I remove VAT from a price?

Divide the price by 1 plus the VAT rate. A price of 115 including 15% VAT is 115 ÷ 1.15 = 100 before VAT, so the VAT is 15.

What is the difference between VAT and sales tax?

VAT is charged at every stage of the supply chain, and registered businesses reclaim the VAT they paid on purchases. US-style sales tax is charged once, on the final sale to the customer, at rates set by states and local areas.