Doing business in Brazil: the tax side, explained.
The invoices, taxes and approvals your company deals with when it sells in Brazil. Explained by the team that handles them for 100,000+ active company IDs (CNPJs).
Each kind of sale has its own invoice.
Brazil has a different electronic document for goods, retail, services, freight and telecom. Each one has its own format and its own approving authority.
| What you sell | Document | Authorized by |
|---|---|---|
| Goods sold to businesses, or shipped to consumers | NF-e (electronic invoice) | State tax authority (SEFAZ) |
| Retail sales to consumers at the store checkout | NFC-e (consumer receipt) | State tax authority (SEFAZ) |
| Services and subscriptions | NFS-e (service invoice) | City hall, or the national NFS-e standard |
| Freight transport | CT-e (freight bill), with an MDF-e (cargo manifest) for the trip | State tax authority (SEFAZ) |
| Telecom and communication services | NFCom (telecom invoice) | State tax authority (SEFAZ) |
Webmania issues all of them through the Webmania® Panel or one REST API per document.
Several taxes apply to every invoice line.
Which taxes apply, and at what rate, depends on the NCM, the 8-digit code that classifies each product; the CFOP, the 4-digit code that says what kind of transaction each line is (5102 = a sale inside the state); the states involved and your tax regime. Today five indirect taxes apply side by side. The tax reform is merging them into two new value-added taxes, CBS and IBS.
| Tax | Level | Applies to | Under the reform |
|---|---|---|---|
| ICMS | State | Goods, transport and communication | Phased out by 2033, replaced by IBS |
| ISS | Municipal | Services | Phased out by 2033, replaced by IBS |
| PIS / COFINS | Federal | Revenue from goods and services | Replaced by CBS in 2027 |
| IPI | Federal | Manufactured goods | Zero from 2027, with exceptions |
| CBS + IBSNew | Federal + states and cities | Goods and services | Test rates on invoices since 2026 |
One invoice line, taxed.
A R$ 1,000.00 manufactured product sold inside the state of São Paulo. The seller pays PIS and COFINS under the non-cumulative regime, and the 2026 test rates of CBS and IBS apply.
If the product, the destination state or the regime changes, the rates change too. Webmania applies the right rates on each line.
natureza_operacao: Venda de produçãoCFOP 5101SP → SP| Tax | Collected by | Rate | Amount |
|---|---|---|---|
| ICMS | State of São Paulo | 18% | R$ 180.00 |
| IPI | Federal | 5% | R$ 50.00 |
| PIS | Federal | 1.65% | R$ 13.53 |
| COFINS | Federal | 7.6% | R$ 62.32 |
| CBS | Federal, new | 0.9% | R$ 6.70 |
| IBS | States and cities, new | 0.1% | R$ 0.74 |
PIS and COFINS apply to R$ 820.00, the price without ICMS; CBS and IBS to R$ 744.15, without ICMS, PIS and COFINS. In 2026, CBS and IBS are test amounts on the invoice, offset against PIS and COFINS.
26 states and DF, 27 tax authorities.
Each state authorizes the invoices issued there and sets its own rules for ICMS, the state sales tax, calculated on each invoice line. A sale between two states splits the ICMS between the origin and destination states. Services add another layer: more than 5,000 city halls, which collect ISS, the city service tax (each city sets its rate, between 2% and 5%).
A sale of goods from São Paulo to Bahia pays 7% interstate ICMS to São Paulo for most products. When the buyer is a final consumer, Bahia also receives the difference between its own rate and the interstate rate (DIFAL).
São Paulo's SEFAZ, the state tax authority, authorizes the invoice. The DIFAL is paid to Bahia, usually with a GNRE, the state tax payment slip, which Webmania also issues.
No approval, no shipment.
An invoice has no legal effect until the tax authority approves it. The goods travel with the DANFE, a printed summary of the authorized invoice file (XML). Any inspector can verify it with SEFAZ, the state tax authority.
- Order placed Your system
Your ERP, store or platform sends the sale to the Webmania API.
POST /1/nfe/emissao/ - Taxes calculated Webmania
Each line's taxes depend on its NCM (product code), its CFOP (transaction type) and the states involved.
ICMSIPIPISCOFINSCBSIBS - XML signed Webmania
The invoice file (XML) is signed with your company's digital certificate (ICP-Brasil A1).
ICP-Brasil A1 - Authorized SEFAZ
SEFAZ, the state tax authority, checks and authorizes the invoice. Only then can the goods ship.
cStat 100 · NF-e authorized - XML and DANFE delivered Your system
The authorized XML and the DANFE, its printable summary, reach your system by webhook.
XMLDANFE (PDF) - Invoice received Your customer
Your customer receives the invoice, and their systems can capture it from SEFAZ.
Fiscal Monitor
When a tax authority is offline, Webmania switches to contingency mode, a backup procedure that keeps your invoices flowing until the service returns.
The tax reform runs until 2033.
Constitutional Amendment 132/2023 and Complementary Law 214/2025 set out the reform. They replace PIS, COFINS, ICMS and ISS with two value-added taxes: CBS (federal) and IBS (shared by states and cities), calculated on each invoice line, with the tax paid on purchases taken as a credit. A new Selective Tax (IS) applies to goods harmful to health or the environment.
- 2026
Test year: CBS at 0.9% and IBS at 0.1% appear on invoices, offset against PIS and COFINS.
- 2027
CBS replaces PIS and COFINS. IPI drops to zero, with exceptions, and the Selective Tax starts.
- 2029–2032
ICMS and ISS step down every year as IBS steps up.
- 2033
ICMS and ISS end. CBS and IBS apply in full.
Webmania already issues invoices with the CBS and IBS fields and is integrated with the official tax calculator of the Federal Revenue.
Before your first invoice.
What a foreign company needs to issue invoices in Brazil, and who usually takes care of each item.
- A Brazilian legal entity with a company ID (CNPJ)Invoices are issued by a company registered with the Federal Revenue, the federal tax authority. The CNPJ is its 14-digit ID; each branch has its own.Your accountant or legal advisor
- State or city registrationA state registration (IE) to sell goods. A city registration (IM) to provide services.Your accountant
- A tax regimeUsually Lucro Presumido (presumed profit) or Lucro Real (actual profit). It defines which rates and tax credits apply.Your accountant
- A digital certificate (ICP-Brasil A1)A file from an authorized Brazilian provider. It signs every invoice in your company's name.A certificate authority
- Tax rules per product and stateThe NCM (product code), the CFOP (transaction code) and the rates of each state.Webmania, with your accountant
- Authorization and deliveryAuthorization with SEFAZ and city halls, and the XML and DANFE back in your system.Webmania
Every document, in detail.
This page is the overview. The complete guide has one chapter per tax document: when your company needs it, what goes in it, how it is authorized, canceled and corrected, and the deadlines.
What Webmania does for you.
Ask a Brazil tax specialist.
Tell us what you sell and where. We reply by email, in your language, with the documents and taxes your operation needs.
Thank you. We have received your message.
A specialist will reply by email, in the language you chose, with the next steps for your operation in Brazil. We also sent a confirmation to your inbox.
This guide is a simplified overview for orientation. It does not replace advice from a Brazilian accountant or tax lawyer about your company.