Italian Tax Code (Codice Fiscale): How It Works

Complete guide to understanding and calculating the Italian fiscal code

Generate yours now: Use our Free Tax Code Calculator to generate an Italian codice fiscale instantly.

1. What is the Codice Fiscale?

The Codice Fiscale (Italian Tax Code) is a unique 16-character alphanumeric code assigned to every individual in Italy for tax and administrative purposes. It’s roughly equivalent to a Social Security Number (US), National Insurance Number (UK), or Tax File Number (Australia), but its structure encodes personal information directly into the code itself.

You need a Codice Fiscale for virtually everything in Italy:

2. The 16-character structure

An Italian tax code like RSSMRA85M10F205Z breaks down as:

Position Characters Meaning
1–3RSSSurname consonants
4–6MRAFirst name consonants
7–885Last two digits of birth year
9MMonth letter (A=Jan, B=Feb, C=Mar, ...)
10–1110Day of birth (add 40 for females)
12–15F205Municipality cadastral code
16ZCheck character (computed)

3. Surname encoding rules

Take the first three consonants of the surname. If fewer than three consonants exist, fill with vowels. If the surname has fewer than three letters total, pad with X.

Examples:

4. First name encoding rules

The first name follows a similar pattern with one key difference: if the name has 4 or more consonants, take the 1st, 3rd, and 4th (skipping the 2nd). Otherwise, take the first three consonants, filling with vowels if needed.

Examples:

5. Date of birth and gender

The year is represented by its last two digits (e.g., 1985 → 85, 2001 → 01).

Each month is assigned a letter: A (January), B (February), C (March), D (April), E (May), H (June), L (July), M (August), P (September), R (October), S (November), T (December).

The day is the actual date for males (01–31). For females, add 40 to the day (41–71). This is how gender is encoded into the tax code.

6. Municipality code

Each Italian municipality has a unique 4-character cadastral code (1 letter + 3 digits). For people born abroad, a country code starting with Z is used instead.

7. Check character

The 16th character is computed from the first 15 using a specific algorithm. It detects transcription errors and ensures the code’s integrity.

8. Codice Fiscale for foreigners

Non-Italian citizens living or working in Italy also receive a Codice Fiscale. The calculation is identical, except the birthplace code uses the country code (Z + 3 digits) instead of an Italian municipality code.

You can request one at any Italian consulate abroad, at the local Agenzia delle Entrate office, or calculate it online to know what it will be.

9. Free online generator

Our free tax code calculator generates the Codice Fiscale instantly from your personal data:

Generate Your Tax Code Free →

Explore all free ANIMA tools for business management.

✎ Suggest a change

Frequently Asked Questions