
If you have incorporated a company, applied for self-employment registration or applied for a grant, it is likely that you have had to indicate your CNAE code without being completely clear about what it is or what it means to choose it well. It is not a minor procedure: the CNAE conditions such specific aspects as Social Security bonuses, access to certain public aid or the tax classification of your activity. Understanding it from the start avoids errors that later cost time and effort to correct.
The CNAE, National Classification of Economic Activities, is a coding system that classifies all economic activities carried out in Spain into standardized categories. Each activity is assigned a four-digit numerical code that precisely identifies it within a hierarchy that ranges from large sectors to very specific activities.
Its origin is European: the Spanish CNAE is the national adaptation of the European Union's NACE classification, which in turn derives from the United Nations ISIC classification. This makes it possible to compare economic data between countries on the same methodological basis. In practice, the CNAE code is the common language used by administrations, statistical bodies and financial institutions to identify what a company does.
The usefulness of the CNAE goes far beyond a statistical classification. In the daily life of a company or a self-employed person, it has direct consequences in three main areas.
First of all, in Social Security: The CNAE code determines the type of contribution applicable and may condition access to quota bonuses, especially relevant for self-employed workers who take advantage of incentives for starting their activity or for companies that contract groups with reduced contributions.
Secondly, in access to grants and public aid: many calls delimit the beneficiaries by CNAE code. A company that does not have its code correctly assigned may be excluded from aid for which it technically meets the requirements.
Thirdly, in the relationship with the Tax Agency: although the CNAE is not in itself a fiscal instrument, the Treasury uses it to cross data, identify risk patterns and contextualize the reported activity.
The full list of CNAE codes is available at National Institute of Statistics (INE), in the classifications section of the statistical portal. It can also be consulted through the Ministry of Industry's search engine and on most agencies and business portals. Just enter a description of the activity to obtain the corresponding code or browse the hierarchical structure to find the appropriate category.
When a company or self-employed person carries out more than one activity, the general criterion is to assign the CNAE corresponding to the main activity, understood as the one that generates the highest volume of turnover. If two activities have a similar weight, it is recommended to choose the one that best represents the core of the business or the one that has the greatest future projection. In any case, it is possible to declare secondary activities, although the main code is the one with the greatest administrative and statistical impact.
The CNAE is organized into four hierarchical levels. The first are the sections, identified with a letter (A, B, C...), which group large branches of activity: agriculture, manufacturing, commerce, services, etc. Within each section there are divisions, identified with two digits, that subdivide that branch into more specific areas. The divisions are broken down into three-digit groups and, finally, into four-digit classes, which represent the specific activity.
For example: section J corresponds to Information and Communications; Division 62, to Programming, Consulting, and Other Computer Activities; Group 620 maintains that name; and Class 6201 specifically identifies computer programming activity. The further you descend the hierarchy, the more accurate the classification is.
This is a common confusion, but they are different instruments with different purposes. The CNAE is a statistical classification: its objective is to categorize economic activities to produce comparable data. It has no direct tax nature.
The IAE, Tax on Economic Activities, is a local tax that taxes the exercise of economic activities in Spanish territory. It has its own epigraph system, independent of the CNAE, and is managed by the municipalities. The same activity can have a CNAE code and an IAE epigraph that do not correspond numerically, even if they describe the same thing. Most self-employed workers and SMEs are exempt from paying the IAE, but they must also register under the corresponding heading.
The current version was the CNAE-2009. In 2025, its update began to align with the NACE Rev. 2.1 revision, which incorporates new categories related to the digital economy, technological services and environmental activities. For companies, this may involve automatic reclassification or the convenience of reviewing the assigned code, especially if the activity has a relevant technological or sustainability component.
The consequences are more practical than sanctioning. The most common is to be excluded from grants or bonuses for which the requirements would be met with the correct code. It can also generate inconsistencies in Treasury or Social Security data crossings, leading to additional requirements. There is no direct sanction for an erroneous code, but correcting it requires formal processing and may have effects on some benefits.
A self-employed person can change their CNAE submitting form 036 or 037 to the Tax Agency. A commercial company must make the same communication and, if the change involves modifying the corporate purpose of the statutes, it will be necessary to raise it to a public registry and register it in the Mercantile Registry. In both cases, it should be done at the moment when the activity actually changes, without waiting for the end of the financial year.
Yes. Every company and self-employed person must have been assigned a CNAE code from the moment of registration. This information is required on registration forms with both the Tax Agency and Social Security.
Yes. Multiple codes can be declared if multiple activities are carried out, although one must be designated as the main one. Secondary schools have less administrative weight.
No. The CNAE classifies statistically; the IAE is a tax with its own system of epigraphs. Although both describe economic activity, they do not share numbering or purpose.
By consulting the Tax Agency's census status certificate, the company's Social Security work life report, or the INE search engine by entering a description of the activity.