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

In short. The Italian tax code identifies a person in tax and administrative dealings. The application route, documents and issue process depend on the person’s circumstances; follow the current Agenzia delle Entrate guidance for a first request.

Table of contents

In short. The Italian tax code for foreigners (codice fiscale) is a free 16-character code issued by the Revenue Agency (Agenzia delle Entrate) that identifies you in tax and administrative dealings. You can get it at a Revenue Agency office in Italy, through an Italian consulate abroad, or automatically during some visa and permit procedures. The right route and documents depend on your circumstances, so follow the current Agenzia delle Entrate guidance.

Have a specific case? Talk to a specialist consultant: online consultations from €199 (VAT included), in Italian, English or Spanish. Book a consultation →

The Italian tax code for foreigners, the codice fiscale, is a 16-character code that identifies you in every dealing with the Italian state. The Revenue Agency (Agenzia delle Entrate) issues it free of charge, even to people who do not live in Italy. You need it to work, rent a flat, open a bank account and join the national health service.

Many foreign nationals receive it automatically during their visa or permit procedure. Others must request it themselves, either in Italy or from abroad. This guide explains every channel, the documents you need and the mistakes that cause the most trouble.

What is the codice fiscale and why does a foreigner need it?

The code is built from your surname, first name, sex, date and place of birth. If you were born abroad, a code for your country of birth replaces the Italian municipality. It is governed by Presidential Decree 605/1973 and stays the same for life.

In daily life you will be asked for it almost everywhere. The most common situations are:

  • signing an employment contract or opening a VAT number;
  • registering a lease or buying property;
  • opening a bank account or setting up utilities;
  • registering with the national health service and choosing a GP;
  • using the online services of INPS, the Revenue Agency and your town hall.

One misunderstanding is very common. The tax code is not an identity document and gives you no right to stay in Italy. It never replaces a visa or a residence permit.

Who can apply for an Italian tax code as a foreigner?

Anyone with a real reason to deal with Italian public bodies or private companies can apply. You do not need to be resident, and you do not need a residence permit. Students before departure, investors, heirs and property buyers all request one.

Some groups have dedicated channels, though. The Revenue Agency’s short guide distinguishes non-EU nationals, EU citizens, asylum seekers, unaccompanied minors and people displaced from Ukraine. Knowing which group you belong to saves you pointless queues.

How do you get a tax code if you are already in Italy?

The usual route is your local Revenue Agency office. You hand in the completed AA4/8 form and a valid ID. In most cases you receive the certificate with your code on the spot.

Many offices also accept requests by email or certified email (PEC), with the signed form and copies of your documents attached. Procedures can differ from one office to another. Always check the contact details of the competent office before you send anything.

What if you enter Italy on a work or family visa?

Here the Prefecture’s One-Stop Immigration Office (Sportello Unico) usually takes care of it. Under the Decreto Flussi quota system, the worker gets a temporary numeric tax code. The employer can see it on the One-Stop Office portal and use it to hire.

The temporary code becomes a permanent alphanumeric one during the residence permit procedure. If this is your situation, read our guide to the residence permit for employment in Italy. For the full picture of the quota system, see our Decreto Flussi application guide.

What if you have applied for international protection?

For asylum seekers, the police headquarters (Questura) requests the code when it registers the application. Since November 2017 an alphanumeric code has been assigned and printed on the receipt. If you still hold an old numeric code, ask the Revenue Agency to convert it. See also our guide to international protection in Italy.

How can you apply for a tax code from abroad?

If you are not in Italy yet, contact the Italian consulate or embassy in your country of residence. You will normally need the AA4/8 form, an ID document and a short explanation of why you need the code. Some consulates accept email requests, others require an appointment.

You can also authorise a trusted person in Italy to apply for you. They go to the Revenue Agency with your signed authorisation and copies of your documents. If you sign the authorisation abroad, it may need legalisation or an apostille.

If you are coming on a long-stay visa, you often do not need to do anything before leaving. The code is assigned during your first procedures in Italy.

Requesting it in advance only makes sense if you need it straight away, for example to sign a lease remotely. The same applies if you are coming on a study visa and residence permit.

Which documents do you need and how much does it cost?

The basic paperwork is short. Always bring originals and copies of:

  • the completed and signed AA4/8 form;
  • a valid passport or other recognised ID;
  • if you are already in Italy, your visa, residence permit or the permit application receipt;
  • if someone applies for you, the signed authorisation and their own ID.

The service is free at the Revenue Agency, at consulates and at other public offices. Be wary of anyone who asks for money to “issue” your code. You may pay an adviser for assistance, never for the code itself.

Timing varies. At the counter the certificate is often immediate. Through a consulate or by email it can take a few days or a few weeks.

What are the most common tax code mistakes?

Tax code errors look minor, but they can block contracts, salaries and permit applications. These are the cases we see most often:

  • two different codes for the same person, caused by errors in the name or date of birth;
  • a temporary numeric code that was never converted into the permanent one;
  • different personal data on your passport, residence permit and tax code;
  • a code “calculated” on a website but never registered with the Revenue Agency;
  • double surnames or names transliterated differently across documents.

A code generated online has no legal value until it is registered in the tax register. If you find an error, ask the Revenue Agency to correct it using the AA4/8 form. Fix your data before your permit renewal, not after.

Does your tax code change when you renew your permit or register as a resident?

No. The code stays the same when you change permit, address or job. It only changes if your personal data were wrong and get corrected.

When you register with the health service you receive a health card, the tessera sanitaria. That card also works as your tax code card. If you later take up official residence in Italy, the town hall will use the code you already have.

Why does an early check of your tax code matter?

The tax code is the first building block of every procedure in Italy. An early mistake gets copied into your employment contract, your health registration and even your citizenship application. Fixing it later takes time and several offices.

Frequently asked questions

Do I need a residence permit to get a codice fiscale?

No. You do not need to be resident in Italy or hold a residence permit: anyone with a real reason to deal with Italian public bodies or companies can apply. For a first request, check the current Agenzia delle Entrate guide, as specific routes apply to people abroad and through the Sportello Unico or Questura.

How much does the Italian tax code cost?

Nothing. The tax code is issued free of charge at the Revenue Agency, at Italian consulates and at other public offices. Be wary of anyone who asks for money to “issue” your code: you may pay an adviser for assistance with the paperwork, but never for the code itself.

Is a tax code calculated online valid?

No. A code calculated or generated on a website has no legal value until it is registered in the Revenue Agency’s tax register. Using an unregistered code can block contracts, salaries and permit applications. If your data are wrong, ask the Revenue Agency to correct them with the AA4/8 form.

What happens to the temporary code issued under the Decreto Flussi?

Under the Decreto Flussi, the worker receives a temporary numeric tax code that the employer can use to hire. It becomes a permanent alphanumeric code during the residence permit procedure. If it stays numeric, ask the Revenue Agency to convert it before your permit renewal.

Does my tax code change if I become an Italian citizen?

As a rule, no. The tax code stays the same for life, including when you change permit, address or job. It only changes if your personal data were wrong and get corrected, so check that your passport, residence permit and tax code all show the same details.

Official sources

Sources consulted on 15 October 2026. Laws, procedures and fees can change: always check the current instructions of the competent office.

How can SH Immigration Specialists help?

SH Immigration Specialists provides administrative and document assistance with the codice fiscale: checking which channel applies to you, preparing the AA4/8 form and authorisations, and making sure your data match across passport, permit and tax code before a renewal. For legal matters such as appeals and legal advice, you can count on the immigration lawyers of SH Immigration Specialists. The outcome depends on the competent authorities. For an assessment, contact us.

This content provides general information and does not constitute legal advice.

Do you have a case like this? Talk to a specialist consultant

In 30 minutes a specialist consultant at SH Immigration Specialists looks at your situation and tells you what to do, which documents you need and which mistakes to avoid. Online, from any country, in Italian, English or Spanish.

Want us to handle it for you? See our residence permit service.

Basic consultation€199VAT included · appointment within 5 working days · 30 minutes
RecommendedPriority consultation€249VAT included · same-day appointment · 45 minutes · written summary and 7 days of WhatsApp support · deducted from our quote if you hire us

How would you like to pay?

After payment we email you to set the date and time.

Account holder
SH Group di Hamza Ameer
IBAN
IT55 H030 6902 5201 0000 0018 632
Amount
€199 (Basic) · €249 (Priority)
Reference
Consultation + your full name

After the transfer, fill in the booking form: we set the date and time as soon as we receive the payment.

Questions before booking? Use the contact form · Details and booking form

Secure online payment with Stripe. SH Immigration Specialists is not a law firm: appeals and legal advice are handled by the lawyers on the team.

Which other guides may help you?

Share the post and follow us

Get specialized immigration advice

Official guides on Italian immigration laws
What our clients are saying

Excellent

5.0

Super efficient and fast
Andree Cordova profile picture
Andree Cordova
2 years ago
Excellent work, they answer you immediately, everyone is very kind.
Talking to Alessio was infinitely useful. He was super quick in responding and finding solutions, and very kind. And very informative and clear. I absolutely recommend. Thanks Alessio!
Jackie Wells profile picture
Jackie Wells
2 years ago
Absolutely wonderful! They helped me with my residency here in Bologna and were extremely quick and responsive. I highly recommend SH Immigration.
Nimmita Srisan profile picture
Nimmita Srisan
3 years ago
They are quite professional as they know that what situation they can solve. It costs some but it is worth in terms of calming you down from all the messy process. Recommended!!
Angelee Mehta profile picture
Angelee Mehta
3 years ago
Had a really great conversation with Alessio today! I'm from the US and was a bit lost when it came to immigration procedures. Alessio was super kind and helpful, assisted me with understanding more about the type of visa I would need if I owned property in Italy, and how to go about this process and what it would look like. I will use SH Immigration's services if I need to apply for residency in the future. I highly recommend!
Alessio was incredibly helpful, kind, and knowledgable. I always felt reassured throughout the process of applying for dual citizenship. I am so glad that I came across SH Immigration Specialists and greatly appreciate their services. I highly recommend them to anyone seeking assistance!
Highly recommend SH Immigration a special thank you to Alessio & Hamza for their support. My husband got his soggiorno in a short period of time! Very knowledgeable and efficient they provided a great and friendly service. Always available to answer any questions extremely helpful. Grazie di cuore! Wish you all the best.
Contact an Italian immigration lawyer

Our immigration agency is at your disposal for everything from everyday procedures to the most complex cases.