Choosing between a CPF and a CNPJ as a foreigner in Brazil — ZS Advogados tax and corporate law
Finances & Taxation 21 min read

CPF vs CNPJ: Which One Do You Need as a Foreigner in Brazil?

By Zachariah Zagol, OAB/SP 351.356

Last updated:

You landed in São Paulo three days ago and the pattern is already unmistakable. The pharmacy asked for a number before applying a discount. The phone store would not activate a prepaid SIM without it. The rental agent wants it before drafting a lease, and the bank will not even start the conversation. The number everyone wants is the CPF — and when you search for how to get one, the results keep mentioning a second acronym, the CNPJ, which some websites describe as “the Brazilian tax ID for business.” Now you are unsure which one you actually need, whether you need both, and why a country would issue two.

Or perhaps you have not landed at all. You are abroad, planning to buy an apartment in Fortaleza, or to invoice Brazilian clients for consulting work, or to open a small company with a Brazilian partner — and every checklist you find starts with one of these numbers. Choosing the wrong track costs weeks.

The thing this guide turns on is that the CPF and the CNPJ are not two versions of the same document, and the choice between them is not about how “serious” your activity is. They identify different kinds of legal person: the CPF identifies a human being; the CNPJ identifies a legal entity. The real question is never “CPF or CNPJ?” — it is “will I act in Brazil as myself, or through a company?” Answer that, and the document question answers itself.

This is educational content prepared by the ZS Advogados Associados team for foreigners dealing with Brazilian bureaucracy — buyers, investors, freelancers, remote workers, and founders who need to know which registration actually unlocks the thing they want to do. It explains what each number is, when a CPF alone is enough, when a CNPJ genuinely becomes necessary, the individual-versus-PJ freelancer question, and how each is obtained, including from abroad. It complements our detailed guides on the CPF for foreigners, the CNPJ for foreigners, and starting a business in Brazil as a foreigner.

What is a CPF — and why does everything in Brazil ask for it?

The CPF (Cadastro de Pessoas Físicas) is the registry of natural persons administered by Receita Federal, Brazil’s federal revenue service. Every entry is an eleven-digit number that identifies one human being — Brazilian or foreign, resident or non-resident — for life. The registry is currently governed by Instrução Normativa RFB nº 2.172/2024, which consolidated the rules on enrolment, data updates, and registration status.

Foreigners are often surprised by how far beyond “tax” the CPF reaches. In practice it functions as Brazil’s universal personal identifier. You will be asked for a CPF to:

  • open any bank account or brokerage account;
  • buy, sell, or register real estate — notaries and property registries require it from all parties, including non-residents;
  • activate a mobile line and sign up for internet;
  • put utilities (electricity, water, gas) in your name;
  • sign a lease, enroll in a private health plan, or register with a doctor;
  • invest in Brazilian securities, receive an inheritance, or hold a vehicle;
  • create a gov.br account and use most digital public services.

Two features matter for planning. First, non-residents are squarely inside the system: a person who lives abroad but owns assets or rights in Brazil — property, bank accounts, investments, vehicles — is expected to hold a CPF and keep its data current. Second, the CPF is issued once and never expires. What varies is its status: under IN RFB 2.172/2024 a CPF can be regular, pending regularization (pendente de regularização — typically an unfiled income-tax return by someone who was required to file), suspended (suspensa — inconsistent or incomplete registration data), cancelled, or null (fraud). An irregular CPF quietly breaks everything downstream — banks freeze onboarding, notaries refuse deeds — so the maintenance duty is real even though the number is permanent.

Legal basis: the CPF registry, enrolment duties, data-update obligations, and the registration statuses (regular, pendente de regularização, suspensa, cancelada, nula) are set out in Instrução Normativa RFB nº 2.172/2024.

One confusion to retire immediately: the CPF is not an immigration document. It does not grant residency, work authorization, or any right to remain in Brazil. Tourists can hold CPFs. Immigration status is governed by the Migration Law (Lei nº 13.445/2017) through visas, residence permits, and the CRNM (Carteira de Registro Nacional Migratório) — a completely separate track run by the Polícia Federal, not Receita Federal.

What is a CNPJ — and why is it not a “business version of the CPF”?

The CNPJ (Cadastro Nacional da Pessoa Jurídica) is the national registry of legal entities, also administered by Receita Federal and currently governed by Instrução Normativa RFB nº 2.119/2022. A CNPJ number identifies a company, branch, fund, association, foundation, or other entity — never a human being acting as such.

That distinction sounds academic until you see what hangs off it. A CNPJ record carries the entity’s corporate name, address, registered activity codes, and — critically for foreign owners — its QSA (quadro de sócios e administradores, the roster of partners and administrators) and its beneficial-ownership disclosure, which traces the entity to the natural persons who ultimately own or control it. A foreign individual does not “get a CNPJ” the way one gets a CPF; a foreign individual forms or joins an entity, and the entity is enrolled in the CNPJ.

Three practical consequences follow:

  • You cannot substitute one for the other. A CNPJ will not open a personal bank account, and a CPF will not let you issue company invoices (notas fiscais) as a legal entity.
  • They usually coexist. Every partner and administrator listed in a Brazilian company’s QSA needs a CPF — so the founder of a Brazilian company ends up with both numbers: the CPF identifying the person, the CNPJ identifying the company.
  • Even foreign entities get CNPJs. A company domiciled abroad that owns Brazilian real estate, equity stakes, bank accounts, or other assets must itself enrol in the CNPJ under IN RFB 2.119/2022 — without becoming a Brazilian company. This is a registration for identification, not a local operating license.

Legal basis: enrolment of legal entities — including entities domiciled abroad that hold assets or rights in Brazil — the QSA record, and beneficial-ownership disclosure are governed by Instrução Normativa RFB nº 2.119/2022.

When is a CPF alone enough?

More often than foreigners expect. If the activity is something you do as a person, the CPF is the only Receita Federal number involved. A CPF alone covers you when you:

  • buy or hold real estate in your own name, resident or not;
  • open personal bank and investment accounts (subject to each bank’s onboarding policy for non-residents);
  • work as an employee of a Brazilian company — your employer has the CNPJ; you need the CPF (and, separately, work authorization under the Migration Law);
  • freelance as an individual for foreign clients while tax-resident in Brazil, collecting monthly income tax through the carnê-leão system — our guide on carnê-leão for remote workers and digital nomads covers this path in depth;
  • invest passively — stocks, funds, government bonds — as an individual;
  • inherit, marry, divorce, litigate, or do essentially anything else in civil life.

The recurring theme: scale is not the trigger; form is. A foreigner can own three apartments, a stock portfolio, and a vintage car in Brazil on nothing but a CPF. Conversely, a one-person consultancy billing modest amounts may still need a CNPJ — because it chose to operate as an entity.

Speak to counsel — bank onboarding varies. The law entitles a non-resident with a CPF to hold Brazilian assets, but each bank sets its own risk policy for non-resident individuals, and some decline them regardless of documentation. Which institutions currently onboard your profile is a fact-check to run before you rely on it.

When do you actually need a CNPJ?

A CNPJ becomes necessary when the activity is performed by an entity — either because the law requires an entity, or because the market does, or because you chose one for tax or liability reasons. The classic triggers:

  1. Operating a business in Brazil. Selling products or services locally, running a restaurant, a rental operation beyond casual scale, an agency, a clinic — habitual business activity is conducted through a registered entity with a CNPJ, municipal/state enrolments, and invoice-issuing capability.
  2. Hiring employees. Employment registration, payroll, and social-security obligations run through an employer’s CNPJ.
  3. Invoicing as a PJ. Many Brazilian corporate clients only contract suppliers who issue a nota fiscal — which requires an entity. “Can you bill us as a PJ?” is often the sentence that forces the decision.
  4. Structuring investment. Some foreign investors hold Brazilian assets through entities for succession or liability planning; the entity then needs its own CNPJ. Whether that structure helps or hurts is a case-by-case analysis, not a default.
  5. A foreign company touching Brazil. As above — a foreign entity that owns Brazilian assets enrols in the CNPJ even without operating locally.

For a non-resident founder, the CNPJ itself is rarely the hard part. The formation package around it is: the non-resident partner appoints a Brazilian-resident attorney-in-fact (procurador), and the company must have an administrator who resides in Brazil — a requirement flowing from the Código Civil (Lei nº 10.406/2002). And after the CNPJ issues, the genuinely slow step is usually the corporate bank account, where anti-money-laundering review of foreign ownership takes over — we dissect that bottleneck in our guide on the corporate bank account for a foreign-owned company.

Legal basis: the requirement that a limitada’s managing administrator reside in Brazil derives from the Código Civil (Lei nº 10.406/2002); representation of partners domiciled abroad and their enrolment duties are reflected in Instrução Normativa RFB nº 2.119/2022.

The freelancer’s question: individual (CPF) or company (PJ)?

The question we hear most from remote workers and consultants: “Should I just pay tax as an individual, or open a PJ?” Both are legitimate; they price differently.

As an individual (CPF only). A tax resident of Brazil who earns from foreign clients or from Brazilian payers who do not withhold collects monthly income tax through the carnê-leão, at the progressive rates that apply to individuals. No formation costs, no accountant strictly required, no corporate compliance — but at higher income levels the progressive table bites, and some Brazilian corporate clients simply will not contract individuals.

As a PJ (your own CNPJ). Operating through a small company — typically under the Simples Nacional regime where the activity qualifies — can produce a materially lower effective rate at professional income levels, and unlocks the corporate clients who require invoices. The price is the apparatus: formation, a resident administrator (trivial if you are the resident), mandatory accounting, monthly filings, and the discipline of keeping company and personal money separate.

The MEI question — and the non-resident wall. Brazil’s famous simplified regime, the MEI (Microempreendedor Individual), created within Lei Complementar nº 123/2006, is the cheapest possible CNPJ: registration in minutes on the Portal do Empreendedor, a small fixed monthly payment, minimal bookkeeping, subject to an annual revenue cap (currently R$81,000 — confirm the current figure) and a restricted activity list. Foreigners ask about it constantly, so the rule deserves precision:

  • A foreigner who resides in Brazil can register as MEI. The federal platform requires a migratory document issued by the Polícia Federal — a CRNM, a provisional DPRNM, or a refugee-application protocol — plus a regular CPF.
  • A foreigner who does not reside in Brazil cannot be MEI. There is no migratory document to present, and the regime presumes a local individual entrepreneur. The MEI shortcut is simply unavailable to non-residents; official guidance from the federal business portal and Sebrae is consistent on the residency documents required.

Legal basis: the MEI regime is established within Lei Complementar nº 123/2006; the registration documents accepted from foreigners (CRNM, DPRNM, refugee protocol) are listed in the federal government’s Portal do Empreendedor guidance. Residency documents are governed by the Migration Law, Lei nº 13.445/2017.

Speak to counsel — the individual-vs-PJ math is case-specific. The crossover point where a PJ beats the carnê-leão depends on your income level, activity code, municipal taxes, social-security choices, and whether your clients demand invoices. Model it with an accountant and counsel on your real numbers before forming anything — and beware of generic “PJ always wins” advice.

How do you get each one — including from abroad?

CPF, from inside Brazil. Enrolment is free and increasingly digital. Depending on your document situation, it can be done online through Receita Federal’s channels or in person at attendance points; foreigners typically present a passport or CRNM. Many foreigners now receive a CPF as part of the residence-permit flow itself.

CPF, from abroad. A non-resident — foreigner or Brazilian — applies through the Brazilian consulate serving their place of residence. The current procedure runs through the e-Consular platform: schedule the CPF service, complete the Receita Federal registration form (available in Portuguese, English, and Spanish), and appear with a valid passport and proof of address. Certain acts on an existing CPF — corrections, regularization, status queries — can be handled with Receita Federal by email. The federal service listing (“Inscrever no CPF no exterior”) describes the flow, and each consulate publishes its own scheduling details. Our guide on getting a CPF without being in Brazil walks through it step by step, and the broader CPF tax-ID guide covers maintenance and regularization.

CNPJ. There is no “CNPJ application” detached from an entity. The number issues as part of forming (or enrolling) the entity:

  1. Define the structure and partners; non-resident partners obtain CPFs and appoint a resident procurador.
  2. Draft and register the contrato social at the state’s commercial registry (Junta Comercial) — registration triggers CNPJ issuance in the integrated system.
  3. Complete the beneficial-ownership disclosure under IN RFB 2.119/2022 and any municipal/state enrolments the activity requires.
  4. For a foreign entity that merely holds Brazilian assets: enrolment is made with Receita Federal through its Brazilian representative, without forming a local company.

A resident founder registering as MEI compresses all of this into a single online flow on the Portal do Empreendedor.

CPF vs CNPJ at a glance — the decision table

QuestionCPFCNPJ
Who it identifiesA natural person (human being)A legal entity (company, fund, branch, association)
Governing ruleIN RFB nº 2.172/2024IN RFB nº 2.119/2022
Who needs itEveryone acting personally in Brazil — resident or notAnyone operating or holding through an entity
Buy property in your name✔ RequiredNot applicable (unless holding via entity)
Personal bank account / SIM / utilities✔ Required
Work as an employee✔ (plus work authorization)✗ (employer holds the CNPJ)
Freelance as individual (carnê-leão)
Issue company invoices, hire staff✔ Required
Available to non-residents✔ — via consulate (e-Consular)✔ — via entity with resident administrator/representative; MEI excluded
Grants residency or work rights✗ Never✗ Never
ExpiresNever (status must stay regular)Never (entity must stay compliant)

What does it cost and how long does it take?

All figures are illustrative, as of August 2026, at an assumed rate of ~R$5.4/US$1; confirm current fees before relying on any number.

CPF. Enrolment is free of charge under the federal service listing. Inside Brazil, issuance is often same-day to a few days. From abroad, the pace is set by your consulate’s e-Consular scheduling — anywhere from days to several weeks in busy jurisdictions. Regularizing a suspended or pending CPF is also free but can take additional processing time.

CNPJ via a limitada. The number itself costs nothing separately, but the formation around it does: Junta Comercial registration fees (commonly a few hundred reais, varying by state), certified translations and apostilles for foreign partners’ documents (frequently the largest and slowest item — budget weeks and per-page translation fees), an e-CNPJ digital certificate (on the order of R$150–R$400 per year, roughly US$28–US$74), and ongoing accounting (market rates commonly start around a few hundred reais monthly for a simple service company). Formation itself often completes in days to a few weeks once documents are ready; the corporate bank account that follows is routinely the slowest step for foreign-owned entities.

MEI (residents only). Registration is free and online; the fixed monthly DAS payment is currently on the order of R$75–R$85 depending on activity — confirm the current amount.

Speak to counsel — fees and rates move. State registry fees, certificate prices, translation rates, and the MEI monthly amount are updated periodically. Treat every number above as a planning range, not a quote.

Hypothetical illustration — not a real client.

Imagine a Canadian UX designer who spends winters in Florianópolis on a temporary basis and wants three things: a prepaid SIM, a rented apartment, and a way to invoice a São Paulo startup that insists on a nota fiscal. The SIM and the lease turn out to need only a CPF, which she had already obtained through the Brazilian consulate in Toronto before flying. The invoice is the snag: as a non-resident she cannot register as MEI — the platform asks for a CRNM she does not have — and forming a limitada for one client is disproportionate. She ultimately negotiates to bill the startup from her Canadian company instead, and revisits the PJ question a year later when she obtains residency, at which point the MEI route opens and takes an afternoon.

Every distinguishing detail here is invented. Real situations turn on their own facts, dates, and documents, and require individual analysis. Nothing in this example predicts any outcome.

What are the most common mistakes?

  • Believing the CNPJ is an upgraded CPF. They identify different kinds of person. Owning substantial assets never requires “upgrading” to a CNPJ; operating through an entity always does.
  • Treating the CPF as an immigration status. It is a tax-registry number. Residency and work rights run through the Migration Law (Lei 13.445/2017), visas, and the CRNM — a separate track entirely.
  • Planning a MEI from abroad. Non-residents cannot register as MEI; the platform requires a Polícia Federal migratory document. Discovering this after promising a client a nota fiscal is a common and avoidable scramble.
  • Letting the CPF go irregular. An unfiled required return leaves the CPF pendente de regularização; stale registration data can suspend it. Either state silently blocks banks, notaries, and closings at the worst moment.
  • Forming a company because one client asked for an invoice. Sometimes the right answer is billing from your home-country entity or renegotiating — an entity is a standing cost, not a one-off fix.
  • Forgetting the resident administrator. Non-resident founders can own a Brazilian company, but someone resident must administer it. Solving this after drafting the contrato social means redrafting it.
  • Assuming the CNPJ finishes the job. For operating companies, municipal enrolment, invoice authorization, and the corporate bank account still follow — and the account is usually the real bottleneck for foreign owners.

CPF and CNPJ at a glance

ItemCPFCNPJ
Full nameCadastro de Pessoas FísicasCadastro Nacional da Pessoa Jurídica
IdentifiesNatural personsLegal entities
Administered byReceita FederalReceita Federal
Current core ruleIN RFB nº 2.172/2024IN RFB nº 2.119/2022
Non-resident accessYes — consulate (e-Consular) or from within BrazilYes — through an entity with resident administrator; foreign entities enrol via representative
Typical triggerAny personal act: property, banking, SIM, lease, workOperating a business, hiring, invoicing as PJ, entity asset-holding
Cost to obtainFreeFree per se; formation costs around it
Simplified routeMEI (LC 123/2006) — residents with CRNM only
Immigration effectNoneNone

Key terms

  • CPF (Cadastro de Pessoas Físicas) — the individual taxpayer registry; one number per human being, for life.
  • CNPJ (Cadastro Nacional da Pessoa Jurídica) — the legal-entity registry; identifies companies and other entities.
  • PJ / PF (pessoa jurídica / pessoa física) — legal person / natural person; the distinction the whole system runs on.
  • MEI (Microempreendedor Individual) — micro-entrepreneur regime within LC 123/2006; resident-only in practice.
  • CRNM (Carteira de Registro Nacional Migratório) — the migratory registration card of a foreign resident, issued by the Polícia Federal.
  • Carnê-leão — the monthly income-tax collection system for individuals with non-withheld income.
  • QSA (quadro de sócios e administradores) — the CNPJ record of a company’s partners and administrators.
  • Procurador — the Brazilian-resident attorney-in-fact who acts for a partner domiciled abroad.

Key takeaways

  • CPF identifies people; CNPJ identifies entities. They are parallel registries, not levels of one registry — most founders end up holding both.
  • Nearly everything personal needs a CPF — banking, property, SIM cards, leases, utilities, investing — and non-residents with Brazilian assets are expected to hold one.
  • A CPF alone covers far more than foreigners assume, including owning multiple properties and freelancing as a tax-resident individual through the carnê-leão.
  • A CNPJ becomes necessary when an entity acts: operating a business, hiring employees, issuing notas fiscais, or a foreign company holding Brazilian assets.
  • The MEI shortcut is resident-only. CRNM, DPRNM, or refugee protocol are required at registration; non-residents cannot use it.
  • Neither number is an immigration document. Residency and work authorization run separately under Lei 13.445/2017.
  • The CPF never expires but its status can break — keep filings and registration data current, especially before a closing.
  • Getting each from abroad is solved: CPF via consulate (e-Consular); CNPJ via an entity with a resident administrator and procurador — planned in that order.

How ZS Advogados can help

The CPF-versus-CNPJ question is usually the visible tip of a structuring decision: whether to act in Brazil personally or through an entity, how a non-resident’s representation should be arranged, and in what order the registrations, disclosures, and bank steps must run so nothing stalls. Getting the sequence right at the start — CPF, entity form, resident administrator, beneficial-ownership disclosure, invoicing capability — is considerably cheaper than untangling a wrong turn later.

Our team advises foreigners on both tracks: individuals who need a CPF issued or regularized (including entirely from abroad) and founders or investors who need a Brazilian entity formed, represented, and made operational. We work in English and Portuguese, and every recommendation is built on the client’s actual residency, activity, and documents — not on a generic checklist.

  • Tax law — CPF issuance and regularization, carnê-leão compliance, individual-vs-PJ tax modeling
  • Business law — entity formation, CNPJ enrolment, resident-administrator and procurador structures
  • International law — non-resident representation, foreign-entity CNPJ enrolment, cross-border document legalization

Book a consultation to have your CPF-or-CNPJ decision mapped onto your actual plans before you register anything.

Technical review by the ZS Advogados Associados team, including co-founding partner Karina Peres Silvério (OAB/SP 331.050) and founding partner Zachariah Zagol (OAB/SP 351.356). Contact: contato@zsassociados.com — +55 (18) 3908-1653 — Presidente Prudente, SP.


This guide is for informational and educational purposes only, in line with Provimento No. 205/2021 of the Brazilian Bar Association (OAB). It is not legal advice, an opinion, or an offer of services, does not refer to any specific case, and does not guarantee any result. Registration procedures, platform requirements, fees, and consular practices vary by institution and jurisdiction and change over time; no bank, registry, or provider is recommended or endorsed here. Rules and provisions are cited as of August 2026; changes after that date are not reflected. Each situation requires individual analysis by a licensed attorney. Last updated August 2026.

cpfcnpjtax-id-brazilstarting-business-brazilforeigners-brazil
Zachariah Zagol

Zachariah Zagol

Attorney — OAB/SP 351.356

Founding partner of ZS Advogados. American-born, Brazil-licensed attorney (OAB/SP 351.356) with an LL.M. from USC and 18+ years of experience in Brazil.

Meet the full team →

Need help with this?

Work with a Brazil-licensed lawyer on choosing between CPF and CNPJ as a foreigner in Brazil

This guide is general information, not legal advice. For your specific situation, our team can review the details and outline your next steps.

Ask a lawyer on WhatsApp

We'll answer your questions about your situation and next steps — and set up a consultation if it's the right fit.

Related Articles