Crypto-assets in the IRS Code
When Portugal introduced specific personal income tax (IRS) rules for crypto-assets through the 2023 State Budget Law, most of the debate focused on three main features: the 28% flat rate on short-term gains, a tax exclusion for gains on crypto held for at least 365 days, and the option to delay tax on qualifying crypto-to-crypto exchanges. Losses received much less attention. But for investors who bought near a market peak, losses are often the main concern. This article addresses non-business disposals of crypto-assets that are not securities and meet the IRS Code’s definition of crypto-asset, which excludes unique, non-fungible assets.
The answer lies in where the legislator placed this new income. Gains on the onerous disposal of crypto-assets that are not securities were added as a new paragraph (k) to the list of capital gains in Article 10(1) of the IRS Code. Paragraph (k) was then included, alongside shares and other securities and derivatives, in two key provisions: the 28% special rate on the net balance of gains and losses (Article 72(1)(c)), and the rule allowing losses to be carried forward for five years (Article 55(1)(d)). Real estate was left in its own basket.
Category G is not one basket
Under Article 55(1) of the IRS Code, a taxpayer can use a net loss in one income category only to offset their net gains in that category. Losses cannot be transferred between categories: the Supreme Administrative Court (STA) has long held that a loss in one category is not ‘communicable’ to another, and that this cedular design is consistent with the Constitution (see STA case 01085/09, February 24 2010). This means a loss from crypto trading taxed under Category B (business income) cannot offset Category G gains, and vice versa.
Even within Category G, there are two sets of rules:
Real estate basket – only 50% of the net balance of gains and losses on real estate and on assignments of contractual rights over real estate is considered for tax. That amount is subject to mandatory aggregation (englobamento) with the taxpayer’s other income and taxed at progressive rates of up to 48%, plus solidarity surcharges. If there is a net loss, only 50% of it can be carried forward, for up to five years.
Securities basket – gains and losses on shares and other securities, derivatives, warrants, certificates, assignments of credits, and (since 2023) crypto-assets are combined into one net balance, which is taxed at 28%, unless the taxpayer opts for aggregation (englobamento) or is required to do so. Mandatory aggregation applies to securities transactions involving assets held for less than 365 days where taxable income, including that balance, reaches the top income tax bracket. When calculating the net balance, taxpayers must also account for the holding-period exclusions under Article 43(5) for listed securities and units in open-ended collective investment undertakings. A net loss can be carried forward for five years, but only when the taxpayer chooses aggregation.
This distinction has practical consequences. In a judgment dated May 8 2024 (case 0530/18.8BEALM), the STA ruled that losses from selling shares could not offset real estate gains made in the same year. It overturned a lower court’s decision to combine all Category G gains and losses into one balance. The court held that Article 55 “is not optional” and that the specific loss rules prevail over the general rule for calculating the annual balance in Article 43(1).
Real estate losses: diluted and fenced in
Real estate losses face two limitations. First, only 50% of the net loss counts for tax purposes. Second, if the rules are understood as keeping real estate and securities separate, an interpretation supported by the STA’s reasoning, a loss on an apartment cannot offset a gain on shares made in the same year. The taxable net gain on shares is still taxed at 28%, unless the taxpayer chooses, or is required, to combine it with other income (aggregation).
There is one tax ruling that points the other way, but it should be treated with caution. In binding ruling 27437 (December 31 2024), the Portuguese Tax and Customs Authority (AT) allowed a real estate loss to reduce securities gains over the following five years if both are Category G results. However, only 50% of the loss could be used, and only if the taxpayer chooses aggregation.
In the author’s view, this is a misreading of the law. Article 55(1)(c) and (d) keep the two baskets apart, and the STA has made it clear that the specific loss rules are not optional. Nor is the ruling a safe harbour for anyone else: a binding ruling binds the AT only for the taxpayer who asked for it.
Crypto losses: in the securities basket at full value
Crypto losses are in a structurally better position. Paragraph (k) appears alongside paragraphs (b) and (e) in both Article 72(1)(c) and Article 55(1)(d). This has three consequences:
Full recognition – a qualifying €10,000 short-term crypto loss is not subject to the 50% reduction applicable to real estate losses. The full amount counts, unless an exclusion or rule that disallows the loss applies.
Same-year netting – qualifying short-term crypto losses can offset gains on shares, exchange-traded funds (ETFs), other securities, and derivatives to the extent that those gains enter the same annual tax balance. Elective aggregation (englobamento) is not a condition for netting within the balance subject to the 28% rate. For example, the AT has treated profits from crypto futures trading as derivatives income under paragraph (e), rather than gains from crypto disposals under paragraph (k). Both share the same basket, so losses on one can reduce gains on the other (see binding ruling 28298, (October 31 2025).
Five-year carry-forward in the whole basket – if the combined result for the year is a loss, it can be used to reduce net gains in this group for the next five years, whether those gains come from crypto, shares, ETFs, or derivatives. The taxpayer must choose aggregation to do this.
The key difference is that only half of a real estate loss counts, and it stays in its own basket, while a short-term crypto loss counts in full and can reduce gains across the securities basket, both in the same year and over the following five years, subject to the conditions below.
Conditions: where value is won or lost
Taxpayers must choose aggregation to carry losses forward
Taxpayers should choose aggregation both in the year they make the loss and in each year they use that loss to reduce gains. But this choice has a cost: all income of the same category must then be combined, and the gains reduced by the loss are then taxed at progressive rates rather than at 28%. Whether aggregation pays off depends on the taxpayer’s circumstances.
The 365-day rule cuts both ways
The IRS Code excludes gains and losses on qualifying crypto-assets held for at least 365 days. This means investors cannot use losses covered by that exclusion to reduce taxable gains. Under Article 43(8)(g), the oldest crypto-assets are treated as sold first, under the first-in, first-out (FIFO) rule. If assets are held with more than one institution or crypto-asset service provider, Article 43(9) requires this rule to be applied separately to the assets held with each one. A portfolio built over several years may produce a mix of results: some excluded from tax and others taken into account for tax. Records of when assets were acquired are important when assets are transferred between providers or through wallets controlled directly by the investor (self-custody).
In practice, investors should reconcile acquisitions, exchanges, transfers, and disposals across providers and wallets. They should keep evidence of the original cost, acquisition dates, and continued ownership. A transfer between wallets owned by the same investor, with no change in ownership and nothing received in return, should be distinguished from a disposal. Otherwise, incomplete provider records may give a transaction the wrong cost or holding period. This could make an excluded long-term result appear taxable or cause an eligible loss to be missed.
No loss on crypto-to-crypto swaps
When one crypto-asset is exchanged for another, no tax is charged at that point and the original acquisition cost rolls over to the asset received. A loss is not recognised until the position is converted into fiat. The AT has extended this logic to an immediate ‘technical’ swap into a stablecoin made only to reach a EUR pair. In binding ruling 28969 (October 31 2025), it treated the subsequent conversion into fiat as the taxable event and kept the original asset’s 365-day exclusion. However, a strict reading of the law suggests that selling the stablecoin is a separate short-term disposal, which in most cases would produce a small loss that could be carried forward (see “Personal income tax and cryptoassets: the ‘technical conversion’”).
Unrealised and ‘zero-value’ tokens
The AT does not recognise latent losses: there must be an actual disposal. For example, it refused to allow a latent loss on delisted shares to be reported and carried forward (see binding ruling 29274, March 9 2026). The same reasoning is likely to apply to tokens that have collapsed in value and can no longer be sold.
Non-cooperative counterparties
Losses from transactions in the securities basket, including crypto transactions, are disregarded if the other party is subject to a clearly more favourable tax regime. Tax arbitration decisions have interpreted “counterparty” as the buyer, not the issuer. They have also refused to disregard losses on exchange-traded shares where the buyer could not be identified (see Administrative Arbitration Centre cases 269/2022-T, December 29 2022, and 536/2022-T, February 8 2023).
A separate restriction applies to the 365-day exclusion and the rule that carries acquisition costs over on crypto-to-crypto exchanges. These rules do not apply if the taxpayer or the payer is not resident in the EU/European Economic Area or in a jurisdiction with which Portugal has a tax treaty or an exchange-of-information agreement. Using platforms located outside this area can change the analysis entirely.
Category B and joint taxation
If a taxpayer’s trading amounts to a business, it falls within Category B rather than Category G. This depends on how regularly they trade, their profit motive, and the economic scale of the activity (see binding ruling 29052, December 4 2025, and binding ruling 22065, November 6 2023).
Finally, ‘communicability’ does not extend between spouses. In 2023, the STA’s plenary session ruled that gains and losses must be calculated separately for each taxpayer, even when spouses file jointly (see STA (Plenary) case 0125/22.1BALSB, February 23 2023).
Real estate v crypto losses
Feature | Real estate losses | Short-term crypto losses |
Statutory basket | Article 10(1)(a), (d) | Article 10(1)(b), (e), (f), (g), (h), (k) |
Value of the loss | 50% of the net loss | 100% of the qualifying loss, unless an exclusion or rule disallowing the loss applies |
Same-year netting against share/ETF gains | Not allowed (STA, May 8 2024) | Generally allowed, subject to applicable exclusions and mandatory aggregation rules |
Carry-forward | 50% of the net loss can be carried forward for up to five years | The qualifying net loss can be carried forward for five years, where the relevant income is aggregated |
Option requirement | No option required. Real estate gains are mandatorily aggregated | Aggregation option in the loss year and in the years in which carried-forward losses are deducted |
Use against future share/ETF gains | The law does not allow this (the AT allowed it in one ruling, but the ruling binds the AT only in that specific case) | Allowed by law (Article 55(1)(d)) |
Consider a Portuguese-resident investor who makes these gains and losses in 2026: a €40,000 loss on qualifying crypto held for eight months, a €25,000 gain on listed shares, and a €5,000 gain on ETF units sold on an exchange.
Assume the shares and ETF units were held for at least 365 days but no more than two years. All transactions fall within the calculation under Article 72(1)(c), no other exclusions or rules disallowing losses apply, and the investor has no other relevant transactions. The resulting net loss is €10,000, so no tax is due on that balance. The €10,000 may be carried forward to 2027–31 if the applicable aggregation and reporting conditions are met. If the €40,000 loss had instead arisen from an apartment subject to the 50% rule, only €20,000 would count for tax purposes. That loss would not offset the 2026 securities gains. Assuming the investor does not choose aggregation or other relief, the €30,000 in gains would result in €8,400 in tax.
Takeaways
The 2023 reform placed qualifying crypto disposals in the wider Category G grouping used for securities and derivatives. That generally gives short-term crypto losses more favourable treatment than real estate losses:
Full recognition, instead of only 50%;
Losses can reduce share and derivative gains in the same year; and
Unused net losses can be carried forward for five years provided taxpayers choose aggregation.
The AT’s fact-specific approach to technical stablecoin conversions adds uncertainty. It may preserve the long-term exclusion, but treating the conversion as a separate transaction could result in a different gain or loss.
No Portuguese court or tax arbitration decision has yet directly applied the post-2023 crypto rules to the loss issues discussed here. Potential disputes include how FIFO applies to assets involving providers and self-custody wallets, how to identify counterparties, and how to treat technical stablecoin conversions.
Investors and their advisers should keep clear records of transactions and holding periods, and calculate the cost of aggregation before choosing it. They should also keep in mind that the value of a crypto loss depends as much on compliance as on the market.