Skip to main content

← Guides

Foreign Share Capital Gains in Portugal: Anexo J Quadro 8

Sold shares held abroad after moving to Portugal? How the gain is taxed, the 28% rate vs the under-365-day trap, cost basis in euros, and Quadro 8.

By Andrew Kovalenko · · 8 min read · Human-written
Contents
  1. How Portugal taxes the gain
  2. Cost basis and the currency trap
  3. The US-shares surprise: usually no foreign tax to credit
  4. Filling Quadro 8
  5. Losses offset gains — and carry forward
  6. Worked example
  7. When to hire a specialist
  8. Sources

If you kept a foreign brokerage account after moving to Portugal — Interactive Brokers, Schwab, a UK ISA, whatever — and you sell something at a profit, that gain is Portuguese-taxable and goes on Anexo J, Quadro 8 (foreign Category G capital gains). This is the disposal side of investing abroad; the main Anexo J guide covers the income side (dividends and interest on Quadro 6).

The rules have a couple of traps that cost real money if you miss them — particularly around how long you held and which currency you bought in.

Default rate

28%

Flat, on the net annual gain

The trap

< 365 days

Top-bracket earners lose the flat rate

Where it goes

Quadro 8

Anexo J, foreign Category G

How Portugal taxes the gain

For a Portuguese tax resident, the net annual gain from securities (gains minus losses across the year) is taxed at a flat 28% — the default for Category G. You can instead opt for englobamento (aggregate it with your other income at progressive rates), which is only worth it if your overall rate is below 28%.

So far, like dividends. Here’s the part that catches people:

Note this is the rule for securities. The well-known “hold 365 days, pay 0%” exemption you may have read about is crypto-specific — it does not apply to shares or ETFs. Don’t conflate them (see crypto tax in Portugal for that regime).

Cost basis and the currency trap

Your gain is disposal proceeds − acquisition cost, and Portugal computes both in euros at the exchange rate on each date:

  • The purchase is converted to EUR at the rate on the buy date.
  • The sale is converted to EUR at the rate on the sell date.

This means a chunk of your “gain” can be pure currency movement. If you bought US shares when the euro was strong and sold when it was weak, you can show a euro gain even on a dollar-flat position — and Portugal taxes it. There’s no separate FX carve-out; it’s baked into the euro figures.

Portugal uses FIFO (first-in, first-out) to decide which lots you sold when you’ve bought the same security at different times. AT publishes official annual exchange rates; use those.

The US-shares surprise: usually no foreign tax to credit

A common assumption is that you’ll get a foreign-tax credit for US tax on the sale. Usually you won’t — because the US generally doesn’t tax non-resident aliens on capital gains from US securities. So a Portugal resident selling US-listed shares via IBKR typically pays PT’s 28% (or progressive) with no US tax and therefore no credit to claim.

That’s the opposite of dividends, where the US does withhold (15% under the treaty) and you credit it on Quadro 10. For gains, Portugal usually has the whole bite.

Filling Quadro 8

Pull your annual realized-gains report

Every broker (IBKR, Schwab, Trading 212, etc.) produces an annual realized-gain/loss statement. You need, per disposal: security, buy date + cost, sell date + proceeds, and the currency.

Convert each leg to EUR and compute the gain

Buy cost at the buy-date rate; proceeds at the sell-date rate; gain is the euro difference. Apply FIFO where lots overlap.

Enter each disposal on Quadro 8

Country of source, asset type, acquisition value and date, realization value and date, and any foreign tax paid (usually €0 for US shares).

portaldasfinancas.gov.pt
Portal das Finanças NIF · 123 456 789

IRS › Modelo 3 › Anexo J › Quadro 8

Incrementos patrimoniais (mais-valias) obtidos no estrangeiro

País da fonte

EUA - Estados Unidos

Tipo

G01 - Alienação de partes sociais e outros valores mobiliários

Valor de aquisição (EUR)

8,400.00

Ano/mês de aquisição

2023-04

Valor de realização (EUR)

11,250.00

Imposto pago no estrangeiro (EUR)

0.00

Adicionar nova linha Guardar quadro

Schematic - actual UI may differ. Illustrates layout, not exact pixels.

Quadro 8 of Anexo J. Acquisition and realization values are both in EUR, converted at the rate on each respective date — so currency movement is part of the taxed gain.

Losses offset gains — and carry forward

Capital losses offset capital gains within the same year. If you end the year net-negative, you can carry the loss forward for 5 years — but only if you opt for englobamento in both the loss year and the year you use it. If you take the flat 28% route, the carryforward is lost. Worth planning if you had a bad year.

Worked example

You moved to Portugal in 2024. In 2026 you sell US ETF shares via IBKR:

  • Bought 2023 for $9,000 → €8,400 at the buy-date rate
  • Sold 2026 for $12,000 → €11,250 at the sell-date rate
  • Euro gain: €2,850 (note: the dollar gain was $3,000, but the euro figure is what PT taxes)
  • Held > 365 days, not top-bracket → flat 28% = €798 PT tax
  • US tax on the gain: €0 (non-resident alien) → no credit needed

If you’d held under a year and were a top-bracket earner, that €2,850 would instead be taxed at your marginal progressive rate — potentially up to 48%.

When to hire a specialist

A handful of clean disposals in EUR-friendly brokerages is DIY-able. Get a cross-border contabilista if you have: many lots across years (FIFO + FX gets fiddly fast), the under-365-day/top-bracket question, options/derivatives, crypto mixed in, or you’re a US citizen (the gain hits both returns).

Sources

The rest of the foreign-income puzzle

Foreign income is never just one form.

These cover the pieces that usually come up next:

For foreign-income filers

A heads-up before each filing window that affects you.

Anexo J means the annual IRS window is the one that matters - plus IMI and anything quarterly. One plain-English email before each Portuguese tax deadline. No drip campaign.

Related guides