Working and paying tax

Guide · checked 24 October 2026

Crypto gains and losses tax in Spain: what the law and the AEAT say

What the personal income tax law and the Agencia Tributaria's manual for the Renta 2025 return say about gains and losses on virtual currencies («monedas virtuales», crypto) for an individual who is tax resident in Spain, outside an economic activity, with what we could not confirm.

This page covers what the personal income tax law (the LIRPF) and the AEAT's manual for the Renta 2025 return say about gains and losses on virtual currencies, the term («monedas virtuales») that the law and the AEAT use and that the AEAT notes is replaced in EU rules by «criptoactivos», for an individual who is tax resident in Spain, and only for transactions made «al margen de una actividad económica». It does not cover non-residents, the conversion of other currencies or stablecoins to euros, spending a virtual currency on goods or services, staking, lending, airdrops, mining, NFTs, forks, any consulta of the Dirección General de Tributos (none was read or is cited), the wealth tax, the foral territories (the foral law of Navarra is out of scope) or the casilla numbers of the Modelo 100, and it does not say what tax any person pays or which declaration any person files.

In brief

  • This page quotes the law and the AEAT pages on gains and losses on virtual currencies and does not say what tax any person pays or which rule applies to any transaction: see what we could not confirm.
  • The AEAT manual for Renta 2025 says that virtual currencies are, for tax purposes, intangible assets counted by units that are not legal tender and that the different types are different assets, and it notes the move to «criptoactivos»; the articles of the law quoted here do not mention virtual currencies; this page does not say which asset any person holds is a virtual currency: see what the law and the AEAT manual cover.
  • The AEAT manual for Renta 2025 says that a sale of virtual currencies for euros or other legal tender, made outside an economic activity, gives rise to a gain or loss equal to the difference between the transmission value and the acquisition value; this page does not say what the gain on any sale is: see selling a virtual currency for legal tender.
  • The AEAT manual for Renta 2025 says that the exchange of one virtual currency for a different one is a permuta, valued under art. 37.1.h of the law, which words its rule for goods and rights in general; this page does not say whether any exchange is a permuta in the sense of the article or what it yields: see swapping one virtual currency for another.
  • Arts. 33.1 and 35 of the law word what a gain is and how the acquisition and transmission values are made up, and the AEAT pages say that the gain is worked out for each sale of each type of currency; this page does not say what the gain on any sale is: see how the gain is measured.
  • The AEAT manual for Renta 2025 says that the units transmitted are those acquired first (the FIFO criterion), and art. 37.2 of the law words the same rule for the cases in letras a), b) y c) only; this page does not say whether art. 37.2 reaches a virtual currency: see which units count as sold.
  • Art. 14.1.c of the law allocates a gain to the tax year of the alteration, and the AEAT manual for Renta 2025 says that for a sale the allocation is the delivery under the sale contract; this page does not say in which tax year any gain arises: see when a gain arises.
  • The AEAT manual for Renta 2025 says that the gains and losses on transfers of virtual currencies for money are savings income, integrated and offset in the form and within the limits of art. 49; this page states no limit and no scale and does not say whether any person has a loss to offset: see savings income and the offsetting of losses.
  • The AEAT manual for Renta 2025 says that a credit not returned by a platform is not automatically a loss and that such a loss forms part of the «renta general»; this page does not say whether any loss has arisen: see a platform that fails or does not return a deposit.
  • The law words information duties of the providers of custody and exchange services for virtual currencies, and the AEAT pages name the models 172, 173 and 721 and a section of the Modelo 100; this page does not say what any person files: see reporting.
Sources and how current each is

How current each source is

SourceDate shown on the page or documentWe checkedNote
Ley 35/2006, Ley del IRPF, arts. 14, 33, 35, 37, 46 and 49 and the disposición adicional decimotercera (BOE, consolidated text) Texto consolidado: «Última actualización, publicada el 07/10/2026» 24 October 2026 The version of each article and of the provision is on its quote.
AEAT, Manual práctico de Renta 2025: Monedas virtuales, Concepto Página actualizada: 17/marzo/2026 24 October 2026 The page calls the subject «monedas virtuales» and notes the move to «criptoactivos» in EU rules.
AEAT, Manual práctico de Renta 2025: Monedas virtuales, Compra y venta de monedas virtuales: tributación en el IRPF del inversor Página actualizada: 17/marzo/2026 24 October 2026 Sections a), b) and c) of the page are quoted.
AEAT, ayuda del Modelo 100 Renta 2025: Ganancias y pérdidas patrimoniales derivadas de la transmisión o permuta de monedas virtuales Página actualizada: 16/marzo/2026 24 October 2026 The Renta 2025 version of the help page (path 25Presentacion); it shows a page date one day before the pages of the manual.

This page gives no calculation and no worked example, repeats no rate, period or amount outside the quotes, and says nothing of the amount of tax on any transaction.

This guide reports what the BOE (the Official Journal, where the laws are published) and the Agencia Tributaria (AEAT, the Spanish tax agency) say. Quotes are in Spanish, the language of the source, with the article or page (linked), the version or page date the source shows, and the day we read it, 24 October 2026. A quote that starts in the middle of a sentence begins with “…”, one that stops short of its text ends with “…”, and where passages are joined a “…” stands between them. Numbers inside quotes are written as the Spanish texts write them. The English labelled In short in each section is our summary and says so; it is not a translation to rely on. This page is not advice.

What this page does and does not do

  • This page quotes the law and the AEAT pages on gains and losses on virtual currencies, and does not say which rule applies to any transaction or the amount of tax on it: see what we could not confirm.
  • The rules on virtual currencies quoted here come from the AEAT manual for Renta 2025 and from the AEAT help page for the Modelo 100 for Renta 2025, which are the tax agency's own reading and not the text of the law. Each line that rests on them says so and gives the page date.
  • Each BOE article is shown with the version date the BOE page gives it. The pages of the manual show the page date 17/marzo/2026 and the Modelo 100 help page shows 16/marzo/2026.

What the law and the AEAT manual cover

In short (our summary, not a translation): the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that the term «moneda virtual» is defined in art. 1.5 of Ley 10/2010 as a digital representation of value neither issued nor backed by a central bank or public authority, accepted as a means of exchange and able to be transferred, stored or traded electronically; that Directive (UE) 2015/849 has been amended by Regulation (UE) 2023/1113 to remove the definition of virtual currencies and bring in the wider term «criptoactivos», applicable from 30 December 2024, and that the concept of criptoactivo is defined in Regulation (UE) 2023/1114 (MiCA); and that, for tax purposes, virtual currencies are intangible assets counted by units or fractions of units that are not legal tender, and the different types of virtual currency are different assets. This page does not say which asset any person holds is a virtual currency or a criptoactivo, or whether the Spanish tax texts will adopt the new term.

Official text (Spanish), What the law and the AEAT manual cover

The AEAT's Manual práctico de Renta 2025, chapter on gains and losses, page «Concepto» of the section on virtual currencies, says, in its first paragraph:

“Respecto a las criptomonedas o monedas virtuales, el apartado 5 del artículo 1 de la Ley 10/2010, de 28 de abril, de prevención del blanqueo de capitales y de la financiación del terrorismo (BOE de 29 de abril), introducido con ocasión de la transposición de la Directiva (UE) 2018/843 del Parlamento Europeo y del Consejo, de 30 de mayo de 2018, define las mismas del siguiente modo: “5. Se entenderá por moneda virtual aquella representación digital de valor no emitida ni garantizada por un banco central o autoridad pública, no necesariamente asociada a una moneda legalmente establecida y que no posee estatuto jurídico de moneda o dinero, pero que es aceptada como medio de cambio y puede ser transferida, almacenada o negociada electrónicamente."” (AEAT, Manual práctico de Renta 2025, «Concepto» (monedas virtuales), definition)
Página actualizada: 17/marzo/2026; read 24 October 2026

It says, in its second paragraph:

“La Directiva (UE) 2018/843 del Parlamento Europeo y del Consejo, de 30 de mayo de 2018, modificó la Directiva (UE) 2015/849, para añadir la definición legal de “moneda virtual”, incorporada por la citada Ley 10/2010. No obstante, debe tenerse en cuenta que la Directiva (UE) 2015/849 ha sido recientemente modificada por el Reglamento (UE) 2023/1113, de 31 de mayo, para eliminar la definición de monedas virtuales e incorporar el término mucho más amplio de “criptoactivos“ que abarca distintos tipos de activos virtuales, entre los cuales se encontrarían las “criptomonedas”, si bien dicho Reglamento será aplicable a partir de 30 de diciembre de 2024. Por su parte, el concepto de criptoactivo se define en el Reglamento (UE) 2023/1114 (MiCA).” (AEAT, Manual práctico de Renta 2025, «Concepto» (monedas virtuales), the term «criptoactivos»)
Página actualizada: 17/marzo/2026; read 24 October 2026

It says, in its third and fourth paragraphs:

“Teniendo en cuenta esta definición las monedas virtuales ("criptomonedas") se consideran, a efectos fiscales, como bienes inmateriales, computables por unidades o fracciones de unidades, que no son moneda de curso legal, que pueden ser intercambiados por otros bienes, incluyendo otras monedas virtuales, derechos o servicios, si se aceptan por la persona o entidad que transmite el bien o derecho o presta el servicio, y que pueden adquirirse o transmitirse generalmente a cambio de moneda de curso legal. Atendiendo a que cada moneda virtual tiene su origen en un protocolo informático específico, distinto ámbito de aceptación, distinta liquidez, valor y denominación, los distintos tipos de monedas virtuales son bienes diferentes.” (AEAT, Manual práctico de Renta 2025, «Concepto» (monedas virtuales), tax nature)
Página actualizada: 17/marzo/2026; read 24 October 2026

The articles of the law quoted on this page (arts. 14, 33, 35, 37, 46 and 49) do not mention virtual currencies. In the consolidated text of the law read on 24 October 2026 the term «monedas virtuales» appears only in the disposición adicional decimotercera, apartados 6 and 7, on information duties of providers. How the rules apply to a virtual currency is stated on this page by the AEAT manual, which is the tax agency's own reading and not the text of the law.

Selling a virtual currency for legal tender

In short (our summary, not a translation): the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that individuals who are taxpayers of the IRPF may buy and sell virtual currencies and that, when the operations are not carried out within an economic activity, they may give rise to a gain or loss equal to the difference between the transmission value and the acquisition value; and that the sale of virtual currencies for euros or other legal tender, made outside an economic activity, gives rise to a gain or loss whose amount is that difference. This page does not say whether any operation of any person is within an economic activity, what the gain on any sale is or which declaration reports it.

Official text (Spanish), Selling a virtual currency for legal tender

The AEAT's Manual práctico de Renta 2025, page «Compra y venta de monedas virtuales: tributación en el IRPF del inversor», says, in its opening paragraph:

“Las personas físicas, contribuyentes del IRPF, pueden comprar y vender monedas virtuales y cuando dichas operaciones no se realicen en el ámbito de una actividad económica pueden dar lugar a una ganancia o pérdida patrimonial por la diferencia entre el valor de transmisión y el valor de adquisición.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», opening paragraph)
Página actualizada: 17/marzo/2026; read 24 October 2026

Its section a), «Cambio de monedas virtuales por moneda de curso legal», says, under «Ganancia o pérdida patrimonial», in its first paragraph:

“La venta de monedas virtuales a cambio de euros u otras monedas de curso legal, realizada al margen de una actividad económica, dará lugar a una ganancia o pérdida patrimonial cuyo importe vendrá determinado por la diferencia entre los respectivos valores de transmisión y de adquisición.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», a) sale for legal tender)
Página actualizada: 17/marzo/2026; read 24 October 2026

Swapping one virtual currency for another

In short (our summary, not a translation): art. 37.1.h of the law says that, where the alteration in the value of the assets comes from the swap of goods or rights, including the exchange of securities, the gain or loss is the difference between the acquisition value of the good or right given and the greater of the market value of what is given and the market value of what is received in exchange; the article does not use the words «moneda virtual». This page does not say what any swap of any person yields or which market value applies to it.

Official text (Spanish), Swapping one virtual currency for another

Art. 37 of the LIRPF (Ley 35/2006, the personal income tax law) says, in its lead-in to apartado 1 and in letra h), with the letras a) to g) and i) onwards and the rest of the article not quoted:

“Artículo 37. Normas específicas de valoración. 1. Cuando la alteración en el valor del patrimonio proceda: … h) De la permuta de bienes o derechos, incluido el canje de valores, la ganancia o pérdida patrimonial se determinará por la diferencia entre el valor de adquisición del bien o derecho que se cede y el mayor de los dos siguientes: - El valor de mercado del bien o derecho entregado. - El valor de mercado del bien o derecho que se recibe a cambio.” (LIRPF art. 37.1.h))
Texto consolidado: «Última actualización, publicada el 07/10/2026»; art. 37: «Última actualización, publicada el 28/11/2014, en vigor a partir del 01/01/2015»; read 24 October 2026

In short (our summary, not a translation): the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that the exchange of one virtual currency for a different one is a permuta, as they are different goods, in the sense of art. 1.538 of the Código Civil; that, made outside an economic activity, the exchange gives rise to income classed as a gain or loss; that the gain or loss is worked out with the specific valuation rule of the permuta in art. 37.1.h; that the acquisition value of the currencies obtained by permuta, for later transmissions, is the value taken as the transmission value in that permuta; and that the market value is the one that would correspond to the price agreed for a sale between independent parties at the time of the permuta. It also says that a loss on an exchange between different virtual currencies is to be accredited, at the request of the tax offices, by the means of proof generally admitted in law. This page does not say whether any exchange of any person is a permuta in the sense of the article, what market value applies to it or what proof a tax office accepts.

Official text (Spanish), Swapping one virtual currency for another

The AEAT's Manual práctico de Renta 2025, page «Compra y venta de monedas virtuales: tributación en el IRPF del inversor», says, in its section b), «Intercambio de una moneda virtual por otra diferente», under «Delimitación»:

“El intercambio de una moneda virtual por otra moneda virtual diferente constituye, en la medida en que son bienes diferentes, una permuta, conforme a la definición contenida en el artículo 1.538 del Código Civil, que dispone: “La permuta es un contrato por el cual cada uno de los contratantes se obliga a dar una cosa para recibir otra”.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», b) the swap)
Página actualizada: 17/marzo/2026; read 24 October 2026

Under «Ganancia o pérdida patrimonial» it says, in the paragraph that begins «En consecuencia»:

“En consecuencia, el intercambio entre monedas virtuales diferentes realizado por un contribuyente al margen de una actividad económica da lugar a la obtención de renta que se califica como ganancia o pérdida patrimonial.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», b) the swap as a gain or loss)
Página actualizada: 17/marzo/2026; read 24 October 2026

It says, in the paragraph on the valuation rule and in the paragraphs that follow it:

“Para cuantificar la ganancia o pérdida patrimonial se aplica la norma de valoración específica de la permuta prevista en el artículo 37.1.h) de la Ley del IRPF conforme a la cual la ganancia o pérdida patrimonial se determinará por la diferencia entre el valor de adquisición de la moneda virtual que se entrega y el mayor de los dos siguientes: El valor de mercado de la moneda virtual entregada. El valor de mercado del bien o derecho que se recibe a cambio. A efectos de posteriores transmisiones, el valor de adquisición de las monedas virtuales obtenidas mediante permuta será el valor que haya tenido en cuenta el contribuyente por aplicación de la regla prevista en el citado artículo 37.1.h) como valor de transmisión en dicha permuta. En lo que respecta al valor de mercado correspondiente a las monedas virtuales que se permutan, es el que correspondería al precio acordado para su venta entre sujetos independientes en el momento de la permuta.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», b) valuation of the swap)
Página actualizada: 17/marzo/2026; read 24 October 2026

Under «Imputación temporal de la ganancia» it says, in the paragraph on a loss:

“La pérdida patrimonial que pueda originarse en un intercambio entre monedas virtuales diferentes debe ser objeto de acreditación (a solicitud, en su caso, de los órganos de gestión e inspección tributaria) a través de los medios de prueba generalmente admitidos en Derecho.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», b) a loss on a swap)
Página actualizada: 17/marzo/2026; read 24 October 2026

How the gain is measured

In short (our summary, not a translation): art. 33.1 of the law says that gains and losses are the variations in the value of the taxpayer's assets shown by any alteration in their make-up, unless the law classes them as returns; art. 35 says that the acquisition value is the sum of the items it lists and that the transmission value is the real amount of the sale, less the expenses and taxes it names, with the market value prevailing where the amount paid is lower. This page does not say what the gain on any sale is or which expenses fall within the article for any operation.

Official text (Spanish), How the gain is measured

Art. 33 of the LIRPF says, in apartado 1, with the later apartados not quoted:

“Artículo 33. Concepto. 1. Son ganancias y pérdidas patrimoniales las variaciones en el valor del patrimonio del contribuyente que se pongan de manifiesto con ocasión de cualquier alteración en la composición de aquél, salvo que por esta Ley se califiquen como rendimientos.” (LIRPF art. 33.1)
Texto consolidado: «Última actualización, publicada el 07/10/2026»; art. 33: «Última actualización, publicada el 28/11/2014, en vigor a partir del 01/01/2015»; read 24 October 2026

Art. 35 says:

“Artículo 35. Transmisiones a título oneroso. 1. El valor de adquisición estará formado por la suma de: a) El importe real por el que dicha adquisición se hubiera efectuado. b) El coste de las inversiones y mejoras efectuadas en los bienes adquiridos y los gastos y tributos inherentes a la adquisición, excluidos los intereses, que hubieran sido satisfechos por el adquirente. En las condiciones que reglamentariamente se determinen, este valor se minorará en el importe de las amortizaciones. 2. El valor de transmisión será el importe real por el que la enajenación se hubiese efectuado. De este valor se deducirán los gastos y tributos a que se refiere la letra b) del apartado 1 en cuanto resulten satisfechos por el transmitente. Por importe real del valor de enajenación se tomará el efectivamente satisfecho, siempre que no resulte inferior al normal de mercado, en cuyo caso prevalecerá éste.” (LIRPF art. 35)
Texto consolidado: «Última actualización, publicada el 07/10/2026»; art. 35: «Última actualización, publicada el 28/11/2014, en vigor a partir del 01/01/2015»; read 24 October 2026

In short (our summary, not a translation): the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that, for a sale of virtual currencies, the gain or loss is worked out for each sale of each type of currency, as the difference between the euros obtained (the market value prevailing where the amount obtained is lower) and the acquisition cost in euros, taking into account the expenses and taxes of the operations that are directly related to them and borne by the taxpayer; and the AEAT help page for the Modelo 100 for Renta 2025 (page dated 16/marzo/2026) says that gains and losses are worked out independently for each sale of each type of currency. This page does not say what the gain on any sale is, which expenses are directly related to any operation or how an amount in another currency is converted.

Official text (Spanish), How the gain is measured

The AEAT's Manual práctico de Renta 2025, page «Compra y venta de monedas virtuales: tributación en el IRPF del inversor», section a), under «Ganancia o pérdida patrimonial», says, in its second paragraph:

“La ganancia o pérdida patrimonial deberá determinarse, para cada operación de venta de cada tipo de criptomoneda, por la diferencia que exista entre el importe de euros obtenidos en la venta (salvo que sea inferior a su valor normal de mercado en la fecha de la venta, en cuyo caso prevalecerá este último) y su importe de adquisición en euros, determinado, en su caso, aplicando el tipo de cambio a euros de la divisa vigente en la fecha de adquisición de la criptomoneda objeto de la venta, teniendo en cuenta los gastos y tributos que se originan por la realización de dichas operaciones, y a los que se refiere el artículo 35 de la Ley del IRPF, siempre que guarden relación directa con las mismas y sean satisfechos por el contribuyente.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», a) how the gain is measured)
Página actualizada: 17/marzo/2026; read 24 October 2026

The AEAT's help page for the Modelo 100 for Renta 2025 (apartado F2, «Ganancias y pérdidas patrimoniales derivadas de la transmisión o permuta de monedas virtuales») says:

“Las ganancias o pérdidas patrimoniales se calcularán de manera independiente para cada operación de venta de cada tipo de moneda.” (AEAT, ayuda del Modelo 100 Renta 2025, apartado F2, virtual currencies, each sale)
Página actualizada: 16/marzo/2026; read 24 October 2026

Which units count as sold

In short (our summary, not a translation): the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that, to the extent that the Ley del IRPF sets no different specific rule for identifying which homogeneous virtual currencies are taken as transmitted, in partial sales of currencies acquired at different times and values the ones transmitted are those acquired first (the FIFO criterion); and the AEAT help page for the Modelo 100 for Renta 2025 (page dated 16/marzo/2026) says that for homogeneous virtual currencies the ones transmitted are those acquired first even if the acquisitions and transmissions were made at different casas de cambio. This page does not say which units of a virtual currency any person has transmitted or what the gain on them is.

Official text (Spanish), Which units count as sold

The AEAT's Manual práctico de Renta 2025, page «Compra y venta de monedas virtuales: tributación en el IRPF del inversor», section a), under «Identificación de las monedas transmitidas», says, in its second paragraph:

“A efectos de determinar la correspondiente ganancia o pérdida patrimonial y en la medida en que la Ley del IRPF no establece una regla específica diferente para identificar, en el caso de monedas virtuales homogéneas (por ejemplo, el bitcoin), las que se entienden transmitidas, debe considerarse que en caso de efectuarse ventas parciales de monedas virtuales que hubieran sido adquiridas en diferentes momentos y a diferentes valores, las que se transmiten son las adquiridas en primer lugar (criterio FIFO).” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», a) identification of the units sold)
Página actualizada: 17/marzo/2026; read 24 October 2026

The AEAT's help page for the Modelo 100 for Renta 2025 (apartado F2) says:

“En el caso de monedas virtuales homogéneas, si se efectúan ventas parciales en diferentes momentos se considerara que las que se transmiten son las adquiridas en primer lugar (aunque las adquisiciones y transmisiones se hubiesen realizado en diferentes casas de cambio).” (AEAT, ayuda del Modelo 100 Renta 2025, apartado F2, virtual currencies, homogeneous currencies)
Página actualizada: 16/marzo/2026; read 24 October 2026

In short (our summary, not a translation): art. 37.2 of the law says that, for the cases in letras a), b) y c) of the apartado before it, when homogeneous securities exist those transmitted by the taxpayer are taken to be the ones acquired first; its second sentence gives the seniority of fully released shares. The article names letras a), b) y c) only; the swap rule of art. 37.1.h is in letra h). This page does not say whether art. 37.2 reaches a virtual currency.

Official text (Spanish), Which units count as sold

Art. 37, apartado 2, of the LIRPF says, with apartado 3 not quoted:

“2. A efectos de lo dispuesto en las letras a), b) y c) del apartado anterior, cuando existan valores homogéneos se considerará que los transmitidos por el contribuyente son aquéllos que adquirió en primer lugar. Cuando se trate de acciones totalmente liberadas, se considerará como antigüedad de las mismas la que corresponda a las acciones de las cuales procedan.” (LIRPF art. 37.2)
Texto consolidado: «Última actualización, publicada el 07/10/2026»; art. 37: «Última actualización, publicada el 28/11/2014, en vigor a partir del 01/01/2015»; read 24 October 2026

When a gain arises

In short (our summary, not a translation): art. 14.1.c of the law says that gains and losses are allocated to the tax year in which the alteration of the assets takes place; the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that, for a sale of virtual currencies, the allocation under art. 14 occurs when the taxpayer delivers the currencies under the sale contract, whatever the time the price is received, and that the gain or loss is allocated to the tax year of that delivery. This page does not say in which tax year any gain arises or how a sale paid in instalments is treated.

Official text (Spanish), When a gain arises

Art. 14 of the LIRPF says, in its lead-in to the general rule and in letra c), with the letras a) and b) and the rest of the article not quoted:

“Artículo 14. Imputación temporal. 1. Regla general. Los ingresos y gastos que determinan la renta a incluir en la base del impuesto se imputarán al período impositivo que corresponda, de acuerdo con los siguientes criterios: … c) Las ganancias y pérdidas patrimoniales se imputarán al período impositivo en que tenga lugar la alteración patrimonial.” (LIRPF art. 14.1.c))
Texto consolidado: «Última actualización, publicada el 07/10/2026»; art. 14: «Última actualización, publicada el 22/12/2022, en vigor a partir del 01/01/2023»; read 24 October 2026

The AEAT's Manual práctico de Renta 2025, page «Compra y venta de monedas virtuales: tributación en el IRPF del inversor», section a), under «Imputación temporal de la ganancia o pérdida patrimonial», says:

“De acuerdo con el artículo 14 de la Ley del IRPF, se producirá en el momento en que se proceda a la entrega de las monedas virtuales por el contribuyente en virtud del contrato de compraventa, con independencia del momento en que se perciba el precio de la venta, debiendo, por tanto, imputarse la ganancia o pérdida patrimonial producida al período impositivo en que se haya realizado dicha entrega.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», a) timing)
Página actualizada: 17/marzo/2026; read 24 October 2026

Savings income and the offsetting of losses

In short (our summary, not a translation): the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that the gains or losses shown by transfers of virtual currencies for money are savings income under art. 46.b and are integrated and offset in the savings base in the form and within the limits of art. 49. This page does not say whether any person has a gain or loss of that kind.

Official text (Spanish), Savings income and the offsetting of losses

The AEAT's Manual práctico de Renta 2025, page «Compra y venta de monedas virtuales: tributación en el IRPF del inversor», section a), under «Clase de renta», says, in its first paragraph:

“El importe de las ganancias o pérdidas patrimoniales que se pongan de manifiesto en las transmisiones de las monedas virtuales a cambio de dinero, constituyen renta del ahorro conforme a lo previsto en el artículo 46. b) de la Ley del IRPF y se integran y compensan en la base imponible del ahorro en la forma y con los límites establecidos en el artículo 49 de la misma Ley.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», a) class of income)
Página actualizada: 17/marzo/2026; read 24 October 2026

In short (our summary, not a translation): art. 46 of the law says that the savings income includes the gains and losses shown by transfers of assets; art. 49 words how the savings base is made up of two balances, each integrated and offset within itself in the period, how a negative result of one is offset against the positive balance of the other and how a negative balance left over is carried to later years, all within the limits and periods the quote gives. This page states no limit, no period and no scale, and does not say whether any person has a loss to offset or how any loss is used.

Official text (Spanish), Savings income and the offsetting of losses

Art. 46 of the LIRPF says:

“Artículo 46. Renta del ahorro. Constituyen la renta del ahorro: a) Los rendimientos del capital mobiliario previstos en los apartados 1, 2 y 3 del artículo 25 de esta Ley. No obstante, formarán parte de la renta general los rendimientos del capital mobiliario previstos en el apartado 2 del artículo 25 de esta Ley correspondientes al exceso del importe de los capitales propios cedidos a una entidad vinculada respecto del resultado de multiplicar por tres los fondos propios, en la parte que corresponda a la participación del contribuyente, de esta última. A efectos de computar dicho exceso, se tendrá en consideración el importe de los fondos propios de la entidad vinculada reflejados en el balance correspondiente al último ejercicio cerrado con anterioridad a la fecha de devengo del Impuesto y el porcentaje de participación del contribuyente existente en esta fecha. En los supuestos en los que la vinculación no se defina en función de la relación socios o partícipes-entidad, el porcentaje de participación a considerar será el 25 por ciento. b) Las ganancias y pérdidas patrimoniales que se pongan de manifiesto con ocasión de transmisiones de elementos patrimoniales.” (LIRPF art. 46)
Texto consolidado: «Última actualización, publicada el 07/10/2026»; art. 46: «Última actualización, publicada el 28/11/2014, en vigor a partir del 01/01/2015»; read 24 October 2026

Art. 49 says, in apartado 1 (letras a) and b)) and apartado 2:

“Artículo 49. Integración y compensación de rentas en la base imponible del ahorro. 1. La base imponible del ahorro estará constituida por el saldo positivo de sumar los siguientes saldos: a) El saldo positivo resultante de integrar y compensar, exclusivamente entre sí, en cada período impositivo, los rendimientos a que se refiere el artículo 46 de esta Ley. Si el resultado de la integración y compensación a que se refiere este párrafo arrojase saldo negativo, su importe se compensará con el saldo positivo de las rentas previstas en la letra b) de este apartado, obtenido en el mismo período impositivo, con el límite del 25 por ciento de dicho saldo positivo. Si tras dicha compensación quedase saldo negativo, su importe se compensará en los cuatro años siguientes en el mismo orden establecido en los párrafos anteriores. b) El saldo positivo resultante de integrar y compensar, exclusivamente entre sí, en cada período impositivo, las ganancias y pérdidas patrimoniales obtenidas en el mismo a que se refiere el artículo 46 de esta Ley. Si el resultado de la integración y compensación a que se refiere este párrafo arrojase saldo negativo, su importe se compensará con el saldo positivo de las rentas previstas en la letra a) de este apartado, obtenido en el mismo período impositivo, con el límite del 25 por ciento de dicho saldo positivo. Si tras dicha compensación quedase saldo negativo, su importe se compensará en los cuatro años siguientes en el mismo orden establecido en los párrafos anteriores. 2. Las compensaciones previstas en el apartado anterior deberán efectuarse en la cuantía máxima que permita cada uno de los ejercicios siguientes y sin que puedan practicarse fuera del plazo a que se refiere el apartado anterior mediante la acumulación a rentas negativas de ejercicios posteriores.” (LIRPF art. 49)
Texto consolidado: «Última actualización, publicada el 07/10/2026»; art. 49: «Última actualización, publicada el 28/11/2014, en vigor a partir del 01/01/2015»; read 24 October 2026

For the scale of the savings base and the other texts on offsetting, see our guide to tax on shares, dividends and gains; this page restates none of its scale or limits.

A platform that fails or does not return a deposit

In short (our summary, not a translation): the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that, where a platform fails or does not return deposited currencies, the amount of a credit not returned at its due date is not automatically a patrimonial loss, as the creditor retains the right to the credit, and that the special rule for allocating losses on credits not collected, which it names as art. 14.2.k, applies; and that, because such a loss was not shown by a transfer of assets, it forms part of the «renta general» and goes into the general tax base (arts. 45 and 48, as the page names them). This page does not say that any loss has arisen, in which year, or what the text of those articles says.

Official text (Spanish), A platform that fails or does not return a deposit

The AEAT's Manual práctico de Renta 2025, page «Compra y venta de monedas virtuales: tributación en el IRPF del inversor», says, in its section c), with the heading, the line «Normativa» and the first paragraph:

“c) Pérdidas patrimoniales. Por no devolución de las monedas depositadas o por quiebra de la plataforma de compraventa de monedas virtuales Normativa: Arts. 14.2.k) y 45 Ley IRPF En estos casos, el importe de un crédito no devuelto a su vencimiento no constituye de forma automática una pérdida patrimonial, al mantener el acreedor su derecho de crédito, debiendo acudir a la regla especial de imputación temporal prevista en el artículo 14.2.k) de la Ley del IRPF para estos supuestos de créditos no cobrados.” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», c) a platform that fails or does not return a deposit)
Página actualizada: 17/marzo/2026; read 24 October 2026

It says, in the same section, under «Clase de renta»:

“Al tratarse de una pérdida patrimonial que no se ha puesto de manifiesto con ocasión de transmisiones de elementos patrimoniales, formará parte de la renta general, debiendo integrarse en la base imponible general del IRPF (artículos 45 y 48 de la Ley del IRPF).” (AEAT, Manual práctico de Renta 2025, «Compra y venta de monedas virtuales», c) class of income)
Página actualizada: 17/marzo/2026; read 24 October 2026

Reporting: the duties of providers and the Modelo 100 section

In short (our summary, not a translation): the law, in apartados 6 and 7 of its disposición adicional decimotercera, says that the persons and entities it describes that provide services to safeguard private cryptographic keys on behalf of third parties, or to hold, store and transfer virtual currencies, are obliged to supply the tax administration with information on all the virtual currencies they hold in custody, with the balances and the identification of holders, authorised persons and beneficiaries, and that those that provide exchange services between virtual currencies and legal tender or between virtual currencies, or intermediate in them, are obliged to report the operations of acquisition, transmission, permuta and transfer, with the details the quote lists. The BOE records that apartados 6 and 7 were added by art. 3.6 of Ley 11/2021. These are duties of the providers. This page does not say whether any provider reports any holding or operation of any person.

Official text (Spanish), Reporting: the duties of providers and the Modelo 100 section

The disposición adicional decimotercera of the LIRPF says, in apartado 6, with the other apartados not quoted:

“6. Las personas y entidades residentes en España y los establecimientos permanentes en territorio español de personas o entidades residentes en el extranjero, que proporcionen servicios para salvaguardar claves criptográficas privadas en nombre de terceros, para mantener, almacenar y transferir monedas virtuales, ya se preste dicho servicio con carácter principal o en conexión con otra actividad, vendrán obligadas a suministrar a la Administración Tributaria, en los términos que reglamentariamente se establezcan, información sobre la totalidad de las monedas virtuales que mantengan custodiadas. Este suministro comprenderá información sobre saldos en cada moneda virtual diferente y, en su caso, en dinero de curso legal, así como la identificación de los titulares, autorizados o beneficiarios de dichos saldos.” (LIRPF disposición adicional 13, apartado 6)
Texto consolidado: «Última actualización, publicada el 07/10/2026»; disposición adicional decimotercera: «Última actualización, publicada el 15/06/2022, en vigor a partir del 16/06/2022»; apartados 6 and 7 added by art. 3.6 of Ley 11/2021, de 9 de julio (BOE-A-2021-11473), as the BOE note on the provision records; read 24 October 2026

It says, in the first paragraph of apartado 7, with the second paragraph, on initial offers, not quoted:

“7. Las personas y entidades residentes en España y los establecimientos permanentes en territorio español de personas o entidades residentes en el extranjero, que proporcionen servicios de cambio entre monedas virtuales y dinero de curso legal o entre diferentes monedas virtuales, o intermedien de cualquier forma en la realización de dichas operaciones, o proporcionen servicios para salvaguardar claves criptográficas privadas en nombre de terceros, para mantener, almacenar y transferir monedas virtuales, vendrán obligados, en los términos que reglamentariamente se establezcan, a comunicar a la Administración Tributaria las operaciones de adquisición, transmisión, permuta y transferencia, relativas a monedas virtuales, así como los cobros y pagos realizados en dichas monedas, en las que intervengan o medien, presentando relación nominal de sujetos intervinientes con indicación de su domicilio y número de identificación fiscal, clase y número de monedas virtuales, así como precio y fecha de la operación.” (LIRPF disposición adicional 13, apartado 7)
Texto consolidado: «Última actualización, publicada el 07/10/2026»; disposición adicional decimotercera: «Última actualización, publicada el 15/06/2022, en vigor a partir del 16/06/2022»; apartados 6 and 7 added by art. 3.6 of Ley 11/2021, de 9 de julio (BOE-A-2021-11473), as the BOE note on the provision records; read 24 October 2026

In short (our summary, not a translation): the AEAT manual for Renta 2025 (page dated 17/marzo/2026) says that Ley 11/2021 amended the Ley del IRPF to add certain information duties, developed in arts. 39 bis and 39 ter of the RGAT, which led to the approval of the models 172 and 173, and that the duty to report virtual currencies located abroad led to the approval of the modelo 721. The AEAT help page for the Modelo 100 for Renta 2025 (page dated 16/marzo/2026) names a section of the return for gains and losses from the transmission or permuta of virtual currencies. This page does not say who files the models 172 and 173, what they hold or when, or in which casilla of the return any gain goes.

Official text (Spanish), Reporting: the duties of providers and the Modelo 100 section

The AEAT's Manual práctico de Renta 2025, page «Concepto» of the section on virtual currencies, says, in the paragraph on the information duties and in its sentence on the Modelo 721, with the paragraph between them not quoted:

“Con el fin de mejorar el control tributario de los hechos imponibles que pueden derivarse de la tenencia de monedas virtuales y las operaciones que se pudieran realizar con las mismas, como se han descrito en el punto anterior, la Ley 11/2021, de 9 de julio, de medidas de prevención y lucha contra el fraude fiscal, modificó la Ley del IRPF para incorporar ciertas obligaciones de información que han sido objeto de desarrollo reglamentario en los artículos 39 bis y 39 ter del RGAT, dando lugar a la aprobación de los modelos 172 y 173. … Asimismo, se desarrolla la obligación de informar acerca de las monedas virtuales situadas en el extranjero, que ha determinado la aprobación del modelo 721.” (AEAT, Manual práctico de Renta 2025, «Concepto» (monedas virtuales), information duties)
Página actualizada: 17/marzo/2026; read 24 October 2026

The AEAT's help page for the Modelo 100 for Renta 2025 (apartado F2) says, under the section name and in its first sentence, with the rest of the paragraph not quoted:

“Ganancias y pérdidas patrimoniales derivadas de la transmisión o permuta de monedas virtuales Se incluirá las ganancias o pérdidas patrimoniales derivadas de la transmisión o permuta de monedas virtuales a cambio de dinero o de otras monedas virtuales. …” (AEAT, ayuda del Modelo 100 Renta 2025, apartado F2, virtual currencies, the section)
Página actualizada: 16/marzo/2026; read 24 October 2026

For the Modelo 721, see our guide to the Modelo 720 and 721; this page restates none of its limits or dates.

What we could not confirm

The list in the box at the end of this page, under “What we couldn't confirm officially”, holds what we could not confirm: the casilla numbers of the Modelo 100; staking, lending, airdrops, mining, NFTs and forks; spending a virtual currency on goods or services; how an amount in another currency or a stablecoin is converted to euros; consultas of the Dirección General de Tributos; the text of the articles that the AEAT manual names for a failed platform; the treatment for 2026; who files the models 172 and 173; whether Spain has adopted the EU rules on reporting by providers for the state tax administration; whether the Spanish tax texts will adopt «criptoactivos»; whether a given custodian is «situado en el extranjero»; which providers the information duties reach; the proof accepted for a loss on a swap; and the matters not read.

Questions to take to the AEAT

  • Ask whether the transaction at hand was made «al margen de una actividad económica».
  • Ask whether the conversion of a foreign currency or a stablecoin to euros follows a rule for the gain at hand.
  • Ask whether paying for goods or services with a virtual currency gives rise to a gain or a loss.
  • Ask whether income from a virtual currency that is neither a sale nor a swap is covered by a rule of the law or of the manual.
  • Ask whether the criterion for identifying the units sold that the manual words applies to the holding at hand.
  • Ask whether the market value used for the swap at hand is the one the manual describes.
  • Ask whether the means of proof at hand are accepted for the loss on the swap at hand.
  • Ask whether the loss at hand from a platform that failed is general income or savings income.
  • Ask whether the credit at hand has reached one of the cases of the special rule for credits not collected.
  • Ask whether the section of the return for virtual currencies takes the gain at hand and which casilla does.
  • Ask whether your crypto custodian is «situado en el extranjero».
  • Ask whether the pages quoted here are still the current ones.

See all our guides.

What we couldn't confirm officially
  • The casilla numbers of the Modelo 100 for gains and losses on virtual currencies: the AEAT help page we read for Renta 2025 prints none and no other AEAT page we read does, so this page gives none. unverified
  • Staking, lending, airdrops, mining, NFTs and forks: the AEAT pages we read on virtual currencies do not mention them, we read no consulta of the Dirección General de Tributos, and this page quotes no article of the law on them and says nothing either way. unverified
  • Spending a virtual currency on goods or services: the AEAT pages we read treat the sale for legal tender and the swap of one virtual currency for another, and give no rule for paying with a virtual currency; this page says nothing either way. unverified
  • How an amount in a currency other than the euro, or a stablecoin, is converted to euros when the gain or loss is worked out: the AEAT paragraph quoted in the section on how the gain is measured mentions the exchange rate of a foreign currency on the date of acquisition, and the pages we read say nothing on stablecoins; this page reads no further than that quote. unverified
  • Consultas of the Dirección General de Tributos on virtual currencies: none was read, because we could not read the official database, and none is cited or numbered on this page. unverified
  • The text of arts. 14.2.k, 45 and 48 of the LIRPF, which the AEAT manual names for a loss when a platform fails or does not return a deposit: not read and not quoted, so this page relays only what the AEAT page says. unverified
  • The treatment for income of 2026: the AEAT manual for that year is not published, so this page states nothing for 2026. unverified
  • Who files the models 172 and 173, what they hold and when: the AEAT page we quote says only that the information duties of the law led to them, and this page quotes no more. unverified
  • Whether Spain has adopted the rules of Directive (UE) 2023/2226 for the state tax administration: we found no text published in the BOE. unverified
  • Whether the Spanish tax texts will replace «monedas virtuales» with «criptoactivos»: the text of the LIRPF we read still says «monedas virtuales», and the AEAT page notes the change in EU rules. unverified
  • Whether a given custodian or platform is «situado en el extranjero» for the Modelo 721: this page does not rule on any, and points to our guide to the Modelo 720 and 721. unverified
  • Which providers the information duties of the disposición adicional decimotercera reach in a given case: the quotes describe them in general words and this page does not say whether any provider is covered. unverified
  • The proof a tax office accepts for a loss on a swap or for the market value used in a swap: the AEAT paragraphs quoted word it in general terms («medios de prueba generalmente admitidos en Derecho»), and this page says nothing further. unverified
  • Not read, and not covered: non-residents and the non-resident income tax, activity carried on as an economic activity, the wealth tax, the special regime for workers moving to Spain, and the foral territories (the foral law of Navarra, which the BOE publishes, was not read). unverified

Sources

General information, not legal, tax or financial advice. Rules change: check the official page, or ask a gestor or lawyer, before you act. How we check our sources · All guides