Crypto Tax Guide: How to Report Your DeFi Gains and Losses
If you’ve been active in DeFi — swapping tokens, earning staking rewards, or providing liquidity — you probably have taxable events to report. Most people don’t realize how many transactions trigger a tax obligation until they go to file. This crypto tax guide walks you through what you actually owe, what records you need, and how to use software to do the heavy lifting.
(Disclaimer: This is general educational information, not tax advice. Consult a CPA or tax professional for your specific situation.)
Why Crypto Tax Reporting Is Different From Stocks
The IRS treats cryptocurrency as property, not currency. That means every time you dispose of crypto — swap it, sell it, spend it — you trigger a capital gains event. Here’s what catches most DeFi users off guard:
Swaps are taxable. Trading ETH for USDC on Uniswap is the same as selling ETH. You recognize gain or loss at the moment of the swap, calculated as the difference between your cost basis (what you paid) and the fair market value at the time of the trade.
Staking rewards are income. When you earn tokens through staking or liquidity provision, those rewards are ordinary income at the fair market value when received. Then, if you later sell those reward tokens, you have a second taxable event — the capital gain or loss from the sale.
LP fees and yield are income. The fees you earn as a liquidity provider, interest from lending protocols, and farming rewards are all ordinary income when received.
Airdrops are taxable. If you received tokens through an airdrop, they’re income at fair market value on the date received — even if you didn’t ask for them and even if the tokens are now worth less.
Gas fees paid to execute transactions can generally be added to your cost basis or deducted as a transaction cost, which reduces your taxable gain. Keep records of every gas fee.
What Records You Need for Your Crypto Tax Guide Filing
The hardest part of crypto tax reporting isn’t the math — it’s assembling complete transaction history. Here’s what you need:
Transaction history from every wallet and exchange. Every address you’ve used, every platform you’ve connected to. This includes Coinbase, Kraken, Binance, MetaMask, Ledger — everything.
Blockchain CSV exports. For on-chain DeFi activity, you’ll pull your transaction history from blockchain explorers (Etherscan for Ethereum, BscScan for BNB Chain, etc.) or use a tax tool that connects directly via wallet address.
Cost basis records. For every token you hold, you need to know what you paid for it (or what it was worth when you received it as income). Without this, the IRS can assume your cost basis is zero — meaning you’d owe taxes on the full sale amount.
DeFi protocol records. If you’ve interacted with lending protocols, DEXes, or farming platforms, pull your complete activity. Many protocols have built-in export tools; others require third-party indexers.
Start gathering this data early. Tracking down wallet history from 18 months ago is painful — do it now rather than on April 14th.
Crypto Tax Guide: Tools That Do the Heavy Lifting
Manual calculation of hundreds of swaps isn’t realistic. These three tools are the most widely used for DeFi tax reporting:
Koinly is beginner-friendly and handles a wide range of DeFi protocols. Connect your wallet addresses directly, and Koinly automatically pulls transactions and calculates gain/loss. The free tier covers 25 transactions — enough for casual users. Paid plans start around $49/year for up to 100 transactions. Koinly generates IRS Form 8949 and a Schedule D summary. It handles staking, LP income, and most major protocols reasonably well. Weak spot: some exotic DeFi activity requires manual entries.
CoinTracking is a more powerful tool that’s been around since 2013. It supports over 110 exchanges and has more granular control over cost basis methods (FIFO, LIFO, HIFO). Better for power users with complex activity across many chains. The interface is more cluttered than Koinly, but the depth is useful if you have edge cases. Pricing starts at around $13/month.
TaxBit has positioned itself toward institutional users but has a consumer tier. Strong on exchange integrations and audit support. If your exchange already partners with TaxBit (Coinbase, Gemini, and others do), your data may import automatically. The interface is clean and the tax documents are well-formatted. Pricing is higher than the others for full-feature access.
For most DeFi users, start with Koinly. If you have complex cross-chain activity or many thousands of transactions, upgrade to CoinTracking.
How to File: The Actual Steps
Once your transactions are imported and classified, here’s how the filing works:
1. Connect all wallet addresses and exchange accounts to your chosen tax tool. Let it sync and pull all transactions for the tax year.
2. Review and classify. The software will attempt to auto-classify transactions, but DeFi interactions are complex. Review LP deposits, reward claims, and unusual swaps manually. Misclassifications are the most common error.
3. Export Form 8949. This form reports every capital gain and loss. Your tax tool generates it automatically. Each row is one disposal (sale, swap, spend).
4. Complete Schedule D. This summarizes your net capital gains and losses from Form 8949. Again, your tax tool generates this.
5. Report income on Schedule 1 or Schedule C. Staking rewards, LP fees, and airdrops go here as ordinary income.
6. Attach to your return. If filing with TurboTax or H&R Block, both support importing Form 8949 from major crypto tax tools via CSV or direct integration.
Common Crypto Tax Guide Mistakes to Avoid
Not reporting staking income. Many people treat staking rewards as “not real money” until they sell. The IRS disagrees — it’s income when received.
Using the wrong cost basis method. The default in the US is FIFO (first in, first out). If you’ve been buying tokens over time, FIFO can result in higher taxable gains if older lots have a lower cost basis. Talk to a tax professional about whether HIFO (highest in, first out) makes sense for your situation.
Forgetting gas fees. Gas fees paid to execute a transaction are part of your cost basis or a deductible transaction cost. Don’t leave these on the table.
Missing wallets. If you used a hardware wallet, a hot wallet, or interacted with a protocol through a different address, those transactions must be included. The IRS can match on-chain activity to known exchange accounts.
Assuming losses don’t need to be reported. They do — but they work in your favor. Capital losses offset capital gains, and up to $3,000 of net losses can offset ordinary income each year.
Get Your Crypto Taxes Sorted
Ready to get your crypto taxes sorted? Start with Koinly’s free tier — it handles the first 25 transactions free. If your DeFi history is more complex, upgrading pays for itself in time saved and errors avoided.
The earlier you start, the less painful tax season gets. Pull your wallet history now, let the software calculate, and review before filing.