DeFi Tools
DeFi Yield & Impermanent-Loss Calculator
Investment Education, Research & Tools for Smarter Decisions.
Model how DeFi yield or liquidity-provider positions behave under different price and fee assumptions. Results are educational scenarios with transparent formula assumptions, not forecasts.
Direct Answer
The DeFi Yield and Impermanent-Loss Calculator models two scenarios from assumptions you enter. The yield mode separates base interest or trading-fee yield, incentive-token yield, and principal price change, then subtracts management fees, performance fees, and entry and exit gas; the LP mode applies the standard impermanent-loss formula for a full-range 50/50 constant-product pool, IL = 2 × √r / (1 + r) − 1, and shows where fee and incentive income break even against that loss. Results are educational scenarios rather than forecasts, and they exclude smart-contract risk, protocol insolvency, bridge failure, oracle manipulation, regulatory action, and tax treatment.
Educational tool only. Results are scenarios based on user-entered assumptions, not investment advice, price forecasts, or safety ratings. DeFi positions can result in partial or total loss of principal.
DeFi Yield & Impermanent-Loss Calculator
This calculator has two modes. Mode A, Yield Scenario models a DeFi yield position over time: base APR, incentive tokens, compounding, fees, and principal price change. Mode B, LP Scenario models a simplified 50/50 constant-product liquidity position: impermanent loss across price-ratio changes, fee income, and net comparison to holding.
Try a sample scenario:
Model scope This mode calculates impermanent loss for a simplified full-range 50/50 constant-product pool (e.g. Uniswap v2 style). It does not model concentrated liquidity (Uniswap v3/v4), stableswap curves (Curve), weighted pools (Balancer), dynamic fees, rebasing tokens, transfer-tax tokens, leverage, liquidation, oracle failure, or bridge failure.
About This Calculator
Mode A, Yield Scenario
Mode A models a single-token or LP yield position over a user-defined period. It separates returns into three components, base interest or trading-fee yield, incentive-token yield, and principal price change, and then subtracts management fees, performance fees, entry gas, and exit gas to show a net ending value.
The base yield is calculated as: simple interest = principal × APR × (days / 365). If compounding is selected, the base yield is recalculated using APY = (1 + APR / n)n − 1, where n is the number of compounding periods per year, and the ending value uses principal × (1 + APR / n)n × days / 365.
Incentive yield uses simple interest: incentive value = principal × incentive APR × (days / 365) × (1 + reward price change / 100). Management fees are prorated over the period. Performance fees are taken on gross positive yield only.
The sensitivity table shows net return across low (−50%), base (your entered value), and high (+50%) reward price-change scenarios, holding all other inputs constant.
Mode B, LP Scenario (Impermanent Loss)
Mode B applies the standard simplified impermanent-loss formula for a full-range 50/50 constant-product AMM pool. Given a price ratio change r (ending price divided by starting price), the formula is:
IL = 2 × √r / (1 + r) − 1
This expresses the LP value as a fraction of the holding value. The hold value for a 50/50 split across the price change is starting value × (1 + r) / 2. The LP value before fees is starting value × √r. Fee income and incentive income (adjusted for incentive token price change) are added, and gas costs subtracted, to show the LP value after fees versus holding.
The scenario table evaluates several standard price ratios (0.25×, 0.5×, 0.75×, 1×, 1.5×, 2×, 3×, 4×) with your entered fee and incentive income held constant, showing where fees break even against impermanent loss.
What these results do not tell you
- They are not forecasts of actual returns, rates and prices can change immediately.
- They do not account for smart-contract risk, protocol insolvency, bridge failure, oracle manipulation, or regulatory action.
- Tax treatment is not calculated and should not be inferred.
- The impermanent-loss formula does not apply to concentrated liquidity ranges, stableswap invariants, or weighted pools.
- Gas costs used are user-entered estimates, actual on-chain costs vary.
Supporting Lessons
These pages explain the concepts behind the calculator's formulas and inputs.
- Impermanent Loss Explained: what impermanent loss is, why it happens, and how it compares with holding.
- APR vs. APY in DeFi: the difference between simple and compound rates and how compounding frequency affects results.
- DeFi Yield Explained: an overview of how DeFi protocols generate yield and the risk factors behind each source.
- Liquidity Pools Explained: how constant-product AMMs work and how LP positions are created and redeemed.
- DeFi Position Management: how to monitor, rebalance, and exit DeFi positions, including when IL exceeds fee income.
- DeFi & Yield Farming Hub: the full DeFi and yield farming curriculum.
References
- Uniswap Documentation: the canonical constant-product AMM specification behind the impermanent-loss formula (IL = 2√r / (1 + r) − 1) this calculator's Mode B implements.
- Ethereum.org: DeFi Overview: background on liquidity pools and the fee/incentive-yield mechanics modeled in Mode A.
Results are scenario projections from your entered assumptions, not forecasts. They do not account for smart-contract, bridge, or oracle risk, and the impermanent-loss formula applies only to full-range 50/50 constant-product pools, not concentrated liquidity ranges, stableswap invariants, or weighted pools.