GUIDE
DeFi Tax Guide
Complete guide to understanding and reporting taxes for decentralized finance (DeFi) activities including liquidity provision, yield farming, lending, and more.
What is DeFi and Why It Matters for Taxes
Decentralized Finance (DeFi) refers to financial services built on blockchain networks that operate without traditional intermediaries. Every DeFi transaction is typically a taxable event, including providing liquidity, earning yield, borrowing, lending, and swapping tokens. Understanding how to track and report these activities is crucial for tax compliance.
Liquidity Provision and LP Tokens
When you provide liquidity to a DeFi protocol, you receive LP (Liquidity Provider) tokens in exchange. This is a taxable event - you're disposing of your original tokens. When you remove liquidity, you dispose of the LP tokens, which is another taxable event. The value of LP tokens is based on the underlying assets, and you must track the cost basis of both the tokens you deposited and the LP tokens you received.
Yield Farming and Staking Rewards
Yield farming involves earning rewards (often in the form of tokens) for providing liquidity or staking. These rewards are typically treated as ordinary income at the time you receive them, based on their fair market value in your local currency. You must report this income even if you haven't sold the tokens yet. When you later sell these reward tokens, you'll have a capital gain or loss based on the difference between the sale price and the value when you received them.
Lending and Borrowing
Lending cryptocurrency to DeFi protocols is generally not a taxable event when you lend, but receiving interest payments is taxable income. When you borrow against your crypto, it's typically not a taxable event, but you may have tax implications if the value of your collateral changes. If you default on a loan and your collateral is liquidated, that's a disposal event that triggers capital gains or losses.
Token Swaps and DEX Transactions
Every token swap on a decentralized exchange (DEX) is a taxable event. You're disposing of one asset and acquiring another. You must calculate the gain or loss on the token you're selling, and establish a new cost basis for the token you're receiving. This applies to all swaps, regardless of whether you're using Uniswap, SushiSwap, Curve, or any other DEX.
Impermanent Loss and Tax Implications
Impermanent loss occurs when the price ratio of tokens in a liquidity pool changes compared to when you deposited them. For tax purposes, impermanent loss becomes "permanent" (realized) when you withdraw from the pool. This loss can offset capital gains, potentially reducing your tax liability. It's important to track the value of your LP position over time to accurately calculate realized losses.
Gas Fees and Transaction Costs
Gas fees paid in cryptocurrency (like ETH) for DeFi transactions are generally deductible as transaction costs. When you pay gas fees, you're disposing of the cryptocurrency used, which may create a small capital gain or loss. These fees can be added to your cost basis or deducted from proceeds, depending on your jurisdiction's rules.
Record Keeping for DeFi
Maintaining detailed records is essential for DeFi tax compliance. You should track: all deposits and withdrawals, LP token values, reward distributions, swap transactions, gas fees, and timestamps. Many DeFi protocols don't provide traditional statements, so you may need to use blockchain explorers and specialized tax software to reconstruct your transaction history.
Multi-Chain DeFi Activities
If you're active on multiple blockchains (Ethereum, BSC, Polygon, Arbitrum, etc.), each chain's transactions must be tracked separately. Cross-chain bridges create additional taxable events when you move assets between chains. The tax treatment may vary by jurisdiction, so consult with a tax professional familiar with crypto taxation.
Need More Help?
Our tax experts are here to assist you with your specific situation.