Which defi transactions trigger a taxable event
The decentralized finance world moves fast. Tax rules move slow. That gap creates real ambiguity for anyone using DeFi protocols. This page walks through common DeFi transactions and classifies each as taxable or non-taxable under current U.S. guidance.
Swaps are taxable disposals
Swapping one token for another is a taxable event. The IRS treats it as a sale of the original token, even though no fiat currency changed hands. You have a gain or loss equal to the fair market value of the token you received minus your cost basis in the token you gave up. This applies whether you swap on a DEX like PancakeSwap or through an aggregator.
LP deposits: it depends
Depositing tokens into a liquidity pool can be taxable. The key question is whether the pool creates a new, different token in exchange for your deposit. Many LPs issue LP tokens that represent your share. If the LP token is materially different from the deposited assets, you have swapped your tokens for something new - and that swap is a disposal.
The IRS has provided no clear guidance on LP tokens. Some tax professionals argue that depositing into a single-asset pool may not be a taxable event, while others maintain that any change in your economic position is a disposal. Conservative reporting treats LP deposits as taxable when the pool token changes the character of your investment.
Lending deposits are generally not taxable
Depositing tokens into a lending protocol is not a taxable event. You retain control of your assets - you have just loaned them out. No gain or loss is realized at the time of deposit. The same logic applies to staking: moving tokens to a staking contract is not a sale.
Interest earned from lending is taxable as ordinary income. You report it in the year you receive it. If interest is paid in a new token, the fair market value at receipt becomes your cost basis in that token. Timing can be tricky. Some protocols pay interest continuously. The general rule is you report income when you gain dominion over it.
Borrowing is not taxable
Taking out a loan in crypto is not a taxable event. You incur a liability, but you have not sold anything. The borrowed tokens are not income - they must be repaid. If you later sell those borrowed tokens, that sale triggers a taxable event, but the loan itself does not.
The cost basis problem for LP tokens
LP tokens create a cost basis puzzle. When you deposit two tokens, you receive a single LP token. Your cost basis is the sum of the cost bases of the two deposited tokens. But if you later withdraw only one token, how do you apportion the LP token's cost basis? The IRS offers no method. Some tax software treats it as a two-step process: first dispose of the LP token, then assign cost to the withdrawn asset. Others use a weighted average. There is no official answer.
The IRS silence on defi
The IRS has issued guidance on staking rewards and airdrops. It has said almost nothing about DeFi lending, borrowing, liquidity pools, or yield farming. In 2023, the IRS released proposed regulations for digital asset brokers, but those rules focus on reporting, not on what constitutes a taxable event. For DeFi, the question of "when" remains largely unanswered.
This silence creates risk. If the IRS eventually rules that many DeFi transactions are taxable, retroactive penalties could apply. Conservative reporting assumes the highest-risk classification: treat every swap-like transaction as a disposal.
Practical Recommendations
Track every transaction in a tax-reporting tool that supports DeFi. Record the fair market value in USD at the time of each event. For LP deposits, decide on a consistent method for cost basis allocation and document it. Keep records of all protocol interactions, including gas fees - those may be deductible.
If you are uncertain, consult a tax professional who understands DeFi. A tax professional may be worth the cost. The alternative is guessing, and the IRS does not reward guesses.
No one can predict future tax rulings. But you can document your decisions, apply a consistent method, and report conservatively. That is the only path that reduces your legal exposure.
Not financial advice. babybuilder.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.
Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.