Codice fiscale for foreigners: how to get your Italian tax code

If you are moving to Italy, working for an Italian employer, studying at an Italian university or buying property there, you will be asked for a codice fiscale. This guide explains what it is, who issues it and how to obtain one, in Italy or from abroad.

What the codice fiscale is, in plain words

It is a personal identification code of 16 letters and digits, built from your surname, first name, date of birth, sex and place of birth. Italy uses it the way other countries use a national insurance or social security number: it identifies you in every dealing with public offices and in most private contracts. It is personal, unique and free, and it never changes during your life.

What you need it for

Landlords, employers and banks usually ask for the code before anything else can move forward, so it is normally the first document newcomers obtain.

Who issues it

Only the Agenzia delle Entrate, the Italian Revenue Agency, assigns the official code. No website, agency or intermediary can issue one: services that offer to "sell" you a codice fiscale are at best calculating the predictable code for you (which you can do free below) and at worst a scam. The official assignment costs nothing.

How to apply in Italy

Go to any office of the Agenzia delle Entrate. Many offices work by appointment, which you can book on the Agency website. Bring:

In most cases the code is assigned during the appointment and you leave with a printed certificate showing it. If you later register with the health service, the same code is printed on your health card (tessera sanitaria).

How to apply from abroad

If you need the code before arriving in Italy, for example to sign a rental or purchase contract, you have two main routes:

Students often find their university helps with the request after enrolment, and employees are often helped by their employer. If you are applying for a residence permit, the code is also requested during that process through the immigration offices and the questura.

Work out your code in advance

Because the code is built from your data with fixed rules, you can predict it before the official assignment. Our codice fiscale calculator does this in your browser: enter your surname, first name, date of birth, sex and country of birth (foreign countries have their own Belfiore codes, starting with Z) and you get the expected code with its full breakdown. Treat the result as a reliable prediction, not the official document: in rare cases the Agency assigns a variant of the code (omocodia) when another person shares your exact data, and the official version is the one on your certificate or health card.

Common situations

Students and Erasmus

Universities ask for the code at enrolment or soon after. You can request it at the Agenzia delle Entrate with your passport and proof of enrolment, or through the consulate before departure if your university needs it earlier.

Workers and remote workers

An Italian employer needs your code to register your contract and pay your salary. If you are relocating, ask the employer or a delegate to file the request before your start date so payroll is not delayed.

Buying property

The notary cannot complete a purchase without the buyer's codice fiscale. Buyers who live abroad usually obtain it through the consulate or delegate the request to their lawyer or estate agent well before the signing date.

Newborns

For a baby born in Italy, the code is assigned when the birth is registered and is needed for the health card and paediatric care. Parents receive it through the municipality and the health authority process; it is not something you apply for separately at the tax office in the normal case.

If something is wrong with your code

If your name is spelled differently on the code certificate than on your passport, or the code does not match your data, ask the Agenzia delle Entrate for a correction with your identity documents. Use our verification tool (in Italian) to check whether a code is formally valid and consistent with your personal data before you travel or sign.

Frequently asked questions

Does the codice fiscale make me pay tax in Italy?

No. The code is an identifier, not a tax status. Whether you owe tax in Italy depends on your residence and income, not on holding the code.

Can I have two codici fiscali?

No. Each person has exactly one. If you discover two codes in your name, ask the Agenzia delle Entrate to merge them, because duplicates cause problems with contracts and health records.

What if I lose the certificate or the card?

The code itself stays valid. You can request a duplicate health card or a new certificate from the Agenzia delle Entrate, and in the meantime you can recompute the expected code with the calculator.

My surname has changed after marriage. Does the code change?

The code is generated from the surname recorded at assignment, and in Italy it normally stays as first issued even after marriage. If an office questions a mismatch, the Agenzia delle Entrate can confirm the link between your documents.