How the Italian Codice Fiscale Works and How to Check One
How the 16-character Italian codice fiscale is built from name, birth date, sex and place, how the check letter and omocodia work, and how to validate it.

How the Italian Codice Fiscale Works and How to Check One
Anyone who lives, works, rents a flat or opens a bank account in Italy needs a codice fiscale, the personal tax code. It appears on the health card and is asked for everywhere. Its 16 characters are not random: they encode your name, birth date, sex and place of birth. This guide explains how it is built and how to use the codice fiscale calculator and validator.
The structure
A codice fiscale such as RSSMRA85T10A562S is made of:
- RSS: three letters from the surname
- MRA: three letters from the name
- 85: the last two digits of the year of birth
- T: a letter for the month
- 10: the day of birth, plus 40 for women
- A562: the code of the place of birth
- S: a check letter
Surname and name letters
For the surname, take the consonants in order, then the vowels, and fill with X if the surname is short: Rossi gives RSS, Fo gives FOX.
For the name, if it has four or more consonants, take the first, third and fourth: Gianfranco gives GFR. Otherwise, as for the surname: Mario gives MRA.
The month letters
A January, B February, C March, D April, E May, H June, L July, M August, P September, R October, S November, T December.
The place code
Each Italian municipality has a cadastral code (codice Belfiore): H501 for Rome, F205 for Milan, F839 for Naples. People born abroad have a code starting with Z for their country: Z112 for Germany, Z110 for France, Z404 for the United States.
The check letter
The 16th character is calculated from the first 15. Characters in odd positions are converted with a special table, those in even positions with their simple value; the sum modulo 26 gives a letter from A to Z. A typing error almost always produces a different letter.
Omocodia
When two people would have the same first 15 characters, the Agenzia delle Entrate changes the second person's code by replacing digits with letters, starting from the last digit: 0 becomes L, 1 M, 2 N, 3 P, 4 Q, 5 R, 6 S, 7 T, 8 U, 9 V. These codes are valid and the validator decodes them.
Getting the official code
The calculated code is only what the algorithm produces. The official code is assigned by the Agenzia delle Entrate and printed on the health card. Foreigners request it at an Agenzia office, a consulate or, for workers, through the immigration office.
Using the tool
To validate:
- Paste one or more codes, one per line.
- Read for each one whether it is valid and the decoded sex, birth date, place and omocodia.
- Export the results.
To calculate:
- Enter surname, name, birth date and sex.
- Choose the place or type its code.
- Press the button to generate the code.
A worked example
Mario Rossi, male, born on 10 December 1985 in San Giuliano Terme (A562): RSS + MRA + 85 + T + 10 + A562 gives RSSMRA85T10A562, and the check letter is S. The code RSSMRA85T10A562S is valid; RSSMRA85T10A562X is not.
A woman, Luigia Verdi, born on 1 January 1990 in Rome, gets VRDLGU90A41H501W: the day becomes 41.
Common mistakes
Typing the wrong month letter, forgetting to add 40 for women and using the province code instead of the municipality code are the most frequent errors. Double names such as Maria Grazia are treated as a single name, and surnames with apostrophes or spaces ignore those characters. When in doubt, check the code on the health card.
Limits
The tool checks the format and the check letter. It does not confirm that a code has been assigned to a real person.


&c=%23c2410c&k=education)
