Jsonpage · SIREN and SIRET API

Calculate a French VAT number from the SIREN

In France, the VAT number is derived from the SIREN: FR, a two-digit key, then the 9 digits of the SIREN. Enter a SIREN in the tool above to get the number and find out straight away whether it is valid, or do the calculation yourself with the method below.

Free tool

Calculate the VAT number of a SIREN

Enter a SIREN or a SIRET: the VAT number is computed, then checked.

3 free checks a day, no account needed.

01 / CALCULATION

The formula of the key, step by step

The key is (12 + 3 × (SIREN modulo 97)) modulo 97, written with two digits. Here is the calculation for Danone, whose SIREN is 552 032 534:

StepCalculationResult for Danone
1Remainder of the SIREN divided by 97552032534 modulo 97 = 5
2Multiply by 35 × 3 = 15
3Add 1215 + 12 = 27
4Remainder of the division by 97: the key27 modulo 97 = 27
5Write FR, the two-digit key, then the SIRENFR27552032534
RememberA computed number is not always a valid number: the company must also be registered for VAT. Always check the result before invoicing without VAT.
02 / EXCEL

The Excel formula

With the SIREN in column A, formatted as text, this formula returns the full VAT number:

="FR"&TEXT(MOD(12+3*MOD(A2,97),97),"00")&A2

For a 14-digit SIRET, take its first 9 digits first with =LEFT(A2,9): the key is always computed on the SIREN. More formulas in checking SIREN, SIRET and VAT numbers in Excel.

03 / LIMITS

What the calculation does not tell you

The calculation gives the number the company would have if it is registered for VAT. It does not tell you:

  • whether the company is really registered: a micro-business under the VAT exemption often has no valid number;
  • whether the company is still active;
  • whether the SIREN you started from is right. A typo in the SIREN gives a well-formed number, but another company's, or nobody's.
04 / CHECK

Check the number you get

Enter the SIREN or the computed number in the tool at the top of this page: it redoes the calculation and asks the administration's service whether the number is valid. For a refused number, see what to do with an invalid VAT number. The full format is explained in the French VAT number.

05 / FREQUENTLY ASKED QUESTIONS

Frequently asked questions

How do I calculate the VAT key of a SIREN?+

Take the remainder of the SIREN divided by 97, multiply it by 3, add 12, then take the remainder of the division by 97. The result, written with two digits, is the key.

Can I calculate the VAT number from a SIRET?+

Yes, by keeping only the first 9 digits of the SIRET, which are the SIREN. The VAT number is the same for every site of the company.

Is a computed VAT number valid?+

Not always. The company must be registered for VAT: a micro-business under the exemption often has no valid number. Always check the number you get.

What is Danone's VAT number?+

FR27552032534: FR, the key 27, then the SIREN 552 032 534.

06 / RELATED RESOURCES

Keep reading

Check it now

Check a VAT number

Type the number with its country code (FR, DE, IT, ES...).

3 free checks a day, no account needed.

TRY IT

A whole file of SIREN numbers?

Upload your customer file: the VAT number of every row is computed and checked, and the diagnosis is free, with no account.