Updated April 2026
CPF vs CNPJ: What is the Difference and Which One Do You Need?
If you are moving to Brazil, you will quickly encounter two acronyms: CPF and CNPJ. Both are tax identification numbers issued by the Receita Federal, but they serve completely different purposes. This guide explains exactly what each one is, when you need which, and how they work together if you plan to do business in Brazil.
Two numbers, very different purposes
Brazil has an incredibly well-organised system for identifying individuals and businesses. A CPF (Cadastro de Pessoas Fisicas) is your personal number. Every individual in Brazil has one, including foreigners. It is your key to bank accounts, phone plans, apartment rentals, and daily life.
A CNPJ (Cadastro Nacional da Pessoa Juridica) is a business registration number. You only need one if you want to operate a company, issue invoices (notas fiscais), or hire employees in Brazil.
Think of it this way: a CPF is like a social security number or tax ID for a person. A CNPJ is like a company registration number or EIN. They exist in the same system but serve completely separate functions.
The CPF has 11 digits and follows the format XXX.XXX.XXX-XX. The CNPJ has 14 digits and follows the format XX.XXX.XXX/XXXX-XX. Even at a glance, you can tell them apart by their length and format. Every form, app, and service in Brazil will specify which one it is asking for.
Most foreigners only need a CPF
If you are living in Brazil, working remotely for a foreign company, or setting up your daily life, a CPF is all you need. You do not need a CNPJ to receive money from abroad, use Pix, pay rent, or enjoy everything Brazil has to offer.
The CPF is what gets you from "tourist passing through" to "person who actually lives here." Without it, you cannot even order food delivery or sign up for a gym. With it, every door opens.
Here is a practical breakdown of what your CPF unlocks:
- ✓ Banking: Open accounts at Nubank, Inter, C6 Bank, and all other Brazilian banks
- ✓ Pix: Use Brazil's instant payment system for everything from rent to street food
- ✓ Phone plans: Get postpaid plans from Vivo, Claro, or TIM
- ✓ Renting: Sign proper rental contracts on platforms like QuintoAndar
- ✓ Apps: Access iFood, Mercado Livre, Rappi, and all Brazilian digital services
- ✓ Shopping: Buy anything online from Brazilian e-commerce platforms
You only need a CNPJ if you are specifically doing business in Brazil: selling to Brazilian customers, contracting with local companies, or employing people. The vast majority of foreigners living in Brazil never need one.
When you actually need a CNPJ
A CNPJ becomes necessary in specific situations:
Issuing invoices to Brazilian clients. If a Brazilian company hires you as a contractor, they will likely need a nota fiscal (invoice) from you. You can only issue notas fiscais with a CNPJ. This is the most common reason foreigners end up getting one.
Selling products or services in Brazil. If you open a shop, start a service business, or sell through Brazilian marketplaces, you need a CNPJ to operate legally and collect payments from Brazilian customers.
Hiring employees. To employ someone in Brazil, you must have a CNPJ. All payroll, taxes, and benefits are tied to the company's CNPJ.
Importing goods. If you want to import products into Brazil for resale, a CNPJ is required for customs clearance and tax purposes.
If none of these apply to you, a CPF is all you need. Do not overcomplicate things.
Understanding the MEI: Brazil's simplest business structure
If you do need a CNPJ, the simplest path is often registering as an MEI (Microempreendedor Individual). This is Brazil's micro-entrepreneur category, designed for small businesses and freelancers.
The MEI has several advantages: the registration is done online and is almost instant, the monthly tax is a flat fee of around R$70 (not a percentage of revenue), and it gives you a CNPJ that allows you to issue invoices and operate legally.
The limitations: your annual revenue cannot exceed R$81,000 (about $16,000), you can only hire one employee, and not all business activities are eligible. Also, not all visa types allow you to register as an MEI. If you are on a tourist visa, for example, you cannot register a business.
For freelancers and small service providers, the MEI is often the perfect solution. It formalizes your work without the complexity and cost of a full company registration.
Start with your CPF
GET CPF prepares everything you need for $29. Pre-filled forms, the right office, a Portuguese cheat sheet, and a document checker.
Get started for $29Can you get both?
Yes. You get your CPF first (it is required to apply for a CNPJ). Then if you decide to start a business, you register for a CNPJ separately. The CNPJ process is more complex and usually requires an accountant (contador) to handle.
The simplest business structure for foreigners is an MEI (Microempreendedor Individual) if your annual revenue is under R$81,000. Brazil has made it surprisingly easy to formalise a small business once you have your CPF. But not all visa types allow you to register as an MEI, so check your situation first.
For larger businesses, you might need a ME (Microempresa) or EPP (Empresa de Pequeno Porte). These require more paperwork, a social contract (similar to articles of incorporation), and ongoing accounting. Most foreigners who go this route work with a Brazilian accountant who specializes in helping foreign entrepreneurs.
Tax implications: CPF vs CNPJ
With a CPF only, your tax situation is relatively simple. If you are a tax resident in Brazil (living here more than 183 days per year), you file an annual income tax return (IRPF) declaring your worldwide income. Brazil has a progressive tax rate from 7.5% to 27.5%.
With a CNPJ, your business income is taxed separately through your chosen tax regime. The MEI pays a flat monthly fee regardless of revenue. Other business structures may use Simples Nacional (simplified tax system), Lucro Presumido (presumed profit), or Lucro Real (actual profit) regimes.
The tax system in Brazil is complex, and the right structure depends on your specific situation. If you are earning income in Brazil, consulting with a Brazilian accountant is worth the investment. Many offer initial consultations for free and can advise on the most tax-efficient setup for your circumstances.
The bottom line
For 95% of foreigners in Brazil, a CPF is all you need. It is your key to daily life: banking, payments, phone plans, renting, shopping, and every digital service in the country. Get your CPF first, settle in, and only think about a CNPJ if you have a specific business need.
The CPF application is straightforward and takes about 15 minutes at a Correios office. The CNPJ process is more involved but manageable with professional help. Either way, the CPF always comes first.
Frequently asked questions
Do I need a CNPJ to freelance in Brazil?
It depends. If you work remotely for foreign companies, a CPF is all you need. But if you want to issue invoices (notas fiscais) to Brazilian clients or formally operate a business in Brazil, you will need a CNPJ. The simplest option is registering as an MEI if your revenue is under R$81,000 per year.
Can a foreigner get a CNPJ in Brazil?
Yes, but you need a CPF first. The CNPJ registration process is more complex than getting a CPF and typically requires an accountant (contador) to handle. Your visa type also matters, as not all visas allow you to register a business in Brazil.
What is the difference between CPF and CNPJ?
A CPF (Cadastro de Pessoas Fisicas) is a personal tax identification number for individuals. A CNPJ (Cadastro Nacional da Pessoa Juridica) is a business registration number for companies. Every person needs a CPF for daily life in Brazil. You only need a CNPJ if you are operating a formal business.
Get your CPF sorted in 5 minutes
Everything you need to walk in prepared and walk out with your CPF number. One-time payment, money-back guarantee.
Get started --