The CNAE — Clasificación Nacional de Actividades Económicas (National Classification of Economic Activities) — is the system that identifies which sector a company or self-employed person belongs to. It appears at the moment of incorporation, on every census declaration to the Tax Authority, in [Social Security](/en/glossary/social-security) records and in INE statistics. However, it is common for entrepreneurs and executives not to know precisely which code applies to them or what the consequences are of choosing the wrong one.
This guide explains what the CNAE is, how it is structured, how to find the correct code and what implications it has in the administrative life of a company or self-employed person.
What Is the CNAE and What Is It Used For?
The CNAE is Spain’s official classification of economic activities. It is maintained by the National Statistics Institute (INE) and is harmonised with the European NACE Rev. 2 nomenclature, which allows economic data to be compared across EU member states.
The legal basis is Royal Decree 475/2007 of 13 April, which approves the National Classification of Economic Activities 2009 (CNAE-2009). This version replaced CNAE-93 and remains the current classification. The INE has the CNAE-2025 preparation process under way, aligned with Eurostat’s NACE Rev. 2.1 revision, but as of the publication date of this article it has not yet entered into force: current administrative processes still reference CNAE-2009.
The CNAE code is used across multiple areas:
- Tax Agency (AEAT): collected on Forms 036 and 037 (census declaration for registration, amendment or deregistration in the Register of Entrepreneurs, Professionals and Withholding Agents).
- Social Security: determines the Contribution Account Code (CCC) and, in some cases, the applicable regime or the workplace accident rate.
- INE: used in sector statistics, industrial surveys, the business directory and national accounts.
- Public Administration: required in grant applications, ICO guarantees, public tenders and sector solvency reports.
- Financial institutions: banks consult it in risk analysis and when opening business accounts.
CNAE Code Structure
The CNAE-2009 classification has four hierarchical levels:
| Level | Designation | Example |
|---|---|---|
| Section | Letter (A to U) | J — Information and communications |
| Division | 2 digits | 62 — Programming, consulting and related activities |
| Group | 3 digits | 620 — Programming, consulting and related activities |
| Class | 4 digits | 6201 — Computer programming activities |
The level used for administrative purposes — the one that appears on Form 036/037 and with Social Security — is always the four-digit (class) level. Sections and divisions serve statistical grouping purposes but are not declared directly.
The classification comprises 21 sections (A to U), ranging from Agriculture, forestry and fishing (A) to Activities of households as employers (T) and Activities of extraterritorial organisations (U), and including Manufacturing (C), Construction (F), Retail trade (G) and Financial and insurance activities (K).
How to Find the Correct CNAE Code
The most direct method is the INE’s official search tool, available at:
https://www.ine.es/daco/daco42/clasificaciones/cnae09/buscador.htm
The step-by-step process is as follows:
- Describe the main activity in simple, concrete terms (for example, “web design” or “tourist apartment rental”).
- Enter keywords in the INE search tool’s search field and review the results.
- Read the full description of the proposed classes: the INE includes explanatory notes with activities included and excluded under each code.
- Check against the explanatory note of the selected class to confirm that your activity falls within its scope.
- Identify secondary activities that also need to be declared (distribution, training, complementary consulting, etc.).
Additionally, Entrepreneur Assistance Points (PAE) — present in Chambers of Commerce, local councils and single business windows — offer guidance on choosing the CNAE as part of the incorporation or activity registration process.
Important note: a primary CNAE — the activity generating the highest turnover or to which the business devotes most of its time — and several secondary CNAEs can be declared. Omitting secondary activities can result in requests from the AEAT during census checks.
CNAE When Incorporating a Company
When a company is incorporated, the CNAE is present from the very beginning:
In the articles of association, the corporate purpose must be worded broadly enough not to limit future activities, but the CNAE declared to the Tax Authority must correspond to the activity actually carried out — not a generic corporate purpose.
On Form 036, which is the census declaration that every company must submit when starting activity (before the first transaction), the primary CNAE and any secondary ones are declared. It is also used for subsequent amendments (change of activity, new locations, cessation).
The CNAE ↔ IAE category relationship deserves specific mention. The Business Activity Tax (IAE) has its own category classification, separate from the CNAE, although both classifications run in parallel. Choosing the correct CNAE makes it easier to identify the corresponding IAE category, but they are independent systems: a company may be exempt from paying IAE (if its turnover is below one million euros) and yet still be required to declare the category and the CNAE.
Change of activity: if a company modifies or expands its activity, it must submit an amended Form 036 to update the CNAE and the IAE category. Failure to comply with this obligation can result in census verification proceedings by the AEAT.
Most Common Sectors: Table of Frequent CNAE Codes
The following are some of the most common CNAE codes among Spanish companies and self-employed persons:
| CNAE Code | Description |
|---|---|
| 6201 | Computer programming activities |
| 6202 | Computer consultancy activities |
| 6209 | Other information technology service activities |
| 6820 | Rental and operating of own or leased real estate |
| 6832 | Management and administration of real estate |
| 4711 | Retail sale in non-specialised stores |
| 4791 | Retail sale via mail order or the internet |
| 5610 | Restaurants and mobile food service activities |
| 5630 | Beverage serving activities |
| 7022 | Business and other management consultancy activities |
| 6920 | Accounting, bookkeeping, auditing activities |
| 6910 | Legal activities |
| 8559 | Other education not elsewhere classified |
| 8690 | Other human health activities |
| 7420 | Photographic activities |
This table is indicative only. The exact classification depends on the specific details of the activity: the same INE search tool may return several similar codes, and choosing between them requires reading the explanatory notes for each class.
CNAE and Self-Employed Persons
Self-employed persons must declare their CNAE on Form 037 (a simplified version of Form 036 for natural persons) at the time of census registration with the AEAT, which is generally processed simultaneously with registration in the Special Regime for Self-Employed Workers (RETA).
Relationship with the IAE category: as with companies, the declared CNAE serves as a reference for determining the corresponding IAE category. Self-employed persons with turnover below one million euros are exempt from actually paying IAE, but must be registered in the category corresponding to their activity.
RETA contributions: the contribution rate under RETA (the monthly self-employed social security contribution) does not depend directly on the CNAE, but on the contribution base chosen by the self-employed person within the bands set according to their expected net income. However, activities with a specific workplace accident risk may have additional coverage that is related to the declared activity.
Change of activity: if a self-employed person modifies their main activity or adds secondary activities, they must submit an amended Form 037. This is a straightforward process that can be completed through the AEAT’s electronic portal using a digital certificate or Cl@ve.
Common Mistakes in CNAE Classification
1. Choosing an overly generic code. Some business owners select a broad CNAE (“Other professional activities”) to cover future activities. This may be valid if it reflects reality, but in census checks the AEAT may require justification that the declared activity corresponds to the chosen code.
2. Not declaring secondary activities. A company that also provides training related to its main activity, or that sells products in addition to services, must declare the CNAE codes corresponding to each activity. Omission can result in census regularisation proceedings.
3. Confusing the CNAE with the IAE category. They are different classifications. The CNAE is a statistical key; the IAE is a local tax key. Although related, they do not have a one-to-one correspondence and must be declared independently.
4. Not updating the CNAE after a business model change. A company that started as a software developer and has evolved into business consultancy should review whether its CNAE remains the most appropriate and, if necessary, submit an amended Form 036.
5. Assuming the CNAE has no practical relevance. In practice, an inappropriate CNAE can prevent access to certain grant schemes (which require CNAEs specific to the beneficiary sector), create incompatibilities in public procurement and complicate access to sector-specific financing.
Frequently Asked Questions About CNAE
What is the CNAE? The CNAE (Clasificación Nacional de Actividades Económicas) is the official system Spain uses to code and classify the economic activities of companies and self-employed individuals. It is maintained by the INE under Royal Decree 475/2007 and is aligned with European NACE Rev. 2. The current version is CNAE-2009.
What is the CNAE code used for? The CNAE code is used across multiple areas: the AEAT collects it on Forms 036 and 037 (census registration), Social Security uses it to determine the applicable regime, the INE uses it in sector statistics, and public administrations require it in grant applications, public guarantees and sector reports. It is also the starting point for identifying the IAE category.
How many digits does a CNAE code have? The CNAE code is expressed with four digits, corresponding to the class level within the hierarchical classification (section → division → group → class). It is this four-digit code that is declared to the AEAT and Social Security.
Where can I look up my CNAE code? The INE’s official search tool is available at ine.es. It allows searching by descriptive keywords and returns the most relevant classes with their full description. It can also be consulted through Entrepreneur Assistance Points (PAE).
Can I have more than one CNAE code? Yes. A company or self-employed person can declare one primary and several secondary CNAE codes. It is important to correctly declare all relevant codes because omitting secondary activities can result in requests from the AEAT during census checks.
What happens if I choose the wrong CNAE code? Misclassification can lead to AEAT census reviews, incompatibility with certain grant schemes, problems in public procurement and, in regulated sectors, requests from sectoral authorities. Correction is made by submitting an amended census declaration (Form 036 or 037).
Is the CNAE the same as the IAE category? No, although they are related. The CNAE is the harmonised European statistical classification; the IAE is a local tax with its own category classification. They serve as mutual references but are independent systems.
Does CNAE-2025 exist yet? As of April 2026, the current version is CNAE-2009 (Royal Decree 475/2007). The INE is working on the CNAE-2025 update, aligned with Eurostat’s NACE Rev. 2.1, but it has not yet entered into force. Current administrative processes still reference CNAE-2009.
Do you have questions about which CNAE code applies to your activity, need to amend your census declaration or are incorporating a new company? At BMC we advise on census registration, changes to corporate purpose, IAE assessments and all tax management associated with starting a business. Request a free consultation.