How to Get a Codice Fiscale in Milan: Steps and Documents
The Italian tax code is the first number most newcomers need. Here is how the process works in Milan, from the office visit to the consulate route.

A codice fiscale (Italian tax code) is issued free of charge by the Agenzia delle Entrate, the national tax agency. In Milan you can request it in person at a territorial tax office with a valid passport or ID and the application form, and it is normally issued on the spot. Non-EU citizens who have not yet arrived can often request it at an Italian consulate.
Who needs a codice fiscale in Milan?
Anyone who deals with Italian institutions needs one: it is the number on a rental contract, a bank account application, an employment contract, a utility account, a university enrolment and a phone contract. It is also the base of your tessera sanitaria (health card) and of the digital identity called SPID. Tourists do not need one. Residents, students, employees and anyone buying or renting property do.
The code is a 16-character string built from your name, birth date, sex and birthplace. Free online calculators can produce a string that looks correct, but only a code issued by the Agenzia delle Entrate is legally valid, and calculated codes can differ from the official one. Do not put a calculated code on a contract until you have the official document.
Where do you apply in Milan?
The Agenzia delle Entrate has several territorial offices in Milan. The agency’s official site lists the offices and lets you book an appointment online. Check the current list there, because office assignments and booking rules change. Many offices work by appointment, so book before you go rather than turning up at the counter.
Universities help their own students. Some Milan universities have a procedure for international students and will tell you which office to use or collect the paperwork at an international desk. If you are enrolled, ask the international office first.
What documents do you need?
| Situation | Usually required |
|---|---|
| Foreign resident or student, in Milan | Valid passport or ID card; completed application form (form AA4/8 for individuals); residence permit or proof of stay if you have one |
| EU citizen | Valid ID card or passport; application form |
| Non-EU citizen abroad | Request at the Italian consulate with passport and form; the consulate forwards it to the agency |
The office may ask for more depending on your case, such as an address in Italy. Take the original document and a photocopy of the identity page. If your name is written differently in different documents, bring proof of the correct spelling, since an error in the name changes the code.
How do you get it, step by step?
- Download form AA4/8 from the agency’s website and fill it in with your details exactly as they appear in your passport.
- Book an appointment through the agency’s online booking, choosing the request for a first-time tax code for yourself.
- Go to the office on the day with your passport or ID card and the form.
- Receive the certificate. In person, the code is normally produced during the visit.
- Keep the certificate. The plastic tessera sanitaria arrives later, once you are in the health system.
Is it free, and how long does it take?
The code is free. The agency does not charge for issuing or for urgent processing, so any service asking a fee is selling convenience, not a faster official procedure. In person the issue is normally same-day. Through a consulate abroad the request is forwarded and the wait is longer, often a matter of weeks, depending on the consulate. Check the consulate’s own page on esteri.it for its method and timing.
How do you check or replace a lost code?
If you lost the certificate, you do not apply again: the code never changes. You can request a duplicate at an office with your ID, and your tessera sanitaria also shows the code. If a document shows a wrong code, ask the agency to confirm the official data with your passport.
Once you have the code, the next steps in Milan usually follow in this order: your permit (see how the permesso di soggiorno postal kit works in Milan), then your residence registration at the Anagrafe.
Why do landlords, banks and employers ask for it?
Italian law ties tax reporting to the code, so landlords register leases with it, banks report accounts with it and employers use it for payroll and contributions. A bank or agency that cannot see a code often cannot proceed. This is why getting it in your first week is the most useful early step.
Bottom line
Book the appointment before you arrive in Milan if you can, and get your code before you sign a lease or open a bank account. If you are still abroad, ask the consulate when you apply for your visa whether it can request the code at the same time.
FAQ
Can I get a codice fiscale online?
You can fill in and book online, but a first-time code for a foreigner is normally issued after identity checks at an office or consulate. Check the agency’s site for any new online option.
Do tourists need one?
No. A short visit does not require it. You need it as soon as you plan to rent, work, study or open an account.
Does the code expire?
No. The code is permanent. The card that carries it, the tessera sanitaria, has an expiry date.
Can someone collect it for me?
Offices may accept a delegation with a copy of your ID in some cases. Ask when you book, since the rule depends on the office.



