Skip to content
Brazil tax guide

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 sellDocumentAuthorized by
Goods sold to businesses, or shipped to consumersNF-e (electronic invoice)State tax authority (SEFAZ)
Retail sales to consumers at the store checkoutNFC-e (consumer receipt)State tax authority (SEFAZ)
Services and subscriptionsNFS-e (service invoice)City hall, or the national NFS-e standard
Freight transportCT-e (freight bill), with an MDF-e (cargo manifest) for the tripState tax authority (SEFAZ)
Telecom and communication servicesNFCom (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.

TaxLevelApplies toUnder the reform
ICMSStateGoods, transport and communicationPhased out by 2033, replaced by IBS
ISSMunicipalServicesPhased out by 2033, replaced by IBS
PIS / COFINSFederalRevenue from goods and servicesReplaced by CBS in 2027
IPIFederalManufactured goodsZero from 2027, with exceptions
CBS + IBSNewFederal + states and citiesGoods and servicesTest rates on invoices since 2026
Example

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
Taxes on one lineIllustrative rates
TaxCollected byRateAmount
ICMSState of São Paulo18%R$ 180.00
IPIFederal5%R$ 50.00
PISFederal1.65%R$ 13.53
COFINSFederal7.6%R$ 62.32
CBSFederal, new0.9%R$ 6.70
IBSStates and cities, new0.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%).

Example · interstate sale SP → BA

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.

Webmania issues invoices in every state and the Federal District, and service invoices (NFS-e) in more than 5,000 cities.

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.

  1. Order placed Your system

    Your ERP, store or platform sends the sale to the Webmania API.

    POST /1/nfe/emissao/
  2. Taxes calculated Webmania

    Each line's taxes depend on its NCM (product code), its CFOP (transaction type) and the states involved.

    ICMSIPIPISCOFINSCBSIBS
  3. XML signed Webmania

    The invoice file (XML) is signed with your company's digital certificate (ICP-Brasil A1).

    ICP-Brasil A1
  4. Authorized SEFAZ

    SEFAZ, the state tax authority, checks and authorizes the invoice. Only then can the goods ship.

    cStat 100 · NF-e authorized
  5. XML and DANFE delivered Your system

    The authorized XML and the DANFE, its printable summary, reach your system by webhook.

    XMLDANFE (PDF)
  6. 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.

  1. 2026

    Test year: CBS at 0.9% and IBS at 0.1% appear on invoices, offset against PIS and COFINS.

  2. 2027

    CBS replaces PIS and COFINS. IPI drops to zero, with exceptions, and the Selective Tax starts.

  3. 2029–2032

    ICMS and ISS step down every year as IBS steps up.

  4. 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.

Open the complete guide →

What Webmania does for you.

IssueEvery document in this guide, from the Webmania® Panel or one REST API per document.Fiscal Issuer →
ReceiveInvoices issued to your CNPJs, captured from SEFAZ and city halls and delivered to your ERP.Fiscal Monitor →
IntegrateSDKs, a test sandbox and webhooks. API field names stay in Portuguese, as in the official schema.For developers →
15 million+ tax documents a month1.2 billion+ API requests a year5,000+ cities covered99.95% availability

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.

Replies and meetings in any of 43 languages.

This guide is a simplified overview for orientation. It does not replace advice from a Brazilian accountant or tax lawyer about your company.