Intermediate DeFi · 🕑 9 min read

Yield Farming Economics: Calculating Real Returns Beyond APY

APY numbers on yield farming opportunities often look too good to be true—because they usually are. Learn how to calculate actual returns by accounting for impermanent loss, token inflation, gas costs, and lock-up periods.

Introduction: Why APY Is Just a Marketing Number

When you scroll through DeFi platforms, you'll see yields advertised as "500% APY" or "12% daily returns." These numbers are mathematically derived from current farming rewards, but they tell you almost nothing about what you'll actually earn. An 800% APY that drops to 2% in three weeks, or one that requires you to lock up capital for a year, or one that gets eroded by 40% impermanent loss—these are entirely different investments, even though they might carry the same advertised yield.

This lesson teaches you how to see through the marketing and calculate real yield—the actual return you'll receive after all costs, risks, and dilution are accounted for. This is the difference between wealth-building DeFi participation and becoming another exit liquidity provider.

Section 1: The APY Illusion and How It's Calculated

APY (Annual Percentage Yield) is calculated from the current reward rate compounded over one year. If a liquidity pool is distributing 1% of its total value per week in governance tokens, that's roughly 52% APY. But here's the critical catch: that 1% weekly distribution is only guaranteed if nothing changes.

What actually changes:

  • Reward reduction schedules: Most protocols start with high emissions and gradually reduce them. A farm might offer 200% APY for the first 8 weeks, then drop to 40% APY as emissions halve. If you calculate backwards from the advertised 200%, you're setting yourself up for disappointment.
  • Increasing liquidity diluting rewards: As capital floods into a high-APY farm, the reward pool stays the same but is now split among more liquidity providers. Your personal yield drops significantly even if the contract's APY number doesn't change immediately.
  • Token price depreciation: If a farm pays 300% APY in newly minted tokens, but those tokens lose 80% of their value over the farming period, your nominal APY means nothing.
  • Lock-up and vesting periods: Some yields are only realized if you lock tokens for 6-12 months. That's locked APY, not liquid yield—a crucial distinction.
Critical insight: Always check the emission schedule and governance token launch documents. A farm advertising 300% APY but planning to cut emissions by 50% in 6 weeks is offering approximately 150% APY on average over the year. Most people miss this entirely.

Section 2: Impermanent Loss—The Silent Return Killer

If you're yield farming by providing liquidity to an AMM (like Uniswap v2 or Curve), you need to subtract impermanent loss from your yield calculation. This is not optional—it's a real economic cost.

Impermanent loss occurs when the ratio of assets in your pool changes relative to how you deposited them. If you deposit $5,000 in ETH and $5,000 in USDC to an equal-weight pool, and ETH doubles in price, the pool's arbitrage mechanism forces it to rebalance. You'll end up with more USDC and less ETH than you started with, locking in a loss if you exit at that point.

The formula (simplified):

Impermanent Loss % ≈ (1 - (2 × √(price ratio) / (1 + price ratio))) × 100

In practical terms:

  • If one asset moves 10% relative to the other: ~0.01% impermanent loss
  • If one asset moves 50% relative to the other: ~5.1% impermanent loss
  • If one asset doubles (100% move): ~20.1% impermanent loss
  • If one asset triples (200% move): ~40.8% impermanent loss

So if you're farming a pool earning 50% APY, but the tokens involved are volatile and you experience 35% impermanent loss over the year, your real return is roughly 15%—before gas fees and taxes.

How to mitigate: Stablecoin pairs (USDC/USDT, DAI/USDC) have minimal impermanent loss because the assets don't move relative to each other. Correlated pairs like ETH/stETH also have reduced IL. High-IL pools need correspondingly high yields to justify the risk.

Section 3: The Full Return Calculation with Real-World Example

Let's work through a complete yield farming scenario to show how these pieces fit together.

The Setup:

  • You deposit $10,000 (50% ETH, 50% UNI) into a Uniswap v3 concentrated liquidity farm
  • Advertised APY from UNI rewards: 85%
  • Gas cost to enter: $150 (1.5% of deposit)
  • Farming period: 12 months
  • Expected volatility: Both assets move ±30-40% during the period
  • Gas cost to exit: $200
  • Your tax rate on gains: 30% (varies by jurisdiction)

Calculation:

Year 1 Gross Rewards: $10,000 × 85% = $8,500 in UNI tokens Expected Impermanent Loss: Your assets could move 40-50% relative to each other. Conservative estimate: 15% IL = $1,500 loss Entry/Exit Costs: $150 + $200 = $350 UNI Token Depreciation Risk: The UNI token you farm might lose 20-30% of value. Assume 25%: $8,500 × 75% = $6,375 effective value Taxable Gains: $6,375 (rewards) - $1,500 (IL) - $350 (fees) = $4,525 net gain before taxes After 30% Tax: $4,525 × 70% = $3,168 net after-tax gain Real Return: $3,168 / $10,000 = 31.7% actual return

The advertised 85% APY becomes a real 32% return after accounting for impermanent loss, token depreciation, and taxes. That's still good, but it's very different from what the headline number suggested.

Variables that change the outcome dramatically:

  • If UNI loses 50% instead of 25%: Real return drops to ~8%
  • If impermanent loss is 30% instead of 15%: Real return drops to ~22%
  • If you exit after 6 months (rewards halved): Real return drops to ~16%
  • If emission schedules are cut 40% mid-year: Real return could be negative

Section 4: Due Diligence Checklist for Evaluating Yield Opportunities

Before deploying capital to any yield farm, use this framework:

  • Check the emission schedule: Does the protocol have public documentation showing planned reward reductions? If a farm is offering 200% APY, at what point does it drop to 100%, 50%, or 10%?
  • Assess the reward token's fundamentals: Is there demand for the token beyond farming incentives? Check trading volume, exchange listings, and utility. A token with no real demand will depreciate faster than farming rewards accrue.
  • Calculate historical impermanent loss: For liquidity pools, look at the assets' price correlation over the past 6-12 months. How much have they moved relative to each other? Use that to estimate likely IL.
  • Understand your lock-up: Can you withdraw anytime, or are funds locked? Lock-ups shift the risk-reward profile entirely.
  • Stress test the scenario: What happens if the farm's reward token drops 50% in value? What if APY gets cut in half? What if you need to withdraw after only 3 months? Run these scenarios before committing.
  • Compare to opportunity cost: That capital could be in staking, bonds, or other strategies. Is the farm yield compensating you for the additional risk and complexity?

Key Takeaways

  • APY is marketing: It's based on current conditions and assumes constant yields. Real yield is almost always lower after accounting for all costs.
  • Impermanent loss is real: On volatile asset pairs, IL can consume 20-50% of your gains. Only farm high-IL pools if the yield significantly exceeds historical impermanent loss.
  • Token depreciation kills returns: The reward token's price trajectory matters as much as the APY percentage. A 300% APY in a token losing 90% of value is a losing trade.
  • Time horizon is critical: Yields that look great at week 1 often disappoint at month 6 when emissions are cut and more liquidity dilutes the pool.
  • Always calculate backwards: Start with realistic assumptions about token value, impermanent loss, and lock-up periods. Then see if the advertised APY still justifies the risk.
← Back to all lessons
Scroll to Top