Why you need a codice fiscale before anything else

In Italy almost nothing official happens without a codice fiscale. You need it to make an offer on a house, to sign the preliminary contract and the final deed at the notary, to open a bank account, to connect electricity and water, and to rent a flat. It is the step to sort out first, before you start viewing houses seriously.

Getting one is free and usually quick. This calculator lets you see your code straight away, so you can fill in forms in draft and spot mistakes when an agent or bank types it out for you.

How the code is put together

The code follows a fixed formula. The first three letters come from your surname, mainly its consonants. The next three come from your first names; if they contain four or more consonants, the first, third and fourth are used. Then come the last two digits of your birth year, a letter for the month (A for January, B for February, C for March, and so on), and the day of birth, with 40 added for women.

The next four characters are the place of birth: an Italian town's cadastral code, or a code starting with Z for every other country. The final letter is a check character worked out from the other fifteen, which is how a single typing error is caught.

Getting your official code

Your official code comes on a certificate from the Agenzia delle Entrate. In Italy, book an appointment at one of its offices, since a first code has to be requested in person, and take your passport. From abroad, the Italian consulate covering where you live handles it; check its website for the current process. You can also give someone in Italy, such as your lawyer, a special power of attorney (procura speciale) to request it for you at an Agenzia delle Entrate office; the London consulate's codice fiscale page explains the options.

The calculated code and the official one are the same in the vast majority of cases. The exceptions are when two people would end up with an identical code, when the office records your names differently, for example a married name, and when you were born in a country that no longer exists. Always copy the code from your certificate onto contracts.

Frequently asked questions

What is a codice fiscale?

It is a 16-character code that identifies you in Italy, issued by the Agenzia delle Entrate. Italians get one at birth. Foreigners need one for almost every official or financial step: buying a house, opening a bank account, signing utility and rental contracts and registering with the health service.

Can I use the code from this calculator?

Use it to check, plan and fill in forms in draft, but on contracts and official documents always use the code on the certificate issued to you by the Agenzia delle Entrate. In most cases they are the same. They can differ where two people would get identical codes (the agency then changes some characters), where your names were recorded differently from how you typed them, or where you were born in a country that no longer exists. Only the code the Agenzia issues to you is valid.

How do I get my official codice fiscale as a foreigner?

It is free. In Italy, book an appointment at an Agenzia delle Entrate office (a first code needs an in-person visit) and take your passport. Outside Italy, apply through the Italian consulate that covers where you live; each consulate publishes its own instructions.

Which names do I use if I have a middle name?

Use your names as they appear in your passport. Married women use their surname at birth (maiden name), not their married name. Middle names count as part of the first name, so include them. Accents, spaces and apostrophes are ignored, so De Luca and DELUCA give the same result.

Why does the code use Z114 for people born in the UK?

People born outside Italy get a four-character code for their country of birth instead of an Italian town, always starting with Z. The United Kingdom is Z114, the United States Z404, Ireland Z116, Canada Z401 and Australia Z700.

What does each part of the code mean?

Three letters from the surname, three from the first names, two digits for the year of birth, a letter for the month, two digits for the day (with 40 added for women), four characters for the place of birth and a final check letter worked out from the rest.

How can I check if a codice fiscale is valid?

Use the "Check or decode a code" tab. It confirms that the code is correctly formed and that the last letter matches, which catches almost every typing error. It cannot confirm that a code has actually been issued to someone; only the Agenzia delle Entrate can do that.

Sources and small print

The formula is the one set out by the Italian Ministry of Finance (D.M. 23 December 1976). Town codes come from ISTAT's current list of Italian municipalities (Elenco dei comuni italiani), with former towns that have since merged or been renamed from the CodiceFiscaleJS project's compilation of ISTAT data (CC BY-SA 4.0). Country codes come from the national register of the resident population (ANPR), with a few former states such as Yugoslavia and the Soviet Union.

The only valid codice fiscale is the one issued by the Agenzia delle Entrate. This calculator is general guidance, not legal advice.