Background
Rules checked 21 October 2026

Codice fiscale calculator for foreigners: your Italian tax code

Born outside Italy? Enter your names, sex, date and country of birth to see your code under Italy's rules, part by part. Then get the official one from the Agenzia delle Entrate, without leaving home.
Check icon
Free, no sign-up
Check icon
Every country of birth
Check icon
Nothing leaves your browser
As on your passport, in Latin letters
All of them, as on your passport
Sex
As printed in your passport

Worked out in your browser: nothing is sent or saved.

This checks its form and reads what it says. Whether it was attributed, only the Agenzia's own Verifica codice fiscale service can tell.
Need the official one?We apply to the Agenzia delle Entrate for you, from wherever you are. See how it works →

Your codice fiscale

Fill in your detailsYour code builds up here as you type, part by part.

  1. ···From your surname
  2. ···From your given names
  3. ··Year of birth
  4. ·Month of birth: …
  5. ··Day of birth
  6. ····Country of birth: …
  7. ·Check character
Not official yet

Only the Italian authorities can give you this code

The Agenzia delle Entrate says codes worked out on websites have no value: a bank, a notary or an employer needs the one attributed to you. And when other people share your details, more often those born abroad, digits are changed into letters: yours can differ.

Get my official codice fiscale From abroad, by email within a few days

An estimate from the published rules (ministerial decree of 23 December 1976). Not an official code: only the Italian authorities attribute one.

by top expat communities worldwide
Logo of NomadGate

“A solid service with a very competitive price”

Logo of Portugalist

“Another selling point is the fact that AnchorLess is available in multiple languages”

Logo of Portugal News

“In my opinion, I would recommend using a company such as anchorless.io”

Logo of Worktugal
“Their service stands out for its rapid response time and is praised for its exceptional customer service”
Logo of Expatica

“Let AnchorLess handle the admin for you so you can enjoy your new life in Portugal.”

Logo of NomadGate

“A solid service with a very competitive price”

Logo of Portugalist

“Another selling point is the fact that AnchorLess is available in multiple languages”

Logo of Portugal News

“In my opinion, I would recommend using a company such as anchorless.io”

Logo of Worktugal
“Their service stands out for its rapid response time and is praised for its exceptional customer service”
Logo of Expatica

“Let AnchorLess handle the admin for you so you can enjoy your new life in Portugal.”

What is a codice fiscale, and how is it calculated?

The codice fiscale is Italy's tax code: 16 letters and digits that identify you to the Italian administration, from a bank account to a lease. It is built from your surname, your given names, your date of birth, your sex and your place of birth, then a check letter. For someone born abroad, the place is the country's code: Z and three digits, such as Z404 for the United States.

In short
  • You can work it out from your details, as the calculator above does.
  • It is only valid once the Italian authorities attribute it to you.
  • When other people share your details, the Agenzia changes some characters: yours can differ.

Why you need the official codice fiscale

Relocation expert
Banks, notaries and employers need the code the Italian authorities attributed to you. AnchorLess applies for it for you, from wherever you are, and sends it by email.
Bank icon

To open a bank account

Italian banks must record the codice fiscale of everyone they open an account for.
House icon

To rent or buy a home

Leases and deeds registered in Italy carry it, and the notary must ask for yours.
Briefcase icon

To work and sign contracts

Your employer, your electricity, gas and phone contracts and the health service all ask for it.
AnchorLess relocation team

Already in Italy?

With a residence permit, the Questura gives you the code. Otherwise, find your nearest Agenzia delle Entrate office.

Get your official codice fiscale in 4 steps

No consulate appointment, no Italian forms: AnchorLess applies to the Agenzia delle Entrate for you.
1

Fill in our form

In about 5 minutes: your details, your address abroad and why you need the code.
2

Upload your passport

A valid passport, or an EU identity card.
3

Sign the power of attorney

Online. It lets our team in Italy apply to the Agenzia delle Entrate for you.
4

Receive your codice fiscale by email

The official certificate, within a few days, ready to use in Italy.
AnchorLess team member
Add it to Apple or Google Wallet for free, to have it at hand.

How is the codice fiscale calculated?

A ministerial decree of 23 December 1976 sets the rules. Each part of the 16 characters comes from one of your details, in this order:

The parts of a codice fiscale, for Emily Rose Johnson, born in the United States on 18 April 1992
CharactersFromExample
1 to 3Your surname: its first three consonants; vowels, then X, if it has fewerJHN
4 to 6Your given names: the 1st, 3rd and 4th consonants if there are 4 or more; else as the surnameMYR
7 and 8The last two digits of your year of birth92
9Your month of birth, as a letter: A, B, C, D, E, H, L, M, P, R, S, T from January to DecemberD
10 and 11Your day of birth; women add 4058
12 to 15Your place of birth: a comune's code, or Z and three digits for a foreign countryZ404
16A check letter, worked out from the first 15 charactersQ

All your names, in one string

Every given name and every surname counts, read as one string: spaces, hyphens and apostrophes are left out. Emily Rose gives MYR, where Emily alone gives MLY. Write them as in your passport, in the same order.

Accents and special letters

Accents are dropped, except a few letters that become two: ä, ö and ü become AE, OE and UE, ß becomes SS, å AA, æ AE and ø OE. The Agenzia's own example: Müller is written Mueller. It can change the code: Weiß gives WSS, not WSE. For a name in another alphabet, the Latin spelling in your passport is the one that counts.

What is the code of your country of birth?

For a birth outside Italy, the four characters of the place are Z and three digits, one code per country, whatever the city. A few of them:

Country codes in the codice fiscale
Country of birthCode
United StatesZ404
United KingdomZ114
BrazilZ602
IndiaZ222
ChinaZ210
UkraineZ138
RussiaZ154
GermanyZ112
FranceZ110

Source: ISTAT's list of foreign territorial units, whose codes are the Agenzia delle Entrate's. Checked on 21 October 2026.

Born in a country that no longer exists

The Soviet Union, Yugoslavia and Czechoslovakia keep their codes (Z135, Z118, Z105), and so do today's countries. No published rule says which one the Agenzia uses for someone born there: its director told Parliament in 2016 that this was never settled, and real codes exist with both. Enter the country as printed in your passport; the calculator shows the old country's version, and you can choose today's country to see the other.

Why your official code can differ: omocodia

When two people's details give the same 15 characters, the Agenzia delle Entrate gives each of them a new code: it turns digits into letters, starting from the right (0 becomes L, 1 becomes M… 9 becomes V), and works out a new check letter. This is called omocodia.

It is rare, about 35,800 cases among over 94 million people in 2016, but more frequent for people born abroad: everyone born in the same country shares the same place code. Only the Agenzia knows who holds which code, so no calculator can tell whether yours is affected.

Can you use a calculated codice fiscale?

No. The Agenzia delle Entrate is clear: “l'unico codice fiscale valido è quello rilasciato dall'Agenzia delle Entrate”, the only valid code is the one it issues, and codes calculated on websites “non hanno alcun valore”, have no value. A bank, a notary or an employer needs the one attributed to you.

How to check a code

The Agenzia has no calculator. Its free Verifica codice fiscale service tells whether a code exists and matches a person's details. A code you worked out yourself won't pass until it has been attributed to you.

Need the official one? AnchorLess applies to the Agenzia delle Entrate for you, from abroad.

Get my codice fiscale
Arrow icon

How to get your codice fiscale as a foreigner

With a residence permit

If you apply for a permesso di soggiorno, the Questura or the Sportello Unico per l'Immigrazione gives you the code: you don't need to go to the Agenzia.

At the Italian consulate where you live

Consulates attribute codes to residents of their district, often only for some needs, such as an online procedure. It takes about 5 working days in London and about 30 days in Paris. Several consulates say the code is free there.

At an Agenzia delle Entrate office

With form AA4/8 and your passport (with its visa, if you need one), by appointment at any office, or by PEC, Italian certified email.

Through someone you authorise

The form allows a delegate, and Italy's foreign ministry lists a special power of attorney as a way for foreigners abroad. That is how AnchorLess applies for you, from wherever you are.

Sources: the Agenzia delle Entrate's codice fiscale pages (20 October 2026), its service charter and the AA4/8 instructions; the consulates in London and Paris; esteri.it. Checked on 21 October 2026.

No appointment, no Italian forms. Your official codice fiscale by email within a few days.

Get my codice fiscale
Arrow icon

What do you need a codice fiscale for?

The law lists the acts that must carry it. For a newcomer, the main ones:

  • Opening a bank account.
  • Registering a lease, and buying a home through a notary.
  • Working: your employer's tax returns carry it.
  • Electricity, gas, water and phone contracts.
  • Registering a car.
  • Enrolling in the health service and choosing a doctor.

What you receive

A certificate of attribution (certificato di attribuzione del codice fiscale). The tessera sanitaria, the health card that also shows the code, comes only once you are enrolled in the health service. The code never expires.

What this calculator doesn't do

  • It doesn't list the comuni: it is for people born abroad.
  • It can't know about omocodia, or which code the Agenzia uses for a country that no longer exists.
  • It doesn't attribute a code, and it is not an official service: only the Italian authorities (the Agenzia delle Entrate, a Questura or a consulate) attribute codes.

Move to Italy with AnchorLess

Your first Italian paperwork, done with people who know it.
Passport icon

Get your codice fiscale

The official code from the Agenzia delle Entrate, applied for from abroad and sent by email within a few days.

Map icon

Find a tax office

Every Agenzia delle Entrate office in Italy, with its address and what it handles.

Globe icon

Living in Italy

What to do first when you move to Italy, and how AnchorLess helps.

FAQ

Still need help? Chat to get answers from the AnchorLess team.

Chat with us

How is the codice fiscale calculated?

Icon of plus

Is a codice fiscale from a calculator valid?

Icon of plus

What is the codice fiscale code for my country?

Icon of plus

I was born in the USSR or Yugoslavia: which code applies?

Icon of plus

Can I get a codice fiscale online from abroad?

Icon of plus

Why can my official code differ from the calculated one?

Icon of plus

Does the codice fiscale expire?

Icon of plus

Does a codice fiscale make me an Italian tax resident?

Icon of plus

I was born in Italy: can I use this calculator?

Icon of plus
The Colosseum in Rome

Your official codice fiscale, from anywhere

No consulate, no Italian forms: AnchorLess applies to the Agenzia delle Entrate for you.

Logo AnchorLess

AnchorLess is not a bank, accountant, tax advisor, investment advisor, or law firm, nor are we a government or official government website. We act as an intermediary, helping connect you with accredited professionals and streamlining administrative processes for your relocation in Europe.

Instagram icon
Reddit icon
Linkedin icon
Amex logo
Visa logo
Mastercard logo
& more
Pay 4X free of charge with
Klarna logo

🇵🇹 MOVE TO PORTUGAL

Arrow

🇪🇸 MOVE TO SPAIN

Arrow

🇮🇹 MOVE TO ITALY

Arrow

🇪🇺 MOVING IN EUROPE

Arrow

© 2022 - 2026 anchorless.io, all rights reserved.