⚠ 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).
FAQ
Is depositing into a liquidity pool a taxable event?
It depends which reading of general property-disposal rules you or your preparer apply, and that's exactly why this calculator shows both. Under the conservative interpretation, sending Asset A and Asset B into a pool contract in exchange for an LP token is treated the same as any other crypto-to-crypto trade: you disposed of two properties and acquired a new one (the LP token), so any built-in gain on A and B versus their original cost basis is realized and taxable right then, and the LP token's new cost basis resets to its fair-market value at deposit. Under the more aggressive reading, depositing is treated as a non-taxable transfer into a wrapper you still economically control — no new asset was truly acquired in a way that changes your economic position, so no gain is recognized at deposit and the original cost basis of A and B simply carries forward inside the LP token. Neither the IRS nor most other tax authorities have issued LP-specific guidance, so both positions are defensible depending on your facts and your preparer's risk tolerance. This tool computes the taxable gain both ways so you can see exactly how much the choice of treatment moves your number before you file.
How is impermanent loss taxed?
Impermanent loss itself is not a separate line item on any tax form — it isn't realized or reported as its own event. Instead it shows up indirectly, baked into the fair-market value of your LP position when you eventually withdraw. This calculator asks you for that withdrawal value directly (lpValueAtWithdrawal) rather than trying to model pool curves or price ratios, because the actual dollar value you receive back already nets out any impermanent loss against the trading fees you earned while providing liquidity. gainOnExit is simply that withdrawal value minus the LP token's cost basis (what you put in, valued at deposit). If impermanent loss outweighed your fee income, gainOnExit will be smaller or negative; if fees outweighed the impermanent loss, it will be larger. Either way, impermanent loss is folded into a single realized gain or loss number at exit rather than tracked or taxed separately — you don't owe or claim anything for it while your capital is still sitting in the pool.
Is staking ETH for stETH a taxable event?
This is one of the most actively debated questions in crypto tax practice, and again there are two common professional positions. The taxable-mint view treats swapping ETH for a liquid-staking token like stETH as a disposal of the ETH and acquisition of a new asset (the LST), since the LST is a distinct, freely tradeable token with its own market price that can diverge from ETH — so you'd recognize a gain or loss equal to the ETH's price at stake time minus its original cost basis, and stETH's cost basis resets to that stake-time value. The non-taxable-wrap view holds that stETH is simply a receipt representing your still-staked ETH plus accruing rewards, with no separate economic asset changing hands, so no gain is recognized at mint and stETH inherits the ETH's original cost basis unchanged — tax is only triggered later, when you actually sell or swap the stETH itself. Regulatory guidance on this specific mechanic is still developing and differs by liquid-staking protocol design, which is why this calculator computes both outcomes rather than picking one for you.
Should I use FIFO or specific-ID for LP cost basis?
Cost-basis accounting method (FIFO, LIFO, HIFO, or specific identification) and taxable-event treatment are two separate questions, and this calculator only addresses the second one — whether the deposit, exit, and staking mint are disposals at all. Once you've decided which lots of Asset A and Asset B you're contributing to the pool, you still need a consistent method for picking which of your existing lots those units came from if you hold multiple purchase batches at different cost bases; specific identification generally gives the most control (and the best tax outcome if you can document exactly which lot you're using), while FIFO is the simplest default many exchanges and tax software apply automatically. For that lot-selection math on ordinary token trades, use our <a href="/fifo-lifo-cost-basis-calculator.html">FIFO/LIFO cost-basis calculator</a> — feed the per-unit cost basis it produces into the Asset A / Asset B cost-basis fields here, since this tool assumes you've already resolved which lot's basis you're using and focuses purely on the LP-entry, LP-exit, and staking-mint disposal question layered on top.