CNAE Codes in Brazil: How to Choose the Right Business Activity
Every company in Brazil must declare its business activities using CNAE codes (Classificacao Nacional de Atividades Economicas). These standardized codes tell the government what your company does, and they have far-reaching consequences for your tax regime, license requirements, and even whether you can operate from a virtual office address. Choosing the wrong codes is one of the most common and costly mistakes foreign entrepreneurs make when setting up a Brazilian company.
What Are CNAE Codes?
The CNAE system is Brazil’s official classification of economic activities, maintained by IBGE (the Brazilian Institute of Geography and Statistics). It follows the international ISIC (International Standard Industrial Classification) framework but is adapted to Brazilian regulations.
Each CNAE code is a 7-digit number structured in a hierarchy:
- Section (letter): Broad economic sector (e.g., J = Information and Communication)
- Division (2 digits): Industry group
- Group (3 digits): Activity group
- Class (4 digits + dash + 1 digit): Specific activity
- Subclass (7 digits): Most detailed level, used for tax and licensing purposes
Example
6201-5/01 — Software development on demand (custom software)
- Section J: Information and Communication
- Division 62: Information technology activities
- Group 620: IT services
- Class 6201-5: Custom software development
- Subclass 6201-5/01: Custom software development (specific)
Primary vs. Secondary Activities
When registering your CNPJ, you must declare:
Primary CNAE (Atividade Principal)
The main activity of your company. This code determines your primary tax classification and is used by the Receita Federal as the principal identifier of what your business does. You can have only one primary CNAE.
Secondary CNAEs (Atividades Secundarias)
Additional activities your company performs. You can register multiple secondary CNAEs, allowing your business to operate in related areas without needing separate companies. There is no legal limit on the number of secondary activities.
How CNAE Codes Affect Your Taxes
This is where CNAE selection becomes critically important. Your codes directly impact:
Simples Nacional Annex Classification
Each CNAE is mapped to a specific Simples Nacional annex (I through V), which determines your tax rate:
| CNAE Activity Type | Typical Annex | Starting Rate |
|---|---|---|
| Commerce (retail, wholesale) | Annex I | 4.0% |
| Manufacturing | Annex II | 4.5% |
| Services (maintenance, travel) | Annex III | 6.0% |
| Services (legal, medical, construction) | Annex IV | 4.5% |
| Services (IT, engineering, consulting) | Annex V | 15.5% |
The difference between Annex III (6%) and Annex V (15.5%) as a starting rate is enormous. Some closely related IT activities fall into different annexes, meaning the specific CNAE you choose can significantly change your tax burden.
Simples Nacional Eligibility
Certain CNAE codes are excluded from Simples Nacional entirely. Companies with these codes must use Lucro Presumido or Lucro Real, which typically means higher accounting costs and different tax calculation methods. Excluded activities include:
- Financial and credit institutions
- Factoring companies
- Real estate holding companies
- Certain import/export activities
ISS Rate
Your CNAE determines the ISS (Municipal Service Tax) rate that applies to your company. Different cities set different rates for different service categories, but the CNAE code is the key that maps your activity to a specific rate.
ICMS Obligations
If any of your CNAE codes involve commerce or manufacturing, you may be required to register for ICMS (state sales tax) through an Inscricao Estadual. This adds complexity and additional tax obligations.
How to Choose the Right CNAE Codes
Step 1: List All Your Business Activities
Write down everything your company does or plans to do. Be comprehensive. Include:
- Your main revenue-generating activity
- Supporting activities (administrative services, consulting, training)
- Future activities you plan to offer within the next year
Step 2: Search the CNAE Database
Use the official CNAE search tool (maintained by IBGE) or consult the Receita Federal’s table of CNAE codes. Search by keyword to find codes that match your activities.
Step 3: Verify Tax Implications
For each potential CNAE code, check:
- Which Simples Nacional annex it falls under
- Whether it is eligible for Simples Nacional at all
- The ISS rate in your municipality
- Whether it requires an Inscricao Estadual
Step 4: Check Licensing Requirements
Some CNAE codes require specific licenses or permits:
| CNAE Category | Potential Requirements |
|---|---|
| Food and beverages | Health department license (Alvara Sanitario) |
| Healthcare | Professional council registration (CRM, CRO, etc.) |
| Education | Ministry of Education authorization |
| Environmental services | Environmental licensing (IBAMA, state agencies) |
| Financial services | Central Bank authorization |
Step 5: Consult Your Accountant
This step is non-negotiable. A qualified Brazilian accountant (contador) will verify that your chosen codes are correct, tax-optimized, and compatible with your business structure and address.
Common CNAE Codes for International Entrepreneurs
Foreign entrepreneurs in Brazil frequently use these codes:
| CNAE Code | Description | Annex |
|---|---|---|
| 6201-5/01 | Custom software development | V (or III with Factor R) |
| 6202-3/00 | IT service development and licensing | V (or III with Factor R) |
| 6311-9/00 | Data processing and hosting | V (or III with Factor R) |
| 7020-4/00 | Management consulting | V (or III with Factor R) |
| 7319-0/02 | Digital marketing and promotion | III |
| 7490-1/04 | Business management activities | III |
| 8599-6/04 | Professional and managerial training | III |
| 4761-0/03 | Retail sale via internet (e-commerce) | I |
Note how many IT and consulting activities fall into Annex V. This is why the Factor R strategy (maintaining payroll at 28% or more of revenue to qualify for Annex III rates) is so important for these businesses.
Adding and Removing CNAE Codes
Your CNAE codes are not permanent. You can add or remove them by:
- Drafting an amendment (Alteracao Contratual) to your Contrato Social
- Registering the amendment with the Junta Comercial
- Updating your CNPJ through the Redesim system
- Updating your Inscricao Municipal and Alvara if the new activities have different licensing requirements
This process typically takes 1 to 2 weeks and costs R$ 100 to R$ 300 in Junta Comercial filing fees.
CNAE and Virtual Office Compatibility
Most service-based CNAE codes are fully compatible with virtual office addresses. Activities like software development, consulting, marketing, and administrative services do not require a physical commercial space, making a fiscal address from SedeFiscal a perfect fit.
However, certain CNAE codes imply physical operations:
- Manufacturing codes require a production facility
- Retail commerce may require a physical storefront (though e-commerce is an exception)
- Restaurant and food service codes require a kitchen and serving area
- Healthcare codes require a clinical or office space
If your primary activity is service-based and your company operates remotely, a virtual office address in Porto Alegre with SedeFiscal provides everything you need for proper CNPJ registration and tax compliance.
Mistakes That Cost Money
- Choosing overly broad codes: This can flag your company for unnecessary inspections or licensing requirements
- Missing the Factor R opportunity: IT companies that pick Annex V codes without planning their payroll strategy overpay taxes
- Not including secondary activities: If you perform an activity not covered by your registered CNAEs, the revenue from that activity may be challenged during a tax audit
- Copying a competitor’s codes: Every company’s situation is different. What works for one business may not be optimal for yours
Work with your accountant to select and periodically review your CNAE codes. As your business evolves, your activity codes should evolve with it.
Need a fiscal address for your company in Brazil?
Plans starting at R$ 19.90/month with mail management included.
View Plans