Help Center

Tax profiles: CSOSN, CST, CFOP and PIS/COFINS

What each field of the NF-e and NFC-e tax profile means, to fill in together with your accountant.

The tax profile says how a group of products is taxed on product invoices (NF-e and NFC-e). You create profiles in Settings → Finance → Tax profiles and pick one on each product, in Finance → Products & services.

The codes are your accountant's decision. They depend on the company regime, whether it manufactures or resells, the product and the state. This page explains what each field means so the conversation with your accountant is quick. It does not recommend any code.

How a profile is organized

  • One profile per group of products taxed the same way. For example, one for products under tax substitution and one for the rest.
  • Presets: Simples, no ST, Simples, ST already paid and Regular regime, taxed are starting points. Every field stays editable.
  • One rule per kind of buyer: the Any buyer rule applies to everyone. If your accountant gives different codes for end consumers, Simples Nacional companies or Lucro Presumido/Real companies, add a rule for that buyer: it takes priority over the general one.

Simples rate of these products

A Simples Nacional company that sells under more than one annex has one effective rate per annex: for example, a pet food maker that also resells and provides services has an Industry, a Commerce and a Services rate. Your accountant calculates all three in PGDAS-D.

  • On the profile, Simples rate of these products (%) takes the rate of the annex of the products that use the profile. Own production is usually Industry (Annex II) and resale Commerce (Annex I), but your accountant confirms it.
  • It only feeds the approximate tax amount on those products' NF-e and NFC-e. It is informative: it does not change the tax the company pays.
  • Empty uses the company's rate, set in Invoices. The company's rate still applies to the NFS-e, so enter the services annex rate there.

A company under a single annex does not need this field. In a clinic with units under their own CNPJ, only the main company uses the profile's rate: each unit uses its own, set on it. Lucro Presumido or Real companies do not see the field.

In-state and out-of-state CFOP

The CFOP (tax operation code) says what kind of operation the sale is.

  • In-state CFOP starts with 5 and applies when the buyer is in the same state as the company.
  • Out-of-state CFOP starts with 6 and applies when the buyer is in another state (delivered sale).

Examples of codes seen at pet shops, clinics and pet food makers, so you recognize them when talking to your accountant:

In state Out of state What it describes
5101 6101 Sale of own production (a manufacturer, such as a pet food maker)
5102 6102 Resale of goods bought from third parties
5405 6404 Resale with ICMS already collected by tax substitution
— 6107 Own production sold to an end consumer in another state (not an ICMS taxpayer)
— 6108 Resale to an end consumer in another state (not an ICMS taxpayer)

Counter-only sellers rarely use the out-of-state CFOP.

ICMS: CSOSN or CST

The ICMS code says how the tax is treated on the sale.

  • CSOSN (three digits): used by Simples Nacional companies and MEI. Examples: 102 (no ICMS credit), 101 (with credit), 500 (ICMS already collected by ST).
  • CST (two digits): used by Lucro Presumido or Real companies. Examples: 00 (fully taxed), 20 (reduced base), 60 (ICMS already collected by ST).

The app list shows both groups, each code with its description. The fields below show depending on the chosen code:

  • ICMS rate (%) and Base reduction (%): the product rate in the state and the tax base reduction, when state law provides for it.
  • Simples credit (%): only with CSOSN 101, 201 or 900. A Simples company selling to another company may state the ICMS credit the buyer can use. The percentage is the ICMS share within that month's Simples rate, calculated in PGDAS-D, and it changes with revenue: your accountant provides it.
  • MVA (%), ST internal rate (%) and ST base reduction (%): for codes that collect tax substitution on the invoice itself. They come from the product's agreement or protocol in your state.

Coming from another system? The codes used for the same product show in the XML or DANFE of old invoices. Confirm with your accountant before reusing them: the old system may be wrong.

PIS and COFINS

The PIS CST and COFINS CST say how these federal taxes show on the invoice.

  • Under Simples Nacional, PIS and COFINS are already in the DAS: the invoice carries no rate.
  • Under Lucro Presumido or Real, code and rates depend on the company regime (cumulative or non-cumulative). Rates only open for CST 01 and 02.

IBS/CBS (Tax Reform)

Under IBS/CBS (Tax Reform) are the IBS/CBS CST and the cClassTrib (tax classification). The default 000 and 000001 describes a regular taxed sale. It applies to the regular regime in 2026 and to Simples from 2027. Change it only with your accountant.

DIFAL

The same screen holds the DIFAL table, used on NF-e delivered to consumers in another state. The values are references: check them with your accountant and tick the states that charge on a double base. Simples companies and MEI do not collect DIFAL on these sales. See Product invoices (NF-e and NFC-e).

After creating the profiles

Open each product in Finance → Products & services and fill in NCM, Tax profile, Origin and Unit. The NCM is on the supplier purchase invoice. The full setup walkthrough is in Setting up invoices, field by field.

Frequently asked questions

Which CFOP do I use to sell pet food?

It depends on whether the company makes the food (own production) or resells it, whether the product is under tax substitution and whether the buyer is in your state. Your accountant picks it; the table above helps you recognize the codes they give you.

Why does the list show both CSOSN and CST?

Because each regime uses one: CSOSN for Simples Nacional and MEI, CST for Lucro Presumido or Real. Pick from your company's regime group, with the code your accountant gives you.

What is the Simples credit?

It is the ICMS credit a Simples company may state when selling to another company, with CSOSN 101, 201 or 900. The percentage comes from the month's PGDAS-D calculation and your accountant provides it.

Next steps

Didn't find what you were looking for?

Reach us at support@allears.vet or ask Mima, the AI assistant inside the app.