Skip to content

VAT calculator

Calculate VAT and convert between prices excluding and including VAT, at any rate (20%, 10%, 5.5%, 2.1%…).

Example: 19.99

The amount entered is

French rates: 20% (standard), 10%, 5.5%, 2.1%

Amount excl. VAT
€100.00
VAT
€20.00
Amount incl. VAT
€120.00

How to use

Enter the amount, say whether it excludes or includes VAT, then pick the rate: the amounts excluding VAT, the VAT and including VAT appear instantly, rounded to the cent.

API

Use this tool without the interface: public, free API, no key required.

Endpoint : POST https://tools.volcraft.fr/api/v1/tools/vat-calculator

Request example

curl -X POST https://tools.volcraft.fr/api/v1/tools/vat-calculator \
  -H 'Content-Type: application/json' \
  -d '{"amount":100,"rate":20,"from":"excl"}'

Response example

{
  "amountExclVat": 100,
  "vatAmount": 20,
  "amountInclVat": 120
}

Fields

FieldTypeDescription
amountnumber (input)Amount entered, 0 to 1,000,000,000 (rounded to the cent)
ratenumber (input)VAT rate in %, 0 to 100 (e.g. 20, 5.5)
fromstring (input)"excl" if the amount excludes VAT, "incl" if it includes VAT
amountExclVatnumber (output)Amount excluding VAT, to the cent
vatAmountnumber (output)VAT amount, to the cent (rounded half up)
amountInclVatnumber (output)Amount including VAT; excl. + VAT = incl. exactly

Errors and limits

StatusDescription
400Invalid JSON body, missing field or out-of-range value (the message names the field)
404Unknown tool or not available yet
413Body larger than 256 KB, or text longer than 10,000 characters
429More than 60 calls per minute from your IP address: retry after 60 seconds

Submitted data is neither stored nor logged.

Frequently asked questions

How is VAT rounded?

To the cent, half up. Amounts are computed in whole cents, so excl. VAT + VAT = incl. VAT exactly. From incl. to excl. VAT, the excl. amount is rounded and the VAT is derived from it.

Which VAT rates apply in France?

20% (standard), 10% (restaurants, renovation…), 5.5% (food, energy…) and 2.1% (reimbursed medicines, press). Any other rate from 0 to 100% is accepted, for other countries for instance.

Are my amounts sent or stored?

No. In the interface, the calculation happens in your browser. Through the API, data is processed and immediately discarded: it is neither stored nor logged.