If your codice fiscale (the Italian tax code you need for almost every contract in Italy) has a typo in it, your university cannot fix it — the Agenzia delle Entrate (Italian Revenue Agency) can. According to the Agenzia delle Entrate's official page on cards containing errors, people registered as residents go to their Comune (municipality), while non-residents — which covers most Erasmus students — correct their data at any Agenzia delle Entrate office with a valid ID. The form for the job is the Modello AA4/8.

Nobody warns you about this before you arrive. You get your code from a portal or a consulate, you copy it onto a rental contract, and three months later a bank clerk tells you the letters don't match your passport. The fix is bureaucratic but small — as long as you know which counter you're supposed to be standing at.

How do you know your codice fiscale is actually wrong?

Read it character by character against your passport, not against what your university wrote in an email. The code is not random. As the reference page on the Italian fiscal code explains, its 16 characters come from the first 3 consonants of your surname, 3 letters from your first name, a 2-digit birth year, 1 letter for the birth month, a 2-digit birth day (with 40 added for women), a 4-character place-of-birth code, and 1 final check character.

That structure is your diagnostic tool. If you are male and the two day-digits are 40 higher than your actual birthday, something went wrong. If the four-character block doesn't correspond to your country or town of birth, something went wrong.

Then check the printed card itself. The Agenzia delle Entrate's guidance on tessera sanitaria (the health card that carries your codice fiscale) errors covers wrong name, surname, the code itself, place or date of birth, and sex — those are the fields the correction procedure exists for.

Comune or Agenzia delle Entrate: which office fixes it?

A professional individual signs legal documents at a desk in an office setting.
A professional individual signs legal documents at a desk in an office setting.

📷 Mikhail Nilov / Pexels

This single question decides whether your morning is productive or wasted. Per the Agenzia delle Entrate's page "Se la tessera contiene errori", residents must go to the Comune di residenza to have anagraphic data corrected. Non-residents go instead to any Agenzia delle Entrate office, presenting a valid identity document.

Plenty of exchange students never register residenza at all — it is a separate procedure at the Comune, and a single-semester stay often ends before anyone gets round to it. If that's you, you are a non-resident for this purpose, and the Comune will send you away. Go straight to an Agenzia delle Entrate office.

If you did register your address, the opposite applies and the Comune is your counter. Not sure which category you're in? Our guide on how to register your address in Italy (residenza) explains what registration actually means and what it changes.

What is the Modello AA4/8, and what do you tick on it?

Close-up of a legal document with a wooden stamp placed on top, highlighting verification.
Close-up of a legal document with a wooden stamp placed on top, highlighting verification.

📷 Markus Spiske / Pexels

The Modello AA4/8 is the official multi-purpose form: its full title, per the Agenzia delle Entrate's form and instructions page, covers requesting a codice fiscale, communicating a data change (variazione dati), and requesting a card or duplicate tessera sanitaria. One form, three different jobs — so the box you tick matters more than anything else you write.

You are almost certainly filing a variazione dati, not a new request. Filing it as a new attribution when a code already exists for you is how people end up with a mess instead of a correction.

According to the Agenzia delle Entrate's instructions for the AA4/8, the form can be handed in at any Agenzia delle Entrate office, in person or through a delegate, and people resident abroad can alternatively route it through the Italian consular representation in their country of residence. Bring the passport or ID whose spelling you want the record to match — that document is the evidence, and the correction is only as good as it.

Why do Erasmus students end up with a wrong code so often?

Because in many cases nobody typed it — a system generated it from data you entered yourself. The Consolato Generale d'Italia a Marsiglia notes in its March 2025 guidance that university students pre-enrolling for a degree get their codice fiscale generated automatically through the UNIVERSITALY portal at the moment of pre-enrolment.

That flow is fast and free of queues, and it inherits every imprecision in the form you filled at 2am. Accented and non-Latin letters get transliterated one way by you and another way by an official register. Double surnames from Spain or Portugal get split unpredictably. Hungarian-style name order arrives reversed.

There's a second source: third parties who "calculate" your code with an online tool. A landlord, a gym, or a phone shop can generate a plausible 16-character string in two seconds. A calculated code is not an assigned code, and only the assigned one exists in the Agenzia delle Entrate's register.

Is it a mistake, or is it omocodia?

Before you queue for anything, check that what looks like an error is not omocodia. When a computed code would exactly duplicate someone else's — a real risk with common name, surname and birth-date combinations — the tax authority replaces digits from the right-hand side with letters using a substitution table and recalculates the check character, as documented on the Italian fiscal code reference page.

The visible symptom is letters sitting where you expected numbers, usually in the birth-date or place block. It looks broken. It isn't. It's the register deliberately separating you from your namesake.

So the test is simple: does your code differ from the "expected" one in a way that swaps digits for letters, or in a way that changes your actual identity data? The first is omocodia and needs no action. The second — wrong birth year, wrong birthplace country, misspelled surname — is an error, and that's what the AA4/8 is for. When in doubt, the code printed on an official document from the Agenzia delle Entrate is the one that counts, not the one an online calculator produces.

Can you fix it online, or from your home country?

There is an online route, but it is narrow. The Agenzia delle Entrate points residents who hold SPID, CIE (the electronic ID card) or CNS to the "Rettifica dati" service on the national resident registry portal, www.anagrafenazionale.interno.it, to request correction of anagraphic errors without visiting an office. No SPID, no residenza, no online route.

From abroad, the rules tightened. The Consolato Generale d'Italia a Marsiglia announced that since March 2025, foreign citizens not resident in Italy generally can no longer walk into their home-country Italian consulate to request or fix a codice fiscale — they must delegate someone in Italy to present the request at an Agenzia delle Entrate office, citing Ministerial Decree 17 May 2001 no. 281, with consulates acting only as a last resort.

The same March 2025 guidance states that EU citizens can apply directly at any territorial Agenzia delle Entrate office with the Modello AA4/8, a valid ID and a justification for the request. Practical translation: fix it while you are physically in Italy. Leaving with a wrong code turns a one-office errand into a delegation problem.

What breaks while your codice fiscale is still wrong?

Your rental contract, first. Contracts in Italy are registered with the Agenzia delle Entrate and your codice fiscale sits on the registration, so a wrong code propagates into the landlord's cedolare secca (the flat-tax regime many landlords use), into receipts for your deposit (caparra), and into anything you later claim as a tax deduction. Fixing the code after the contract is registered means chasing paperwork through a second office.

It also stalls the boring essentials: bank account, SIM contract, sometimes university enrolment steps. None of these are dramatic on their own — together they eat a week you wanted to spend somewhere better than a queue.

The move is to sort the code before you sign anything. If you are still house-hunting, check what you should be paying first: our breakdown of Italy rental prices in 2026 shows what's fair by city before a landlord quotes you a number. For the room itself, Coinquilino (coinquilino.app), a free app for finding rooms and roommates in Italy, is one option among several — full disclosure: Coinquilino is our app.

Frequently asked questions

How long does the correction take?


No official Agenzia delle Entrate page publishes a processing time for a codice fiscale correction, so any specific number of days you read on a forum is somebody's anecdote, not a rule. Plan for it to be slower than you'd like and start before you need the corrected code, not after.

Can someone else go to the office for me?


Yes. According to the Agenzia delle Entrate's instructions for the Modello AA4/8, the form can be presented in person or through a delegate. That is also the mechanism the March 2025 consular guidance points non-resident foreign citizens toward: delegate a person in Italy rather than approach a consulate.

Is there help available in English?


The Agenzia delle Entrate publishes a "Mini guida codice fiscale per stranieri" available in 18 languages, including English, German, French, Spanish, Portuguese, Chinese, Romanian, Albanian, Ukrainian, Russian, Hindi, Bengali, Tagalog, Arabic, Urdu, Slovenian and Serbo-Croatian, and lists the general information line 800.90.96.96 on the same page. Read the English version before you go so you know the vocabulary being used at the counter.

I never received a tessera sanitaria — is that the same problem?


Not the same, but the same form. The Modello AA4/8 covers requesting the card or a duplicate alongside data corrections, per its official title on the Agenzia delle Entrate's form page. If your address on file is wrong, the card may simply have been posted to the wrong place, which is a data correction and a duplicate request at once.

Does a corrected codice fiscale affect my permesso di soggiorno?


The official Agenzia delle Entrate pages covering code corrections don't address residence-permit records, which are handled separately by the Questura and Prefettura. If you hold a permesso di soggiorno with data that no longer matches your corrected record, ask the office that issued it directly rather than assuming the correction propagates. Don't take a forum answer on this one.

Which document decides the "correct" spelling of my name?


The identity document you present. The correction procedure is built around matching the Italian register to a valid ID, which is why the Agenzia delle Entrate's guidance for non-residents specifies presenting a valid identity document at the office. If your passport and your national ID card disagree on accents or name order, take the passport — and use the same spelling everywhere afterwards, including on your codice fiscale application if you ever need to redo one.

---
This article was produced with the help of AI tools and reviewed by the Coinquilino editorial team.