Codice Fiscale for Foreigners: How to Get Yours, in Italy or From Abroad
Every foreigner who deals with Italy officially needs a codice fiscale, and every official route to get one is free. Which route applies to you depends on two things: where you are (already in Italy, or still abroad) and why you need it (moving, working, studying, a residence permit, or a one-off transaction like buying a house). Use the table below to find your situation, then follow the matching section. If you only need the basics first, start with our codice fiscale explained page, and if you want to know what your code will look like, run your details through the calculator.

Which route applies to you?
| Your situation | Where to apply | Key documents | Timing |
|---|---|---|---|
| EU/EEA or Swiss citizen already in Italy | Any Agenzia delle Entrate office (appointment) | Form AA4/8 + passport or national ID card | Issued at the appointment |
| Non-EU citizen in Italy with a residence permit or valid visa | Agenzia delle Entrate, or it may already have been assigned by the immigration offices | AA4/8 + passport + visa / residence permit (or application receipt) | Issued at the appointment |
| Entering Italy on a residence permit (work, family, study) | Assigned automatically by the Sportello Unico per l’Immigrazione (SUI) or Questura during the permit process | Passport and permit paperwork | Follows the permit timeline; a temporary numeric code may come first |
| Student pre-enrolling at an Italian university | Automatically generated on the Universitaly portal, then finalised in Italy | Passport; university pre-enrolment | Provisional code at pre-enrolment, definitive code after arrival |
| Still abroad — moving soon, buying property, inheritance, one-off paperwork | Italian consulate in your country, or a delegate filing in Italy | AA4/8 + passport copy + proof of address and reason; delegation if someone files for you | Consulate: days to a few weeks · Delegate: often 1–2 working days |
| Italian citizen living abroad (AIRE) | FAST-IT portal, processed by your consulate | FAST-IT account; AIRE registration | Online application; certificate downloadable once processed |
Getting it in Italy at the Agenzia delle Entrate
This is the standard route if you are already in Italy. Book an appointment at any office of the Agenzia delle Entrate (you do not have to use the office of your future address) and bring the application form AA4/8, which also exists in an official English version and is best filled in digitally before printing, plus your identity documents. Under the Agency’s current guidance, a first codice fiscale for a foreign applicant normally involves an in-person identity check, so plan to attend yourself even if a professional helped you prepare the file.
The AA4/8 form, in brief
- Request type: mark attribution of a new codice fiscale (type 1).
- Your data (Section B): copy surname, name, sex, date and place of birth exactly as they appear on your passport, accents and middle names included. Inconsistencies here are the number-one cause of later mismatches on contracts and bank accounts.
- Reason (Section D): indicate why you need the code (work, study, property purchase, and so on) with the matching reason code.
- Delegate (Box T): if someone files on your behalf, their details and your signed delegation go here.
Documents: EU vs non-EU
| EU / EEA / Swiss citizens | Non-EU citizens | |
|---|---|---|
| Identity document | Valid passport or national ID card | Valid passport |
| Proof of lawful stay | Not required for the code itself | Entry visa, residence permit, or the permit application receipt, as applicable |
| Form | AA4/8, completed and signed (delegation section if filed by someone else) | |
The certificate of attribution is handed over at the appointment; the plastic card follows by post if your situation includes one. The whole procedure is free.
Entering on a residence permit: SUI, Questura and the temporary numeric code
If you enter Italy on a residence-permit track (employment, family reunification, and similar), you usually do not apply separately: the Sportello Unico per l’Immigrazione or the Questura assigns the codice fiscale as part of the permit procedure. In some cases you first receive a provisional code made only of digits (11 numbers). That is a real, usable codice fiscale for that stage of the process, and it is later replaced by the definitive 16-character code once your position is completed at the Agenzia delle Entrate: from then on, use the definitive code everywhere.
Timing trap: landlords and notaries often ask for the codice fiscale before your permit appointment (for a lease or a property deposit), and the permit office cannot issue it any earlier. If you hit this wall, get the code first through the consulate in your country or an Agenzia delle Entrate office on arrival, instead of waiting for the permit track.
Getting it from abroad
The consulate route, step by step
- Find the Italian consulate responsible for your place of residence on the MAECI website.
- Download its codice fiscale application pack (AA4/8 plus the consulate’s own instructions) and fill the form in digitally.
- Assemble: signed form, a copy of your passport, proof of your address within the consular district, and a short statement of why you need the code (for example, a property purchase or an inheritance), with supporting documents if you have them.
- Send everything as the consulate instructs (email or post) and wait: processing ranges from a few days to several weeks depending on the consulate’s workload.
- You receive the certificate of attribution by email or post. That certificate is full proof of your code; a plastic card is a separate, optional step.
Be aware of one limit, stated in the official consular guidance: consulates handle codice fiscale applications for people resident in their district, and for foreign non-residents the service is aimed at concrete cases where an Italian procedure requires the code; if your consulate cannot take your case, the delegate route below is the standard alternative.
The delegate route
A professional in Italy (notary, lawyer, accountant, or the agency handling your transaction) can file the AA4/8 for you with a signed delegation (delega) and a copy of your passport. This is how most overseas property buyers do it, often through the notary who will handle the purchase. Expect the code within one to two working days of filing in most cases, confirm in advance that the office accepts a delegated first application, and remember you are paying for the professional’s work: the code itself is free. Our property buyers’ guide covers this route in the context of a purchase.
Italian citizens abroad: FAST-IT and AIRE
If you are an Italian citizen living abroad, do not use the consulate queue for a first application: since July 2024 the service runs on the FAST-IT portal. Register on FAST-IT, confirm your AIRE registration (or register with AIRE first), open the consular services section and choose the codice fiscale attribution service: your consulate processes the application and you can then download the certificate of attribution directly from the portal. If you already have a code and only need proof of it, the same portal lets you download the certificate without a new application. The plastic tesserino, if you want one, follows the consulate’s instructions.
Students: the Universitaly shortcut
International students often discover they already have a codice fiscale without applying anywhere: when you pre-enrol on the Universitaly portal, a provisional codice fiscale is generated automatically from your data. After you arrive, it is finalised: EU students confirm it at an Agenzia delle Entrate office, while non-EU students receive the definitive code through the residence-permit process. Do not confuse it with the student ID number your university issues for its own systems: that internal number is not a codice fiscale and banks and landlords will not accept it.
Your certificate, the card, and common problems
- Certificate vs card: what legally proves your code is the certificate of attribution. Health-service members get the code on a tessera sanitaria; everyone else receives a green tesserino or the paper certificate. All certify the same number.
- No tessera sanitaria for non-residents: the health card is only for people enrolling in the Italian health service (SSN). Not having one is normal for non-residents and does not limit the code’s validity.
- Lost certificate or card: ask for a duplicate at the Agenzia delle Entrate or, if you are AIRE-registered, via FAST-IT/your consulate. Your code does not change.
- Wrong data: if your name or birth data on the code is wrong, the Revenue Agency corrects the underlying record and issues updated documents; fix this before signing contracts, because the code is computed from those data.
- One code for life: if you had a codice fiscale years ago and lost track of it, do not apply for a new one. Retrieve the existing code instead: a second attribution creates a duplicate position that then has to be merged.
Frequently asked questions
Can a foreigner get a codice fiscale without living in Italy?
Yes. Non-residents receive one whenever an Italian procedure requires it, for example buying property, an inheritance, or opening certain accounts. Apply at the Italian consulate in your country or through a delegate filing in Italy.
Can I get a codice fiscale before I move to Italy?
Yes, and for many people it is the smart order: lease signings and property deposits often need the code before the move. Use the consulate route or a delegate, and keep the certificate safe for your arrival paperwork.
What documents do I need as a non-EU citizen?
In Italy: the AA4/8 form, your passport, and proof of lawful stay (visa, residence permit or its application receipt). From abroad: the AA4/8, a passport copy, proof of address in the consular district, and a statement of the reason you need the code.
How long does it take to get a codice fiscale?
At an Agenzia delle Entrate appointment it is issued on the spot in most cases. Through a delegate, typically one to two working days after filing. Through a consulate, anywhere from a few days to several weeks depending on the consulate. The permit track follows the residence-permit timeline.
I was given a numeric code by the immigration office. Is that my codice fiscale?
Yes, provisionally: the 11-digit code assigned during immigration procedures is a temporary codice fiscale. It is replaced by the definitive 16-character code when your position is completed, and from then on you should use the definitive one.
Do I need a codice fiscale to rent an apartment in Italy?
In practice, yes: a regular rental contract is registered with the tax agency and the landlord will ask for your code (and the registration requires it). Get the code before you start signing, through any of the routes on this page.
Can someone else apply for my codice fiscale for me?
Yes: with a signed delegation (delega) and a copy of your passport, a notary, lawyer, accountant or other delegate can file the AA4/8 in Italy. Note that for first-time foreign applicants the Agency’s current guidance often includes an in-person identity check, which your delegate cannot do for you if the office requires it.
I had a codice fiscale years ago. Do I need a new one?
No. The code is assigned once and never expires, even if you left Italy decades ago. Ask the Agenzia delle Entrate (or your consulate, if AIRE) for proof of the existing code or a duplicate certificate instead of applying again.
What is the process for applying for an Italian tax code as a foreign resident?
If you are already in Italy, book an appointment at any Agenzia delle Entrate office and file form AA4/8 together with your identity documents: the code is usually issued at the appointment. If you are still abroad, apply at the Italian consulate responsible for your place of residence. Non-EU citizens in the residence-permit track may already have received a code from the immigration office, so check before applying again.
Which documents do I need to apply for an Italian tax code?
EU/EEA and Swiss citizens need form AA4/8, completed and signed, plus a valid passport or national ID card. Non-EU citizens also need proof of lawful stay: an entry visa, a residence permit, or the permit application receipt, as applicable. If you apply at a consulate, add proof of your address within the consular district and a short statement of why you need the code.
Sources
Agenzia delle Entrate, attribution of the codice fiscale to foreign citizens and form AA4/8 with instructions (agenziaentrate.gov.it); Ministry of Foreign Affairs (MAECI) and Italian consular network, codice fiscale services abroad (esteri.it); FAST-IT portal for citizens abroad (serviziconsolarionline.esteri.it); Universitaly pre-enrolment portal (universitaly.it).
Related: codice fiscale explained · codice fiscale for property buyers · calculator · verification tool