Fiscal Code

Fiscal Code Guide

What the Italian fiscal code is, how it is calculated and how to read it.

What the fiscal code is

The fiscal code is the 16-character alphanumeric identifier assigned to every individual resident or registered in Italy. It is issued by the Italian Revenue Agency and used for tax, healthcare, social security and banking purposes.

The 16-character structure

The first 15 characters encode personal details; the sixteenth is a check character. The order is: 3 characters for the last name, 3 for the first name, 2 for the year, 1 for the month, 2 for the day and gender, 4 for the municipality of birth, and 1 check character.

Last name and first name

The last name contributes its consonants in order; if there are fewer than three, vowels are added and, if needed, the letter X. The first name follows the same rule, but with four or more consonants the first, third and fourth are used.

Date of birth and gender

The year uses two digits and the month a letter: A=January, B=February, C=March, D=April, E=May, H=June, L=July, M=August, P=September, R=October, S=November, T=December. For women, 40 is added to the day of birth, which is how the code encodes gender.

Place of birth

The last four characters before the check character are the Belfiore cadastral code of the municipality of birth. For people born abroad, the country code (Z series) is used, followed by a progressive number.

Check character

The final character is obtained by adding the values assigned to the first 15 characters, using different tables for odd and even positions, and converting the remainder of the division by 26 into a letter. It helps detect typing errors.

Omocodia

If two people would receive the same code, the Revenue Agency replaces some digits with letters according to the omocodia table. The code remains valid and is called "omocodic": our validator recognises it and restores the original values.

Common mistakes

The most frequent errors are mixing up similar numbers and letters (0/O, 1/I), a wrong check character or a non-existent municipality code. The validator reports the type of problem without sending the code to any server.