Advanced

Yield Farming Guide

What You'll Learn

  • What yield farming is and where its returns come from
  • Step-by-step instructions for yield farming on major DeFi protocols
  • How to evaluate farming opportunities and judge whether a yield is sustainable
  • The main risks of farming and common ways to manage them

What Is Yield Farming

Yield farming is the practice of deploying your cryptocurrency into DeFi protocols to earn returns. These returns come from multiple sources: trading fees from providing liquidity, interest from lending, staking rewards, and protocol incentive tokens. Yield farming is risky, and you can lose some or all of the assets you deploy.

The term originated during DeFi Summer in 2020 when protocols began distributing governance tokens to users who provided liquidity: a practice known as liquidity mining. Farmers would move capital between protocols chasing the highest returns, sometimes earning triple-digit APYs. Yields have since fallen from those early extremes. Returns are variable and not guaranteed.

Yield farming now includes auto-compounding vaults and cross-chain farming. This guide covers the main strategies from simple lending to more complex multi-protocol approaches, and the risks of each. It is general education, not investment advice.

Types of Yield Farming

Liquidity Provision (LP Farming): Deposit token pairs into decentralized exchange liquidity pools and earn a share of trading fees plus bonus incentive tokens. This is the most common form of yield farming. The trade-off is impermanent loss: when token prices change, you may end up with less value than simply holding.

Lending: Deposit tokens into lending protocols like Aave or Compound and earn interest paid by borrowers. This carries no impermanent loss, but rates are variable and smart contract risk applies.

Staking: Lock tokens in proof-of-stake networks or protocol staking contracts to earn rewards. Some protocol staking also grants governance rights and a share of protocol revenue. Learn more in our staking guide.

Vault strategies: Auto-compounding vaults like Beefy Finance and Yearn automatically harvest farming rewards and reinvest them. You deposit a token or LP position, and the vault handles the rest, adding a layer of smart contract risk.

Points farming: A newer approach in which protocols distribute points for usage that may later convert to token airdrops. Some programs, such as EigenLayer's, did convert, but no conversion is guaranteed and points have no set value.

Getting Started: Your First Yield Farm

This example uses stablecoin lending on Aave, one of the simpler strategies. It still carries smart contract and stablecoin risk:

  1. Prepare your wallet. Connect MetaMask to an Ethereum Layer 2 network such as Arbitrum. Ensure you have ETH for gas and the stablecoin you want to lend, such as USDC.
  2. Visit app.aave.com. Connect your wallet and select Arbitrum as your network.
  3. Supply your stablecoins. Click Supply next to USDC. Enter the amount. Approve the USDC contract (one-time), then confirm the supply transaction. Your USDC is now earning interest.
  4. Monitor your position. Your aUSDC balance increases continuously as interest accrues. Current rates are displayed on the Aave dashboard. Rates fluctuate based on borrowing demand.
  5. Withdraw at any time. Click Withdraw, enter the amount, and confirm. Withdrawals depend on the pool having available liquidity.

This first farm teaches the basic DeFi workflow: connect wallet, approve contract, deposit, earn, withdraw. Once comfortable, you can explore higher-yield opportunities.

Intermediate Strategy: LP Farming on Uniswap

  1. Select a pool. Look at a pool's liquidity, trading volume, and fee tier before adding liquidity. Higher volume generally means more fees, but also does not protect against impermanent loss.
  2. Prepare equal values of both tokens. If you have $1,000 to farm, swap $500 worth of ETH for USDC (or vice versa) so you have approximately equal dollar values of each token.
  3. Add liquidity with a concentrated range. On Uniswap V3, you choose a price range. A narrower range earns more fees while price stays inside it but stops earning if price leaves. A wider range earns less per dollar but stays active longer.
  4. Collect fees periodically. On Uniswap V3, fees accumulate separately and can be claimed at any time. Collect weekly or monthly and either reinvest or withdraw to stablecoins.
  5. Monitor for range breaches. If ETH price moves outside your range, you stop earning fees. Decide whether to wait for price recovery, close the position, or rebalance to a new range.

Returns on concentrated LP positions vary with volatility and trading volume. Factor in impermanent loss: your actual return can be lower than the fees you collect, and can be negative.

Advanced Strategy: Multi-Protocol Farming

Experienced farmers combine multiple protocols. Each added layer adds risk:

  • Leveraged farming: Deposit ETH into Aave as collateral, borrow stablecoins, and deposit those stablecoins into a lending pool or LP position. This amplifies your yield but also amplifies risk, including liquidation if your health factor falls too low.
  • Recursive lending: Deposit USDC, borrow USDC against it, and deposit the borrowed USDC again. This loop increases your effective deposit and yield, but it adds liquidation and smart contract risk and only works if rewards exceed borrowing costs. Tools such as DeFi Saver can automate this.
  • Cross-chain farming: Deploy capital across Ethereum L2s, Solana, and Cosmos to access diverse yield opportunities and reduce single-chain risk. Use bridges carefully and follow the safety practices in our multi-chain portfolio guide.
  • Auto-compounding vaults: Deposit LP tokens into Beefy Finance or Yearn vaults. These protocols automatically harvest rewards, swap them, and compound back into your position.

Evaluating Yield Sustainability

One key skill in yield farming is telling sustainable yields from unsustainable ones:

  • Real yield: Returns funded by genuine economic activity: trading fees, borrowing interest, protocol revenue. These yields are sustainable because they derive from value creation. Example: Uniswap LP fees are paid by traders who get value from the swap service.
  • Inflationary yield: Returns paid in newly minted protocol tokens. These are sustainable only if the token maintains its value: which requires growing demand to absorb constant sell pressure from farmers harvesting rewards. Most inflationary yields compress over time as more capital chases the same rewards.
  • The sustainable yield test: Ask yourself: If token emissions stopped tomorrow, would this yield still exist? If the answer is no, the yield is fundamentally inflationary. It may still be profitable if you sell rewards immediately, but understand the source.
  • APY vs. APR: APY includes the effect of compounding; APR does not. A 100% APR compounded daily becomes about 171% APY. Protocols often advertise the higher APY number. Understand which metric is being quoted.

For a comprehensive framework on assessing DeFi risks, review our DeFi risk management guide.

Risk Management for Yield Farmers

  • Decide how much to allocate to farming. Farming exposes you to smart contract risk that cold storage does not, so many people keep most of their holdings in simple self-custody (Bitcoin and ETH in hardware wallets).
  • Spread across protocols. If one protocol is exploited, your loss is limited to what you put in it. Putting all farming capital into a single pool or protocol concentrates that risk.
  • Consider selling rewards. Protocol tokens can lose most of their value in bear markets. Some farmers sell rewards periodically for stablecoins or larger assets; selling is a taxable event.
  • Set exit triggers. Define conditions that would cause you to withdraw: a drop in TVL, a protocol security incident, yield falling below your minimum, or major governance changes. Predetermined exits help prevent emotional decisions.
  • Account for gas costs. Gas fees for entering, harvesting, and exiting positions can be high on Ethereum mainnet. Make sure your position size generates enough yield to exceed these costs. Layer 2 networks generally have lower fees.

Frequently Asked Questions

How much money do I need to start yield farming?

There is no fixed minimum, but gas fees make small positions uneconomical on Ethereum mainnet. Fees on Layer 2 networks like Arbitrum and Base are generally lower. Check current fees before you transact, start small, and only use money you can afford to lose.

What are the tax implications of yield farming?

In the US, the IRS treats digital assets as property. Farming rewards may be taxable income when you receive them, and token swaps, including LP entry and exit, may be taxable events. Other countries differ. Keep detailed records and consult a tax professional familiar with DeFi.

Is yield farming worth it after impermanent loss?

It depends on the pool and time period. Fees can offset impermanent loss in high-volume pools, but not always. Stablecoin pools have little impermanent loss but carry depeg risk, and low-volume pairs can lose more to impermanent loss than they earn in fees. Calculate your actual return including impermanent loss, not just the displayed APY.

How does stablecoin lending compare with other farming strategies?

Stablecoin lending on established protocols such as Aave or Compound has no impermanent loss and no exposure to volatile tokens. It still carries smart contract risk, stablecoin depeg risk and variable rates. Protocols that have run for years have a track record, which is not a guarantee.

What should I know about auto-compounding vaults?

Auto-compounding vaults (Beefy, Yearn) can save gas on manual harvesting and compounding. The main risk is that you add another smart contract layer, the vault contract, on top of the underlying protocol. Check a vault's audit history and track record before depositing.