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.
| Security | Qty | Code | Sale date | Sale value | Acquisition date | Acquisition value | Costs and charges | Result | Days | Holding |
|---|---|---|---|---|---|---|---|---|---|---|
| ETF1 | 10 | G20 | 2026-09-15 | 1,200.00 | 2023-03-10 | 800.00 | 1.80 | 398.20 | 1285 | > 2 years · 10% excluded |
| ETF1 | 10 | G20 | 2026-09-15 | 1,200.00 | 2024-06-14 | 950.00 | 1.80 | 248.20 | 823 | > 2 years · 10% excluded |
| ETF1 | 5 | G20 | 2026-09-15 | 600.00 | 2025-11-03 | 550.00 | 0.90 | 49.10 | 316 | < 365 days |
| Total | 3,000.00 | 2,300.00 | 4.50 | 695.50 | ||||||
| Holding | Lines | Result | Taxable part |
|---|---|---|---|
| < 365 days | 1 | 49.10 | 49.10 |
| 365 days to 2 years | 0 | 0.00 | 0.00 |
| > 2 years · 10% excluded | 2 | 646.40 | 581.76 |
| ≥ 5 years · 20% excluded | 0 | 0.00 | 0.00 |
| ≥ 8 years · 30% excluded | 0 | 0.00 | 0.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
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.
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.
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.
«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»«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.º»«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.»| Rule | What it says | Legal basis |
|---|---|---|
| Rate | 28% on the positive gains balance; 28% on investment income with no Portuguese withholding | art. 72(1)(c) and (d) |
| Optional englobamento | takes the whole category (G or E) to the bracket rates | art. 72(13); instructions 8B and 9.2C |
| Under 365 days | balance englobado if taxable income, with it, is €86,634 or more (2026) | art. 72(14); DL 212/2026 |
| Holding-period exclusion | listed securities and open funds: 10% (over 2 and under 5 years), 20% (5 to 8), 30% (8 or more), on gains and on losses | art. 43(5) (Lei 31/2024) |
| Micro and small companies | unlisted shares: the positive balance counts at 50% (table 9.2A1 of Anexo J, 9A of Anexo G) | art. 43(3) |
| Order of sales | the oldest units go first, at each institution separately | art. 43(8)(d) and (9) |
| Broker transfer | the sending entity gives the acquisition date and value “whenever possible” | art. 43(10) |
| Losses | carry forward 5 years if you choose or are required to use englobamento; losses with a tax-haven counterparty do not count | art. 55(1)(d); art. 43(7) |
| Costs | those necessary and actually borne on purchase and sale | art. 51(1)(b) |
| Acquisition value | documented cost; without proof, the lowest price of the 2 years before the sale | art. 48(a) |
| Coefficient | shares 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.2A | art. 50(1); Anexo G instructions |
| Exchange rate | official 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 enter | art. 23 |
| Tax havens | 35% 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 englobados | count at 50% (Portuguese companies; EU and EEA ones under Directive 2011/96/EU) | art. 40-A |
| Foreign tax | credit equal to the lower of the tax paid abroad and the IRS on that income, within the treaty limit | art. 81(1) and (2) |
| Filing window | 1 April to 30 June; until 31 December if the credit is not yet set in the source country, telling the AT within the normal window | art. 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).