It is essential to highlight critical operational rules reinforced by binding rulings from the Directorate-General for Taxation (Dirección General de Tributos):
1. Hierarchy of Offsetting Rules in the Savings Base: The IRPF Act, capital losses must first be set off exclusively against capital gains realized in the same fiscal year until fully absorbed. If a net negative balance remains, it can be offset against the positive balance of income from movable capital (rendimientos del capital mobiliario, such as dividends or interest income) earned in the same tax year, capped at 25% of that positive balance.
2. Residual Losses and 4-Year Carryforward: If an unabsorbed capital loss persists after applying this mechanism, the remaining balance may be carried forward and offset during the subsequent four calendar years, following the identical statutory order and limits.
3. Execution vs. Settlement Dates: In year-end financial market transactions, account for trade settlement cycles (standard T+2 for equities). The trade execution order must be submitted with sufficient lead time to ensure definitive market settlement and accounting accrual prior to December 31st.
Yes. Under Spanish Personal Income Tax regulations, you are legally entitled to integrate and offset capital gains and losses realized within the same fiscal period under the savings tax base (base imponible del ahorro). Both the gain generated from the real estate conveyance and the loss arising from the stock sale or mutual fund redemption belong to the same statutory basket.
Consequently, if you formally execute the sale of the shares or the redemption of the mutual fund units before December 31st, the resulting net capital losses will directly offset the capital gain realized from the real estate sale, lowering your taxable savings base subject to progressive tax rates (19% to 28%).
However, you must strictly comply with the anti-wash sale rule:
• For listed securities, the capital loss cannot be computed in the tax period if you acquire homogeneous securities within the two months prior to or following the transfer that triggered the loss.
• For unlisted shares or corporate interests, the repurchase window expands to one year.
• For mutual funds, the loss is deferred if you subscribe to homogeneous units within that same timeframe.
The disallowed loss is not forfeited; its tax recognition is deferred until the subsequent, definitive transfer of the newly acquired replacement assets.