Calcolo codice fiscale: Italy tax code generator and check

Work out an Italian codice fiscale from name, birth date and municipality code, or check a code from Italy, including omocodia variants.

How the codice fiscale is calculated in Italy

In Italy, a person's codice fiscale has 16 characters: 3 letters from the surname, 3 from the first name, the year, a month letter, the day (plus 40 for women), the cadastral code of the birth municipality and a check character. Reference example: Mario Rossi, born in Rome on 01/01/1980, gives RSSMRA80A01H501U.

The rules of the decree of 23/12/1976

  • Surname: the first 3 consonants, then vowels, then X (Rossi → RSS, Fo → FOX).
  • First name: with 4 consonants or more, take the 1st, 3rd and 4th (Gianfranco → GFR); otherwise the surname rule applies (Mario → MRA).
  • Date: 2 digits of the year, a month letter (A B C D E H L M P R S T for January to December), the day of birth, plus 40 for women (01 → 41).
  • Place: cadastral (Belfiore) code of the municipality, or Z plus a country code for people born abroad. The tool has no municipality table: enter the code from ISTAT's list of municipalities.
  • Check: characters in odd positions are converted with a special table, those in even positions by their value (0-9, A = 0 … Z = 25); the remainder of the sum divided by 26 gives the final letter.

Worked example

Mario Rossi, male, born on 01/01/1980 in Rome (H501): RSS + MRA + 80 + A + 01 + H501 = RSSMRA80A01H501, check sum 98, remainder 20, i.e. the letter U. Maria Rossi, born the same day in the same place, gets RSSMRA80A41H501Y.

Omocodia

When two people get the same code, the Agenzia delle Entrate replaces digits with letters (0 → L, 1 → M … 9 → V) from the right and recomputes the check character: RSSMRA80A01H50MM is the first variant of Mario Rossi's code. The checker recognises such codes and recovers the base code, date and sex.

A calculated code has no official value: only the one issued by the Agenzia delle Entrate counts.

Sources and dates: Ministerial decree of 23/12/1976 (calculation rules, cited in text); Agenzia delle Entrate, codice fiscale FAQ (omocodia, value of codes calculated online); ISTAT, list of Italian municipalities (checked on 15/10/2026).

Frequently Asked Questions

How do foreigners get an Italian codice fiscale?

It is issued free of charge by the Agenzia delle Entrate, at one of its offices in Italy or through the Italian consulate in your country of residence. For people born outside Italy, the place code starts with Z followed by 3 digits identifying the country.

Why doesn't my codice fiscale match the calculated code?

The most common reason is omocodia: if someone else already had the same code, the Agenzia delle Entrate replaced one or more digits with letters, starting from the right, and recomputed the final letter. A registry difference (double first name, married name, municipality) also changes the code. Only the code issued by the Agenzia counts.

How can you tell from a codice fiscale whether it belongs to a man or a woman?

Look at characters 10 and 11: 01 to 31 means a man; 41 to 71 means a woman, since 40 is added to the day of birth. A code reading 41 therefore belongs to a woman born on the 1st of the month.

What does the last letter of a codice fiscale mean?

It is a check character computed from the first 15 characters, which catches a single mistyped character. The checker shows the expected letter when it differs from the one entered.

Is this tool really free?

Yes, all tools on Kristools are 100% free and accessible without registration.

Is my data protected?

Yes. All processing is performed directly and securely inside your browser. No personal data is sent to our servers.