Getting into the world of investing is a fantastic way to grow your wealth, but if you're not careful with taxes, you could be in for a shock when it's time to file your return. It's not just about how much you make when you close a deal, but how much of that money actually stays in your pocket after it goes through the tax system. tax filter.
To navigate this tax labyrinth without getting lost, it's vital to understand that the Spanish system doesn't treat a dividend the same as the sale of a share. Depending on the asset, how long you hold it, or the country where you reside, the tax invoice It can vary considerably, so tax planning is almost as important as choosing an investment strategy.
Fundamental concepts of taxation in Spain

Almost all profits derived from financial products are integrated into what is known as the basis of savings of Personal Income Tax (IRPF). To avoid confusion, the Tax Agency separates these incomes into two main categories: income from movable capital and capital gains or losses. It's a technical distinction, but it determines how taxes are calculated and how losses can be offset.
Currently, savings tax is applied progressively. This means you don't pay a fixed percentage on all profits, but rather you move through different tax brackets depending on the amount of your gain. For example, the first €6.000 are taxed at 19 %, the portion between 6.000 and 50.000 to 21 %and so on until reaching the 30 % for those profits that exceed 300.000 euros.
Taxation of stocks and ETFs
When we talk about stocks or ETFs, taxation doesn't occur when you buy, but when you sell the asset or when it pays dividends. If you sell at a profit, you have a capital gainThe calculation is simple: selling price minus purchase price, subtracting broker commissions. To determine which shares were sold first, the following is used: FIFO rule (First In, First Out), considering that the first units purchased are the first to be sold.
Dividends, on the other hand, are considered income from movable capital. If the dividend is received in cash, it is taxed immediately. If it is received in the form of new shares, the tax is deferred until those shares are sold. A key point here is the Accumulation ETFswhich automatically reinvest profits, allowing the investor to pay no taxes year after year, but only at the end of the operation.
It's important to note that ETFs do not allow for tax transfers, unlike traditional investment funds. Any movement between ETFs involves a sale and, therefore, generates a tax liability. tax liability immediate if there are benefits.
Treatment of cryptocurrencies and digital assets
The crypto world has generated a lot of confusion, but for the tax authorities they are basically intangible assetsIf you exchange Bitcoin for euros or another cryptocurrency (a swap), you are generating a capital gain or loss that must be declared as part of your savings income. For swaps, the sale value is the higher of the value of the asset given up and the value received.
Not everything in the crypto world is about capital gains. stakingWhether direct or delegated, it is usually considered a return on investment. There are even cases where the mining and its economic impact They could be viewed as an economic activity, which would shift taxes from the savings base to the general basiswhere tax rates can be much more aggressive, reaching up to 47% depending on the bracket.
Trading, Forex and CFDs
Many traders believe that trading in short timeframes or scalping changes their tax situation, but this is a misconception. Whether you trade Forex, CFDs, or stocks, if you use your own capital, the final result for the year is taxed as income. capital gain or lossLeverage affects the risk of the transaction, but does not change the tax nature of the profit obtained.
There is a special case: the funded accountsHere, you're not investing your own money, but rather providing a capital management service. Therefore, this income doesn't go towards your savings, but is considered income from an economic activity. This may require the trader to register as a [taxpayer/investment specialist]. a freelancer if there is regularity and recurrence in the charges.
How to manage losses and optimize payouts
It's not all about payments; the system allows you to reduce your tax bill through... disability compensationIf you sell an asset at a loss, you can subtract that amount from the profit for the same year. If you still have a remaining loss after this, you can offset up to 25% of your income from movable capital (such as interest or dividends).
If the year has been particularly bad and losses exceed profits, you have the opportunity to drag those losses down for the next four years. It is essential to declare even when you lose money, as this is the only way to establish the right to reduce taxes in the future. However, be careful with the two-month ruleIf you sell at a loss and repurchase the same asset before or after 60 days, that loss is temporarily blocked.
Other products and reporting obligations
- Investment Funds: They are the kings of deferral thanks to the reinvestment exemption, which allows you to move money between funds without paying taxes.
- Deposits and Interest-Bearing Accounts: They are taxed each time they mature or generate interest, without the possibility of deferral.
- Treasury Bills: The profit is treated as income from movable capital.
- Pension Plans: Unlike the previous ones, they are taxed as employment income at the time of redemption.
Beyond the annual tax return (Form 100), there are reporting obligations. Model 720 It is mandatory if you have more than €50.000 in accounts or investments abroad. Similarly, the Model 721 It applies specifically to crypto assets held in custody on exchanges outside of Spain that exceed that same threshold of 50.000 euros.
Maintaining rigorous control over financial transactions, keeping receipts for each operation, and knowing how to distinguish between savings and general assets is the only way to avoid penalties and maximize the net return of any investment portfolio.


