IndexCrypto
Educational only. Not financial, tax or legal advice, and nothing here is a recommendation to buy anything.

DeFi Tax: What Counts as a Taxable Event

Learn why DeFi transactions create multiple taxable events, how liquidity pools and yield farming are taxed, and what to check for your jurisdiction.

DeFi (decentralized finance) is the most complex area of cryptocurrency taxation. A single interaction — like adding tokens to a liquidity pool — can trigger multiple taxable events simultaneously, and some of them are not obvious. This guide explains what those events are, where the tax treatment is genuinely unsettled, and what you need to check for your own jurisdiction.

Tax treatment of DeFi varies enormously by country. Some jurisdictions treat every token transfer as a disposal; others have specific rules for lending and staking. No single answer applies everywhere. You must check how your country classifies DeFi activities: as property, as income, or as something else entirely. The guidance below describes the common principles, but it is not legal advice.

Why DeFi Is the Hardest Part of Crypto Tax

A traditional crypto trade is simple: you sell one asset for another, and the gain or loss is calculated from the cost basis and the fair market value at the time. DeFi breaks that simplicity because a single transaction can involve multiple assets, several transfers, and a change in the nature of your holdings.

Consider a typical yield farming position. You provide two tokens to a liquidity pool, receive LP tokens in return, and then stake those LP tokens to earn rewards. Each step can be a taxable event:

  • Providing liquidity: You transfer tokens to a smart contract. In many jurisdictions, this is treated as a disposal of those tokens, because you have exchanged them for LP tokens of uncertain value. The fair market value of the LP tokens at that moment is your proceeds.
  • Receiving LP tokens: The LP tokens themselves are a new asset. Their cost basis is the value you received them at. When you later redeem them, you may have a gain or loss.
  • Earning rewards: Rewards in the form of new tokens are generally income at the time you receive them, valued at fair market value. This applies to yield farming and staking rewards.
  • Withdrawing liquidity: When you redeem LP tokens for the underlying assets, you are disposing of the LP tokens. The value of the assets you receive is your proceeds.

Each of these events may need to be reported separately, even if they happen within seconds in a single transaction. The result is that a single DeFi interaction can produce several taxable events, each with its own gain or loss.

Liquidity Pool Tax: The LP Token Question

The most contentious area is the treatment of LP tokens. When you deposit tokens into a liquidity pool, you receive LP tokens that represent your share of the pool. The question is whether this is a taxable disposal of your original tokens.

Some tax authorities treat this as a like-kind exchange, meaning no gain or loss is recognized until you exit the pool. Others treat it as a regular disposal, because the LP token is a different asset with a different value. The position varies by country and is not always clear even within a single jurisdiction.

If your country treats providing liquidity as a disposal, you must calculate the gain or loss on your original tokens at the moment you deposit them. The proceeds are the fair market value of the LP tokens you receive. This can be difficult to determine because LP tokens are not always actively traded, and their value fluctuates with the pool’s composition.

If your country does not treat it as a disposal, you may still face a taxable event when you withdraw, because the assets you receive are different from what you deposited. The pool’s composition changes due to trading fees and impermanent loss, so the value of your withdrawal may differ from your original deposit.

Yield Farming Taxes: Rewards as Income

Yield farming rewards are generally treated as income at the time you receive them. This means you owe tax on the fair market value of the reward tokens when they hit your wallet. Your cost basis in those tokens is that same value, so when you later sell them, you only pay tax on the gain from that point.

The complication is that rewards are often paid continuously, sometimes every block. This creates a large number of small income events, each requiring valuation. Some tax software can handle this automatically, but you need to ensure it captures all reward payments.

In some jurisdictions, staking rewards are treated as income only when you sell them, or as capital gains when you dispose of them. For US taxpayers this is no longer unsettled. Revenue Ruling 2023-14, issued in July 2023, holds that a cash-method taxpayer who stakes and receives rewards includes their fair market value in gross income in the year the taxpayer gains dominion and control over them — in practice, when the rewards become available to withdraw or transfer. That value then becomes the basis for a later disposal. The case often cited as evidence of conflict, Jarrett, was dismissed as moot after the government offered the refund rather than defended the position; no court has held against the ruling. Other countries do differ, and some tax only on disposal, so check the guidance where you file. What remains genuinely unsettled in DeFi is elsewhere: whether depositing into a liquidity pool is itself a disposal, and how LP tokens and wrapped assets are treated. Those are the questions worth flagging as open — staking is not one of them any more.

Lending Crypto: Borrowing and Lending

Lending crypto involves transferring tokens to a smart contract or another user and earning interest. The tax treatment depends on whether you are the lender or the borrower.

  • Lender: When you lend tokens, you may be treated as disposing of them, because you no longer have control. The interest you earn is income. When the loan is repaid, you may have a gain or loss if the value of the tokens has changed.
  • Borrower: When you borrow crypto, you receive tokens but also incur a debt. The loan itself is not taxable, but if you sell the borrowed tokens, that is a disposal. When you repay the loan, you may have a gain or loss if the value of the tokens you repay differs from the value when you borrowed them.

Some jurisdictions treat lending as a loan for tax purposes, meaning no disposal occurs until the borrower defaults. Others treat it as a transfer of ownership, making the initial transfer a taxable event. This is another area where the rules differ significantly.

Comparison Table: DeFi Activities and Tax Treatment

ActivityCommon TreatmentWhen It Does NOT Apply
Providing liquidityDisposal of deposited tokensIf jurisdiction treats as like-kind exchange
Receiving LP tokensNew asset with cost basisIf LP tokens are not recognized as separate asset
Earning yield farming rewardsIncome at receiptIf jurisdiction taxes rewards only on sale
Staking rewardsIncome at receiptIf jurisdiction treats as capital gain on sale
Lending cryptoDisposal of lent tokensIf jurisdiction treats as loan without disposal
Borrowing cryptoNo immediate taxIf loan is treated as taxable income
Withdrawing liquidityDisposal of LP tokensIf LP tokens were not taxed on receipt
Swapping tokensDisposal of both tokensIf swap is treated as like-kind exchange

What People Get Wrong About DeFi Tax

The most common mistake is assuming that a DeFi transaction is a single event. People see “Add Liquidity” and think it is one action, but it is often three or four separate taxable events. This is a natural mistake because the interface presents it as one step, and the user is focused on the yield, not the tax.

Another common error is ignoring the value of LP tokens when they are received. If providing liquidity is a disposal, you need to know the fair market value of the LP tokens at that moment. Many people skip this because LP tokens are not easily priced, but the tax authority will still expect a value.

A third mistake is treating all rewards as the same. Yield farming rewards, staking rewards, and lending interest may have different tax treatments. In some countries, staking rewards are taxed as income when received, but in others they are taxed only when sold. Assuming one rule applies to all can lead to underreporting or overreporting.

These mistakes are natural because DeFi is new and tax laws have not caught up. The ambiguity is real, not a lack of research. That is why it is essential to keep detailed records and check the specific rules in your jurisdiction.

What to Check for Your Jurisdiction

Because tax treatment varies so much, you need to verify several things for your own country:

  • Is providing liquidity a taxable disposal? Look for guidance on whether LP tokens are considered a new asset.
  • How are rewards taxed? Determine if they are income at receipt or capital gains at sale.
  • Are there special rules for DeFi? Some countries have issued specific guidance for DeFi, while others have not.
  • What is the tax rate? Rates differ by country and by type of income (ordinary vs. capital gains).
  • Are there reporting requirements? Some jurisdictions require reporting of foreign accounts or digital assets.

If your country has not issued clear guidance, you must make a reasonable interpretation and document it. Consider consulting a tax professional who specializes in crypto.

Record-Keeping for DeFi

Accurate record-keeping is essential. For every DeFi transaction, record:

  • The date and time of the transaction
  • The wallet addresses involved
  • The type of transaction (deposit, withdrawal, reward, etc.)
  • The fair market value of each asset at the time of the transaction
  • The cost basis of the assets
  • Any fees paid

Many DeFi platforms provide transaction histories, but they may not include fair market values. You may need to use a crypto tax software that can pull data from the blockchain and apply valuation methods.

Why one DeFi interaction can be several taxable events

DeFi tax is complex because a single interaction can be multiple taxable events, and the treatment of LP tokens and rewards is often unclear. The rules differ by country, and some areas are genuinely unsettled. The best approach is to understand the common principles, keep detailed records, and check the specific guidance in your jurisdiction. When in doubt, seek professional advice.

Common questions

Is providing liquidity to a DeFi pool a taxable event?

In many jurisdictions, yes. When you deposit tokens and receive LP tokens, it may be treated as a disposal of the original tokens. However, some countries treat it as a like-kind exchange with no immediate tax. Check your local rules.

How are yield farming rewards taxed?

Yield farming rewards are generally taxed as income at the time you receive them, based on their fair market value. Your cost basis in those tokens is that value, so you only pay capital gains tax on any increase when you sell. Some jurisdictions may tax rewards only on sale, so verify your country's rules.

Do I have to pay tax on staking rewards?

Staking rewards are typically taxed as income when received. In the United States this is settled: Revenue Ruling 2023-14 requires a cash-method taxpayer to include the fair market value in income in the year they gain dominion and control over the rewards. Some other countries instead tax them only on disposal, so check the rules in your own jurisdiction.

What happens if I borrow crypto? Do I owe tax?

Borrowing crypto is usually not a taxable event because you incur a debt. However, if you sell the borrowed tokens, that is a disposal. When you repay the loan, you may have a gain or loss if the value of the tokens has changed. Some jurisdictions treat the loan itself as income, so check your local rules.

Can I use crypto tax software for DeFi transactions?

Yes, many crypto tax software tools can import DeFi transactions from the blockchain and calculate gains and losses. However, they may not handle all DeFi protocols correctly, especially for LP tokens and rewards. You should review the software's output and ensure it captures all events.

Read next