Back to Learn
DeFi
9 min read May 29, 2026

Yield Farming Explained

Yield farming is the practice of moving crypto assets between DeFi protocols to maximize returns. It can be highly profitable — and highly risky. Here's how it works.

Share Twitter LinkedIn

Yield Farming Explained

Yield farming (also called liquidity mining) is the practice of putting your crypto assets to work across DeFi protocols to earn the highest possible returns.

At its peak in 2020–2021, some yield farming strategies offered thousands of percent APY. Those days are mostly gone, but yield farming remains a core activity in DeFi — just with more realistic returns and a better-understood risk profile.

The Basic Concept

In traditional finance, your money earns interest sitting in a savings account. In DeFi, you can put your assets to work in multiple ways simultaneously:

  • Provide liquidity to a liquidity pool → earn trading fees
  • Stake the LP tokens you receive → earn additional token rewards
  • Deposit those rewards into a lending protocol → earn interest
  • Repeat with optimized positions

Yield farming is the art of stacking these returns and actively managing them for maximum yield.

How Yield Farming Started: The DeFi Summer

Yield farming exploded in June 2020 when Compound Finance began distributing its COMP governance token to users who borrowed and lent on the platform. Suddenly, users weren't just earning interest — they were also earning tokens that had real market value.

Other protocols followed. Uniswap, SushiSwap, Yearn Finance, and dozens more launched token distribution programs. For a period, you could earn extraordinary yields by moving capital between the right protocols at the right time.

This period was called "DeFi Summer" and it defined an era.

A Simple Yield Farming Strategy

Here's a basic example:

  1. Deposit ETH + USDC into a Uniswap v3 liquidity pool → earn 0.3% trading fees
  2. Stake the LP tokens in Uniswap's incentive program → earn UNI token rewards
  3. Sell or compound the UNI rewards back into the pool

More complex strategies might involve:

  • Borrowing against deposited collateral to access more capital
  • Routing through multiple protocols in sequence
  • Using leveraged yield farming vaults

Understanding APY vs. APR

APRAPY
Stands forAnnual Percentage RateAnnual Percentage Yield
CompoundingNot includedIncluded
Which is higherLowerHigher

DeFi protocols often advertise APY, which includes the effect of compounding rewards back in. Always check whether the number assumes compounding, and how frequently.

Yield Aggregators (Auto-Compounders)

Manually managing yield farming is time-consuming and gas-expensive. Yield aggregators automate this:

  • Yearn Finance: Moves funds between strategies to find the best yield
  • Beefy Finance: Auto-compounds farming rewards across hundreds of pools
  • Convex Finance: Optimizes Curve Finance LP positions

You deposit assets, the protocol manages the strategy, and you earn optimized returns minus a small fee. Much easier, but adds another layer of smart contract risk.

The Real Risks of Yield Farming

Smart Contract Risk

Every protocol you interact with is a smart contract that could be exploited. The more protocols you stack, the more risk surface you expose yourself to. See DeFi Risks.

Impermanent Loss

Providing liquidity to volatile pairs can result in impermanent loss that exceeds your farming rewards.

Token Value Risk

Many farming rewards are paid in the protocol's native token. If that token loses value (common), your "high APY" may translate to little real return.

Gas Costs

On Ethereum mainnet, frequent transactions to manage farming positions can eat significantly into returns. Better to use L2s (Arbitrum, Optimism) or other chains for smaller amounts.

Complexity Risk

The more complex a strategy, the harder it is to understand what can go wrong. Losses in DeFi are often irreversible.

Rug Pulls

New, high-APY farming projects sometimes turn out to be scams where developers drain the liquidity and disappear. See Common Scams.

Is Yield Farming Right for You?

Yield farming makes sense if:

  • You already understand liquidity pools, staking, and lending
  • You're comfortable with smart contract risk
  • You have enough capital that gas costs don't negate returns
  • You actively monitor positions and understand what you're doing

It's not a passive "set and forget" strategy. The highest yields require the most active management and carry the highest risk.

Continue Learning


For a complete framework for evaluating DeFi opportunities, read Understanding DeFi from the Mastering Crypto series.

Tags

yield farming
DeFi
liquidity mining
APY
liquidity pools
passive income

Found this helpful? Share it.

Share Twitter LinkedIn