
VAT calculator
Find net, VAT and gross amounts using an entered rate.
Your inputs stay in your browser.
Method and assumptions
Method version 1.0.0 · Updated
Calculate VAT
Formula: Gross = net × (1 + rate/100); net = gross / (1 + rate/100)
Enter your rate: no country or statutory rate is chosen automatically. One rate applies to one total amount. The starting amount is rounded. From net, VAT is rounded then added; from gross, net is rounded and VAT is the difference. Example: net 100 at 20% → VAT 20, gross 120. No multiple-rate breakdown or per-invoice-line rounding.
- amount
- Starting amount
- direction
- The entered amount is
- rate
- VAT rate (%)
- precision
- Money decimal places
All amounts use the same currency, without conversion. Choose 0, 2 or 3 decimal places for your needs. Rounded to nearest, ties up.
Calculate with code
These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.
JavaScript
const beforeTax = 100, rate = 20;
console.log(beforeTax * (1 + rate / 100)); // 120TypeScript
const beforeTax = 100, rate = 20;
console.log(beforeTax * (1 + rate / 100)); // 120Python
before_tax, rate = 100, 20
print(before_tax * (1 + rate / 100)) # 120.0Java
double beforeTax = 100, rate = 20;
System.out.println(beforeTax * (1 + rate / 100)); // 120.0C#
double beforeTax = 100, rate = 20;
Console.WriteLine(beforeTax * (1 + rate / 100)); // 120