August 23, 2026

Why You Need Your Codice Fiscale Before You Move to Italy (And Why It’s So Hard to Get One)

Why You Need Your Codice Fiscale Before You Move to Italy (And Why It’s So Hard to Get One)

The Italian tax code is issued free of charge, the application is a single page, and it has become one of the most common sticking points in Italian immigration. This article explains what the codice fiscale is, why it matters well before you arrive in Italy, and how the process actually works in 2026.

There is a detail buried in the Agenzia delle Entrate’s own appointment system that says everything about the codice fiscale. Booking an appointment with the Italian revenue agency normally requires entering your codice fiscale. The system is so thoroughly built on the code that the agency had to create a dedicated exception, a special first-attribution booking procedure, just so that people applying for their very first codice fiscale could make an appointment at all. When the institution that issues a document has to engineer a workaround for the fact that you do not yet have it, you are looking at something more fundamental than a tax number.

That is the central difficulty for anyone moving to Italy: the system assumes you will receive the code on arrival, while many of the steps required to get you to Italy assume you already hold it.

If you are applying for an elective residency, digital nomad, investor or student visa, the codice fiscale will appear early in your planning, and how you handle it can affect the integrity of your entire application.

What the codice fiscale is

The codice fiscale is Italy’s personal identification code, issued by the Agenzia delle Entrate, the Italian revenue agency. It is an alphanumeric code of sixteen characters, derived from a combination of your personal details: elements of your name, your date and place of birth, your sex, and a verification character, arranged according to a fixed official scheme. We deliberately do not set out the scheme here, for reasons that will become clear below.

One feature is worth knowing. Codes issued to people born outside Italy embed an identifier of the country of birth rather than an Italian comune, which means an official reviewing the code can see at a glance that the holder was born abroad.

The code is issued once and remains yours for life. Italian citizens receive theirs at birth, when the comune first registers the child. It does not expire and does not change with address or circumstances.

Although it is called a tax code, its function is far broader. In practice it operates as a universal civil identifier, required across public administration and much of private contractual life.

Equivalents in other countries

CountryClosest equivalentIssued by
United StatesSocial Security Number (or ITIN for non-residents)SSA / IRS
United KingdomNational Insurance number (plus UTR for self-assessment)HMRC / DWP
CanadaSocial Insurance Number (SIN)Service Canada
AustraliaTax File Number (TFN)ATO
New ZealandIRD numberInland Revenue
SingaporeNRIC (citizens and PRs) / FIN (foreigners)ICA
JapanMy NumberLocal municipality
IndiaPANIncome Tax Department

The comparison is useful up to a point, and the important difference is scope. In the major English-speaking countries, the tax number is exactly that. A Tax File Number is not needed to rent a home in Sydney, a National Insurance number plays no part in signing up for electricity in Leeds, and while an American landlord may ask for a Social Security Number to run a credit check, no law requires it for a lease, a utility account or a SIM. Singapore sits at the other end of the spectrum: its NRIC and FIN function as true national identifiers, used for SIM registration, utility accounts and tenancy matters alike. The codice fiscale belongs firmly at that end. It resembles Singapore’s identity number far more than it resembles a Western tax number, and that is why advice to defer it until after arrival, reasonable as it sounds for a tax code, does not hold in Italy.

What you will need it for

Several requirements arise before departure, and these are the ones that bear directly on a visa application.

The most significant is the lease. Long-stay visa categories generally require proof of accommodation, and an Italian residential lease is not only signed but registered with the Agenzia delle Entrate. Registration requires the codice fiscale of each party to the contract, including the tenant. Without the code, the lease cannot be registered; without registration, the accommodation evidence in a visa file rests on an incomplete contract. There is a practical dimension to this as well as a legal one. Visa applicants are usually negotiating a lease remotely, on a timetable set by their consular appointment, in rental markets where desirable properties do not wait. A landlord choosing between an applicant who can complete and register the contract this week and one who first needs to obtain an Italian tax code will not deliberate for long. A property purchase raises the same requirement in stronger form, since the notary cannot complete the deed without the buyer’s codice fiscale.

University enrolment, certain consular checklists, and the opening stages of the permesso di soggiorno process can also call for the code.

After arrival, the list extends to opening a bank account, connecting utilities and internet, obtaining an Italian SIM, taking out insurance, enrolling with the national health service, obtaining SPID digital identity credentials, registering with the comune, and, for self-employed digital nomad applicants, opening a partita IVA.

The structural problem

Consulates commonly advise that the codice fiscale is issued in Italy at the conclusion of the immigration process, through the Sportello Unico per l’Immigrazione or the Questura in connection with the permesso di soggiorno. This is accurate, and it deserves to be stated fairly: for a person already lawfully in Italy, the code is genuinely obtainable. The Questura and the Sportello Unico attribute codes as part of permesso processing, and the Agenzia delle Entrate maintains a dedicated first-attribution booking procedure precisely so that someone in Italy without a code can secure an appointment and be attributed one. People do walk into a tax office and walk out with their code, and if you are already in Italy, that door is open to you and worth trying.

It is not, however, a walk in the park, and it would be misleading to suggest otherwise. In theory the process is simple; in practice, success depends on arriving at that particular office with exactly the documents that particular office expects, and expectations vary. Applicants can find themselves circling between offices, or between the Agenzia and other institutions, each attempt consuming a morning and producing a new requirement. A considerable number of the people who come to us do so precisely because they were in Italy, tried, and could not get it done. So the honest summary is that the in-country route is real, it can succeed, and it regularly does not.

For visa applicants, though, the primary problem sits earlier, and it is one of sequence. The code is needed well before any in-country route opens up: before the consular appointment, before the visa application is submitted, and in most cases before the lease that supports the application can be signed and registered. For the typical applicant preparing a file from the United States, Australia or the United Kingdom, the question of whether the Italian tax office would eventually oblige is academic. By the time they could stand in front of a counter, the stage at which the code was needed has already passed.

For many years, the consular network absorbed this gap by accepting codice fiscale requests and forwarding them to the Agenzia delle Entrate. From 15 July 2024, consular policy tightened significantly, and it tightened further through 2025. The position now varies by consulate. Some no longer accept requests from non-Italian citizens. Others accept them only in defined circumstances, typically where the code is needed for an online procedure and the applicant can demonstrate that no alternative route is available, and may require supporting documents such as a birth certificate with certified translation. In our direct experience, some requests lodged with consulates have simply received no response.

The most plausible explanation is volume. The Agenzia delle Entrate does not publish figures on codice fiscale attributions to non-resident foreigners, but the pattern is consistent: consulates across multiple countries restricted or redirected the same service within the same twelve-month period. That is the behaviour of a system under sustained demand pressure.

Generated codes are not issued codes

Because the code is calculated from personal data, online generators can produce a correctly formatted codice fiscale in seconds, and universities and agents in Italy sometimes provide codes calculated this way. This is the reason we do not describe the composition of the code in detail in this article. The temptation to self-generate is real, and it leads somewhere unhelpful.

The Agenzia delle Entrate’s own guidance is unambiguous: the only valid codice fiscale is the one attributed by the Agenzia, and no external party is authorised to issue one. A calculated code is a prediction of what the code would likely be. Until attribution occurs, it exists in no official database, and it will fail when checked, for example at lease registration.

There is also a specific technical reason a calculated code cannot be relied upon. Two individuals with sufficiently similar names and birth details can produce an identical calculated string. This is known as omocodia, and when it occurs, the Agenzia assigns one of the individuals a modified code that no generator could predict. A calculated code that is mathematically correct may nonetheless already belong to someone else.

The reliable test is documentary. If you do not hold the certificato di attribuzione, the certificate confirming that the Agenzia delle Entrate has attributed the code to you, the process is not complete.

A note for students

Student applicants are frequently told that the code will be generated automatically through university pre-enrolment on the Universitaly portal, and some consulates now decline student requests on that basis.

Our experience is that this cannot be relied upon as a complete solution. The enrolment process may produce a calculated code within the application without a certificate of attribution ever reaching the student, and without clear confirmation that attribution has in fact occurred. The student, meanwhile, faces the same requirements as any other applicant: a lease that must be signed and registered before the visa appointment.

For this reason we apply the same standard to every client, student or otherwise. The codice fiscale, with its certificate, should be in hand before the visa file is finalised.

The route that works, and its complications

With the consular channel narrowed, official guidance directs foreign non-residents to the delegate route: appointing a representative in Italy, by written delega, to present the AA4/8 application form at an Agenzia delle Entrate office. This route has a clear legal basis, in a ministerial decree dating from 2001, and it is the practical pre-departure path.

It is not, however, uniform in application. Attribution takes place at a local office, and requirements differ from office to office. A delega accepted in one city may be rejected in another as insufficiently specific. One office may accept a standard passport copy; another may require a certified copy, or an apostille on a certification made by a foreign notary. The application must reproduce the passport data exactly, and discrepancies involving middle names, hyphenated surnames or apostrophes are a recurring cause of rejection, with consequences that can surface months later when downstream documents fail to match. Some offices accept a stated reason such as renting a property at face value; others request supporting evidence, which is difficult to supply when the lease itself is awaiting the code. Occasionally an office will redirect a foreign applicant back to the consulate, the same institution that directed them to the office.

A file of our own illustrates the point. One client’s delegated representative attended three separate Agenzia delle Entrate offices with what was, on any reasonable reading, a complete application. The first office objected to the wording of the delega. The second accepted the delega but questioned the passport certification. The third took the view that the matter belonged with the consulate. Three offices, three refusals, three different reasons, and a full day of a professional’s time spent producing nothing. The application eventually succeeded, but the episode is worth recounting because it is not unusual, and because the cost of these failures falls on everyone: the applicant, the representative, and the offices themselves, whose counters are occupied processing rejections of applications they will later accept.

Each rejection restarts the process, and the cost is measured in time. For an applicant holding a consular appointment secured months in advance, a rejected application is a scheduling risk, not merely an inconvenience.

What it should cost

Attribution of a codice fiscale carries no government fee. Not at the Agenzia delle Entrate, not at a consulate, not at the Sportello Unico. The code itself is free.

Applicants are nonetheless quoted substantial sums for it through various service channels, in some cases as much as five hundred euros. What is being purchased is not the code but the means of obtaining it: a representative physically present in Italy, a correctly drafted delega, familiarity with the requirements of individual offices, and the follow-through to complete the process if a first attempt is rejected. Some providers perform this work properly, including through accredited professional channels. Applicants should, at minimum, confirm that what they will receive is an attributed code with the certificato di attribuzione, and not a calculated code.

Our own approach reflects both sides of that reality. Securing an attributed code from abroad, reliably and with the certificate, involves genuine cost and work on each file, and it took us years to establish a process we would stand behind. For that reason we do not, and cannot, offer it as a standalone service to the general public. It is provided exclusively to Why Wait Italy clients, included within every package for the primary applicant and accompanying family members. It is also one of the first things we set in motion on any new engagement, deliberately, because our clients are almost always working to a consular deadline and negotiating accommodation remotely, and a client whose codice fiscale is already in hand can move on a property the moment the right one appears rather than watching it go to someone who could. Within a properly sequenced application it is not a line item; it is simply one of the things we make certain of, first.

The bottom line

The codice fiscale is free, the form is one page, and completing the process from abroad can nonetheless involve multiple attempts across more than one institution. Both statements are true at once, and together they describe the gap between the process as written and the process as experienced.

If you are planning a move to Italy, place the codice fiscale at the start of your preparation rather than the end. Obtain the code as actually attributed by the Agenzia delle Entrate, hold the certificate, and do so well before your consular appointment. Sixteen characters should not be the reason an otherwise sound application stalls.

Quick answers

How much does a codice fiscale cost?

Nothing. Attribution is free of any government fee. If you engage a service to obtain it, confirm that you will receive the certificato di attribuzione, not only a string of characters.

Is a codice fiscale from an online generator valid?

No. Only a code attributed by the Agenzia delle Entrate is valid, and no external party is authorised to issue one. A calculated code exists in no official database and, through omocodia, may coincide with a code already assigned to another person.

My university says I will receive it through enrolment. Am I covered?

Verify rather than assume. In our experience the enrolment process does not reliably deliver an attributed code with a certificate, and a registrable lease for your visa file will require the attributed code.

Can I just get the codice fiscale once I’m in Italy?

If you are already lawfully in Italy, the route exists and people do succeed: through the Questura or Sportello Unico during permesso processing, or via the Agenzia delle Entrate’s first-attribution appointment procedure. Be prepared for requirements to vary from office to office, and know that many people who try do not manage it unassisted. For visa applicants the point is largely academic in any case, because the code is needed before the consular appointment, well before any in-country route becomes available.

Can the Italian consulate issue my codice fiscale?

Policies tightened from mid 2024 and vary by consulate. Many now limit the service to Italian citizens or to defined exceptional cases. The standard pre-departure route is through a delegated representative in Italy.

Can Why Wait Italy obtain a codice fiscale for me on its own?

No. Obtaining an attributed code from abroad involves substantial work on each file, and we are not able to offer it outside our packages. It is an exclusive inclusion for Why Wait Italy visa clients, handled early in every engagement.

Do my spouse and children need their own codes?

Yes. Each family member appearing on a lease, a school enrolment, a health service registration or a permesso application requires an individually attributed codice fiscale.

If you are planning a visa application and would like the codice fiscale handled before your consular appointment, book a consultation with Why Wait Italy and we will set it in motion from day one.

General information only. Not tax, legal or immigration advice. Consular and Agenzia delle Entrate requirements change and vary by office; individual circumstances vary and qualified Italian advisers should be engaged before any decision.