Margin trading in Spain: how to declare
All margin/leveraged trading gains/losses = capital gain/loss (savings tax base).
Taxable events:
- Position opening: NOT taxable
- Position close (TP/SL/liquidation): Capital gain or loss
- Margin fees/interest: Deductible expense from the trade profit
- Funding rates: Income (received) or expense (paid)
- Liquidations: Capital loss on lost value
High leverage (100x): Even small moves create large taxable gains/losses. Active margin traders can have hundreds of taxable events.
kointax imports margin trading history and calculates net gain/loss per closed position.


