How to Track Solana DeFi Taxes

Solana DeFi is fast and cheap, but every swap, deposit, and withdrawal creates a taxable event. Here's how to stay on top of it.

Token Swaps Jupiter, Raydium, Orca

Every token swap on Solana is a taxable disposition — even if no fiat (USD) changes hands. When you trade Token A for Token B, the IRS treats it as two separate events: you sold Token A (triggering a capital gain or loss) and bought Token B (establishing a new cost basis).

This applies regardless of the DEX you use. Jupiter aggregates routes across Raydium, Orca, and others — but each underlying swap is still a taxable event.

Example: Swap 10 SOL for 1,000 BONK SOL cost basis: $100 each x 10 = $1,000 total SOL value at swap: $150 each x 10 = $1,500 proceeds Capital gain on SOL: $500 BONK cost basis (new): $1,500 (that's what you paid, in USD terms, at the moment of the swap)

Even if BONK subsequently crashes to zero, your $500 gain on SOL was realized the moment you swapped. You would claim a separate capital loss on BONK only when you later sell or dispose of it.

Liquidity Pool Deposits & Withdrawals

Providing liquidity is one of the most tax-ambiguous areas of DeFi. The IRS hasn't issued direct guidance, and many crypto CPAs hold different views. Here's the most widely used interpretation:

The practical problem is that LP tokens from Raydium or Orca don't always have a clear market price on the day you deposit. You'll need to reconstruct the USD value of each token deposited at the time of the transaction — which is why having a full transaction history with timestamps matters.

Yield Farming & Lending

Solana has a rich lending and yield ecosystem — Marginfi, Kamino, Solend, and others. Each creates distinct tax events depending on how you earn.

The most common mistake: people track the tokens they borrowed and repaid, but forget to record the reward tokens they harvested along the way. Each harvest is a separate income event.

How to Track It All

DeFi transaction volumes add up fast. A single week of active trading can produce hundreds of on-chain events. Here's a practical approach to staying organized:

Export Your Solana Transactions Free
LanaTax tip: LanaTax labels DeFi transactions by type using Helius classifications, so you can identify swaps, transfers, staking events, and other DeFi interactions at a glance in the transaction table — before you export. This makes it much easier to spot which transactions need extra attention before handing your data to a tax tool or CPA.
Important disclaimer: DeFi tax treatment is evolving rapidly. The IRS has not issued specific guidance on liquidity pools, yield farming, or many other DeFi activities. The information on this page reflects widely used interpretations as of early 2026 but should not be treated as legal or tax advice. Consult a qualified tax professional before filing.