Brazil Tax ID Guide — CPF and CNPJ Numbers Explained
This post is also available in: Español|Português
Brazil issues two primary tax identification numbers: the CPF for individuals and the CNPJ for legal entities. Both are administered by the Secretaria Especial da Receita Federal do Brasil (RFB) and are required for banking, invoicing, property ownership, and public-sector contracts. Understanding their formats, validation rules, and the major changes arriving in 2026 is essential for any business operating in or with Brazil.
Cadastro de Pessoas Físicas — CPF
The CPF ("Cadastro de Pessoas Físicas") is the individual taxpayer registry number assigned to Brazilian nationals and to foreign nationals who hold assets, accounts, or economic interests in Brazil. It is governed by Normative Instruction RFB 1.548/2015.
Format: 11 digits, written as NNN.NNN.NNN-DD where the final two digits (DD) are check digits.
Mod-11 checksum: The first check digit is calculated by multiplying the first nine digits by weights 10 through 2, summing the products, and subtracting (sum mod 11) from 11 — if the result is 10 or 11, the check digit is 0. The second check digit repeats the same algorithm over all ten digits with weights 11 through 2. Any CPF with the same digit repeated eleven times (e.g., 111.111.111-11) is structurally invalid regardless of checksum.
| CPF — Cadastro de Pessoas Físicas |
| ID Card — Carteira de Identidade Nacional (CIN) |
CPF Status Values
The Receita Federal assigns one of five statuses to each CPF:
| Status | Practical Consequence |
|---|---|
| Regular | Fully active — all transactions permitted |
| Suspended | Temporary block — banking and property transactions blocked |
| Null | Duplicate registration cancelled |
| Cancelled | Permanently revoked |
| Pending Regularisation | Missing mandatory update |
A CPF in any status other than "Regular" will cause NF-e invoice rejections, bank account denials, and property transfer refusals. You can check status free of charge via the CPF verification portal.
Cadastro Nacional da Pessoa Jurídica — CNPJ
The CNPJ ("Cadastro Nacional da Pessoa Jurídica") is the company tax registration number issued to legal entities — corporations, partnerships, branches, non-profits, and foundations. It is governed by Normative Instruction RFB 2.119/2022.
Format (current): 14 digits, written as NN.NNN.NNN/BBBB-DD
| Segment | Positions | Meaning |
|---|---|---|
| Root | 1–8 | Unique company identifier |
| Branch suffix | 9–12 | Headquarter = 0001; each subsidiary increments |
| Check digits | 13–14 | Mod-11 verification pair |
Mod-11 checksum: Two check digits computed by separate weighted-sum passes over the preceding 12 digits. The weights cycle through the sequence 2, 3, 4, 5, 6, 7, 8, 9. If a remainder is 0 or 1, the corresponding check digit is 0.
Alphanumeric CNPJ from July 2026
Normative Instruction RFB 2229/2024 introduces an alphanumeric CNPJ format effective July 2026 for new registrations only. Existing all-numeric CNPJs are not renumbered.
Key technical changes:
- The first 12 characters (root + branch) may contain letters A–Z alongside digits 0–9.
- Letters map to their ASCII value minus 48 (A = 17, B = 18, … Z = 42) before the checksum is calculated; digits retain face value.
- The two check digits remain numeric.
- Example new-format CNPJ:
12.ABC.345/01DE-35
Any ERP, billing system, NF-e library, or API that validates CNPJ against a purely numeric regular expression will reject valid new-format CNPJs from suppliers. The Receita Federal provides a free CNPJ Alfanumérico Simulator at servicos.receitafederal.gov.br/servico/cnpj-alfa for developers to test updated validation logic before go-live. [1] [2]
You can verify any CNPJ via the official REDESIM portal — see the CNPJ verification guide for step-by-step instructions.
CNPJ Status Values
| Status | Meaning |
|---|---|
| Ativa | Active — normal operations |
| Inapta | Inactive due to missed tax filings — invoicing and banking blocked |
| Suspensa | Temporarily suspended |
| Baixada | Cancelled — company deregistered |
| Nula | Registration voided |
A CNPJ classified as inapta cannot issue NF-e invoices or conduct banking transactions. Regularisation requires submitting all outstanding declarations (DCTF, DIRF, SPED) through the eCAC portal, paying late-filing penalties, and waiting for daily status refresh.
Foreigners
Non-resident individuals or foreign entities that hold real estate, vehicles, company stakes, bank accounts, or investments in Brazil must register for a CPF or CNPJ, respectively.
Foreign companies seeking to invest directly must also pre-register with the Banco Central do Brasil via the SCE-CDNR system before opening a CNPJ. A Brazilian-resident representative (procurador) holding a valid CPF and a properly scoped power-of-attorney is mandatory for all foreign-owned CNPJ registrations under Article 6, §1 of IN RFB 2119/2022.
Brazil's 2026 Tax Reform — CBS and IBS
Lei Complementar 214/2025 (signed 16 January 2025) implements the consumption tax reform mandated by Constitutional Amendment 132/2023. It replaces five taxes — PIS, COFINS, IPI, ICMS, and ISS — with two new levies over a 2026–2033 transition:
- CBS (federal): Contribuição sobre Bens e Serviços
- IBS (state/municipal): Imposto sobre Bens e Serviços
2026 is a test phase: NF-e invoices must show CBS at 0.9% and IBS at 0.1% (combined 1%), offsettable against existing PIS/COFINS. Penalty waivers apply through April 30, 2026. ICMS and ISS are fully replaced only in 2033. [3] [4]
Foreign digital service providers selling to Brazilian consumers must obtain a CNPJ for CBS/IBS registration from 2026 onward — the reform closes the prior exemption gap for non-established suppliers.
MEI — Microempreendedor Individual
MEI is a simplified self-employment regime capped at R$81,000 annual gross revenue (2025 limit). The MEI holds a CNPJ and pays a single monthly DAS (Documento de Arrecadação do Simples) covering INSS, ISS, and ICMS.
Exceeding the cap triggers disqualification:
- Up to 20% over cap (up to R$97,200): disqualification effective January 1 of the following year; DAS surcharge on the excess with fine and interest.
- More than 20% over cap: disqualification is retroactive to January 1 of the current year — the entire year is recalculated at Simples Nacional ME rates, often producing a large back-tax assessment.
Resolution CGSN 183/2025 now combines revenues earned under both CPF and CNPJ for the same activity when calculating the R$81,000 ceiling, closing a widely used workaround. [5]