CPF vs CNPJ: What Foreigners Need to Know About Brazilian Tax IDs

CPF (individual, 11 digits) vs CNPJ (company, 14 digits) — complete guide for foreigners on which Brazilian tax ID you need, when, and why.

By Zachariah Zagol, OAB/SP 351.356 Updated:

CPF vs CNPJ: What Foreigners Need to Know About Brazilian Tax IDs

Brazil runs on two numbers. The CPF (Cadastro de Pessoas Físicas) is the individual tax ID — 11 digits, issued by the Receita Federal, required for virtually everything from opening a bank account to buying a SIM card. The CNPJ (Cadastro Nacional da Pessoa Jurídica) is the business tax ID — 14 digits, also issued by the Receita Federal, required to operate any company, partnership, or formal business entity in Brazil. Most foreigners need a CPF. You need a CNPJ only if you are starting, investing in, or formally operating a Brazilian business. The two numbers serve fundamentally different purposes, but they interact in ways that confuse nearly every foreigner arriving in Brazil for the first time.

This guide explains both systems in detail: what each number does, when you need which one, how the two interact, and the practical pitfalls that catch foreigners off guard. For the step-by-step CPF application process, see our dedicated CPF guide for foreigners.

What Exactly Is a CPF?

The CPF — Cadastro de Pessoas Físicas — is Brazil’s individual taxpayer registry, governed by Instrução Normativa RFB 1.548/2015 and subsequent updates. Every Brazilian citizen receives a CPF at birth (since 2017, it is printed on the birth certificate). For foreigners, the CPF is obtained through application — at a Brazilian consulate, a Receita Federal office, an authorized bank branch, or online through the Receita Federal portal.

The CPF is not merely a tax ID. It functions as a universal identification number in Brazil, required for activities far beyond taxation:

  • Financial transactions: Opening bank accounts, making investments, receiving wire transfers, purchasing insurance
  • Property: Buying, selling, or renting real estate — the cartório (notary office) will not register a deed without a CPF
  • Government services: Accessing SUS (public healthcare), enrolling in education, registering vehicles
  • Consumer activities: Purchasing a SIM card, signing a mobile phone contract, buying goods above certain thresholds, obtaining store credit
  • Legal proceedings: Filing lawsuits, registering marriages, processing inheritance claims
  • Employment: Employers register employees using their CPF for payroll, FGTS, and INSS contributions

The number itself is permanent — assigned once, valid for life. It does not expire. However, the status of the CPF (situação cadastral) can change: regular, pending regularization, suspended, canceled, or null. An irregular CPF blocks virtually all financial activity in Brazil.

“The CPF is your skeleton key to Brazilian life. Without it, you cannot open a bank account, buy property, sign a lease, or even get a cell phone plan. It is the first document every foreigner should obtain — before the visa, before the apartment search, before anything else.” — Zachariah Zagol, Founding Partner, OAB/SP 351.356

What Exactly Is a CNPJ?

The CNPJ — Cadastro Nacional da Pessoa Jurídica — is Brazil’s business entity registry, also administered by the Receita Federal under Instrução Normativa RFB 1.863/2018. Every legal entity operating in Brazil — companies, partnerships, non-profits, foreign branches, condominiums, churches — must have a CNPJ.

The CNPJ serves as the company’s tax identity, used for:

  • Tax filings: Corporate income tax (IRPJ), social contribution (CSLL), PIS/COFINS, ICMS, ISS, and all other business taxes
  • Invoicing: Issuing notas fiscais (tax invoices), which are legally required for virtually all commercial transactions in Brazil
  • Banking: Opening business bank accounts, obtaining commercial credit, processing payments
  • Employment: Registering employees, paying FGTS contributions, issuing payroll
  • Government contracts: Bidding on public tenders (licitações), registering with regulatory agencies
  • Import/export: Clearing goods through customs (SISCOMEX registration requires a CNPJ)

A CNPJ is not something an individual obtains — it is created when a legal entity is registered. The process involves drafting articles of organization (contrato social), filing with the state commercial registry (Junta Comercial), and then obtaining the CNPJ number from the Receita Federal. The entity’s partners or shareholders are identified by their CPFs (or CNPJs, if corporate partners), creating a link between the individual and business registries.

How Do CPF and CNPJ Interact?

This is where most foreigners get confused. The CPF and CNPJ are separate registries, but they are deeply interconnected:

  1. You need a CPF before you can get a CNPJ. Every partner or shareholder of a Brazilian company must have a CPF. The Junta Comercial will not register articles of organization without valid CPFs for all individual partners.

  2. Your CPF appears on your company’s CNPJ record. The Receita Federal’s CNPJ database shows which CPFs are associated with which companies. This is public information — anyone can look up a CNPJ and see the partners listed.

  3. Tax obligations flow through both. Your company pays taxes through the CNPJ (IRPJ, CSLL, ISS/ICMS). You personally report your ownership stake and any distributions on your individual DIRPF, filed under your CPF. The Receita Federal cross-references both filings.

  4. An irregular CPF can block your CNPJ. If your CPF status becomes irregular (situação cadastral pendente or suspensa), your company may face restrictions — difficulty renewing licenses, blocked from government contracting, problems issuing digital certificates.

  5. Having a CNPJ does not give you a CPF. Foreign companies investing in Brazil through a subsidiary will have a Brazilian CNPJ, but the individual officers and directors still need personal CPFs.

Quick Comparison Table

FeatureCPFCNPJ
Full nameCadastro de Pessoas FísicasCadastro Nacional da Pessoa Jurídica
Format11 digits (XXX.XXX.XXX-XX)14 digits (XX.XXX.XXX/XXXX-XX)
Who gets itIndividuals (Brazilian or foreign)Companies, partnerships, associations, foreign branches
Issuing authorityReceita Federal (Federal Revenue Service)Receita Federal
Required forProperty purchase, bank accounts, investments, marriage, employment, tax filingOperating a business, issuing invoices, hiring employees, importing/exporting
How to obtain (in Brazil)Receita Federal office, authorized banks, or cartóriosJunta Comercial (commercial registry) + Receita Federal
How to obtain (abroad)Brazilian consulate or online via Receita Federal (limited)Requires a Brazilian legal representative
CostFree (at consulate or Receita Federal) or R$7 at authorized service pointsFree registration, but incorporation costs R$1,000-5,000+
TimelineSame day to 2 weeks5-30 business days
Linked to tax residency?No — having a CPF does not make you a tax residentNo — having a CNPJ does not make the foreign owner a tax resident

Which One Do You Need? Scenario-by-Scenario Guide

Your SituationCPF Needed?CNPJ Needed?Notes
Tourist visiting BrazilHelpful but not always requiredNoCPF useful for purchases over certain amounts, SIM card registration, some hotels
Buying property in BrazilYesNo (unless buying through a company)CPF required for property registration at cartório
Renting an apartmentYesNoLandlords and agencies require CPF
Opening a bank accountYesNo (for personal account)Banks require CPF + valid visa + proof of address
Investing in Brazilian stocks/fundsYesNoBrokerages require CPF + CVM registration for non-resident investors
Receiving inheritance in BrazilYesNoCPF needed for inventário (estate proceedings)
Getting married in BrazilYesNoCartório requires CPF for marriage process
Employed by a Brazilian companyYesNoEmployer registers you with CPF for payroll
Starting a business in BrazilYes (for you as a partner)Yes (for the company)You need both — CPF as individual, CNPJ for the business
Investing in a Brazilian company (as partner/shareholder)YesThe company has a CNPJYour CPF is linked to the company’s CNPJ as a partner
Freelancing/consulting in BrazilYesRecommended (via MEI or SLU)You can work as an autônomo with just CPF, but a CNPJ simplifies invoicing
Importing/exporting goodsYesYesCNPJ required for customs clearance via SISCOMEX
Real estate investment through a holdingYesYesHolding company structure requires CNPJ
Digital nomad on temporary visaRecommendedNoCPF simplifies daily life even if not legally required for all activities

How Do Foreigners Get a CPF?

There are four main routes. The best option depends on whether you are in Brazil, which country you are in, and how urgently you need the number.

Visit the Brazilian consulate in your country with your passport. Processing time varies from same-day to two weeks depending on the consulate. Cost is usually free or a nominal processing fee (USD $15-40 at some consulates). This is the simplest route for most foreigners and the one we recommend to clients who are still planning their move or investment.

Option 2: Online via Receita Federal

Non-resident foreigners from certain countries can apply online at the Receita Federal portal. You will need your passport number, date of birth, country of birth, and mother’s full name. This option has been intermittently available and works most reliably for citizens of Mercosul countries. The system can be temperamental — name formatting issues and system errors are common. See our detailed CPF application guide for troubleshooting.

Option 3: In Brazil at an Authorized Service Point

If you are already in Brazil, visit a Receita Federal office, authorized Correios (post office) branch, or Banco do Brasil location. Bring your original passport. Some locations issue the CPF number immediately; others take a few days. Cost is R$7 at Correios and Banco do Brasil; free at Receita Federal offices.

Option 4: Through a Cartório (Property Purchase)

If you are buying property, the cartório handling the transaction can facilitate CPF issuance as part of the purchase process. This is convenient but should not be your primary plan — it adds dependency on the property transaction timeline.

“I have seen foreigners arrive in Brazil ready to close on a property purchase, only to discover their CPF application has a name mismatch that takes weeks to resolve. Get the CPF sorted months before you need it — not the week of closing.” — Zachariah Zagol, Founding Partner, OAB/SP 351.356

How Do Foreigners Get a CNPJ?

Getting a CNPJ means establishing a legal entity in Brazil. The process depends on the entity type you choose.

New Brazilian Company (Most Common Path)

The standard path for foreign entrepreneurs and investors is forming a Sociedade Limitada Unipessoal (SLU) or Sociedade Limitada (LTDA):

  1. Choose the entity type — SLU for sole proprietors, LTDA for multiple partners, S.A. for larger operations. See our LTDA vs S.A. comparison for details.
  2. Draft the articles of organization (contrato social) per Lei 10.406/2002 (Civil Code)
  3. Appoint a Brazilian legal representative — Foreign partners who do not reside in Brazil must appoint a Brazilian resident as their legal representative (procurador) via power of attorney
  4. Register at the Junta Comercial — File the articles of organization with the state commercial registry, following DREI/gov.br guidelines
  5. Obtain the CNPJ — After Junta Comercial registration, the CNPJ is generated automatically or upon request from the Receita Federal
  6. Municipal and state registrations — Depending on your business activity, register for ISS (municipal service tax) and/or ICMS (state goods tax)

Timeline: 5-30 business days (São Paulo is generally faster due to digital processing via REDESIM). Costs: R$1,000-5,000 for registration fees, legal drafting, and accountant assistance.

Foreign Company Branch (Filial)

Foreign companies can register a branch in Brazil, but the process is substantially more complex:

  • Requires authorization from the executive branch (decreto presidencial) via DREI
  • Higher minimum capital requirements than a standard LTDA
  • Greater regulatory oversight and reporting obligations
  • Timeline: 3-6 months minimum
  • Best suited for large multinationals with specific operational reasons to avoid a subsidiary structure

Simplified Entity (MEI)

The MEI (Microempreendedor Individual) is Brazil’s simplified business registration for small entrepreneurs under Lei Complementar 128/2008, which amended LC 123/2006 (the Simples Nacional statute):

  • Maximum annual revenue of R$81,000
  • Limited to specific activity codes (CNAEs)
  • Simplified tax — fixed monthly payment of approximately R$70-80 covering INSS, ISS, and ICMS
  • Critical restriction: Only available to Brazilian citizens and permanent residents with a valid CPF. Foreigners on temporary visas generally cannot register as MEI. This catches many digital nomads by surprise.

What Are the Common Misconceptions?

”I Have a CPF — Does That Make Me a Tax Resident?”

No. The CPF is a registration number, not a tax status. Millions of non-resident foreigners have CPFs for property purchases, investments, and inheritance. Having a CPF does not trigger any tax obligation by itself. Tax residency is determined by visa type and physical presence — specifically, holding a permanent visa or being physically present in Brazil for 183+ days in a 12-month period.

”I Need a CNPJ to Buy Property, Right?”

Usually no. Individuals buy property with their CPF. You only need a CNPJ if you are purchasing through a corporate entity — for example, a holding company structure for estate planning or tax optimization purposes. Many foreign real estate investors start by purchasing individually and later transfer to a holding structure as their portfolio grows.

”Can I Use My CPF to Issue Invoices?”

Technically yes — you can work as an autônomo (self-employed individual) and issue an RPA (Recibo de Pagamento Autônomo). But this is rarely ideal. Most Brazilian companies and clients prefer working with CNPJ holders because the tax treatment is simpler for them. A CNPJ also gives you access to more favorable tax regimes — Simples Nacional or Lucro Presumido — that can substantially reduce your effective tax rate compared to individual taxation at progressive rates up to 27.5%.

”My Spouse Is Brazilian — Can I Use Their CPF?”

No. Each person needs their own CPF. Your spouse’s CPF is theirs alone. For joint property, both CPFs will appear on the deed. For joint bank accounts, both partners need valid CPFs. There is no “shared” or “family” CPF in Brazilian law.

”I Had a CPF Years Ago but Lost the Number”

CPFs are permanent. Even if issued 20 years ago at a consulate, it still exists. Look up your CPF at the Receita Federal website using your passport details, or request a reissue at a consulate. Do not apply for a new one — duplicate CPFs create serious problems that require bureaucratic intervention to resolve.

”Having a CNPJ Means I Can Stay in Brazil Legally”

No. A CNPJ gives your company legal existence in Brazil, but it does not give you personally any immigration status. You still need a valid visa to be physically present in the country. However, owning a Brazilian company with sufficient capital investment can be a pathway to an investor visa.

What Happens When Your CPF Status Becomes Irregular?

An irregular CPF (situação cadastral: pendente de regularização or suspensa) creates cascading problems:

  • Banking blocked: Banks freeze accounts linked to irregular CPFs. You cannot make withdrawals, transfers, or payments.
  • Property transactions frozen: Cartórios will not process property sales, purchases, or transfers involving an irregular CPF.
  • Investment restrictions: Brokerages restrict trading and may freeze positions.
  • Company impacts: If your CPF is irregular and you are a partner in a Brazilian company, the company may face restrictions on license renewals and government contracting.
  • Travel complications: Some airlines and immigration systems flag irregular CPFs, though this is inconsistent.

Common causes of irregular status include missed tax filings (the Receita Federal expects annual DIRPF filings from CPF holders who meet income or asset thresholds), incomplete registration data, and administrative errors. Regularizing typically requires visiting a Receita Federal office with your passport and filing any overdue returns.

“Every foreigner in Brazil starts with the CPF. It is the first practical step — before the visa, before the bank account, before the apartment. Get it right, and everything else follows. Get it wrong, or let it lapse into irregular status, and you will face friction at every turn.” — Zachariah Zagol, Founding Partner, OAB/SP 351.356

What Are the Tax Implications of Each Number?

CPF Tax Obligations

Having a CPF does not automatically create tax obligations. Tax obligations are triggered by:

  • Tax residency: If you become a Brazilian tax resident (permanent visa or 183+ days physical presence), you must file an annual DIRPF (Declaração de Imposto de Renda Pessoa Física) declaring worldwide income
  • Brazilian-source income: Even non-residents must pay tax on Brazilian-source income (rental income, capital gains on Brazilian assets, employment income from Brazilian employers)
  • Asset ownership: Brazilian tax residents must declare all assets — Brazilian and foreign — on their annual DIRPF. Non-residents owning Brazilian assets may have withholding obligations.

CNPJ Tax Obligations

A CNPJ creates ongoing tax obligations from the moment of registration:

  • Monthly tax filings: Depending on the tax regime (Simples Nacional, Lucro Presumido, or Lucro Real), the company must file monthly or quarterly tax returns
  • Payroll taxes: If the company has employees, monthly FGTS, INSS, and IRRF withholding obligations
  • Annual obligations: DIPJ/ECF (corporate tax return), DIRF (withholding declaration), RAIS (employment data), SPED (electronic bookkeeping)
  • Municipal obligations: ISS filings for service companies; ICMS filings for goods companies

A dormant CNPJ still incurs obligations under IN RFB 1.863/2018. If you stop operating but do not formally close the company (through a distrato filed with the Junta Comercial per Lei 8.934/1994), the Receita Federal continues expecting filings. Penalties accumulate. Eventually, the Receita Federal may suspend or cancel the CNPJ — but this does not eliminate accrued tax debts.

What About Non-Resident Investors?

Foreign investors who remain non-residents of Brazil navigate a specific intersection of CPF and CNPJ rules:

  • Portfolio investment (stocks, bonds, funds): Requires a CPF and registration with the CVM (Comissão de Valores Mobiliários) through a Brazilian custodian bank. Tax is withheld at source under Resolução CMN 4.373/2014.
  • Direct investment (company ownership): Requires a CPF for the individual investor plus CNPJ for the Brazilian entity. The investment must be registered with the Banco Central under RDE-IED for capital repatriation rights.
  • Real estate investment: Requires a CPF for individual purchases. If structured through a holding company, also a CNPJ. Non-resident property owners pay 15% withholding on rental income (or 25% if domiciled in a tax haven jurisdiction per IN RFB 1.037/2010).

How ZS Can Help

At ZS Advogados, we help foreigners navigate the practical realities of operating in Brazil — starting with getting the right documentation in place. Zac Zagol (OAB/SP 351.356) has been through this process personally and guides clients through CPF and CNPJ registration, entity formation, and the intersection with tax residency.

We can help with:

  • CPF registration — Including resolving irregular status, name mismatches, and duplicate CPF consolidation
  • Company formation — Full CNPJ registration process, from entity type selection to Junta Comercial filing and municipal/state registrations
  • Legal representative appointment — Drafting powers of attorney for foreign partners who do not reside in Brazil
  • Holding company structures — For real estate and estate planning optimization
  • Tax residency coordination — Ensuring your CPF/CNPJ structure aligns with your tax residency status and cross-border obligations
  • Ongoing compliance — Monthly and annual filings for both CPF (DIRPF) and CNPJ (corporate tax returns) obligations

“The biggest mistake I see is foreigners treating the CPF and CNPJ as bureaucratic annoyances to get past quickly. These numbers are the foundation of your entire legal and financial identity in Brazil. The structure you choose — individual CPF, corporate CNPJ, or both — has implications for taxation, liability, estate planning, and immigration that compound over decades.” — Zachariah Zagol, Founding Partner, OAB/SP 351.356

Contact us — whether you need a CPF for your first property purchase or a full corporate structure with CNPJ, this is one of the first practical steps for any foreigner doing business or building a life in Brazil.

Related guides:

Frequently Asked Questions

What is the difference between CPF and CNPJ in Brazil?
CPF is an 11-digit individual taxpayer identification number required for nearly all personal transactions in Brazil. CNPJ is a 14-digit company tax identification number required for business activities. Foreigners need a CPF for personal matters and a CNPJ only if conducting business through a Brazilian entity.
Do foreigners need a CPF to buy property in Brazil?
Yes. A CPF is mandatory for property purchases, bank account opening, and most financial transactions in Brazil. Foreigners can obtain a CPF at a Brazilian consulate abroad, at a Receita Federal office in Brazil, or through the online e-CPF system for citizens of certain countries.
Can foreigners get a CNPJ in Brazil?
Yes. Foreigners can obtain a CNPJ by opening a Brazilian company such as an LTDA (SLU). This requires a CPF, a legal representative in Brazil, registered office address, and social contract filed with the Junta Comercial. The process takes 2-6 weeks depending on the state.
Do I need a CNPJ to work as a freelancer in Brazil?
If you want to issue invoices (notas fiscais) and operate as a legitimate contractor in Brazil, yes. You need a CNPJ through a company entity like an SLU-LTDA or, if eligible, an MEI. Without a CNPJ, you cannot legally provide services or receive business payments in Brazil.

Need help with cpf vs cnpj: what foreigners need to know about brazilian tax ids?

Every case is unique. Schedule a consultation and discover how we can help you navigate the Brazilian legal system with confidence.