Headquarters and branches: differences, CNPJ, and how to manage expenses
The headquarters is a company’s principal establishment, its main office. A branch is any other establishment of the same legal entity at a different address....

A headquarters is a company's principal establishment, its main office. A branch is any other establishment of the same legal entity at a different address. Headquarters and branches are therefore locations of a single company, not different companies. That is why they share the same CNPJ root, but each has its own registration number.
This distinction appears in contracts, accounting, and the daily work of anyone managing expenses at more than one address. This guide explains how the CNPJ identifies each establishment, how a branch differs from a subsidiary, which points require attention, and how to organize expenses when a company has several branches.
What are a headquarters and a branch?
The headquarters is the principal establishment. The Civil Code refers to the head office and secondary establishments: anyone who sets up a branch office, branch, or agency in a location under a different Public Registry of Commercial Companies must also register it there, with proof of the original registration, and record its creation in the registry of the head office (art. 969). The articles of association, which state the company's registered business name, usually give this address. A branch is another establishment of the same company, such as a store, regional office, or warehouse in another city or state.
Although it is an address of the same company, each establishment must be identified in the Federal Revenue Service's registry, as explained in the next section. To check each unit's details, see how to look up a CNPJ registration card.
How the CNPJ identifies the headquarters and each branch
A CNPJ has 14 positions divided into three parts. The first eight are the root, which identifies the entity. The next four are the sequence number, which identifies the establishment. The last two digits are the check digits, used to check whether the number was entered correctly. According to the Federal Revenue Service, the root "is the same for a headquarters establishment and for any branch that may be created," while the sequence number changes from one establishment to another.
In practice, all units of a company share the first eight positions. Using the Revenue Service's example number, 12.345.678/0001-95, a branch in the numeric format would have the same root, 12.345.678, with a different sequence number, such as 0002. The check digits are calculated using modulus 11 and are specific to each establishment, so the full number must be checked in the registry rather than assembled by hand.
What does 0001 mean in a CNPJ?
Traditionally, the sequence number 0001 identifies the headquarters, and branches receive 0002, 0003, and so on. The Federal Revenue Service says, however, that this association is not permanent. According to the Federal Revenue Service's questions and answers about the alphanumeric CNPJ, the suffix 0001 "will continue to indicate the headquarters when the CNPJ is generated," but "a branch can become the headquarters (principal establishment), even if it has a sequence number other than 0001."
The RFB Normative Instruction No. 2.119/2022 confirms this flexibility: the entity "may change the registration of any of its branch establishments to classify it as the headquarters" (art. 4º, § 3º). Therefore, it is best not to treat 0001 as synonymous with headquarters in systems, spreadsheets, or reports. Check the Revenue Service's registry to find out which establishment is the headquarters today.
The alphanumeric CNPJ and branch sequence numbers
On July 31, 2026, the Revenue Service generated the first alphanumeric CNPJ, and it belonged to a branch. The Revenue Service's announcement says that CNPJs already issued remain valid and that new registrations may still contain only numbers. The sequence number of a new branch may contain letters. Do not assume every sequence number is numeric, and review systems that accept only digit masks.
Branch, subsidiary, and other terms: what is the difference?
The most common confusion is between a branch and a subsidiary. A branch is an establishment of the same legal entity: art. 969 of the Civil Code requires its registration as a secondary establishment, not as a new company. A subsidiary is a separate company. The legal existence of a private-law legal entity begins when its founding document is registered (art. 45), so it has its own CNPJ root. The Law No. 6.404/1976 defines a controlled company as one in which the controlling company permanently holds a preponderance in decisions and the power to elect a majority of directors (art. 243, § 2º). Control does not require the controlling company to be called a holding company. If the CNPJ root is different, it is not a branch.
Branch offices, branches, and agencies appear together in art. 969. The tax question remains different: is the location an establishment of the same legal entity? If the contract uses one of these names with another meaning, take the text to a lawyer or accountant before defining the structure.
Obligations of each establishment
Each establishment has its own CNPJ registration, with its own sequence number and check digits. This applies to the headquarters and to every branch. A branch's registration should therefore not be treated as an extra address within the headquarters' registration: each unit must be properly registered under its own number.
Besides the CNPJ, the activity may require state or municipal registration. The CNPJ instruction does not define those registrations. Whether a tax is calculated at the headquarters or at each establishment also depends on the tax, the tax regime, and the applicable law. Confirm both points with your accountant. For an overview of taxes, see the guide to which taxes a company pays in Brazil.
How to open a branch
Two steps are set out in law. Art. 4º of IN RFB No. 2.119/2022 requires each establishment to register for a CNPJ before starting operations. Art. 969 of the Civil Code requires registration in the commercial registry of another jurisdiction when the branch is located there, and an entry in the head office's registry. For the CNPJ, art. 12 requires the application to be filed through Redesim on the Companies and Business page. Changes to the articles of association, state registration, and a municipal permit depend on the type of company, its activity, and the municipality. Ask your accountant for this process.
Before opening, it is worth deciding who will handle each location's documents and which systems will receive the new unit's data. This avoids repeat work at the first closing.
How to manage expenses across headquarters and branches
When a company has several units, the challenge is knowing where each expense occurred and who approved it. One way to organize this is to issue cards by team or location, each with its own limits and restrictions. Clara offers virtual and physical cards with per-card limits and restrictions, helping separate each branch's spending without relying on a single shared card. See how it works on the corporate card page and, for the structure of the company's account, on the business accountpage.
The second point is classification. At Clara, the cost center, project, and category can be captured when the expense occurs, rather than only at the month-end closing.
To consolidate data in its management system, a company can connect Clara to the ERPs documented on the integrationspage. The practical recommendation is to define a fixed list of cost centers for each branch before starting and use it on all cards.
Illustrative example
Imagine a company headquartered in São Paulo with two branches, one in Rio de Janeiro and another in Belo Horizonte. Each unit has a cost center and a card for its purchasing team. At month-end, the headquarters sees, for example, R$ 10,000 in travel expenses from the Rio branch and R$ 4,000 in office supplies from Belo Horizonte, without opening each unit's spreadsheets. These amounts are illustrative.
If a charge appears under the name of an establishment you do not recognize, the incorrect charges tool helps you find out which establishment appears on the invoice and identify what needs to be disputed.
Frequently asked questions about headquarters and branches
Does a branch have its own CNPJ?
Yes. Each establishment has its own registration, with the same root number as the headquarters and its own sequence number. The branch does not have a new root because it is the same business at another address.
Does a branch need its own state registration?
It depends on the activity and location. The CNPJ instruction does not say that every branch needs state or municipal registration. Confirm with your accountant which registration your branch needs.
What is the difference between a branch and a subsidiary?
A branch is an establishment of the same legal entity. A subsidiary is another company, with its own founding document and CNPJ root. If there is control, the definition is in art. 243, § 2º, of Law No. 6.404/1976 and does not depend on the controlling company being a holding company.
Can a branch have a different tax regime from the headquarters?
This question must be decided with an accountant on a case-by-case basis. Tax classification depends on the company's structure, activity, and current legislation and should not be assumed. Do not apply this article's general answer to your case without that analysis.
What does 0001 mean in a CNPJ?
Traditionally, the sequence number 0001 identifies the headquarters establishment. According to the Federal Revenue Service, this suffix is not definitive because a branch can be classified as the headquarters. Therefore, check the Revenue Service's registry to confirm which establishment is the headquarters.
Organize your company's units with Clara
Headquarters and branches may have different structures, but expense control needs to be unified. With cards by team, cost centers, and integration with your ERP, Clara helps separate each unit's expenses without losing sight of the company as a whole.
This content is for informational purposes and does not replace advice from an accountant or lawyer. The rules cited correspond to official texts in force in November 2026; confirm how they apply to your case.

