Código Fiscal de Operação e Prestação
Understanding the fiscal operation codes
One of the most common challenges for foreign companies setting up SAP in Brazil is understanding and configuring CFOP (Código Fiscal de Operações e Prestações). Before the SAP tips, here is what CFOP is and why it matters.
What is CFOP?
CFOP is a standard code set by the Brazilian tax authorities to describe the nature of each goods movement or service. It is essential for tax compliance and reporting.
Each CFOP tells you:
- The origin and destination of the goods or services
- The type of operation (purchase, sale, return, stock transfer and so on)
- Whether taxes apply and how they are calculated
- Which fiscal documents must include the operation
The CFOP must be printed on the Nota Fiscal Eletrônica (NF-e) and is a required field in several tax reports. Getting it right directly affects ICMS, IPI, PIS, COFINS and other tax calculations.

CFOP categories
CFOP codes are grouped by the direction and location of the transaction. Below are the main categories, each with sub-codes for specific purposes.
1.000: Inbound, same state
Goods or services received from a supplier in the same state. Examples:
- 1.100: purchase for industrialization or resale
- 1.250: purchase of electric energy
- 1.350: acquisition of transportation services
- 1.550: fixed assets or consumption materials
2.000: Inbound, other states
Goods or services received from a supplier in another state. Examples:
- 2.100: purchase for industrialization or resale
- 2.400: entry of goods under tax substitution
- 2.550: entry of goods for export or return
- 2.650: entry of fuel or lubricants
3.000: Imports
Goods imported or services started abroad. Examples:
- 3.100: purchase for industrialization or resale
- 3.250: imported electric energy
- 3.400: entry under tax substitution regime
- 3.600: ICMS credit or refund on imports
5.000: Outbound, same state
Goods shipped or services provided to a customer in the same state. Examples:
- 5.100: sale of own production
- 5.250: sale of electric energy
- 5.350: provision of transport services
- 5.550: fixed assets or consumption materials
6.000: Outbound, other states
Goods or services sent to a customer in another state. Examples:
- 6.100: sale of own production
- 6.400: exit under tax substitution regime
- 6.550: outbound fixed assets or consumption materials
- 6.650: outbound fuel or lubricants
7.000: Exports
Exports, or services provided to foreign customers. Examples:
- 7.100: export sale of own production
- 7.250: exported electric energy
- 7.400: export under tax substitution regime
- 7.650: export of fuel or lubricants
What’s next?
The next articles cover:
- How to configure CFOP codes in SAP
- How SAP determines the CFOP automatically for incoming and outgoing operations, based on movement types, document types and partner location
Disclaimer
This page reflects the legal and technical understanding of CFOP configuration in SAP as of its publication date. Brazilian tax law and SAP change frequently, so check current SAP documentation, OSS Notes, or a tax and SAP localization expert before implementing.


Leave a Reply