Studio Legale Mariani
EN
Contact

Calculation tools

Calculation of the tax code (codice fiscale)

The tax code (codice fiscale) of natural persons is derived from their personal details according to the rules of the ministerial decree of 23 December 1976. Enter surname, given name, sex, date and place of birth: the code is updated as you fill in the form, with the details of each of its parts.

All given names, as they appear in the birth certificate.
Sex
Current municipalities, municipalities abolished since 1930 and foreign States are included. You can also search by code, for example G942.
Calculated tax codeExample

The calculated code is indicative. The only valid tax code is the one assigned by the Revenue Agency (Agenzia delle Entrate). When two people would have the same code (omocodia), the Agency replaces one or more digits with letters, starting from the right, and recalculates the check character: in these cases the real code differs from the one obtained here.

The tax code is requested from the Revenue Agency. Non-EU foreign nationals may also be assigned one by the One-Stop Immigration Office (Sportello unico per l’immigrazione) of the Prefecture, for those who enter for work or for family reunification, or by the Police Headquarters (Questura), when they apply for a residence permit, through the link with the Tax Register (Anagrafe tributaria); the code issued by the One-Stop Office may initially be numerical and provisional, and becomes final when the residence permit is issued.

Sources and updates

Calculation rules: d.P.R. 29 settembre 1973, n. 605, and decree of the Minister of Finance of 23 December 1976, «Sistemi di codificazione dei soggetti da iscrivere all’anagrafe tributaria» (coding systems for persons to be entered in the Tax Register) (G.U. n. 345 del 29 dicembre 1976), with the tables for the check character.

Italian municipalities: ISTAT list of municipalities with their cadastral codes, situation as at 21 February 2026 (7,894 municipalities, including Castegnero Nanto, code M439), as reproduced in the public dataset Comuni-ITA (update of 6 September 2026), checked against the dataset opendatasicilia/comuni-italiani. Abolished municipalities: Historical Archive of Municipalities of the ANPR, Ministry of the Interior. Foreign States: Table 2 «Stati esteri» of the ANPR, based on data from Istat and from the Ministry of Foreign Affairs, with the four-character code beginning with Z.

Assignment to foreign nationals: Revenue Agency, guide to the tax code for foreign nationals, August 2025.

Data updated to 25 October 2026. For people born abroad in a State that no longer exists, the code should be checked with the Revenue Agency.

Calculation for guidance only: the result must be checked against the specific case and does not replace the advice of a professional.