⚠ Not tax advice
This calculator models two common professional interpretations of how DeFi liquidity-pool and liquid-staking mechanics interact with general property-disposal tax rules. Neither the IRS nor most other tax authorities have issued mechanic-specific guidance for LP tokens or liquid-staking tokens, treatment is genuinely unsettled, varies by jurisdiction, and is applied differently by different preparers. Nothing here is tax advice — verify your actual treatment with a qualified tax professional before filing.
Part 1 — LP entry & exit
Asset A deposited
Asset B deposited
Withdrawal
LP scenario comparison
Conservative treats the deposit itself as a disposal of Asset A and Asset B; aggressive defers that gain and taxes only the value change realized at withdrawal.
| Component | Conservative (deposit = disposal) | Aggressive (deposit = non-taxable transfer) |
|---|
Part 2 — Liquid-staking mint
Liquid-staking scenario comparison
Taxable mint recognizes the gain immediately and resets the LST's cost basis to the stake-time price; non-taxable wrap defers all gain until the LST itself is later sold, keeping the original ETH cost basis.
| Component | Taxable mint | Non-taxable wrap |
|---|
Why LP tokens and liquid-staking tokens sit in a gray zone
The general rule most tax authorities apply to crypto is straightforward on paper: trading one property for another is a disposal, and any built-in gain versus your cost basis is realized right then, the same as swapping one token for another on an exchange. LP deposits and liquid-staking mints are murkier because it isn't obvious you're actually "trading away" anything — you're still economically exposed to roughly the same underlying assets, just wrapped in a receipt token (the LP share or the LST) that represents a claim on them plus yield. Some practitioners apply the crypto-to-crypto rule literally: you handed over Asset A and Asset B (or ETH) and received a new, distinct, freely-tradeable token in return, so it's a disposal and reacquisition like any other trade. Others argue no meaningful change of economic position occurred — you didn't cash out, diversify away, or lose the ability to reclaim the same underlying assets — so nothing should be taxed until you actually exit into something else. Neither position has been definitively settled by regulators for every protocol design, and the "correct" answer can depend on details like whether the receipt token is fungible and tradeable on secondary markets, whether the protocol is a rebasing or exchange-rate model, and your jurisdiction's specific guidance. This calculator doesn't resolve that debate — it quantifies both sides so you know what's at stake before you or your preparer pick one. For standard token trades with no LP or staking mechanic involved, use our FIFO/LIFO calculator instead; and if you're deciding whether to realize losses elsewhere in your portfolio to offset gains computed here, see the tax-loss harvesting calculator.
The math
LP entry gains (recognized only under the conservative/taxable-deposit treatment): gainOnEntry_A = qtyA × (priceA_atDeposit − costBasisA_perUnit), and gainOnEntry_B = qtyB × (priceB_atDeposit − costBasisB_perUnit). The LP token's new cost basis is the fair-market value of everything deposited: lpCostBasis = qtyA×priceA_atDeposit + qtyB×priceB_atDeposit.
LP exit gain is realized under both treatments: gainOnExit = lpValueAtWithdrawal − lpCostBasis. Because lpValueAtWithdrawal is the actual dollar value you received back, impermanent loss and accumulated fee income are automatically netted into this single number — there's no separate impermanent-loss line to compute.
Under conservative treatment: totalTaxableGain = gainOnEntry_A + gainOnEntry_B + gainOnExit. Under aggressive treatment: totalTaxableGain = gainOnExit only, with the entry gains deferred and the original cost basis of Asset A and Asset B carried forward inside the LP token instead of reset.
Liquid-staking mint: under taxable-mint treatment, gain = qty × (priceAtStake − costBasisPerUnit), recognized immediately, and the LST's cost basis resets to priceAtStake. Under non-taxable-wrap treatment, gain = 0 at mint, and the LST inherits the original costBasisPerUnit unchanged — the deferred gain is only realized later, when the LST itself is sold, at which point it equals (sale price − original costBasisPerUnit) rather than (sale price − priceAtStake).