guest@tfb:~$ cat analysis/automatic bitcoin inheritance.md
guest@tfb: ~/analysis — less

Automatic bitcoin inheritance (timelocks, Miniscript): Tax analysis

Articles 4, 11 and 24 LISD · Articles 33.3.b) and 36 LIRPF · Articles 657 and 661 CC · V2432-25 · RG 3069/2024

Every holder of bitcoin in self-custody has to decide, at some point, how their bitcoin will reach their heirs. One of the solutions the technology offers today is a wallet with a built-in automatic inheritance scheme, that is, a wallet that, in addition to the holder’s ordinary spending path, incorporates an alternative path for the heir, which only opens if the holder stops moving the funds for a prolonged period. It is a legitimate solution, which avoids depending on third parties and relies on Bitcoin’s own code.

Spanish tax law does not specifically address this scheme, and there is no DGT doctrine or decision on it, so its treatment has to be built from the general rules of Inheritance and Gift Tax (ISD), personal income tax (IRPF) and civil law.

1. The technique, explained for tax advisers

Each bitcoin coin (technically, each UTXO, that is, each unspent output of a transaction) is protected, so to speak, by a set of conditions. A simple wallet has a single condition: a signature with one key. An advanced wallet may have several alternative conditions, each of which amounts to a spending path («the holder’s signature» or «the heir’s signature, after a certain time»), and meeting any one of them is enough to spend. Miniscript is the programming language that allows these conditions to be written in a structured and verifiable way.

A path may be closed by a timelock, either until a fixed date (absolute lock) or until the coin reaches a certain age since its confirmation on the chain (relative lock). In Miniscript, the relative lock is written as older(n), where n is a number of blocks, up to a maximum of 65,535 blocks, about 455 days or roughly fifteen months.

If the holder sends their funds to themselves (cycling), each new coin starts at age zero and the heir’s path closes again, so cycling once a year keeps it closed indefinitely. The lock works coin by coin: if only part of the funds is cycled, some coins may be open and others not.

The descriptor is the technical document that lists the paths, the public keys of each participant and the time periods. Without it, locating the funds requires reconstructing the policy exactly (which keys are involved, in what order, in which path and with what time period), which, even with all the keys at hand, may prove unworkable in practice.

In the usual setup, the holder generates the heir’s recovery phrase, adds it to the recovery path and gives the heir a kit with that phrase engraved in metal, the descriptor, instructions and a handover record sheet. The holder therefore knows the heir’s phrase.

With Taproot addresses, the most recent address format, a spend through the holder’s main path looks on the chain like that of a simple wallet, and the heir’s path remains hidden until the day the heir spends through it. With earlier address formats, every spend reveals the full script, including the heir’s path.

With these elements, the timeline of a simple automatic inheritance would be as follows:

Moment (from the last confirmation of each coin)Who can spendWhat is visible on the chain
From day 0 to roughly day 455Only the holderSpends that look like those of a simple Taproot wallet
The holder’s annual cyclingThe clock resets to zero for the cycled coinsOne more self-transfer
After about 455 days without cyclingThe holder, or the heir with their phraseNothing, until the heir spends; their path and the script of an advanced wallet are then revealed

The heir’s path opens because of the holder’s inactivity, not because of their death: it may open during the holder’s lifetime (because of a hospital stay, a long journey or simple oversight) or up to about fifteen months after death. That mismatch with the legal milestones, death and the six-month deadline for filing the ISD return, explains some of the tax questions that follow.

2. General rule: the tax accrues at the time of death

ISD accrues «on the day of the deceased’s death» (Article 24.1 LISD), a date that fixes the value of the bitcoin for inheritance purposes, the applicable regional rules and the start of the filing period. In the normal scenario, in which the holder keeps cycling until shortly before death, automatic inheritance alters none of these effects, since the rights pass from the moment of death (Articles 657 and 661 CC).

The heir will access the funds months later, often after the ordinary filing deadline. Since the assets are of deferred access, but not inaccessible, the zero-value argument, conceived for keys that never turn up, cannot be relied on, and there is no doctrine on a discount for temporary illiquidity. The need to pay the tax before being able to dispose of the bitcoin can in any case be met by applying for a deferral or instalment payment of the tax debt.

For Wealth Tax, the DGT has stated that locked tokens form part of their holder’s net worth «regardless of whether there is a contractual clause preventing their disposal» (V2432-25). By analogy, a timelock on the chain should not exclude the bitcoin from the deceased’s net worth, nor does the heir’s latent key bring it into the heir’s net worth while the holder is alive.

As regards IRPF, the capital gain accumulated by the deceased is not taxed (Article 33.3.b LIRPF) and the heir acquires at the value declared for ISD, capped at market value (Article 36 LIRPF).

Take a holder resident in Madrid, whose daughter is her sole heir, with 5.8 BTC held in an automatic-inheritance wallet whose secondary spending path, the daughter’s, carries an older(65535) timelock. Her last cycling is confirmed on 16 June 2025 and she dies on 15 March 2026, with bitcoin priced at €90,000. ISD accrues on the day of death, on a taxable base of €522,000, whereas the daughter’s spending path would open around 14 September 2026, one day before the ordinary six-month deadline for filing the ISD return expires, and comfortably within the extended period. Had the last cycling been confirmed on 20 January 2026, the heir’s spending path would not open until around 20 April 2027, after even the extended deadline (15 March 2027).

3. If the heir’s path opens after the ISD filing deadline: the Article 24.3 LISD argument

Article 24.3 LISD provides that any acquisition whose effectiveness «is suspended by the existence of a condition, a term, a fideicommissum or any other limitation» is deemed to take place on the day the limitation disappears. It could perhaps be argued that the timelock is «any other limitation» that defers the moment of accrual to the day the heir’s path opens.

In favour of that reading are the broad wording of the provision and the fact that the heir cannot actually dispose of the funds until then. Against it weigh other, stronger arguments: Article 24.3 refers to legal limitations on the acquisition, not to cryptographic obstacles to access; ownership and possession pass on death (Articles 657, 661 and 440 CC), and the timelock was created by the deceased themselves as a custody measure.

With accrual fixed at the date of death, it is advisable to file the self-assessment on time, even though the funds cannot be accessed. Defending deferred accrual under Article 24.3, without any doctrine to support it, means accepting the risk that the tax authorities will not accept it. Even so, the technical impossibility of accessing the funds is an objective fact, so in our view a late filing based on that reading of the provision should not be penalised (Article 179.2.d LGT), although it would attract the late-filing surcharge, which does not depend on fault (Article 27 LGT).

4. What happens if the heir’s path opens during the holder’s lifetime

If the heir’s path opens during the holder’s lifetime and the heir does not dispose of the funds, there is no transfer at all, since the mere possibility of disposing does not amount to an acquisition. A gift requires a donative intent and acceptance (Articles 618 and 623 CC), and neither is present; the holder keeps their own path, and there is no decrease in net worth.

That conclusion is reinforced because, in the usual setup, the holder knows the heir’s phrase and can cancel the heir’s control at any time by cycling or migrating the funds, so handing over a means of access that the holder can render ineffective at any time is not the same as handing over the thing within the meaning of the Civil Code. For the same reason, a spend through the heir’s path does not by itself prove that the heir made it, because the chain identifies the path used, not who signs.

If the path opens and the heir does dispose of the funds, the characterisation will depend on what can be proved, more than on the technique used:

CharacterisationWhen it fitsConsequences
GiftThe holder meant to transfer and the heir acceptedISD for the heir (gift category) accruing on the date of transfer; IRPF for the holder on the gain realised, and any loss not allowable
Management on the holder’s behalfThe heir spends to look after the holder or moves the funds to another of the holder’s walletsCannot be regarded as a gratuitous transfer
Appropriation without titleWithout the holder’s consent or benefitFalls outside the tax sphere; the asset remains the holder’s, with a claim for restitution

Without adequate documentation, the tax authorities may apply Article 4.1 LISD if they hold data, for instance a later deposit by the heir on a platform that assesses the originating address, and, if the holder dies within the following year, Article 11.1.a LISD presumes that assets belonging to the deceased up to one year before death form part of the estate. Both presumptions can be rebutted.

5. Several heirs with a single key

The usual setups provide for a single heir key. Where several people are called to the inheritance, the allocation imposed by the technique may not match the one set by the title of succession.

If the deceased kept control until death, which would be the usual case when the relative lock is triggered by inactivity, the bitcoin should form part of the estate and not be characterised as a gift: it enters the estate at its value on the date of death and is divided according to the will or the law. Whoever holds the key would possess those assets on behalf of all (Article 440 CC) and, for ISD, each heir would be taxed on what they acquire under their title, not according to who controls the keys.

The heir who disposes of the funds through the recovery path does not acquire more than their share. Their act may be read as tacit acceptance of the inheritance, since the TEAC describes moving assets of the deceased into one’s own estate as a «genuine act of disposal» (RG 3069/2024, of 30 October 2025), and, if they conceal it, they lose the right to renounce the inheritance (Article 1002 CC; Article 461-8 CCCat).

6. The evidence a descriptor leaves behind

The descriptor of an automatic-inheritance policy is the best evidence that a set of addresses forms part of a single wallet, and the series of cycling transactions shows continuous control. But it also contains the heir’s public key, so the tax authorities could read it as an indication of joint ownership or of a lifetime handover, with the consequence of a gift (Article 4 LISD), or, conversely, attribute the coins to the heir as an unjustified capital gain. It therefore needs documentary context.

It is advisable, then, to document who generated the keys, with a written explanation that the holder created and knew the heir’s phrase; where the kit was and since when, with the handover record sheet; who cycled through the main path; and whether the heir ever spent through the recovery path during the holder’s lifetime, which the chain would reveal.

In addition, with annual cycling no balance will be more than about fifteen months old on the chain, so long-standing ownership will have to be reconstructed from the descriptors and the migration transactions, as we explain in the analysis on how ownership of bitcoin is proved.

7. Risks and documentation

With a single heir and regular cycling, automatic inheritance is taxed like an ordinary inheritance. The risks arise from the mismatch between the technique and the law (the heir’s path opening after the ISD filing deadline or during the deceased’s lifetime, or a single key for several heirs) and are mitigated with documentation: a will that identifies the bitcoin and a written explanation of how the keys and descriptors were generated. On access planning in general, see the analysis on inheritance and gifts of crypto-assets.

DGT rulings — cited rulings
  • V2432-25, of 11 December 2025 — locked tokens are reported for Wealth Tax even if a contractual clause prevents their disposal.

Applicable legislation: Articles 4, 11.1.a) and 24 LISD; Articles 33.3.b) and 36 LIRPF; Articles 27 and 179.2.d) LGT; Articles 440, 618, 623, 657, 661 and 1002 CC; Article 461-8 CCCat.

Case law and administrative decisions cited
  • TEAC, decision of 30 October 2025, RG 3069/2024 — transferring assets of the deceased into the estate of the person called to inherit is an act of disposal that implies tacit acceptance.
There is no administrative doctrine or case law on automatic bitcoin inheritance. Accrual at the time of death and the absence of any lifetime transfer while the holder keeps cycling follow from the general ISD rules. Deferred accrual under Article 24.3 LISD is a possible reading of the provision, with stronger arguments against it.