How to Get a CPF as a Foreigner (From Abroad or in Brazil): 2026 Guide
Step-by-step guide to obtaining a Brazilian CPF as a foreigner — online via Receita Federal, at a consulate, or in person in Brazil. Covers name formatting, troubleshooting, and common mistakes.
How to Get a CPF as a Foreigner (From Abroad or in Brazil): 2026 Guide
The CPF (Cadastro de Pessoas Físicas) is Brazil’s individual taxpayer identification number — an 11-digit code issued by the Receita Federal that functions as the universal identification key for nearly everything you will do in Brazil. You need it to open a bank account, buy property, sign a lease, invest in stocks, get married, file taxes, register a SIM card, and increasingly even to make routine purchases. It is free or nearly free to obtain, but the process has enough quirks and pitfalls for foreigners that it deserves a detailed walkthrough.
This guide covers every route to obtaining a CPF as a foreigner — online from abroad, at a Brazilian consulate, in person in Brazil — plus the troubleshooting steps for common problems like name mismatches, irregular status, and system errors that block applications. For the broader context of when you need a CPF versus a CNPJ, see our CPF vs CNPJ comparison.
“The CPF is the single most important document for any foreigner planning to do anything in Brazil beyond tourism. I tell every client: get it sorted 60 days before you need it, not the week of. The process is usually straightforward, but when it goes wrong — a name mismatch, a system glitch, an irregular status from a decade-old filing — the delays can derail property closings, bank account openings, and business incorporations.” — Zachariah Zagol, Founding Partner, OAB/SP 351.356
What Exactly Is a CPF and Why Do Foreigners Need One?
The CPF is governed by Instrução Normativa RFB 1.548/2015 (updated by IN RFB 1.931/2020 and subsequent normative instructions). It is a permanent, lifetime number — once issued, it never expires and cannot be revoked. The number format is XXX.XXX.XXX-XX, where the last two digits are a check sum. The CPF registry is maintained under authority of Lei 4.862/1965 Art. 49 and Decreto 4.166/2002.
Foreigners need a CPF for:
- Property purchases: No cartório (notary office) will register a deed without a CPF for every party to the transaction
- Bank accounts: All Brazilian banks require a CPF to open personal accounts, as mandated by Banco Central regulations
- Investments: Brazilian brokerages and fund managers require a CPF (plus CVM registration for non-resident investors under Resolução CMN 4.373/2014)
- Rental agreements: Landlords and real estate agencies require a CPF to execute lease contracts
- Marriage: Cartórios require CPFs from both parties for marriage proceedings
- Employment: Employers register employees by CPF for payroll, FGTS (under Lei 8.036/1990), and INSS contributions under the CLT
- Business formation: You cannot be a partner in a Brazilian company (CNPJ) without a personal CPF
- Everyday life: SIM cards, mobile contracts, some online purchases, loyalty programs, prescription medications
Important: Having a CPF does not make you a Brazilian tax resident. Millions of non-resident foreigners have CPFs. Tax residency is determined by visa type and physical presence under IN RFB 208/2002 — see our tax residency guide.
How Can You Apply Online Through the Receita Federal?
The Receita Federal offers an online CPF application portal that allows foreigners to apply without visiting Brazil or a consulate. This is the fastest route when it works — but it does not always work.
Who Is Eligible for Online Application?
The online system is officially available to foreigners from countries that have data-sharing agreements with Brazil, including Mercosul member states (Argentina, Uruguay, Paraguay, Venezuela) and associated states (Chile, Colombia, Peru, Ecuador, Bolivia, Guyana, Suriname). In practice, the system has intermittently accepted applications from citizens of other countries including the US, UK, Canada, and EU nations — but availability fluctuates without clear notice.
Step-by-Step Online Process
-
Access the portal: Navigate to the Receita Federal CPF registration page. Look for the “Inscrição no CPF” (CPF Registration) option for non-residents.
-
Fill in personal data: Enter your full legal name exactly as it appears on your passport — no abbreviations, no nicknames. Include all given names and surnames. This is the single most common point of failure.
-
Enter your passport number: Use the passport number exactly as printed, including any letters or leading zeros.
-
Provide your mother’s full name: This is a mandatory field in Brazilian systems. Enter her full legal name. If your mother’s name is unknown or not available, the system may allow “não consta” (not available) — but this can cause problems later.
-
Enter date and country of birth: Use the format expected by the system (typically DD/MM/YYYY for the Brazilian portal).
-
Submit and wait: If the system accepts your application, you should receive your CPF number within minutes to 72 hours. The number is delivered electronically — you do not receive a physical card (physical CPF cards were discontinued years ago; the number is what matters).
Common Online Application Problems
“Name not accepted”: The system may reject names with special characters (accents, hyphens, apostrophes), names that are too long for the field, or names with Jr./Sr./III suffixes. Try entering your name in plain ASCII characters (no accents), removing suffixes, and ensuring the name matches your passport exactly.
“System unavailable”: The online portal goes down periodically for maintenance or technical issues, particularly for non-Mercosul applicants. If the system is unavailable, try again in 24-48 hours before switching to an alternative method.
“Application rejected — duplicate found”: If you received a CPF years ago (at a consulate, during a previous visit, or through a property transaction), the system will reject a new application. You cannot have two CPFs. See the troubleshooting section below for how to recover a forgotten CPF number.
“The online CPF application works beautifully about 70% of the time. The other 30%, you get cryptic error messages in Portuguese and no explanation. When a client has a property closing in two weeks and the online system is rejecting their application, that is when having a Brazilian lawyer who can walk into a Receita Federal office makes the difference between closing on time and losing the deal.” — Zachariah Zagol, Founding Partner, OAB/SP 351.356
How Can You Get a CPF at a Brazilian Consulate?
The consular route is the most reliable method for foreigners who are still outside Brazil. Brazilian consulates in most countries process CPF applications as a standard consular service.
What You Need
- Valid passport (original — most consulates will not accept copies)
- Completed CPF application form (available at the consulate or downloadable from the consulate’s website)
- Consular fee — varies by location, typically free to USD $40. Some consulates charge nothing; others charge a nominal processing fee. Check your specific consulate’s fee schedule.
Process
- Contact your nearest Brazilian consulate to confirm they offer CPF services and whether an appointment is required. Some consulates accept walk-ins; others require advance scheduling.
- Bring your passport and completed form to the consulate.
- The consulate submits your application directly to the Receita Federal system.
- Receive your CPF number — same day at some consulates, up to two weeks at others depending on processing volume and consular workload.
Consulate-Specific Notes
- US consulates (New York, Miami, Los Angeles, Houston, Boston, Washington DC, Chicago, Atlanta, Hartford, San Francisco): Generally efficient; most process within one week. Miami and New York tend to be busiest.
- UK (London): Typically processes within 5-10 business days.
- EU consulates: Processing times vary widely; German and Portuguese consulates tend to be faster due to higher Brazil-related demand.
- Australia/Asia: Fewer consulates, longer processing times. Budget 2-3 weeks.
How Can You Get a CPF In Person in Brazil?
If you are already in Brazil — on a tourist visa, business visa, or any other lawful entry — you can obtain a CPF at several types of service points.
At a Receita Federal Office
The most direct route. Visit any Receita Federal unit (unidade de atendimento) with your original passport. The service is free. In many locations, you receive the CPF number the same day. Some offices require scheduling through the Receita Federal appointment system (agendamento); others accept walk-ins.
Practical tip: Receita Federal offices in major cities (São Paulo, Rio de Janeiro, Brasília) tend to be crowded. Arrive early. Offices in smaller cities and interior towns are often faster.
At Correios (Post Office) or Banco do Brasil
Authorized Correios branches and Banco do Brasil branches can process CPF applications. The cost is R$7 (approximately USD $1.30). Bring your original passport. Processing takes 1-5 business days — you may need to return to pick up the confirmation, or the number may be sent electronically.
Not all Correios or Banco do Brasil branches offer this service. Check the Receita Federal website for authorized locations in your area.
Through a Cartório (Notary Office)
If you are purchasing property, the cartório handling the transaction can facilitate CPF issuance as part of the purchase process. The cartório submits the application to the Receita Federal on your behalf. This is convenient but adds dependency on the property transaction — if the deal falls through, you may still not have a CPF. We recommend obtaining the CPF independently before starting property negotiations.
What Are the Name Formatting Rules?
Name formatting is the single most common source of CPF problems for foreigners. The Brazilian CPF system was designed for Portuguese-language names and handles foreign name structures imperfectly.
How Brazilian Names Work
Brazilian names follow the pattern: given name(s) + mother’s surname + father’s surname. The system expects this structure. Foreign names — which may have middle names, compound surnames, hyphenated names, or single-word names — often do not map cleanly.
Practical Rules
-
Enter your full legal name as it appears on your passport. Do not abbreviate. Do not add names that are not on your passport.
-
Remove special characters if the system rejects them. Accents (é, ñ, ü), hyphens in surnames, and apostrophes (O’Brien) sometimes cause errors. Try the plain ASCII equivalent.
-
Mother’s name is mandatory. The field for “nome da mãe” (mother’s name) is required. Enter her full legal name. If unknown, some Receita Federal offices accept “não consta” — but this may require in-person processing rather than online.
-
Suffixes (Jr., Sr., III, IV): These are not standard in Brazilian naming convention. If the online system rejects your suffix, try without it. At an in-person office, the attendant can usually accommodate suffixes.
-
Single-word names: Some cultures use a single name (no surname). The CPF system typically requires at least two name elements. In-person processing at a Receita Federal office is usually necessary.
-
Very long names: The system has character limits. If your full legal name exceeds the field length, abbreviate middle names while keeping the first and last names complete.
“Name formatting issues cause more CPF delays than any other factor. The system was built for João da Silva, not Mary Katherine O’Brien-Fitzgerald III. When the online system chokes on your name, do not keep trying different variations — each rejected attempt may create a partial record that blocks future applications. Go to a consulate or Receita Federal office where a human can handle the edge case.” — Zachariah Zagol, Founding Partner, OAB/SP 351.356
How Do You Troubleshoot Common CPF Problems?
Problem: You Already Have a CPF but Do Not Know the Number
CPFs are permanent. If you obtained one years ago — at a consulate, during a previous visit, through a property transaction, or through an employer — it still exists. To recover the number:
- Online lookup: Visit the Receita Federal CPF consultation page and search using your passport number, name, and date of birth.
- Consulate request: Contact a Brazilian consulate and request a CPF number lookup using your passport details.
- In-person: Visit any Receita Federal office in Brazil with your passport; they can look up your CPF instantly.
Problem: Your CPF Status Is “Irregular” (Pendente de Regularização)
The most common cause is missed tax filings. If you became a Brazilian tax resident (permanent visa or 183+ days) and did not file annual DIRPF returns, the Receita Federal flags your CPF as irregular.
To fix:
- Check your status at the Receita Federal consulta CPF page
- Identify the reason for irregularity (the system should indicate the cause)
- File any missing DIRPF returns (even if no tax is owed — a nil return may be required)
- Visit a Receita Federal office with your passport if the irregularity cannot be resolved online
- After filing, status typically updates within 24-72 hours
Problem: Your Name in the CPF System Does Not Match Your Current Passport
Name changes (marriage, legal name change, gender transition) or data entry errors during original registration can create mismatches. This blocks property transactions, bank account openings, and company formations where the name on the CPF must match the name on the passport.
To fix:
- Visit a Receita Federal office with your current passport and documentation showing the name change (marriage certificate, court order, apostilled and translated if foreign-issued)
- Request an “alteração cadastral” (registration update)
- The CPF number stays the same; only the name in the system is corrected
- Processing: immediate to 5 business days
Problem: You Were Issued Two CPFs
This happens when someone obtains a CPF at a consulate and then applies again in Brazil (or vice versa), or when an employer registers a CPF without checking for an existing one.
To fix:
- Visit a Receita Federal office with your passport
- Request CPF consolidation (unificação de inscrição)
- One number will be kept active; the duplicate will be canceled
- Any records linked to the canceled number must be updated — bank accounts, property registrations, company records
Problem: The Online System Shows “Não Foi Possível Processar” (Unable to Process)
This generic error can mean several things: the system is temporarily down, your name format triggered an error, a partial application from a previous attempt is blocking the new one, or your country of origin is not currently eligible for online processing.
Steps:
- Wait 24-48 hours and try again
- If the error persists, switch to the consular or in-person route
- Do not create multiple attempts with slightly different name spellings — this can create duplicate partial records
What Should You Know Before Applying?
Timing
Apply at least 60 days before you need the CPF. While most applications complete within days, complications can add weeks. If you are buying property, opening a business, or planning a move to Brazil, start the CPF process early.
Cost Summary
| Method | Cost | Timeline |
|---|---|---|
| Online via Receita Federal | Free | Minutes to 72 hours |
| Brazilian consulate abroad | Free to USD $40 | Same day to 2 weeks |
| Receita Federal office (in Brazil) | Free | Same day |
| Correios / Banco do Brasil (in Brazil) | R$7 (~USD $1.30) | 1-5 business days |
| Through a cartório (property purchase) | Varies | Tied to transaction timeline |
What the CPF Does Not Do
- Does not grant visa or immigration status — the CPF is purely a tax registration number
- Does not create tax residency — having a CPF does not make you a Brazilian tax resident
- Does not expire — but the status can become irregular if filing obligations are missed
- Does not replace a passport or RNE/CRNM — the CPF is not an identity document for immigration purposes
How Does ZS Advogados Help With CPF Issues?
At ZS Advogados, we handle CPF matters as part of our broader services for foreigners — company formation, property purchases, investment structuring, and immigration. Zac Zagol (OAB/SP 351.356) has personally navigated the CPF system as an American in Brazil and understands the practical pain points firsthand.
We help with:
- First-time CPF applications — Guiding you through the optimal route based on your location and timeline
- Irregular CPF resolution — Filing missing returns, clearing pending regularization flags, coordinating with the Receita Federal
- Name corrections — Updating CPF records to match current passport data after name changes
- Duplicate CPF consolidation — Merging duplicate registrations and updating linked records
- Integration with broader services — Ensuring your CPF is properly linked to your company (CNPJ), property registrations, bank accounts, and tax filings
Contact us if you need help obtaining or fixing a CPF, or if you are planning a move, investment, or property purchase in Brazil and want to ensure your documentation is in order before you arrive.
Related guides:
Frequently Asked Questions
Can I get a Brazilian CPF from outside Brazil?
How long does it take to get a CPF as a foreigner?
What documents do I need to get a CPF in Brazil?
My CPF shows irregular status — how do I fix it?
Need help with how to get a cpf as a foreigner (from abroad or in brazil): 2026 guide?
Every case is unique. Schedule a consultation and discover how we can help you navigate the Brazilian legal system with confidence.