IAE activity codes: how to choose yours without getting it wrong
A guide to choosing your IAE activity code: sections, 15% or 7% withholding, exemptions, the AEAT search tool and the mistakes that force you to amend form 036.
TL;DR: Your IAE activity code classifies your activity with the Spanish tax agency and is chosen on form 036 before your first invoice. The Tariffs (RDL 1175/1990) have three sections — business, professional and artistic — and the section determines, among other things, whether invoices you issue to businesses carry personal income tax withholding. Individuals do not pay the tax, but choosing the right activity code is still mandatory: you may only invoice for registered activities.
Key takeaways
- The activity codes are in the IAE Tariffs approved by Royal Legislative Decree 1175/1990: Section 1 (business), Section 2 (professional) and Section 3 (artistic).
- Individuals are exempt from paying IAE, and companies only pay if their turnover reaches €1,000,000; even if exempt, you declare your activity code on form 036 (article 82 of RDL 2/2004).
- If your activity falls under Section 2 (professional), invoices you issue to businesses and other freelancers carry personal income tax withholding: 15% generally or 7% in the year you start and the following two years (article 95 of RD 439/2007).
- A company never pays tax under Section 2: if it performs a professional activity, it is classified under the corresponding or analogous activity in Section 1 (rule 3 of the Instruction).
- If your activity does not appear in the Tariffs, it is provisionally classified under the group or n.c.o.p. activity code (not elsewhere classified) that it most closely resembles (rule 8 of the Instruction), not the one with the fewest obligations.
- You can — and usually must — register under several activity codes at the same time: the charge for one activity only authorises you to carry out that activity (rule 4 of the Instruction).
Contents
Choosing an IAE activity code means answering one question precisely: what economic activity are you actually going to carry out? The activity code comes from the Economic Activities Tax Tariffs — approved by Royal Legislative Decree 1175/1990 (in force in 2026) — and you declare it on form 036 before issuing your first invoice. Although you will not pay the tax as an individual, this choice is not decorative: it determines what you can invoice for, whether your invoices carry personal income tax withholding and how the tax agency cross-checks your data throughout your business activity.
What an IAE activity code is and what it really determines
IAE classifies every economic activity carried out in Spain within a hierarchy: section → division → grouping → group → activity code. The result is a numerical code — “763”, “849.9”, “659.2” — that uniquely identifies your activity to the authorities.
This code is not a box you tick and forget. It determines, in turn:
- What you can invoice for. Rule 4 of the tax Instruction (RDL 1175/1990) states that paying the charge corresponding to an activity authorises you exclusively to carry out that activity. In practical terms, invoicing for something that is not covered by your declared activity codes means invoicing outside your tax registration.
- Whether your invoices carry personal income tax withholding — this depends on the section, as we will examine in detail.
- How the tax agency sees you when cross-checking data: your income, deductible expenses and quarterly returns are read in light of the activity you declared. An activity code that does not match what you invoice for creates an inconsistency that stands out on its own.
IAE and CNAE are not the same. CNAE is a statistical classification (used, for example, when registering with Social Security and in annual accounts); the IAE activity code is the tax classification under the tax Tariffs. They are similar and linked, but they are not interchangeable: the AEAT search tool shows how each activity code maps to CNAE-2025, which has applied since 1 January 2026.
The three sections of the Tariffs: business, professional and artistic
The IAE Tariffs are divided into three sections. Knowing which one your activity falls under is the first real decision you make when choosing:
| Section | What it covers | Typical examples | Key practical consequence |
|---|---|---|---|
| Section 1 — Business activities | Retail, industry, construction, hospitality, transport and services organised as a business | Online shop, restaurant, agency, workshop, “Otros servicios independientes n.c.o.p.” (“other independent services not elsewhere classified”, activity code 849.9) | No personal income tax withholding on invoices issued |
| Section 2 — Professional activities | Activities carried out personally by individuals, where their own work is the central factor | Computer programmers and analysts (group 763), lawyers, architects, translators | Invoices to businesses and freelancers with personal income tax withholding (15% or 7%) |
| Section 3 — Artistic activities | Artistic and entertainment activities | Musicians, actors, circus performers | Invoices with personal income tax withholding: 7% in groupings 01, 02, 03 and 05; 15% in the rest (article 95.1 RD 439/2007) |
The rule that catches companies off guard
There is a nuance here that surprises people who incorporate an SL to practise their profession: a company never pays tax under Section 2. Rule 3 of the Instruction states that when a legal entity carries out an activity classified under Section 2, it must register and pay tax under the corresponding or analogous activity in Section 1. The same software development work is “professional” when performed by an individual (group 763) and “business” when performed by their SL.
For an individual, by contrast, the boundary between Sections 1 and 2 depends on how the activity is carried out: if you organise means of production on your own account as a business organisation (premises open to the public, staff, a structure), the activity tends to be a business activity; if the service depends on your personal practice of the profession, it is professional. In uncertain cases, the Directorate-General for Taxation has spent decades issuing binding rulings on exactly this question — and they are free to consult.
Being exempt from payment does not mean choosing correctly is optional
The most widespread misconception is: “As a freelancer, I do not pay IAE, so the activity code does not matter.” The first part is true; the second is not.
Article 82 of the recast Local Treasury Regulation Act (RDL 2/2004, in force in 2026) exempts, among others:
- Individuals, whether or not they are resident in Spain.
- Those starting an activity, during the first two tax periods for this tax.
- Companies and entities whose net turnover is below €1,000,000 (for groups of companies under article 42 of the Commercial Code, turnover is measured across the group as a whole, whether or not it is required to consolidate its accounts — a clarification introduced by Law 11/2021 in article 82.1.c TRLRHL).
The exemption applies to payment, not classification. Who declares what:
| Situation | Do they pay IAE? | Activity code declared on… | Deadline |
|---|---|---|---|
| Freelancer (individual) | No — always exempt | Form 036 | Before starting the activity (article 9 RD 1065/2007) |
| Company with turnover < €1,000,000 | No — exempt | Form 036 | Before starting the activity |
| Company with turnover ≥ €1,000,000 | Yes | Form 840 (registration, change, deregistration) | Registration due to loss of exemption: during December immediately before the year in which it becomes liable (article 5 of RD 243/1995) |
| Those required to report turnover | — | Form 848 | From 1 January to 14 February of the year in which it must take effect (Order HAC/85/2003) |
The consequence almost nobody considers: withholding on your invoices
The section of your activity code directly affects every invoice you issue to another Spanish business or freelancer.
If your activity is classified under Section 2 (professional) and you are an individual, business customers must withhold personal income tax from your gross income (article 95 of the Personal Income Tax Regulations, RD 439/2007, in force in 2026):
- 15% generally.
- 7% in the tax period in which you start the activity and in the following two, provided that you did not carry out any professional activity in the year before starting — and provided that you notify the payer in writing, who must retain the signed notice.
If your activity is classified under Section 1 (business), your invoices do not carry this withholding and your personal income tax payment on account is handled through quarterly form 130.
How to find your activity code in four steps
1. Describe your actual activity, not your job title
The starting point is not “I am a designer” but “what do I deliver and who pays me?” Do you sell a product or a service? Do you provide it personally or through an organisation? Wholesale, retail or online? The same person may have two different activities — and therefore two activity codes.
2. Use the official AEAT search tool
The Spanish tax agency’s electronic office has an economic activity search tool (search for “buscador de actividades y sus obligaciones tributarias” on sede.agenciatributaria.gob.es): enter keywords or a code and it returns the matching groups and activity codes, their mapping to CNAE-2025 and the tax obligations associated with each one. It is the official source and it is free — always start there, not in a forum.
3. If there is no exact activity code: rule 8, not guesswork
The Tariffs date from 1990; the economy does not. When your activity is not expressly listed, rule 8 of the Instruction requires it to be classified provisionally under the group or activity code for actividades no clasificadas en otras partes (n.c.o.p.; activities not elsewhere classified) that it most closely resembles by nature. “Resembles” is the key word: you look for substantive affinity with the activity, not the code with the fewest obligations.
4. If you have serious doubts: request a binding ruling
If your case is genuinely ambiguous — hybrid activities, new business models — there is a mechanism that provides an official answer: a binding tax ruling from the Directorate-General for Taxation. Thousands of modern activities (web development, app sales, digital services) are already covered by published rulings that you can search before submitting your own request.
The cases that raise the most questions
Programmer, web designer, digital consultant
The classic case. Software development and analysis performed by an individual is classified under group 763 of Section 2, “Computer programmers and analysts” — a professional activity, with withholding. The DGT has gradually placed activities such as website design and personal IT consultancy in this group. But if the activity is organised as a business — team, structure, sale of its own product — the classification moves to Section 1. The boundary is factual, not a matter of preference: the way you carry out the activity determines its section, and in uncertain cases you should rely on published binding rulings for analogous activities.
Several activities at once
A common profile today: you develop for clients (group 763, professional), sell your own digital product (business activity) and provide training. These are different activities → different activity codes, all declared on the same form 036. An exempt individual pays no extra cost for declaring more activity codes, and registering each activity is what authorises you to invoice for it.
This is where a management system helps more than you might expect: in Frihet, you can invoice each line of activity with its own numbering series. That means that, when a “secondary” activity starts to grow, you can see it in your own billing — and spot in time that you need to add activity codes by amending form 036, instead of discovering it after invoicing for months without being registered.
Your activity does not exist in the Tariffs
Content creator, community manager, services based on technologies that did not exist in 1990. Apply rule 8: use the closest n.c.o.p. activity code by nature. In Section 1, activity code 849.9, “Otros servicios independientes n.c.o.p.” (“other independent services not elsewhere classified”), serves as a residual category for business services — but only when there genuinely is no more specific activity code. The AEAT resolves these classifications case by case through rulings, and copying the activity code “everyone in the industry uses” without checking it merely means inheriting everyone else’s mistake.
Choosing mistakes that cost you later
- Invoicing for an undeclared activity. The most common mistake. The solution is to amend form 036 before the first invoice for the new activity, not afterwards.
- Choosing a section for convenient withholding treatment. The nature of the activity governs; the inconsistency is detected through data cross-checks.
- Hiding in an n.c.o.p. code out of laziness when a specific activity code exists: rule 8 is for activities that are not specified, not for skipping the search.
- Confusing IAE with CNAE and copying a code from one system into the other.
- Failing to review the activity code when the business changes. Your tax registration describes your activity today; the deadline for reporting a change is one month from the change (article 10 of RD 1065/2007).
- Forgetting that a company does not inherit your freelancer activity codes: if you move from an individual business to an SL, the activity is reclassified (rule 3) and the company’s tax registration is new.
:::checklist Before selecting your activity code on form 036
- I have written down every activity I plan to invoice for over the next twelve months.
- I have searched for each one using the activity search tool on the AEAT website.
- I know which section each activity falls under and what that means for withholding on my invoices.
- If one does not appear in the Tariffs, I have identified the closest n.c.o.p. activity code (rule 8) or an analogous binding ruling.
- I declare one activity code for each different activity on the same form 036.
- If I operate through a company, I have verified the classification under Section 1 even if the activity is “professional”.
:::
When the business evolves, the activity code does too
Your activity code is not a once-in-a-lifetime decision. Adding activities, closing a line of business, exceeding one million euros in turnover as a company or moving from freelancer to SL: each milestone has its own tax notification — an amendment to form 036 in the general case, form 840 if you are a taxable person required to pay, and form 848 to report turnover between 1 January and 14 February where applicable.
The discipline that makes all this easy is operational, not fiscal: knowing what you are invoicing for under each activity at all times. With organised billing and income visible by line of business, the activity code stops being a box you selected once and becomes what it should always have been — an exact and up-to-date description of what you do.
Was this article helpful?
FAQ
Can I register under several IAE activity codes at the same time?
Yes, and that is the correct approach if you invoice for different activities: you declare one activity code for each on the same form 036. Registration for one activity only authorises you to carry out that activity (rule 4 of the IAE Instruction), so invoicing for something you have not declared means you must regularise your position.
Do freelancers pay IAE?
No. Individuals are exempt from paying the tax, whether or not they are resident in Spain (article 82 of the recast Local Treasury Regulation Act). But the exemption covers payment, not classification: you must still declare your activity code on form 036 before you start.
What is the difference between a business and a professional activity code?
The section of the Tariffs under which it is classified. The most visible practical consequence is that, if you are an individual under a Section 2 activity code (professional), invoices you issue to businesses and other freelancers carry personal income tax withholding (15% generally, 7% when starting the activity); under Section 1 (business), they do not.
What should I do if my activity does not appear in the IAE Tariffs?
Rule 8 of the Instruction requires it to be provisionally classified under the group or activity code for actividades no clasificadas en otras partes (n.c.o.p.; activities not elsewhere classified) that it most closely resembles by nature. The activity search tool on the AEAT website and binding rulings from the Directorate-General for Taxation are the two tools for resolving this before selecting anything.
Can I change my activity code after registering?
Yes. You report it by filing an amendment on form 036 within one month of the change (article 10 of RD 1065/2007). If you are also a taxable person required to pay IAE, changes are reported on form 840.