Codice Fiscale: How to get one and why you need it

The codice fiscale (tax code) is usually the first piece of Italian paperwork you need and the one you will be asked for most often. Banks, landlords, notaries, doctors, schools and phone shops all want it, often before they will even print a form. Here is what it is, how it is built, and the quickest way to get one, checked against the Agenzia delle Entrate in October 2026.

What the codice fiscale is

It is a personal identifier issued by the Agenzia delle Entrate, Italy’s tax agency, and used in almost every dealing with public offices, businesses and private individuals. Companies and organisations have one too. It was introduced in 1973 to identify taxpayers and has since become the standard identifier across Italian administration.

Once you are registered with the national health service, your tessera sanitaria (health card) doubles as your codice fiscale card, with the code printed on the front and as a barcode on the back. That blue card is the one most people end up handing over at the pharmacy, which scans it so the purchase counts towards tax deductions.

How the code is built

An individual’s code has 16 characters. Three letters come from the surname and three from the first name, mainly from the consonants. Then two digits for the year of birth, a letter for the month, and two digits for the day, with 40 added for women. Four characters identify the place of birth: an Italian comune, or a code beginning with Z for a foreign country. The last letter is a check character.

Online generators can produce a code that looks right, but the Agenzia is clear that the only valid code is the one it issues. Two people can share the same calculated code, and the Agenzia then assigns one of them a variant, which is why a self-made code can fail when a bank checks it.

What you need it for

  • work: employers need it for payroll and tax withholding;
  • health care: registering with the national health service and getting the tessera sanitaria;
  • banking: opening a bank account and many transactions;
  • tax: filing returns, paying taxes and receiving refunds or allowances;
  • home: signing and registering a lease, setting up utilities such as electricity, gas and water, and buying a property, where both buyer and seller need one;
  • everyday contracts: a phone contract, a gym membership, school or university enrolment.

How to get one in Italy

A foreign citizen, from the EU or not, who needs a first codice fiscale must go in person to an office of the Agenzia delle Entrate so that their identity can be checked. Bring:

  • Form AA4/8, completed and signed (the Agenzia publishes an English version of Form AA4/8);
  • a valid passport or identity card, and for non-EU citizens the visa where one is required, or a valid residence permit;
  • a copy of each.

Book an appointment online first. Without one you may be sent away or face a long wait. The code is assigned on the spot, and you leave with a printed certificate of attribution that works in the meantime.

At the Agenzia office in Lecce, the morning appointment slots go first, and the wait inside is usually short once you have one. We keep the plain paper certificate in a folder with our passports, because the card can take weeks to arrive.

Non-EU citizens arriving on a work or family visa

Many non-EU citizens receive the code as part of their immigration paperwork, without a separate trip to the Agenzia: at the Sportello Unico per l’Immigrazione (the single immigration desk at the Prefettura) for employees and family reunification, or at the Questura (police headquarters) for other residence permits.

Applying from abroad

You will be asked why you need the code, and a concrete reason helps: a property purchase, a lease, a tax obligation or a course of study. Codes are not issued for vague future plans.

The rules for applying from outside Italy tightened in 2025. Many Italian consulates now accept requests from foreign citizens only in limited cases, for example when the code is needed for an online procedure and nobody in Italy can apply for you. Students applying to Italian universities can usually get one through the pre-enrolment portal. Procedures vary by consulate, so check the website of the one that covers where you live. The Foreign Ministry lists all Italian missions abroad.

For most people buying or renting here, the quicker route is to authorise someone in Italy, such as a lawyer, a commercialista (accountant) or the estate agent handling the sale, to apply for you at an Agenzia office. You sign Form AA4/8 and a delega (proxy) and send a copy of your passport.

Keep it safe

Your codice fiscale is not secret, but combined with your name, date of birth and a copy of your ID it can help a fraudster impersonate you. Give it only to people and organisations that need it, keep copies of your documents out of shared email threads, and watch your bank statements. You can check that a code is valid with the official checker on the Agenzia delle Entrate site.

Read More