FiscalidadHaciendaimpuestos

Fin de año: ¿vender cripto o pedir un préstamo? Implicaciones fiscales

18 min read

Essential Points

  • At the end of the year, selling crypto assets generates a capital gain or loss in the personal income tax (IRPF) for the year, while opening a crypto loan does not, according to the DGT (Spanish Directorate General of Taxes).
  • Crypto lending uses your wallet as collateral: you hold the position, but assume the liquidation risk if the price falls sharply.
  • It helps you make informed decisions about when you need liquidity at the end of the year without completely giving up your cryptocurrency portfolio.
  • The key nuance: neither option is risk-free, and offsetting previous losses can completely change what suits you best.

Every December, anyone with a substantial cryptocurrency portfolio faces the same dilemma when they need liquidity: sell part of it or find another way to obtain euros without parting with it. This decision becomes more pressing in the final months of the year because any transaction made before December 31st will be included in the tax year you'll declare in the following year's tax return. It's not a trivial decision: selling crypto at the end of the year isn't tax-neutral, and the alternative of taking out a crypto loan isn't without its own risks either.

In this guide, you'll find a balanced comparison of both paths: what happens to your income tax when you sell crypto assets to obtain liquidity, what the current interpretation of the Spanish Tax Agency (DGT) says about opening a crypto loan, and what liquidation risk you assume if you choose to leave your collateral as security. You'll also see how offsetting capital gains and losses can change the calculation, and how a tool like Bit2Me TAX helps you organize the information before deciding. Neither option is inherently better: it depends on your financial situation, your time horizon, and how much certainty you need about the outcome.

Important noticeThis article is not tax advice or a recommendation to buy, sell, or participate in any financial product. Selling cryptocurrencies and taking out a crypto loan are decisions with different consequences that depend on your personal circumstances. Cryptocurrencies are highly volatile assets, and their tax treatment can vary depending on the criteria of the Spanish Tax Agency and the Spanish Directorate General of Taxes (DGT). Always consult a qualified tax advisor before making a decision.

Main Cryptocurrencies Course

Main Cryptocurrencies Course

Basic level

Bit2Me Academy We bring you a new course where you will learn everything you need to know about the most important cryptocurrencies that exist today.

FREE13 lessons
Empezar ahora ›

Selling crypto at the end of the year: what it means for Spanish income tax

Selling cryptocurrencies at any time of year generates a capital gain or loss calculated as the difference between the sale price and the original purchase price of that cryptocurrency. This gain or loss is included in the savings base of the Personal income tax for the year The timing of the transaction depends on the tax year: a sale on December 28th is taxed in the tax return for the current year, while the same sale made on January 2nd would be taxed in the following year. This difference in the tax calendar is one of the reasons why this decision should be considered in advance and not left until the last minute.

When a sale generates a profit, it is taxed according to a progressive tax scale that, in recent years, has ranged approximately between 19% and 30% depending on the total amount of the savings base. However, it's always advisable to check the current tax scale on the Tax Agency's official website before filing your return. If the sale results in a loss, this capital loss also has tax implications, as it can be offset against other gains from the same or subsequent tax years—a mechanism we will discuss later in this guide. The key takeaway from this initial comparison is that selling before the end of the tax year always leaves a mark on your tax return, whether the result is positive or negative.

Besides the tax implications, selling means giving up the position: if the cryptocurrency's price rises afterward, the seller doesn't benefit from that increase. This doesn't make selling a bad decision in itself, but it is a factor worth weighing against keeping the collateral intact.

Taking out a crypto loan: keeping your collateral unsold

The alternative to selling is request a crypto loanYou contribute your crypto assets as collateral and receive capital in euros in return. in stablecoinwithout needing to liquidate your position. The logic is that of a secured loan, similar to a mortgage, except here the collateral is your own crypto wallet instead of real estate. As long as the loan remains open and the collateral isn't liquidated, you retain ownership of those crypto assets, with all the exposure that entails, whether the price rises or falls.

Under Spanish regulations, the current interpretation by the Directorate General of Taxes (DGT) establishes that opening a crypto loan does not, in itself, constitute a taxable event: there is no sale, only collateral pledged as security, so no capital gain or loss arises at that specific moment. This is the main reason why many people with unrealized capital gains in their portfolios value this option over selling at the end of the fiscal year, because it allows them to obtain liquidity without realizing that gain and without having to pay taxes on it in the current year.

The opening of a loan does not in itself constitute a taxable event in Spain under the current interpretation of the DGT (Directorate General of Taxes); however, the liquidation of collateral does generate a taxable event. Loans and cryptocurrency-backed loans carry specific risks, including liquidity risk, counterparty risk, collateral risk, and the specific terms and conditions of each product, which users should carefully review before accessing them.

It's crucial to read that disclaimer carefully: the absence of a taxable event applies to the loan origination, not the loan as a whole. If the collateral is later liquidated, in whole or in part, that liquidation does constitute a transfer of crypto assets with its own taxable event, following the same logic of capital gain or loss as we saw for a direct sale. Therefore, it's important to understand crypto loans not as a way to avoid taxation forever, but as a way to postpone it and, in some cases, completely avoid the need to sell if the loan is amortized without being fully liquidated.

Infographic showing the four elements of a collateralized crypto loan: collateral provided, capital received, LTV, and liquidation risk

Selling crypto or taking out a crypto loan: comparison chart

The following table summarizes, criterion by criterion, the differences between selling crypto assets at year-end and taking out a crypto loan using your wallet as collateral. It is intended for quick reference, not as a substitute for a detailed analysis of your own situation.

 

Criterion Sell ​​crypto assets Request a crypto loan (collateral)
Taxable event in the transaction Yes: it generates a capital gain or loss in the personal income tax (IRPF) for the year Not at the opening, according to the current interpretation of the DGT (Spanish Directorate General of Traffic).
It maintains its position in the crypto asset. No: the sold part is no longer in your wallet Yes: you retain the collateral until it is liquidated
Main risk Realizing a loss at the wrong time or paying taxes on a large gain Liquidation risk if the collateral loses value and exceeds the allowed LTV
It solves the need for liquidity Yes, with the proceeds from the sale Yes, with the borrowed capital, without selling
Immediate effect on the declaration Yes, in the exercise of selling Not because of the opening; if there is a subsequent liquidation, yes
Participation in future price increases No, not regarding the part that has already been sold. Yes, as long as the collateral remains unsettled.
Direct cost of the operation Sales commission or exchange platform fee Loan interest for the duration of the loan.
Compensation for previous losses This applies if you have offsettable capital losses from other tax years. This does not apply to the opening, because there is no gain or loss to offset.

 

No single row in the table determines the best option on its own: each describes a different trade-off between immediate liquidity, market exposure, and taxation timing. Those who prioritize eliminating uncertainty about their collateral might opt ​​to sell; those who prioritize maintaining their position might choose the other path. The answer depends on data only you know: your average purchase price, your risk tolerance, and how much liquidity you actually need.

Liquidation risk: what happens if the collateral loses value

Choose crypto loan Instead of selling, it doesn't eliminate market risk; it transforms it into a different risk: the liquidation of collateral. When you contribute cryptocurrencies as collateral, the platform establishes a loan-to-value (LTV), the percentage of your collateral's value that it lends you as capital. If the price of those cryptocurrencies falls sharply while the loan is open, the actual LTV of the transaction automatically increases, approaching the threshold at which the platform may liquidate part or all of the collateral to protect the borrowed capital.

This liquidation, when it occurs, is not a simple administrative procedure: it's a transfer of crypto assets with its own taxable event, and it usually happens at the worst possible time, when the market is already falling. That's why reputable providers send progressive warnings as the LTV approaches risky levels, giving investors time to strengthen their collateral, amortize part of the loan, or allow the liquidation to proceed in a controlled manner.

No crypto loan is immune to this possibility, and any communication suggesting otherwise should raise suspicion. In addition, there are other risks that should be understood before providing collateral to any platform:

  • Counterparty risk: what happens to your crypto assets while the loan is in effect and who is responsible for an operational problem with the provider.
  • Liquidity risk: the difficulty of recovering your collateral immediately if you need it sooner than expected and the market is in an adverse moment.
  • Collateral risk: the possibility that the conditions for accepting your crypto asset as collateral may change during the life of the loan.

Compared to direct sales, where risk is limited to the specific moment of the transaction, crypto lending extends that risk to the entire period the collateral remains in guarantee. Maintaining the position comes at a price, and that price is the possibility of forced liquidation if the market moves against you.

Four-step process of liquidation risk in a crypto loan: collateral falls, LTV rises, warnings arrive, and liquidation may occur

Compensation for capital losses and gains: the factor you shouldn't forget

Before deciding between selling crypto assets at year-end or taking out a loan, it's worth considering a third element that often goes unnoticed: the offsetting of capital losses and gains. Personal Income Tax regulations It allows capital losses derived from the sale of crypto assets to be offset within the savings base with capital gains obtained in the same year or, if there are not enough gains to offset, with those of the following four years.

This changes the calculation for many people. If you've sold any crypto assets at a loss during the year, closing the fiscal year with an additional sale that generates a profit can be more tax-efficient than if that loss didn't exist, because part of the new profit would be offset by the previous loss. In that specific scenario, selling before the end of the year can make sense not only for the liquidity it provides, but also for the effect of that offsetting within the same fiscal year.

Crypto loans, on the other hand, are not subject to this mechanism at the time of their inception, precisely because they don't generate any gain or loss to offset: they are tax-neutral at that point. Anyone with outstanding capital losses that they fail to use in the corresponding tax year, or in the following four, permanently loses that possibility. Therefore, reviewing your transaction history before the end of the year is a step you shouldn't skip, regardless of your decision to sell or take out a loan.

Current status: the DGT's interpretation of crypto loans

The current interpretation by the Directorate General of Taxes regarding the opening of loans with crypto assets as collateral is the one described throughout this article: it does not, in itself, constitute a taxable event for Personal Income Tax (IRPF) purposes. However, this is an administrative criterion and not a specific law dedicated to this type of product, which means that it may be refined, expanded, or modified in future binding rulings.

This interpretation applies exclusively to the Spanish framework and may not be applicable in the same way in other European jurisdictions, where the taxation of loans backed by crypto assets follows its own criteria, which should be reviewed on a case-by-case basis. If your financial situation includes tax residency outside of Spain or crypto assets managed from another jurisdiction, this guide does not cover those scenarios, and you require specific advice. Due to its evolving nature, this section should be the first to be reviewed in any future updates to this article.

How to optimize the taxation of your crypto assets with Bit2Me TAX

Whether you ultimately decide to sell before the end of the year or opt for a crypto loan, you'll need a clear picture of your trading history: purchase prices, purchase dates, trades already made this year, and, if applicable, any outstanding losses. Manually reconstructing this history, especially if you've traded on multiple platforms or over several years, is precisely the kind of task where calculation errors tend to occur.

Bit2Me TAX It's designed to centralize this information and help you optimize the taxation of your crypto assets with organized data instead of rough estimates. The tool chronologically organizes your transactions, calculates the capital gain or loss for each one, and gives you a solid basis for deciding whether to close any positions before the end of the year. This visibility is especially valuable when comparing selling versus borrowing, because you need your actual acquisition price to calculate how much tax you would pay in each scenario.

DISCOVER Bit2Me Knowing how to calculate your tax liability before making this decision makes all the difference between choosing based on concrete data and doing so by intuition. No tool can replace the judgment of a tax advisor, but it can save you a significant amount of the work that advisor would need to reconstruct the information to give you an accurate answer.

Before you decide: questions you should ask yourself, not a generic headline

No article can tell you whether it's better to sell your crypto at the end of the year or take out a loan, because that answer depends on variables that are different for everyone. Before deciding, it makes sense to honestly answer some specific questions about your own situation.

  1. ¿How much liquidity do you need? really, and for how long will you need it available?
  2. What is your actual purchase price and how much capital gain or loss would selling now generate?
  3. Do you have capital losses from other years that you could offset if you sell at a profit this year?
  4. Could you psychologically and financially handle a partial liquidation of your collateral if the market falls sharply?
  5. What LTV would you be willing to accept on a crypto loan to maintain a reasonable safety margin?

If you also want to understand in detail how much it would actually cost you to take out a crypto loan instead of selling, the guide from Bit2Me Academy Regarding the interest on crypto loans, it explains step by step how that cost is calculated and what fees you should review before finalizing the transaction. Comparing this information with your own calculation of capital gain or loss allows you to compare both options with real numbers, not just guesswork.

The year-end decision between selling crypto or taking out a crypto loan doesn't have a single answer, and any guide that claims to offer one is oversimplifying the situation. What you can control is the quality of the information you use to make your decision: knowing your trading history, understanding the tax implications of each option, and realistically assessing the liquidation risk before committing your collateral. With these three elements in mind, the decision ceases to be a gamble and becomes a calculation you can review year after year.

Important noticeThis article is for educational and informational purposes only. It does not constitute tax, legal, or financial advice, and is not a substitute for the judgment of a qualified professional who is familiar with your complete financial situation. Before selling crypto assets or taking out a crypto loan for tax reasons, always consult with a qualified tax advisor.

Frequently asked questions about selling crypto at year-end or taking out a loan

What does selling crypto at the end of the year mean for tax purposes?

This means that the capital gain or loss resulting from that sale is declared in the tax year in which the transaction takes place, not in the following year. Therefore, a sale made on December 28th and another made on January 2nd can be taxed in separate returns even if the amount is identical.

What is a crypto loan and how does it prevent you from selling your crypto assets?

A crypto loan allows you to offer your crypto assets as collateral and receive capital in euros or stablecoins in return, without needing to liquidate your position. As long as the collateral remains unsold, you retain ownership of those crypto assets and benefit from their price fluctuations.

How do I know if it's better to sell crypto at the end of the year or take out a crypto loan?

It depends on your purchase price, whether you have prior capital losses to offset, and your tolerance for liquidation risk. This article compares both paths, but the definitive answer requires reviewing your own transaction history, ideally with the support of a tax advisor.

What do I need to take out a crypto loan instead of selling my crypto assets?

You need sufficient cryptocurrency to use as collateral and a verified account on your chosen platform. Unlike traditional banks, most crypto lending platforms don't require proof of income or a credit check.

Is it risky to take out a crypto loan using my crypto assets as collateral?

Yes, there are specific risks you should consider, including liquidity risk, counterparty risk, and collateral liquidity risk. No crypto loan eliminates these risks simply by using a regulated provider.

What happens if the value of my collateral falls while I have the loan open?

The actual LTV of your loan increases, and if it exceeds the established limit, the platform may liquidate some or all of the collateral to protect the borrowed capital. This liquidation, in turn, generates its own taxable event for personal income tax purposes.

What's the difference between selling crypto at the end of the year and taking out a crypto loan?

The sale immediately generates a capital gain or loss and causes you to cease being the owner of the sold cryptocurrency. A crypto loan does not generate this taxable event upon its opening and allows you to retain the position, in exchange for assuming the risk of liquidation of the collateral.

Can I offset capital losses and gains on my crypto assets in the same tax return?

Yes, capital losses from the sale of crypto assets can be offset against gains from the same fiscal year or, if there aren't enough, against gains from the following four fiscal years. Reviewing this balance before the end of the year can change whether it's more advantageous to sell now or wait.

How does it help me Bit2Me TAX to optimize the taxation of my crypto assets?

Bit2Me TAX centralizes your cryptocurrency transaction history and calculates the capital gain or loss for each transaction, giving you a clear basis for comparing selling versus borrowing. Learn more Bit2Me Tax before the end of the year makes it easier to make that decision with real data instead of estimates.

Could the DGT's criteria regarding crypto loans change in the future?

Yes, this is an administrative criterion in effect at the time of publication of this guide and not a specific law regarding this type of product, so it may be clarified in future binding rulings. It is always advisable to check the DGT's (Spanish Directorate General of Taxes) updated interpretation before making decisions based on its tax treatment.

  • Year-end: Sell crypto or take out a loan? Tax implications

«Investment in cryptoassets is not fully regulated, may not be suitable for retail investors due to high volatility and there is a risk of losing all invested amounts»

Share this article!

Open your account now and receive 15€

Register on the world's easiest, safest, and most complete platform

Start now
Start using cryptocurrencies