Skip to content
Calculadora Capital

How to report capital gains on shares and ETFs (Portugal IRS)

Sold shares, ETFs or funds at a profit? That gain goes in Anexo G of the IRS return. Here is where to enter each value, when aggregation pays off and how to treat losses.

5 min readReviewed By Thorben Rasmus IdelReviewed by Nahar Geva

TL;DR

Capital gains on shares, ETFs and funds are reported in Anexo G of the Modelo 3 IRS return. By default they pay a 28% autonomous rate; you can opt for aggregation and pay the progressive rates, which pays off if your marginal rate is below 28%. Losses reduce the year's gains and, with aggregation, carry forward for five years. Operations on foreign brokers go in Anexo J.

Where do you report capital gains on shares and ETFs?

When you sell shares, ETFs or funds for more than you paid, that gain (the capital gain) is Categoria G income for IRS and is reported in Anexo G of the Modelo 3 return1. For each sale, Anexo G asks for the acquisition date and value, the disposal date and value, and the costs incurred, such as broker commissions and stamp duty.

Tax is not charged on the sale value, only on the gain. If you first want to understand what a capital gain is and how the profit is worked out, see the article on what capital gains are. This guide covers the next step: how and where to report that gain on your IRS return.

Anexo G or Anexo G1: what is the difference?

There are two annexes with similar names, and mixing them up is a common mistake:

  • Anexo G: taxable capital gains. This is where almost all sales of shares, ETFs and funds go.
  • Anexo G1: non-taxable capital gains. The best-known case is shares acquired before 1 January 1989, which are exempt under the transitional regime and are still reported, in G1.

In other words: G is where you pay, G1 is where you declare a gain that does not pay. For the vast majority of private investors today, the right annex is Anexo G.

What to enter in Anexo G

Each line of Anexo G corresponds to a sale (a disposal). To fill it in you need:

  • The year and month of acquisition and the acquisition value (what you paid for the securities, including the buy commission).
  • The year and month of disposal and the disposal value (what you received on the sale).
  • The costs and charges: the buy and sell commissions and the broker's stamp duty.
  • The country of the issuing entity and the identification of the securities.

When you bought the same securities on different dates, the FIFO rule applies (first in, first out): the earliest-bought are treated as sold first. You can estimate the result of each sale in the capital gains calculator before copying the values into the annex.

28% or aggregation: what to choose?

The gain on shares, ETFs and funds is, by default, subject to a 28% autonomous rate (Art. 72 of the IRS Code)2. It is a flat rate, separate from your other income, and it is the normal scenario for most people.

Alternatively, you can tick the aggregation option (englobamento) in Anexo G: the gain is added to your other income and taxed at the progressive IRS rates. That only pays off at lower incomes, where your marginal rate falls below 28%. In the capital gains calculator, the rate is editable for exactly this case: leave it at 28% for the normal situation, or replace it with your marginal rate to compare.

Mandatory aggregation: the 365-day rule

There is one case where aggregation stops being a choice. If you sold assets held for under 365 days and your taxable income, including that gain, reaches the top bracket of IRS, aggregating those gains is mandatory (Art. 72 of the IRS Code)2. It is a rule that stops the flat 28% rate from applying to short-term gains at the highest incomes. For anyone outside the top bracket, or holding the securities for more than a year, the 28% rate remains the rule.

I sold at a loss: carrying losses forward

If a sale lost money, you have a capital loss. Losses pay no tax and reduce gains of the same type in the same year: what counts is the balance (gains minus losses).

If the year's balance is negative, that loss can be carried forward for five years (Art. 55 of the IRS Code)3, but only if you opt for aggregation in the year of the loss and in the years you use it. Without aggregation, the year's loss does not carry over. It is an easy point to miss and one that can save future tax.

Shares and ETFs on foreign brokers: Anexo J

Many investors use foreign brokers (Trade Republic, Degiro, Interactive Brokers and others). Gains and income earned outside Portugal do not go in Anexo G, but in Anexo J (income earned abroad). The calculation logic is the same (gain at 28% or aggregation), what changes is the annex where it is reported.

From 2026, foreign platforms start automatically reporting Portuguese residents' operations to the tax authority (DAC8 rules). It is a transparency change, not a change to the rates, but it underlines how important it is to report everything correctly.

A worked example

You bought €4,000 of an ETF and sold it for €6,000, with €40 of buy and sell commissions. The gain is €1,960 (6,000 − 4,000 − 40).

  • At the 28% autonomous rate, you pay €548.80 of IRS (28% of €1,960) and keep €1,411.20.
  • If in the same year you had a €460 loss on another sale, the taxable balance would fall to €1,500, and the tax at 28% would be €420.

In both cases you report the sales in Anexo G. You can check your numbers in the capital gains calculator.

The takeaway

Capital gains on shares, ETFs and funds are reported in Anexo G (or Anexo J, if the broker is foreign), pay 28% by default, and aggregation only pays off if your marginal rate is lower. Losses reduce the year's gains and, with aggregation, carry forward for five years. Run your numbers in the capital gains calculator and, if in doubt about the return, check with the tax authority or an accountant.

Common mistakes

  • Confusing Anexo G with Anexo G1

    Anexo G is for taxable gains (most shares, ETFs and funds); Anexo G1 is for non-taxable ones, such as shares acquired before 1989. Swapping the two annexes can create extra tax or a correction from the tax authority.

  • Forgetting shares and ETFs on a foreign broker

    Gains earned outside Portugal (on platforms such as Trade Republic, Degiro or Interactive Brokers) are reported in Anexo J, not Anexo G. From 2026 these platforms start reporting to the tax authority.

Frequently asked questions

Where do you report capital gains on shares in Portugal?
In Anexo G of the Modelo 3 return, giving for each sale the acquisition date and value, the disposal date and value, and the costs (commissions and stamp duty). Operations on a foreign broker go in Anexo J.
What is the difference between Anexo G and Anexo G1?
Anexo G reports taxable gains, meaning most shares, ETFs and funds. Anexo G1 reports non-taxable gains, such as shares acquired before 1 January 1989, which are exempt under the transitional regime.
Should I choose the 28% rate or aggregation?
The 28% autonomous rate applies by default. Aggregation (adding the gain to your other income and paying the progressive rates) only pays off if your marginal IRS rate is below 28%, which tends to happen at lower incomes.
Can I deduct losses against capital gains?
Yes. A loss reduces gains of the same type in the same year. If you opt for aggregation, a negative balance can be carried forward for five years (Art. 55 of the IRS Code), provided you also opt for aggregation in those years.
Do I have to report gains from a foreign broker?
Yes. Income and gains earned outside Portugal are reported in Anexo J. From 2026, foreign platforms start reporting residents' operations to the tax authority automatically (DAC8 rules).

Sources

  1. 1.Personal Income Tax Code (CIRS), Art. 10 (capital gains, Categoria G)Autoridade Tributária e Aduaneira · retrieved 13 Jun 2026
  2. 2.Personal Income Tax Code (CIRS), Art. 72 (28% autonomous rate and mandatory aggregation for assets held under 365 days)Autoridade Tributária e Aduaneira · retrieved 13 Jun 2026
  3. 3.Personal Income Tax Code (CIRS), Art. 55 (deducting losses and carrying them forward for five years)Autoridade Tributária e Aduaneira · retrieved 13 Jun 2026
  4. 4.Todos Contam, financial education portalBanco de Portugal · retrieved 13 Jun 2026

Author / Reviewed by

Author

Thorben Rasmus Idel

Co-founder & writer

Co-founder of Calculadora Capital and the writer behind the methodology on every calculator and article. An entrepreneur and active investor, Thorben founded Idel Versandhandel GmbH, an international trading company operating across 16 countries, and invests across stocks, ETFs and cryptocurrency. He writes the methodology and verifies the math behind each page, drawing on hands-on business and investing experience to keep the tools and explanations grounded in how money, markets and taxes actually work for everyday people in Portugal.

Reviewed by

Nahar Geva

Co-founder & reviewer

Co-founder of Calculadora Capital and the independent reviewer behind every calculator and article. An entrepreneur and active investor, Nahar brings a data- and product-driven mindset together with hands-on experience in the markets — investing across stocks and ETFs as well as cryptocurrency and other digital assets, alongside broader personal finance and real estate. On each page Nahar reviews the methodology and double-checks the math and figures, pressure-testing how the tools and explanations hold up against the way money, markets and taxes actually work for everyday investors.

Published: Updated: Reviewed: