TOOLS/TAXES

IRS Anexo J: where to declare shares, ETFs, dividends and interest

Pick what you received or sold and where the paying entity is: the tool gives the Modelo 3 annex, table and code, with the rule behind each case. Paste your buys and sells and get, by the FIFO rule, one line per sale with dates, values, costs and days held, ready for table 9.2A of Anexo J.

·UPDATED NOVEMBER 2026·9 MIN·OFFICIAL SOURCES
KEY FACTS
Rate
28% on the gains balance and on dividends and interest with no Portuguese withholding
Held under 365 days
Compulsory englobamento with taxable income from €86,634 (2026)
Sale order
FIFO at each broker: what was bought first is sold first
Holding of 2, 5 and 8 years
10% of the gain is left out after more than 2 years, 20% at 5 or more, 30% at 8 or more (listed securities and open funds)
Filing
1 April to 30 June 2027, for 2026 income
Accounts abroad
Table 11 of Anexo J, even with no income
EXAMPLES
WHAT YOU RECEIVED OR SOLD
WHERE THE ISSUER IS SEATED
WHERE THE SECURITIES ARE HELD
WHERE TO DECLARE
Anexo J · table 9.2A

A foreign issuer’s security held at a broker with no entity in Portugal: the gain is obtained outside Portugal and goes in Anexo J, one line per operation.

Code
G01
Rate
28% on the year’s balance (art. 72(1)(c)); englobamento by choice in table 9.2C, which takes all category G income
Under 365 days
compulsory englobamento if taxable income, with that balance, is €86,634 or more (art. 72(14))
Columns
source country, code, sale date and value, acquisition date and value, costs, tax paid abroad, counterparty country, listed security or open fund
Losses
a negative balance carries forward 5 years if you choose or are required to use englobamento (art. 55(1)(d))

Account at an institution abroad: list it in table 11 of Anexo J (IBAN and BIC), even with no income. Outside the EU and not listed, the AT has 12 years to assess (art. 45(7) LGT).

Tables and codes of the forms approved by Portaria 104/2026/1 of 5 March 2026, used for the return filed in 2026 (2025 income). The forms for 2026 income come out by portaria early in 2027. The rules (rates, holding periods, FIFO) are those of the IRS Code for 2026 income.

Method v1.2 · data as of 25.11.2026

EXAMPLES
ANNEX
Type of each security (changes the code and the holding rules)
SecurityTypeListed or open fund
ETF1

Untick “Listed or open fund” for unlisted shares of micro and small companies (art. 43(3)). For bonds or funds from territories with a clearly more favourable tax regime, untick only when the operation is a redemption (art. 72(18)(b)); on a market sale the holding-period exclusion still applies.

Your trades stay in your browser: nothing is sent or stored.

BALANCE FOR THE YEAR
€695.50

Sum of the results of the lines below: sale value minus acquisition value minus costs.

Lines for the table
3
Taxable part, after the holding exclusion
€630.86
Estimate at 28% for these lines
€176.64

Only the sales pasted above: the 28% rate falls on the balance of all the year’s sales, at every broker and in both annexes. The estimate leaves out losses from earlier years, the foreign-tax credit and compulsory englobamento (art. 72(14)).

Balance on assets held under 365 days: €49.10. If your taxable income, with this balance, is €86,634 or more (2026), this balance is englobado and taxed at the bracket rates, not at 28% (art. 72(14)).

Lines for Anexo J, table 9.2A, 2026 sales (FIFO by account and security)
SecurityQtyCodeSale dateSale valueAcquisition dateAcquisition valueCosts and chargesResultDaysHolding
ETF110G202026-09-151,200.002023-03-10800.001.80398.201285> 2 years · 10% excluded
ETF110G202026-09-151,200.002024-06-14950.001.80248.20823> 2 years · 10% excluded
ETF15G202026-09-15600.002025-11-03550.000.9049.10316< 365 days
Total3,000.002,300.004.50695.50
Result by holding period
HoldingLinesResultTaxable part
< 365 days149.1049.10
365 days to 2 years00.000.00
> 2 years · 10% excluded2646.40581.76
≥ 5 years · 20% excluded00.000.00
≥ 8 years · 30% excluded00.000.00

Still to fill on each line: source country and counterparty country (codes from Tabela X of the instructions: Germany 276, Ireland 372, Luxembourg 442, Netherlands 528, United States 840) and tax paid abroad. The Anexo J instructions do not define the source country for sales of securities.

Tables and codes of the forms approved by Portaria 104/2026/1 of 5 March 2026, used for the return filed in 2026 (2025 income). The forms for 2026 income come out by portaria early in 2027. The rules (rates, holding periods, FIFO) are those of the IRS Code for 2026 income.

Method v1.2 · data as of 25.11.2026

How this works

Anexo J takes income obtained outside Portugal and Anexo G income obtained here. For a sale of shares, ETFs or bonds, what decides is where the issuer is seated (art. 18(1)(i) CIRS). For foreign securities held at a Portuguese bank or a branch in Portugal, the same provision also counts a payment attributable to a permanent establishment in Portugal, and that case is open. Then each sale gives as many lines as the purchases it uses up, because each line carries a single acquisition date.

  1. 1
    Name the income and the entity
    Sale, dividend, interest, fund distribution, derivative or crypto. For a sale, what counts is where the issuer is seated and where the securities are held; for other income, who pays. The result gives the annex, table and code from the official instructions.
  2. 2
    Export the broker’s trades
    Date, security, buy or sell, quantity, price, costs and exchange rate. Include the security’s whole purchase history, earlier years too: FIFO needs it.
  3. 3
    Apply FIFO broker by broker
    Each sale uses up the oldest units first, separately at each institution (art. 43(8)(d) and (9)). Each line carries the sale value, acquisition date and value, costs and days held.
  4. 4
    Read the holding periods
    Under 365 days may force englobamento; after more than 2 years, and again at 5 and at 8, a larger part of the gain on listed securities and open funds is excluded. The 28% estimate leaves out englobamento and the foreign-tax credit.

Worked example: one sale, three purchases

Three purchases of 10 units of an ETF at €80, €95 and €110, each with a €1 commission, and a sale of 25 units at €120 on 15.09.2026 with a €2 commission. By FIFO, the sale uses up the 10 units of 10.03.2023, the 10 of 14.06.2024 and 5 of those of 03.11.2025.

  1. Line 1: sale value 10 × 120 = €1,200.00; acquisition 10 × 80 = €800.00; costs €1.00 from the purchase + 10 × 2 ÷ 25 = €0.80 from the sale = €1.80; result €398.20. 1285 days, over 2 years: 10% is left out and the taxable part is €358.38.
  2. Line 2: €1,200.00 − €950.00 − €1.80 = €248.20; 823 days, also over 2 years: taxable €223.38.
  3. Line 3: 5 units, €600.00 − €550.00 − €0.90 (€0.50 from the purchase + €0.40 from the sale) = €49.10; 316 days, under 365: counts in full and enters the art. 72(14) test.
  4. Balance €695.50; taxable part €630.86; estimate at 28%: €176.64, for these lines only, without englobamento, other sales of the year or losses from earlier years.

For the tax on one sale with englobamento at your marginal rate, use the capital gains calculator; for your bracket rate, see the 2026 IRS brackets.

What the IRS Code says on order and holding period

«Tratando-se de valores mobiliários da mesma natureza e que confiram idênticos direitos, os alienados são os adquiridos há mais tempo, sem prejuízo do disposto no n.º 7»
art. 43.º, n.º 8, al. d) · In short, FIFO: what was bought first is sold first. Paragraph 9 applies the rule at each institution separately. The closing reference to paragraph 7 dates from before Lei 31/2024 renumbered the article, when paragraph 7 was that per-institution rule; today’s paragraph 7 deals with losses against tax-haven counterparties.
«Não obstante o disposto na alínea c) do n.º 1, o saldo entre as mais-valias e menos-valias, resultante das operações previstas na alínea b) do n.º 1 do artigo 10.º, incluindo os rendimentos referidos nas alíneas b) e c) do n.º 18, são obrigatoriamente englobados quando resultem de ativos detidos por um período inferior a 365 dias e o sujeito passivo tenha um rendimento coletável, incluindo este saldo, igual ou superior ao valor do último escalão do n.º 1 do artigo 68.º»
art. 72.º, n.º 14 · The balance on assets held under 365 days is added to other income when taxable income, including it, reaches the last bracket: €86,634 for 2026 income.
«a) São excluídos da tributação 10 % do rendimento quando resultem de ativos detidos por um período superior a 2 anos e inferior a 5 anos; b) São excluídos da tributação 20 % do rendimento quando resultem de ativos detidos por um período igual ou superior a 5 anos e inferior a 8 anos; c) São excluídos da tributação 30 % do rendimento quando resultem de ativos detidos por um período igual ou superior a 8 anos.»
art. 43.º, n.º 5 · Applies to securities admitted to trading and units of open funds, on gains and on losses.

Rules that change the result

IRS Code, wording in force for 2026 income (checked 24.11.2026)
RuleWhat it saysLegal basis
Rate28% on the positive gains balance; 28% on investment income with no Portuguese withholdingart. 72(1)(c) and (d)
Optional englobamentotakes the whole category (G or E) to the bracket ratesart. 72(13); instructions 8B and 9.2C
Under 365 daysbalance englobado if taxable income, with it, is €86,634 or more (2026)art. 72(14); DL 212/2026
Holding-period exclusionlisted securities and open funds: 10% (over 2 and under 5 years), 20% (5 to 8), 30% (8 or more), on gains and on lossesart. 43(5) (Lei 31/2024)
Micro and small companiesunlisted shares: the positive balance counts at 50% (table 9.2A1 of Anexo J, 9A of Anexo G)art. 43(3)
Order of salesthe oldest units go first, at each institution separatelyart. 43(8)(d) and (9)
Broker transferthe sending entity gives the acquisition date and value “whenever possible”art. 43(10)
Lossescarry forward 5 years if you choose or are required to use englobamento; losses with a tax-haven counterparty do not countart. 55(1)(d); art. 43(7)
Coststhose necessary and actually borne on purchase and saleart. 51(1)(b)
Acquisition valuedocumented cost; without proof, the lowest price of the 2 years before the saleart. 48(a)
Coefficientshares and quotas held over 24 months; in the Anexo G instructions the AT applies it on assessment; the Anexo J instructions do not mention it for table 9.2Aart. 50(1); Anexo G instructions
Exchange rateofficial rate: buying rate of the date the income is paid or made available, selling rate for charges; with no proven date, that of 31 December; the tool uses the rate you enterart. 23
Tax havens35% for investment income paid by entities in territories on the official list and for the redemption of bonds and funds issued there; share sales stay at 28%art. 71(17); art. 72(18)(a) and (b)
Dividends englobadoscount at 50% (Portuguese companies; EU and EEA ones under Directive 2011/96/EU)art. 40-A
Foreign taxcredit equal to the lower of the tax paid abroad and the IRS on that income, within the treaty limitart. 81(1) and (2)
Filing window1 April to 30 June; until 31 December if the credit is not yet set in the source country, telling the AT within the normal windowart. 60(1), (3) and (4)

Years are counted date to date; a 29 February purchase completes the year on 28 February, as art. 279(c) of the Civil Code provides for periods set by law (art. 296).

When this page does not apply

  • Non-residents, and residents with NHR or IFICI: they have their own rules for foreign income; see IRS under IFICI.
  • Business or professional income (category B), such as trading as an occupation or crypto mining.
  • Corporate actions: splits, mergers, demergers, exchange offers, subscription rights and shares received for free change acquisition dates and values (art. 43(8)); the tool does not handle them.
  • Shares and other securities bought before 1989: Anexo G1.
  • The 10%, 20% or 30% holding-period exclusion does not apply to unlisted shares of micro and small companies (art. 43(3)) nor to the redemption of bonds and funds from territories with a clearly more favourable tax regime (art. 72(18)(b) and (c)); the tool applies it whenever “Listed or open fund” is ticked.
  • Residents of the Azores: the AT guide gives a 19.6% rate instead of 28%; the estimate uses 28%.

Frequently asked

Who has to fill in Anexo J?
A resident who, during the year, had income obtained outside Portugal or who holds, benefits from or may operate a deposit or securities account at a financial institution abroad. The annex is individual: one per holder. The account must be listed in table 11 even if it produced no income.
How do I declare foreign dividends without paying tax twice?
Enter the gross amount in table 8A of Anexo J: code E11 if nothing was withheld in Portugal, E10 if a Portuguese intermediary withheld 28%. The tax withheld in the source country goes in its own column and gives a credit equal to the lower of that tax and the Portuguese IRS on the dividend, within the treaty limit (art. 81). With code E10, the AT guide says the credit requires englobamento.
I have hundreds of small purchases: do I need one line per purchase?
Each line of table 9.2A carries one acquisition date, so a sale that uses up several purchases gives several lines; purchases you have not sold stay out. Purchases of the same security on the same day share the date and, added into one line, give the same result: the tool does that by default. In Anexo G, the instructions allow securities other than shares and quotas to be aggregated by year of acquisition; the Anexo J instructions say nothing about aggregation.
Do losses on shares held under 365 days offset gains on older shares?
Without compulsory englobamento, yes: the year’s balance nets gains and losses, and art. 43(6) has the balances considered together. Once taxable income reaches €86,634 (2026), the balance of assets held under 365 days is englobado (art. 72(14)), and neither the law nor the instructions say whether a negative balance on those assets reduces the rest, or whether a loss on older assets reduces the englobado balance. The tool shows the two groups separately and warns when their signs differ.
I did not declare sales in earlier years: what can I do?
You can file a substitute return for those years up to 60 days before the assessment period ends (art. 59(3) CPPT). That period is 4 years from the end of the income year, and 12 years where an account at an institution outside the EU was not declared (art. 45 LGT). Compensatory interest applies (art. 35 LGT). If you regularise before any report, complaint or inspection and ask to pay the fine, it is reduced to 12.5% of the legal minimum (art. 30 RGIT).
Are currency gains declared?
The currency effect is part of the gain on each sale, because the acquisition value and the sale value are converted to euros at the official rate art. 23 CIRS names: the selling rate for charges, the buying rate of the date the income is paid or made available, and that of 31 December when the date cannot be proven. Forwards, currency swaps and forward currency deals are derivatives: code G30 in table 9.2B of Anexo J. Neither the Code nor the instructions deal with a simple spot conversion of a foreign-currency balance.
My broker is foreign but has a branch in Portugal: Anexo G or J?
For sales of foreign securities, the law treats the gain as obtained in Portugal when its payment is attributable to a permanent establishment in Portugal (art. 18(1)(i)), and the AT’s October 2026 guide sends shares of non-resident companies to table 9.2A of Anexo J. Neither text deals with a broker’s branch: check with the AT and declare each sale in one annex only. For derivatives the law is explicit: paid by an establishment in Portugal, they go in Anexo G, table 13 (art. 18(1)(n)).
OFFICIAL SOURCES
DISCLAIMER
Guidance and an estimate, not tax advice, for Portuguese tax residents. I checked it on 25 November 2026 against the IRS Code, the Modelo 3 forms and instructions approved by Portaria 104/2026/1 and the AT’s October 2026 guide. The rules are the Code’s for 2026 income, filed from 1 April to 30 June 2027; the tables and codes are those of the forms approved by Portaria 104/2026/1 and used for the return filed in 2026 (2025 income). The forms for 2026 income come out by portaria early in 2027 and may change. It does not cover NHR, IFICI, business income or corporate actions (mergers, splits, rights). The FIFO lines are worked out in your browser from what you type: check them against your broker’s statements and, if in doubt, confirm with the AT or a certified accountant.