Complete analysis of loss compensation on the stock exchange and rules for income tax 2026

Understand the tax mechanisms to mitigate losses in variable income operations and optimize the tax efficiency of the portfolio

Rafa Neddermeyer / Agência Brasil
Income Tax Declaration 2026

Tax management in variable income is a fundamental component for preserving the investor’s net worth. In the Brazilian financial market, current legislation allows financial losses incurred in stock exchange operations to be used to offset future gains, reducing the tax calculation basis due. This mechanism, known as loss compensation, requires strict control on the part of the taxpayer, as the Federal Revenue Service does not provide automatic deduction. Correct understanding of the segregation rules between operational modalities and asset classes is vital to avoid inconsistencies in the tax network.

The tax compensation mechanism

Compensation for losses on the stock exchange operates under the logic of real net profit. Income tax on variable income is levied on capital gains, that is, the positive difference between the sale value and the acquisition cost (including fees). When the result for a month is negative, this amount becomes a tax credit that the investor can carry indefinitely to offset profits in subsequent months.

To understand how to offset losses with shares and real estate funds in the 2026 income tax, it is necessary to understand the separation of the taxation “baskets”. The legislation prevents the crossing of results between different taxation categories and operational modalities.

The fundamental segregation rules are:

Operating mode:

  • Results from common operations (Swing Trade) can only offset losses from common operations.
  • Day Trade results can only compensate for Day Trade losses.

Asset Class:

  • Losses with Shares, ETFs, BDRs and Options (spot, forward and options markets) form a consolidated group within the same modality.
  • Losses with Real Estate Investment Funds (FIIs) and Fiagros make up an isolated tax ecosystem. FII loss only reduces FII profit.

Influencing factors and operational rules

The effectiveness of compensation strictly depends on compliance with the declaratory and operational standards established by the Federal Revenue Service. The determining factor is not only the occurrence of the loss, but its official recognition in the Annual Adjustment Declaration.

Key points of attention include:

  • Temporal continuity: The loss never expires. A loss occurring in 2020, if properly declared year by year, can be used to offset a profit in 2025 (calendar year for IR 2026).
  • Registration mandatory: To carry the loss into the following year, the investor must fill in the negative balance in the “Variable Income” menu of the annual declaration, specifically in the “Results” table. If the loss is not reported to the IRS, it “does not exist” for future tax purposes.
  • Exemption from 20 thousand: The IR exemption for sales of shares up to R$20,000.00 on the spot market (Swing Trade) does not apply when there is a loss. A loss is always a loss, regardless of sales volume. However, it is not possible to offset an accumulated loss to offset a profit that would already be exempt (sales below 20k). The loss must be saved to offset taxable profits (sales over 20k or other non-exempt transactions).
  • Different rates:
  • Common Operations: 15% of profit.
  • Day Trade: 20% on profit.
  • FIIs/Fiagros: 20% on profit (both Swing and Day Trade).

Current scenario and preparation for IR 2026

For the fiscal cycle referring to income tax 2026 (based on movements in 2025), there is greater integration of the Federal Revenue systems with brokers and B3. The “Pre-Filled Declaration” has evolved, but the responsibility for calculating monthly profits and losses remains with the investor.

In the context of market volatility, the accumulation of losses in risky assets (such as Small Caps or paper FIIs in high interest rates scenarios) creates a stock of relevant tax credit. Investors who sell devalued assets (realizing losses) at the end of the calendar year use this strategy as tax planning to reduce the tax payable on gains obtained at the beginning of the year or to carry the balance into the following year.

The monthly calculation must follow the order:

  1. Calculation of the month’s results (Profit or Loss).
  2. If there is a profit, subtract the accumulated loss from previous months/years.
  3. Application of the rate on the remaining balance (if positive).
  4. DARF issuance only if there is tax to be paid.

FAQ

Can I offset losses from shares with profits from real estate funds?

No. FIIs and Fiagros have their own legislation (Law 11,033/2004) and do not communicate with the taxation system for shares, options or future contracts. FII loss only offsets FII or Fiagro profit.

Is there an expiration date for the use of accumulated losses?

There is no prescription. The loss can be carried forward indefinitely, as long as it is reported annually in the Annual Adjustment Declaration, in the Variable Income form, field “Losses to be compensated”.

What happens if I forget to declare the loss in the year it occurred?

You lose the right to automatic compensation in the system. To recover this right, it is necessary to make a rectifying declaration for the year in which the loss was omitted and for all subsequent years, adjusting the balances.

Can Day Trade compensate for Swing Trade?

No. The IRS requires total segregation. If you made a profit of R$1,000 in Swing Trade and a loss of R$1,000 in Day Trade in the same month, you will pay tax on Swing Trade and carry the Day Trade loss into the future.

Analytical synthesis

Loss compensation is a taxpayer right that acts as a volatility buffer, allowing tax recovery from adverse market movements. The correct application of how to offset losses with shares and real estate funds in 2026 income tax depends fundamentally on the monthly organization of the data and the precise distinction between asset categories. Negligence in controlling this information results in the payment of undue tax or a tax assessment due to data inconsistency.

Disclaimer: The information contained in this article is for informational and educational purposes only and does not constitute accounting advice or investment recommendations. Tax legislation is subject to change. It is recommended that you consult a specialized accountant or tax lawyer to analyze specific cases.

source