Brazil Stock and FII Capital Gains Calculator
Enter each sale with its type, value, average cost and fees to apply the R$20,000 swing trade exemption, the 15% and 20% rates, losses and withholding, and get the DARF.
S'exécute dans votre navigateur. Vos fichiers ne quittent jamais votre appareil. Voir comment vérifier
…
Comment faire
- 1List the sales
Of the month.
- 2Choose the type
Swing, day trade, FII.
- 3Enter values
Sale, cost, fees.
- 4Add past losses
By type.
- 5Read the tax
And exemption.
- 6Pay the DARF
Code 6015.
À propos de cet outil
Individual investors in Brazil must calculate and pay income tax themselves on gains from selling shares, real estate fund units (FIIs) and other assets on the B3 stock exchange. The calculation is monthly. For shares bought and sold on different days (swing trade), gains are taxed at 15%, but there is an important exemption: if the total value of share sales in the month is up to R$20,000, the gains are exempt. The exemption counts sales, not gains, and does not apply to FIIs, ETFs, BDRs or day trades. For operations bought and sold on the same day (day trade), gains are taxed at 20%. Gains on the sale of FII units are taxed at 20%, while the monthly income distributed by FIIs remains exempt for individuals under the usual conditions. The gain on each sale is the sale value minus the average purchase cost of the shares sold and the fees. Losses can be offset against future gains of the same type, swing with swing, day trade with day trade and FII with FII, without a time limit, but only if they are recorded. Brokers withhold a small amount at source, the dedo-duro, of 0.005% on swing trade sales and 1% on day trade gains, which is credited against the tax. The tax is paid by DARF with code 6015 by the last working day of the following month; amounts under R$10 are carried forward. This calculator sums the sales by type, applies the exemption, rates, past losses and withholding, and shows the DARF and the losses to carry forward.
Who this is for
Individual investors in shares and FIIs, beginners who just made their first sale, and people catching up on past months.
Rates and rules
| Operation | Rate | Exemption | |---|---|---| | Shares, swing trade | 15% | Sales up to R$20,000 a month | | Day trade | 20% | None | | FII units | 20% | None | | FII monthly income | Exempt | Usual conditions |
Average cost
Each purchase changes the average cost: (previous quantity × previous average + new quantity × price + fees) ÷ new quantity. Sales do not change the average. Keep a record of every purchase, including bonuses and splits.
Reporting
Even when no tax is due, sales and positions go in the annual return: exempt gains in exempt income, losses in the variable income section, and the shares in assets at average cost.
Keeping records
Download the monthly brokerage notes (notas de corretagem) and the B3 consolidated statement, which lists all trades. Keep a spreadsheet of purchases, average costs, sales and losses by type; it is the basis for the DARF, the annual return and any question from the Receita Federal.
Several brokers
The R$20,000 limit applies to the total of all sales in the month, across every broker, not per broker.
Limits
Options, futures, cryptoassets and foreign stocks have other rules. This is an estimate, not tax advice.
Exemple concret
Selling R$23,500 of shares and R$6,400 of FII units with gains gives a DARF of about R$411 because sales passed R$20,000.
L'essentiel
- Catégorie: Argent et impôts
- Fonctionne dans votre navigateur, sans inscription, sans envoi.
- Ce que vous saisissez reste sur votre appareil.
- Disponible en anglais.
- Contenu révisé pour la dernière fois:
- Source officielle: Lei 11.033/2004; IN RFB 1.585/2015
Questions fréquentes
When are stock gains exempt?
When total share sales in the month are up to R$20,000, in swing trade.
What is the rate on swing trade gains?
15%.
Are FII gains exempt?
No, gains on selling units pay 20%; monthly income is exempt.
Can I offset losses?
Yes, against future gains of the same type, without a time limit.
What is the DARF code?
6015, due by the last working day of the following month.
Is my data stored online?
No, it stays in this browser.
