CNAE code in Spain: what it is, how to find yours (CNAE-2025) and how it differs from the IAE
The CNAE is the activity classification kept by Spain's INE. Since 2025 the CNAE-2025 has replaced the CNAE-2009. What it is, where it is asked for, how it differs from the IAE heading, how to find your code and whether an official converter exists.

In short
- The CNAE is a statistical classification from the INE; the current version is the CNAE-2025, approved by Real Decreto 10/2025, of 14 January, which came into force on 16 January 2025.
- The CNAE-2025 replaces the CNAE-2009. Seguridad Social records had until 30 June 2025 to report it, and all other state registers must code it before 1 January 2027.
- The CNAE is not the IAE heading: they are two different classifications, with different authorities and purposes, and they do not always match one to one.
- The INE publishes the correspondence tables between CNAE-2009 and CNAE-2025. We have not found an official IAE-CNAE 2025 table published by the INE or the AEAT.
- In settlements from 1 January 2026, anyone who did not report their CNAE-2025 to the Seguridad Social pays work accident contributions at the highest rate of the codes that could apply to them.
CNAE code in Spain, in summary
The CNAE (Clasificación Nacional de Actividades Económicas) is the code the INE, Spain's statistics office, uses to classify your activity for public statistics. Since 16 January 2025 the CNAE-2025 has been in force, replacing the CNAE-2009. It is asked for when you register with the Seguridad Social (Spain's social security system), in the Registro Mercantil (the commercial register) and in other public registers. It is not the IAE heading.
What the CNAE is
The CNAE (Clasificación Nacional de Actividades Económicas, the national classification of economic activities) is a system of codes that organises all economic activities. It is produced and maintained by the Instituto Nacional de Estadística (INE) and its main purpose is statistical: to summarise business activity in economic statistics and in other areas, such as social and environmental ones, as the INE describes on its CNAE-2025 page.
The Seguridad Social explains it in one sentence: it is a numeric code assigned to each professional activity and used for public statistics (self-employment guide).
Although it was created for statistics, the code is used in real procedures. For example, it determines the contribution rate for work accidents and occupational diseases, as you will see below.
How a CNAE code is structured
The CNAE-2025 has four levels (article 2 of Real Decreto 10/2025):
- Sections, with an alphabetical code.
- Divisions, with two digits.
- Groups, with three digits.
- Classes, with four digits.
The INE writes codes with a dot: 62.1 is a group and 62.10 is a class. The BOE (Spain's official gazette) sometimes writes them without the dot, as 6210. It is the same code.
A real example: class 62.10 is "Computer programming activities", within group 62.1 and division 62. The further down you go, the more precise the description of what you do. For registration and registers, the four-digit code is normally what you use.
CNAE-2025: what changed and since when
The CNAE-2025 replaces the CNAE-2009, according to the INE. It was drawn up together with the European classification NACE Rev. 2.1 and the international classification ISIC Rev. 5.
These are the dates that matter, all from Real Decreto 10/2025 and the rules that build on it:

- Entry into force: the royal decree came into force the day after its publication in the BOE, that is, on 16 January 2025.
- Official statistics: the CNAE-2025 applies to them with a reference date from 1 January 2025, with the exceptions set by national or European statistical rules (article 5).
- Seguridad Social: those already in its records had to report the code before 30 June 2025; those joining report it at the time of registration (sole additional provision).
- Other state registers: must have it coded before 1 January 2027 (article 6.b).
The CNAE-2009 does not vanish overnight from data already collected: the royal decree keeps it during the transition, and the rule itself provides that it is also reported for the period until the premium tariff is adapted to the new classification. That adaptation came with Real Decreto-ley 3/2026, which sets the tariff in CNAE-2025 codes from 1 January 2026.
What happened to your code if you were already self-employed
When a CNAE-2009 code corresponds to a single CNAE-2025 code, the Tesorería General de la Seguridad Social (TGSS, the Seguridad Social's treasury) assigns the new code automatically. When the old code splits into several, you have to say which one describes your activity (Noticias RED 07/2025).
That is the case, for example, of 74.10 "Specialised design activities" in the CNAE-2009, which splits into four classes of the CNAE-2025: 74.11 (industrial product and fashion design), 74.12 (graphic and visual communication design), 74.13 (interior design) and 74.14 (other specialised design activities). Someone working in graphic design should take 74.12.
If you did not report the code, the consequence is in the rule and is explained in the section with the numbers example.
CNAE or IAE: how they differ
The IAE heading and the CNAE code are two ways of classifying the same reality, but they are not the same. The heading belongs to the tariffs of the Impuesto sobre Actividades Económicas (IAE, a local business tax), approved by Real Decreto Legislativo 1175/1990, and defines each activity for tax and census purposes. The CNAE is a statistical classification from the INE. For the heading, see IAE headings for autónomos.
| CNAE | IAE heading | |
|---|---|---|
| What it is | Statistical classification of activities | Entry in the tariffs of the Impuesto sobre Actividades Económicas |
| Who maintains it | INE | Tariffs approved by Real Decreto Legislativo 1175/1990 |
| Current version | CNAE-2025, since 2025 | IAE tariffs |
| Format | Sections, divisions, groups and classes (for example, 62.10) | Sections, divisions, groupings, groups and headings (for example, group 763) |
| Where it is asked for | Seguridad Social registration, Registro Mercantil, public registers; the Hacienda census also records the classification | Census registration declaration with Hacienda |
| Do you pay for it? | No | Individuals are exempt from the IAE, but must be classified |
Two points in the table deserve a note. First: although individuals are exempt from the IAE (article 82.1.c of the Ley reguladora de las Haciendas Locales), they must be classified under the heading of each activity they carry out. Second: the registration declaration in the Censo de Empresarios, Profesionales y Retenedores (the tax census) records the activities with their classification (article 9 of Real Decreto 1065/2007); you have the step-by-step in Form 036 (modelo 036).

The Seguridad Social states that, to register you as self-employed, you need, among other details, the IAE code and the CNAE code. That is why it helps to have both clear before you start.
Where the CNAE is asked for
The code appears in more places than it seems. This is the list of those we have been able to check against official sources.
| Where | What is asked for or what it is for | Source |
|---|---|---|
| Seguridad Social (RETA registration) | The activity code, or the activity matching a code; if you do several, the code of each | Self-employment guide |
| Seguridad Social (premium tariff) | The contribution rate for work accidents and occupational diseases depends on the CNAE-2025 code | Real Decreto-ley 3/2026 |
| Registro Mercantil | When a company is set up, the codes of the activities of the corporate purpose are recorded; in the annual accounts, the main activity | Ley 14/2013, article 20 |
| INE | The Central Business Directory is fed by Seguridad Social records coded with the CNAE | Real Decreto 10/2025, article 6 |
| Credit institutions | They report their clients' activity to the Bank of Spain's Central Credit Register using the CNAE-2025 from January 2026 | Bank of Spain |
At Hacienda, the data that identifies your activity for tax purposes is the IAE heading. The census also records the classification of the activity according to the CNAE (article 5.b.10 of Real Decreto 1065/2007, which still refers to the CNAE-2009), so it helps to have both clear.
Seguridad Social: registration and the premium tariff
The Seguridad Social asks for the code when you register as self-employed and, if you carry out several activities, for the code of each. That data affects your contributions: the premium tariff for work accidents and occupational diseases has applied since 1 January 2026 according to the economic activity, with the CNAE-2025 as the reference.
That tariff applies to employers whatever their scheme and, where relevant, to certain self-employed workers. If you are unsure how it affects you, look at your case in registering as self-employed.
If you made a mistake when reporting it, there are deadlines: 10 days from the processing of the registration to correct an activity reported by mistake, and 6 days from the change to report a modification of the activity. Changing your activity can change your contribution conditions, according to the Seguridad Social.
Registro Mercantil, INE and banks
If you have or set up a company, article 20 of Ley 14/2013 requires the codes of the activities of the corporate purpose to be stated in registrable documents and in the first registration, and the single main activity to be identified in the annual accounts that are filed. Entrepreneurs must identify their main activity by reference to the code that best describes it in their dealings with the administrations.
On the INE side, the code feeds the Central Business Directory. And banks use it for a regulatory reason: the Bank of Spain explains in the report of its Central Credit Register that institutions had to start reporting the CNAE-2025 from the January 2026 process.
How to find your CNAE code
The INE publishes the full structure of the CNAE-2025 in an Excel file, the explanatory notes and an automatic coding tool, as well as the correspondence tables. With that you can reach your code in five steps.

- Describe your main activity. Write down what you actually do for a living. If you do several things, decide which one brings in the most income.
- Look it up in the INE structure. Start from the section and go down to the division, the group and the four-digit class. The title is a summary: do not rely on it alone.
- Read the explanatory note of that class. This is the decisive step. The INE's explanatory notes say which activities each class includes and which it excludes. Two classes with similar names can have different contents.
- If you already had a CNAE-2009, check the correspondence table. The INE publishes the CNAE-2009 to CNAE-2025 table. If your old code matches only one, the new one works for you; if it splits, choose the one that describes your case.
- Use the same code in every procedure. A different code at the Seguridad Social and in your company's accounts raises questions later.
How Melso helps
If you would rather not choose the code alone, with registering as self-employed through Melso we collect what the procedure needs and a Melso gestor files it with Hacienda and the Seguridad Social.
For the IAE heading you can use Melso's heading finder, which sorts the tariffs by activity.
Tip
Keep in one document your CNAE code, your IAE heading and the date you reported them. You will need them for the bank, for the Registro Mercantil if you set up a company and for any change of activity.
Is there an official IAE to CNAE converter?
This is the doubt behind the search "IAE CNAE converter": there are many finders online, but it helps to know what is official and what is not.
What the INE does publish:
- The full structure of the CNAE-2025 and the explanatory notes.
- Correspondence tables from CNAE-2009 to CNAE-2025 and from CNAE-2025 to CNAE-2009.
- Tables between the CNAE-2025 and the European NACE Rev. 2.1.
Article 7 of Real Decreto 10/2025 requires the INE to publish the equivalence tables between CNAE-2009 and CNAE-2025 and between CNAE-2025 and NACE Rev. 2.1.
What we have not found published: a single official table that converts each IAE heading into a CNAE-2025 code. The same article 7 says the INE will support the administrative units of the state public sector in developing equivalence tables between the CNAE-2025 and sector classifications, such as the IAE one, and that the responsible bodies may publish the equivalences. That is a possibility the rule leaves open, not a table to be assumed to exist.
The Seguridad Social guide says there is a correspondence between CNAE and IAE and points to the activity finder of the Agencia Tributaria. We have not been able to check that this finder publishes an official conversion to the CNAE-2025, so we do not take it for granted.
Why a converter can fail
The reason is fundamental: they are classifications with different logic. An IAE heading can span several CNAE classes and the other way round. An example from the CNAE itself: 74.10 of the CNAE-2009 splits into four classes of the CNAE-2025.
That is why a converter works as guidance and the result has to be checked against the INE's explanatory notes. If two sources disagree, the official classification and the content of the heading rule, not the name.
Examples of CNAE-2025 codes for common activities
These pairs are indicative: the CNAE-2025 and CNAE-2009 come from the INE tables, and the IAE group is the one in the tariffs for that activity. The pairing between IAE and CNAE is not an official conversion, and what decides is what you do in practice.
| Activity | CNAE-2025 | CNAE-2009 | IAE group or heading |
|---|---|---|---|
| Computer programming | 62.10 | 62.01 | Group 763 (computer programmers and analysts) |
| Translation and interpreting | 74.30 | 74.30 | Group 774 (translators and interpreters) |
| Architectural technical services | 71.11 | 71.11 | Group 411 (architects) |
| Hairdressers and barbers | 96.21 (96.02 also passes to 96.22) | 96.02 | Heading 972.1 (men's and women's hairdressing services) |
| Graphic and visual communication design | 74.12 | 74.10 | Depends on how you work: check the tariffs |
| Electrical installations | 43.21 | 43.21 | Check the tariffs |
| Restaurants | 56.11 | 56.10 | Check the tariffs |
Note two details. In hairdressing, 96.02 of the CNAE-2009 ("Hairdressing and other beauty treatment") splits between 96.21 of the CNAE-2025, "Hairdressers and barbers", and 96.22, "Beauty care and other beauty treatment activities". In catering, the old 56.10 splits between 56.11 (restaurants) and 56.12 (food stalls). If you were in one of these cases, your code may have changed when it was updated.
Worked example: how much a code can weigh
The contribution rate for work accidents and occupational diseases depends on the code. In the tariff of Real Decreto-ley 3/2026, the total rate (accident plus occupational disease) for these divisions is:
- Division 62, computer programming and consultancy: IT 0.80% + IMS 0.70% = 1.50%.
- Division 74, other professional, scientific and technical activities (except photography): 0.90% + 0.85% = 1.75%.
- Division 43, specialised construction: 3.35% + 3.35% = 6.70%.
On an illustrative contribution base of €1,000 a month, those rates mean:
- €1,000 × 1.50% = €15 a month.
- €1,000 × 1.75% = €17.50 a month.
- €1,000 × 6.70% = €67 a month.
The difference between a programmer's code and a self-employed electrician's is 67 − 15 = €52 a month on that base. It is an illustration of the rate, not of the amount you will pay: it depends on whether that cover applies to you and on your contribution base.
And there is a consequence of not having reported the code. If the responsible party did not report the CNAE-2025 to the TGSS, in settlements from 1 January 2026 the higher rate of the CNAE-2025 codes that its CNAE-2009 corresponds to is applied, according to the INE tables. A later report takes effect from the settlement period immediately after the month in which it is made, with no retroactive effect (forty-fifth transitional provision). Reporting late does not give back what was already settled at the higher rate.
Important
If your CNAE-2009 code split into several and you did not choose one, check in your personal area of the Seguridad Social which activity is on record. Until you report the correct code, the highest possible rate applies.
Common mistakes
Confusing the CNAE with the IAE heading
They are two different codes. At Hacienda the data that identifies your activity for tax purposes is the IAE heading; the Seguridad Social and public registers ask for the CNAE. Giving the same number in both places is a common mistake.
Still using a CNAE-2009 code
The CNAE-2025 replaces the CNAE-2009. If your old code splits into several, picking at random will not do: you have to choose the one that describes your activity. State registers must have the activity coded with the new classification before 1 January 2027.
Choosing the code by its name
The title of a class is a summary. What decides is the content of the explanatory note, which includes and excludes activities. Read the note before deciding.
Trusting a converter without checking
IAE to CNAE converters are not official. An IAE heading can match several classes and the other way round. Use the result as a starting point and confirm it with the INE.
Forgetting to report a change of activity
If you change activity or start a new one, report it on time: 6 days from the change at the Seguridad Social. Changing your activity can change your contribution conditions.
How Melso helps
Melso is your online gestoría (a private firm that handles tax and administrative paperwork), with an AI agent and human professionals behind it, and day-to-day communication is via WhatsApp, Telegram, email and web. With the registering as self-employed service, Melso collects what the procedure needs and a Melso gestor files it with Hacienda and the Seguridad Social. After that, Melso professionals prepare, review and file the quarterly returns for your profile. The Melso Pro plan costs €49 a month or €490 a year, with no lock-in, and covers up to €30,000 a year of recargos (surcharges), penalties and late-payment interest resulting from an error or delay by Melso in an included return filed by Melso. The next step is to check the Melso Pro plan in pricing for autónomos.
This article is for information only and does not replace professional advice for your case. Last reviewed: 24 November 2026.
Sources
- Real Decreto 10/2025, of 14 January, approving the Clasificación Nacional de Actividades Económicas 2025 (CNAE-2025), BOE (accessed )
- Clasificación Nacional de Actividades Económicas 2025 (CNAE-2025), INE (accessed )
- CNAE-2025: structure, explanatory notes and correspondence tables, INE (accessed )
- Real Decreto-ley 3/2026, of 3 February (first final provision: premium tariff and forty-fifth transitional provision), BOE (accessed )
- Noticias RED 07/2025: RD 10/2025, CNAE-2025, self-employed workers, Seguridad Social (accessed )
- Practical guide to self-employment, Seguridad Social (accessed )
- Ley 14/2013, on support for entrepreneurs and their internationalisation, article 20 (activity sectorisation), BOE (accessed )
- Real Decreto Legislativo 1175/1990, approving the tariffs and instructions of the Impuesto sobre Actividades Económicas, BOE (accessed )
- Real Decreto 1065/2007, article 9 (registration declaration in the Census of Entrepreneurs, Professionals and Withholders), BOE (accessed )
- Bank of Spain, CIR 2025 report, box 2.1: the new Clasificación Nacional de Actividades Económicas 2025, Banco de España (accessed )
- Ley reguladora de las Haciendas Locales, article 82 (IAE exemptions), BOE (accessed )


