Skip to main content

Brazil Software Import Taxes: A Step-by-Step Calculation Guide

Marina Campos
Marina CamposNovember 8, 202511 min. read
Brazil Software Import Taxes: A Step-by-Step Calculation Guide

You're importing software into Brazil. Here's your tax bill.

inline-01.png

Five taxes apply to the remittance: IRRF (15% standard, 25% tax haven), CIDE (10%), PIS/COFINS-Import (9.25%), ISS (2% to 5%, depending on the municipality), and IOF (3.5%). The spreadsheet that multiplies the contract price by 1.40 is wrong. It ignores the IRRF gross-up, the PIS/COFINS cálculo por dentro (tax-inside-the-base), and the correct way to apply the exchange spread. The result is not savings. It is a tax liability of up to five years with a 75% penalty and SELIC interest.

This guide walks through the correct calculation, tax by tax, with formulas and a complete numerical example.

Why the Standard Calculation Is Wrong

The typical CFO spreadsheet multiplies the contract price by 1.40 and books the provision. That calculation misses three mechanisms that alter the tax base:

The IRRF gross-up. When the contract is net of taxes, IRRF is not 15% on the invoice value. It is 15% on a grossed-up base that already incorporates the tax itself. The error is systematic: the company under-withholds and the difference compounds quarter after quarter.

The PIS/COFINS cálculo por dentro. PIS/COFINS-Import is computed from within its own taxable base (Art. 7, II, Law 10.865/2004). Applying 9.25% directly to the contract price underestimates the tax by approximately 18%.

The exchange spread. The bank charges its margin on the exchange rate applied to the remittance value. The spread does not apply to taxes withheld at source, only to the amount remitted to the vendor.

For the complete nationalization process, see How to Nationalize Imported Software in Brazil. For contractual and exchange risks, see Software Import: A Guide to Risks, Costs, and Structuring.

The Calculation Model

Six variables define the tax cost of the operation:

VariableDefinitionDefault value
PSoftware price in reaisGiven by the contract
Base exchange rateOfficial rate of the dayPTAX (Central Bank)
SpreadBank margin over the exchange rate2% to 5%
Final exchange rateBase rate × (1 + Spread)Calculated

The taxes are levied on P with distinct tax-base rules. Two are direct (ISS and IOF, on P without adjustment). Three require base adjustment: IRRF with gross-up, CIDE on the same grossed-up base as IRRF, and PIS/COFINS with cálculo por dentro starting from the IRRF-grossed-up base.

Step 1: IRRF (15% Standard, 25% Tax Haven) with Gross-Up

IRRF is the first tax because its grossed-up base feeds the subsequent calculations. The standard rate is 15% (Art. 767 of RIR/2018). The 25% rate applies when the beneficiary is in a favored-taxation jurisdiction, per Normative Instruction RFB 1.037/2010. The 10% rate only applies under a specific international tax treaty.

The tax base is not P. It is P divided by (1 minus the rate). This is the gross-up: the tax is calculated on a base that already includes it.

Formula:

IRRF Base = P / (1 - rate)
IRRF = IRRF Base × rate

For a 15% rate and P = R$ 5,316.24: the base is 5,316.24 / 0.85 = R$ 6,254.40. IRRF due is 6,254.40 × 0.15 = R$ 938.16.

Without the gross-up, the company would calculate 5,316.24 × 0.15 = R$ 797.44. The R$ 140.72 difference seems small. On a R$ 500,000 contract, that is R$ 13,235 per remittance. Over 12 months, R$ 158,820 not withheld, plus penalty and interest.

Important: if the vendor is domiciled in a tax haven as listed in IN RFB 1.037/2010, the IRRF rate rises to 25%. The grossed-up base would be P / 0.75 and the tax 33.3% higher than the standard scenario.

For companies under Lucro Real, IRRF is offsettable against IRPJ for the quarter. For Lucro Presumido and Simples Nacional, it is a cost.

Step 2: CIDE (10%)

CIDE at 10% applies to enterprise SaaS contracts and technical services with technology transfer (Law 10.168/2000, Art. 2; COSIT Ruling 107/2023). COSIT Ruling 107/2023 characterizes SaaS contracts with support, maintenance, and ongoing updates as a technical service subject to CIDE.

Pure software licensing contracts, with no support, maintenance, or technical knowledge transfer component, are excluded from CIDE (Art. 2, §1º-A, Law 10.168/2000). For the typical enterprise SaaS buyer, CIDE applies.

CIDE is levied on the same grossed-up base as IRRF:

Formula:

CIDE = P / 0.85 × 0.10

For P = R$ 5,316.24: CIDE = 6,254.40 × 0.10 = R$ 625.44.

CIDE generates no tax credit under any regime. It is pure cost.

Step 3: PIS/COFINS-Import (9.25%)

PIS/COFINS-Import applies at the combined rate of 9.25% (PIS 1.65% + COFINS 7.6%) on service imports. The tax base is the grossed-up remittance value, under the cálculo por dentro regime: the tax is computed from within its own base (Art. 7, II, Law 10.865/2004).

Formula (cálculo por dentro):

PIS/COFINS Base = P / ((1 - IRRF rate) × (1 - 0.0925))
                = P / (0.85 × 0.9075)
                = P / 0.771375
PIS/COFINS = PIS/COFINS Base × 0.0925

For P = R$ 5,316.24: the base is 5,316.24 / 0.771375 = R$ 6,891.90. PIS/COFINS due is 6,891.90 × 0.0925 = R$ 637.50.

If the company applied 9.25% directly to P, it would withhold R$ 491.75. The R$ 145.75 difference per remittance is the effect of cálculo por dentro.

Companies under Lucro Real in the non-cumulative regime recover 9.25% as a full tax credit. For Lucro Presumido and Simples Nacional, it is a cost.

When purchasing software through Nexforce Marketplace, the domestic invoice issued by the Marketplace already includes the tax breakdown, eliminating manual calculation complexity. Lucro Real companies receive the PIS/COFINS credit ready for accounting entry.

Step 4: ISS (2% to 5% Depending on the Municipality; São Paulo: 2.9%)

ISS is levied directly on P, without gross-up. The rate varies by municipality: São Paulo charges 2.9% (Law 16.757/2017, sub-item 1.05 of Complementary Law 116/2003).

Formula:

ISS = municipal rate × P

For P = R$ 5,316.24 and São Paulo: ISS = 0.029 × 5,316.24 = R$ 154.17.

ISS generates no credit under any regime. Your municipality's rate must be confirmed before each operation: the range is 2% to 5%.

Step 5: IOF (3.5%)

IOF-Câmbio is levied on P, without gross-up. The 3.5% rate was established by Decree 12.499/2025, which amended the wording of Art. 15-B, XXIV of Decree 6.306/2007, currently in force per STF decision in ADC 96 (published 2025-07-16).

Formula:

IOF = 0.035 × P

For P = R$ 5,316.24: IOF = 0.035 × 5,316.24 = R$ 186.07.

IOF taxes the foreign exchange transaction, not the import itself. For this reason, gross-up does not apply. It also generates no credit.

Complete Example

Assume P = R$ 5,316.24, base exchange rate = R$ 1.00, bank spread = 5%, São Paulo (ISS 2.9%), standard IRRF rate 15%, vendor outside tax havens.

TaxFormulaCalculationAmount
IRRF (15%)P / 0.85 × 0.155,316.24 / 0.85 × 0.15R$ 938.16
CIDE (10%)P / 0.85 × 0.105,316.24 / 0.85 × 0.10R$ 625.44
PIS/COFINS (9.25%)P / 0.771375 × 0.09255,316.24 / 0.771375 × 0.0925R$ 637.50
ISS (São Paulo, 2.9%)0.029 × P0.029 × 5,316.24R$ 154.17
IOF (3.5%)0.035 × P0.035 × 5,316.24R$ 186.07
Total taxesR$ 2,541.34

The exchange spread applies only to the remittance value (P):

Spread cost = P × 0.05 = 5,316.24 × 0.05 = R$ 265.81

Total cost = P + taxes + spread = 5,316.24 + 2,541.34 + 265.81 = R$ 8,123.39

Net Cost with PIS/COFINS Credit (Lucro Real)

For companies under Lucro Real in the non-cumulative regime, the PIS/COFINS paid (R$ 637.50) generates a tax credit. The net cost is:

Net cost = R$ 8,123.39 − R$ 637.50 = R$ 7,485.89

Scaling to R$ 100,000

Amount
Software Price (P)R$ 100,000.00
IRRF (15%)R$ 17,647.06
CIDE (10%)R$ 11,764.71
PIS/COFINS (9.25%)R$ 11,992.00
ISS (SP, 2.9%)R$ 2,900.00
IOF (3.5%)R$ 3,500.00
Total TaxesR$ 47,803.77
Gross Cost (with 5% spread)R$ 152,803.77
Net Cost (Lucro Real)R$ 140,811.77

How to Interpret the Tax Burden

The tax burden is not a single rate. It is the sum of taxes with distinct tax bases and their own applicability rules.

The three factors that weigh most on the calculation:

The IRRF gross-up. Without it, IRRF would be 15% on P. With it, the effective rate rises to 17.6% (938.16 / 5,316.24). The difference lies in the base inflation. For vendors in tax havens, the rate rises to 25% (IN RFB 1.037/2010), pushing the effective rate to 33.3%.

The PIS/COFINS cálculo por dentro. Without it, PIS/COFINS would be 9.25% on P. With it, the effective rate rises to approximately 12% (637.50 / 5,316.24). This mechanism is especially punitive for high-value imports.

The exchange spread applies only to P. With a 5% spread, the cost is R$ 265.81 (5% × 5,316.24). The spread does not apply to taxes, which are paid domestically in reais. Negotiating a lower spread directly reduces the exchange cost.

FAQ

Does PIS/COFINS-Import generate a credit?

Yes, for companies under Lucro Real in the non-cumulative regime. The credit is 9.25% of the grossed-up remittance value. It is a full tax credit, booked directly against PIS and COFINS for the period. Companies under Lucro Presumido and Simples Nacional do not recover it.

What is the IRRF rate?

The standard rate is 15% (Art. 767, RIR/2018). Lower rates (e.g., 10%) only apply under a specific international tax treaty with the beneficiary's country. For beneficiaries in favored-taxation jurisdictions, the rate rises to 25% (IN RFB 1.037/2010).

Does gross-up apply to ISS and IOF?

No. ISS and IOF are levied directly on P, without base inflation. The reason is juridical: ISS taxes the service (the contract value), not the remittance. IOF taxes the exchange transaction, not the import.

When does CIDE apply?

CIDE at 10% applies to enterprise SaaS contracts and technical services with technology transfer (Law 10.168/2000, Art. 2; COSIT Ruling 107/2023). COSIT Ruling 107/2023 characterizes SaaS with support, maintenance, and updates as a technical service. Pure licensing contracts, with no service component, are excluded (Art. 2, §1º-A, Law 10.168/2000).

What is cálculo por dentro?

Cálculo por dentro (Art. 7, II, Law 10.865/2004) is the mechanism by which PIS/COFINS-Import is computed from within its own taxable base. The formula is Base = P / ((1 − IRRF rate) × (1 − 0.0925)).

What changes if the contract is not net of taxes?

If the contract already stipulates that the foreign vendor bears Brazilian taxes (contractual gross-up clause), the calculation is on the vendor's side. In practice, imported software contracts are almost always net of taxes: the Brazilian acquirer is the tax responsible party. Review the tax clause before signing any international contract.

Why does the spread apply only to P?

Because the bank purchases dollars only for the remittance to the foreign vendor (P). Taxes are withheld and paid domestically in reais to the Brazilian government — they never leave the country and are not part of the exchange transaction.

How to eliminate gross-up and the exchange spread from the operation?

With a fiscal nationalization marketplace. Nexforce Marketplace acquires the software abroad, withholds taxes under the correct structure, and resells it in Brazil with a domestic invoice. The client pays the software price in reais, without gross-up and without exchange spread. The import becomes a domestic acquisition.

Note: Brazil Tax Reform

Brazil's Tax Reform (LC 214/2025) will replace PIS, COFINS, and ISS with IBS/CBS. PIS/COFINS are eliminated in 2027. ISS is phased out 2029-2032 with full elimination in 2033. See Brazil Tax Reform: The Real Cost for Software Importers.

References and Further Reading

Nexforce

Buy global software and AIwith local billing saving up to 50%

Nationalize global tools and your technology infrastructure while ensuring full compliance and maximum savings

Run Simulation

Related articles