Skip to main content
CodeLint.Dev Dev Tools

GST & VAT Calculator — Add or Extract

Add tax to a net amount or extract it from a gross one, at any rate.

GST / VAT Calculator

Add or remove tax · preset rates for 30+ countries · 100% client-side

%
Base Amount
1,000.00
Tax Amount (18%)
180.00
Total (incl. tax)
1,180.00

Country Presets

🇮🇳 India (GST)
🇦🇺 Australia (GST)
🇬🇧 UK (VAT)
🇩🇪 Germany (VAT)
🇫🇷 France (VAT)
🇮🇹 Italy (VAT)
🇪🇸 Spain (VAT)
🇳🇱 Netherlands (VAT)
🇨🇦 Canada (GST/HST)
🇳🇿 New Zealand (GST)
🇸🇬 Singapore (GST)
🇯🇵 Japan (JCT)
🇰🇷 South Korea (VAT)
🇨🇳 China (VAT)
🇧🇷 Brazil (ICMS)
🇲🇽 Mexico (IVA)
🇿🇦 South Africa (VAT)
🇸🇦 Saudi Arabia (VAT)
🇦🇪 UAE (VAT)
🇵🇰 Pakistan (GST)
🇧🇩 Bangladesh (VAT)
🇮🇩 Indonesia (PPN)
🇵🇭 Philippines (VAT)
🇹🇭 Thailand (VAT)
🇧🇪 Belgium (VAT)
🇵🇱 Poland (VAT)
🇸🇪 Sweden (VAT)
🇳🇴 Norway (VAT)
🇩🇰 Denmark (VAT)
🇦🇹 Austria (VAT)

Adding and extracting

Extracting is the direction people get wrong. You cannot subtract the percentage from a tax-inclusive price.

gross = net × (1 + rate) net = gross ÷ (1 + rate) tax = gross − net

net
Price excluding tax
gross
Price including tax
rate
Tax rate as a decimal (0.20 for 20%)

Worked example

Gross price
120.00 including 20% VAT
Correct: 120 ÷ 1.20
net 100.00, VAT 20.00
Wrong: 120 − 20%
net 96.00, VAT 24.00

The wrong method overstates the tax by 4.00 on every 120

The 20% was calculated on 100, not on 120, so it has to be divided out rather than subtracted. The error grows with the rate: at 25% the mistake is 5 on every 125.

Standard rates in major markets

Reduced and zero rates apply to specific categories in most systems.

Country / regionStandard rateNotes
United Kingdom20%Reduced 5%, zero-rated food and children’s clothing
European Union17–27%Set nationally; Luxembourg lowest, Hungary highest
India (GST)5 / 12 / 18 / 28%Slab system by product category, plus cess on some goods
Australia (GST)10%Basic food, health and education mostly exempt
Canada (GST/HST)5–15%Federal GST plus provincial component, varies by province
Singapore (GST)9%
New Zealand (GST)15%Very few exemptions — deliberately broad base
United StatesNo VATState and local sales tax instead, added at the till

The US model differs fundamentally: sales tax is levied once at the final sale and displayed prices usually exclude it, while VAT and GST are collected at each stage with credits for business inputs and displayed prices usually include it.

About

The GST/VAT Calculator helps businesses, accountants, and consumers quickly compute tax-inclusive and tax-exclusive amounts for any GST or VAT rate. Use "Add Tax" mode to calculate the gross price from a net price, or "Remove Tax" mode to extract the net price from a tax-inclusive amount. The tool includes preset rates for over 30 countries — from India's four GST slabs (5%, 12%, 18%, 28%) to the UK's 20% VAT, Australia's 10% GST, EU country rates, and many more. All calculations are instant and run entirely in your browser.

How to use

  1. 1 Choose the mode: "Add Tax to Amount" (you have the pre-tax price and want the total) or "Remove Tax from Amount" (you have the gross price and want the base).
  2. 2 Enter the amount in the input field.
  3. 3 Set the tax rate manually, or click a country preset and then click the specific rate button (e.g., India → 18%).
  4. 4 The three result cards update instantly: Base Amount, Tax Amount, and Total (inclusive of tax).
  5. 5 Use the country preset grid to quickly switch between different jurisdictions.
  6. 6 For cascading taxes or multiple tax components (e.g., CGST + SGST in India), calculate each component separately using 9% twice instead of 18% once.
What is the difference between GST-inclusive and GST-exclusive pricing?
GST-exclusive (or "net") pricing shows the price before tax is added. GST-inclusive (or "gross") pricing is the final price the customer pays, with tax already included. In B2B transactions, prices are often quoted exclusive of tax because businesses can claim the input tax credit. In B2C retail, prices are typically quoted inclusive. To go from exclusive to inclusive: multiply by (1 + rate/100). To extract tax from an inclusive price: subtract (price ÷ (1 + rate/100)).
What are the GST slabs in India?
India's GST has four main rate slabs: 5% (essential goods, some food items, transport services), 12% (processed food, some medicines, business-class air travel), 18% (most services, electronics, consumer goods — the most common rate), and 28% (luxury goods, tobacco, automobiles, cement). Some items are exempt (0%) including fresh food, healthcare, and education. A composition scheme applies to small businesses with turnover below ₹1.5 crore at rates of 1–5%.
How do I calculate VAT in reverse (remove VAT from a price)?
To remove VAT from a gross (VAT-inclusive) price, divide by (1 + VAT rate). For example, to extract 20% VAT from a £120 gross price: £120 ÷ 1.20 = £100 net, so VAT = £20. This tool does this automatically when you select "Remove Tax from Amount" mode. The formula works for any rate — for 18% GST, divide by 1.18; for 10% GST, divide by 1.10.