๐งพVAT Calculator
Add VAT to a net amount or remove VAT from a gross amount. Standard VAT rates for 36 countries are built in, or override with any custom rate.
Worked examples
Add 19% VAT to 100 (DE)
GET /api/v1/calculators/vat-calculator?amount=100&country=DE&op=add
Result: 119
Remove 20% VAT from 240 (GB)
GET /api/v1/calculators/vat-calculator?amount=240&country=GB&op=remove
Result: 200
Add custom 7.7% to 500
GET /api/v1/calculators/vat-calculator?amount=500&rate=7.7&op=add
Result: 538.5
Machine API (x402)
$0.001 / callThis tool is also a JSON API for AI agents. Requests without payment receive 402 Payment Required plus instructions; agents pay USDC on Base via the x402 protocol โ no accounts, no API keys.
GET /api/v1/calculators/vat-calculator?amount=100&country=DE&op=add HTTP/1.1
Host: agenttools-hub.vercel.app
โ 402 (payment required, instructions in headers)
โ 200 (after X-PAYMENT header; JSON body below)
{
"tool": "calculators/vat-calculator",
"input": {"amount":100,"country":"DE","op":"add"},
"result": { "value": 119, "answer": "119" }
}Agent docs: /llms.txt ยท OpenAPI spec ยท integration guide
About this tool
Add VAT to a net price or extract the VAT contained in a gross price. The standard rate is selected per country (36 built in, e.g. DE 19%, GB 20%, SE 25%) and any custom rate can be entered directly.
gross = net ร (1 + rate/100) ยท net = gross ร 100 รท (100 + rate)
Frequently asked questions
How do I remove VAT from a gross price?
Divide the gross amount by 1 + rate/100. For 20% VAT: net = gross รท 1.2. Choosing "Remove VAT" does this for you and shows the VAT portion.
Why is the US rate 0%?
The US has no federal VAT; sales tax is set state and local level. Enter your local sales tax as a custom rate.
Are these rates up to date?
Rates reflect standard rates at publication and change occasionally. Always verify against your tax authority before invoicing โ this tool is not tax advice.