Yield farming is one of the most popular ways to earn returns on crypto assets in decentralized finance. At its core, yield farming involves providing your cryptocurrency to DeFi protocols, which use those assets to power lending, trading, and other financial services. In exchange for providing this liquidity, you earn rewards in the form of fees, interest, or bonus tokens.

The concept gained mainstream attention during the “DeFi Summer” of 2020, when protocols began offering governance tokens as incentives to attract liquidity. Users who deposited assets into these protocols earned yields that, for a brief period, reached extraordinary levels. Since then, yield farming has matured into a more sustainable practice, with established platforms offering yields that range from conservative (3–5% on stablecoins) to more aggressive strategies with higher risk and return.

This guide explains what yield farming is, how it works mechanically, how it differs from staking, which platforms are commonly used, and the specific risks you need to understand before participating. If you are new to decentralized finance, we recommend starting with our comprehensive guide: What Is DeFi? The Complete Beginner’s Guide to Decentralized Finance.

What Is Yield Farming?

Yield farming is the practice of depositing cryptocurrency into DeFi protocols to earn a return. The return can come from several sources: trading fees generated when other users swap tokens through your liquidity, interest paid by borrowers who use your deposited assets as loans, or additional reward tokens distributed by the protocol as an incentive to attract and retain liquidity.

The simplest analogy is a savings account, but with important differences. When you deposit money in a bank savings account, the bank lends your money to borrowers and shares a small portion of the interest with you. In yield farming, a smart contract performs the same function, but without the bank. You deposit your crypto directly into a protocol, the protocol makes it available for lending or trading, and you receive your share of the resulting fees or interest. The process is automated, transparent, and operates on a public blockchain where anyone can verify the rules.

Yield farming became explosively popular in June 2020, when the Compound protocol launched its COMP governance token and distributed it to users who lent or borrowed on the platform. This “liquidity mining” model created enormous demand, as users rushed to deposit assets in order to earn COMP tokens on top of their regular interest income. Other protocols quickly followed, and the total value locked in DeFi protocols surged from under $1 billion to over $15 billion within months.

Today, yield farming has evolved well beyond the initial frenzy. While the spectacular triple-digit yields of 2020 were largely unsustainable (often driven by token inflation rather than genuine economic activity), the underlying model of earning returns by providing liquidity to DeFi protocols remains a core feature of the ecosystem. Conservative stablecoin strategies on established platforms like Aave and Curve typically offer 3–10% annually, while more complex strategies involving multiple protocols and token incentives can produce higher returns with correspondingly higher risk.

How Yield Farming Works

Understanding yield farming requires understanding three key concepts: liquidity pools, smart contracts, and reward mechanisms.

Liquidity Pools. A liquidity pool is a collection of crypto assets locked in a smart contract. When you provide liquidity to a decentralized exchange like Uniswap, you deposit two tokens in equal value (for example, $500 of ETH and $500 of USDC) into a pool. Other users who want to swap ETH for USDC, or vice versa, trade against your pool. Every time a trade occurs, the trader pays a small fee (typically 0.05–1% of the trade value), and that fee is distributed proportionally to everyone who has deposited into the pool.

Smart Contracts. The entire process is managed by smart contracts, which are automated programs on the blockchain. When you deposit tokens into a pool, the smart contract records your share. When fees accumulate, the contract calculates your portion. When you withdraw, the contract returns your tokens plus earned fees. There is no human intermediary at any point. The code is the service. For a broader understanding of how smart contracts power DeFi, see our guide: What Is DeFi?

Reward Tokens. Many protocols offer additional tokens on top of the base fees or interest. These reward tokens are typically the protocol’s governance token, which gives holders voting rights on how the protocol is managed. The rewards serve as an incentive to attract liquidity: the more liquidity a protocol has, the better its service (lower slippage for traders, more available capital for borrowers). These token rewards are where the term “liquidity mining” comes from.

Here is a simple example of how yield farming works in practice:

  1. You hold $1,000 worth of USDC and $1,000 worth of ETH.

  2. You deposit both tokens into a USDC/ETH liquidity pool on Uniswap.

  3. Traders use the pool to swap between USDC and ETH throughout the day.

  4. Each swap generates a fee, and your share of those fees accumulates automatically.

  5. After 30 days, you withdraw your position. You receive your original tokens (adjusted for price changes) plus the fees earned during that period.

The actual return depends on several factors: the volume of trades flowing through the pool, the size of your deposit relative to the total pool, the fee tier of the pool, and whether the prices of the deposited tokens have moved significantly (which introduces a risk called impermanent loss, discussed later in this guide).

Yield Farming vs Staking

Yield farming and staking are both ways to earn returns on crypto, but they serve different purposes and carry different risk profiles. Understanding the distinction helps you choose the right approach for your goals.

Staking is the process of locking tokens to help secure a proof-of-stake blockchain network. When you stake ETH, for example, your tokens are used by validators to confirm transactions and produce new blocks. In return, you receive staking rewards, which come from new token issuance by the network itself. Staking is relatively straightforward: you deposit one token and earn a predictable return, typically 3–7% for major networks.

Yield farming is more complex. Instead of securing a network, you are providing liquidity or lending assets to DeFi applications. The returns come from the economic activity generated by those applications (trading fees, loan interest) rather than from network-level token issuance. Yield farming often requires depositing multiple tokens, managing positions across different protocols, and accepting higher variability in returns.

 

Feature

Yield Farming

Staking

Primary Purpose

Provide liquidity or lend assets to DeFi protocols

Lock tokens to help secure a blockchain network

How You Earn

Trading fees, interest, and/or bonus token rewards

Network validation rewards (protocol-level issuance)

Risk Level

Higher (smart contract risk, impermanent loss, token volatility)

Lower (mainly slashing risk and token price movement)

Complexity

Moderate to high; requires choosing pools and managing positions

Low; typically a single deposit-and-wait action

Liquidity

Varies; some positions can be withdrawn anytime, others have lock-ups

Often locked or subject to unbonding periods; liquid staking solves this

Typical Returns

Variable: 3–15% for conservative strategies; higher for aggressive

Relatively stable: 3–7% for major proof-of-stake networks

Capital Requirements

Often requires depositing two tokens in equal value

Single token deposit

Examples

Depositing USDC/ETH into a Uniswap pool; lending DAI on Aave

Staking ETH via Lido; staking SOL natively on Solana

 

Many experienced DeFi users combine both approaches. Liquid staking protocols like Lido allow you to stake ETH and receive a liquid token (stETH) that can then be used in yield farming strategies, effectively earning staking rewards and farming yields simultaneously. This layering of yield sources is one of the distinctive features of DeFi.

Yield farming takes place across several categories of DeFi platforms, each offering different types of returns and risk profiles. The following table summarizes the most widely used options:

 

Platform

Type

Chains

Reward Source

How It Works

Uniswap

DEX (AMM)

Ethereum, Arbitrum, Optimism, Base, Polygon

Trading fees

Deposit token pairs into liquidity pools; earn a share of swap fees; concentrated liquidity allows capital-efficient ranges

Aave

Lending Protocol

Ethereum, Arbitrum, Optimism, Base, +10 chains

Interest + incentives

Supply crypto to earn variable interest; some markets offer additional reward tokens on top of base interest

Curve

DEX (Stablecoin Focus)

Ethereum, Arbitrum, +10 chains

Trading fees + CRV rewards

Optimized for stablecoin swaps; low impermanent loss risk; CRV token boosts via vote-locking (veCRV)

Yearn Finance

Yield Aggregator

Ethereum

Auto-compounded yields

Deposits routed to optimal strategies automatically; vaults handle rebalancing and compounding; reduces manual effort

Convex Finance

Yield Booster (Curve)

Ethereum

Boosted CRV rewards

Boosts Curve rewards without requiring users to lock CRV themselves; popular among yield maximizers

Pendle

Yield Trading

Ethereum, Arbitrum

Yield token trading

Separates principal from future yield; trade or speculate on expected returns; advanced but innovative

Lido

Liquid Staking

Ethereum

Staking rewards

Stake ETH, receive stETH; use stETH in DeFi for additional yield layers; combines staking + farming

 

For beginners, the most approachable starting points are typically stablecoin lending on Aave (where you deposit USDC or DAI and earn variable interest with no impermanent loss risk) or stablecoin pools on Curve (where swaps between similar-priced assets minimize price-divergence risk). As you gain experience and comfort with the mechanics, you can explore more complex strategies involving DEX liquidity provision, yield aggregators, and multi-protocol positions.

When evaluating any yield farming platform, prioritize protocols with strong security track records, professional audits, and high total value locked. Newer protocols with extremely high advertised yields often carry proportionally higher risk. For a detailed look at how protocol exploits happen and how to evaluate security, see our article: The Complete History of DeFi Hacks, Exploits, and Protocol Failures.

 

New to DeFi?

Download the free guide:

Inside the guide:

The 10 most important DeFi protocols  |  Strategies used in decentralized finance  |  Tools professionals use to analyze markets

 

Yield Farming Risks

Yield farming offers attractive returns, but those returns come with real risks that every participant must understand. Higher yields almost always correspond to higher risk. There is no free lunch in DeFi.

Impermanent Loss. This is the most common risk specific to liquidity provision. When you deposit two tokens into a pool, their prices may diverge over time. If one token rises significantly while the other stays flat, the pool’s automated rebalancing means you end up with more of the cheaper token and less of the expensive one. When you withdraw, the value of your position may be less than if you had simply held both tokens without providing liquidity. The loss is called “impermanent” because it only becomes permanent when you withdraw. If prices return to their original ratio, the loss disappears. Stablecoin-to-stablecoin pools (like USDC/DAI) minimize this risk because both assets maintain roughly the same price.

Smart Contract Risk. Every yield farming position depends on smart contracts functioning correctly. If a contract contains a bug or vulnerability, an attacker can exploit it to drain deposited funds. Even audited protocols have been hacked. Over $2.7 billion was stolen from crypto and DeFi projects in 2025. Using well-established protocols with extensive audit histories reduces but does not eliminate this risk.

Token Price Volatility. Many yield farming rewards are paid in the protocol’s native governance token. If the price of that reward token drops significantly, the effective yield of your farming strategy decreases accordingly. During the 2020–2021 DeFi boom, many farmers earned high token rewards that subsequently lost 80–95% of their value. Always consider the sustainability and tokenomics of reward tokens, not just the advertised APY.

Protocol Exploits and Rug Pulls. Smaller or newer protocols carry higher risk of exploitation or outright fraud. Some projects are designed from the start to attract deposits and then drain them (rug pulls). Others may have legitimate intentions but lack the security rigor of established platforms. Check for professional audits, open-source code, time-locked admin functions, and a track record of responsible operation before depositing funds.

Gas Fees. On Ethereum mainnet, every deposit, withdrawal, and claim transaction incurs a gas fee. If your yield farming position is small, gas fees can consume a significant portion of your returns. Layer 2 networks like Arbitrum, Optimism, and Base reduce this cost by 90–99%, making yield farming economically viable for smaller positions. For a detailed explanation of how gas fees work, see our guide: Ethereum Gas Fees Explained.

How Beginners Can Start Yield Farming

If you have decided to try yield farming, the following steps outline the basic process from start to first deposit.

  1. Set Up a Crypto Wallet. You need a self-custodial wallet that connects to DeFi applications. MetaMask (for Ethereum and EVM chains), Phantom (for Solana), and Rabby (with pre-transaction risk previews) are popular choices. Write down and securely store your seed phrase. For detailed wallet guidance, see: How to Store Crypto Safely.

  2. Acquire the Required Tokens. You need the tokens you want to farm with, plus a small amount of the network’s native token (ETH, SOL, etc.) to pay transaction fees. Purchase tokens from a centralized exchange and transfer them to your wallet, or buy directly within your wallet if it supports fiat purchases.

  3. Choose a Platform and Strategy. Start with established protocols and lower-risk strategies. Depositing stablecoins into Aave’s lending market or a Curve stablecoin pool is a common beginner approach. Research the platform’s audit history, TVL, and track record before depositing.

  4. Connect Your Wallet and Deposit. Navigate to the DeFi platform’s website, connect your wallet, select the pool or market you want to participate in, and approve the transaction. Your wallet will show you the transaction details and gas cost before you confirm.

  5. Monitor Your Position. Track your deposited balance, earned fees, and any reward tokens. Use portfolio trackers like Zapper or DeBank to view all your DeFi positions in one place. Periodically review whether the yield justifies the risk, and be prepared to withdraw if conditions change.

The most important principle for beginners is to start small. Deposit an amount you are comfortable losing entirely while you learn the mechanics. DeFi is permissionless, which means there are no safety nets if something goes wrong. Treat your first farming positions as a learning exercise rather than an income strategy.

Conclusion

Yield farming is the practice of earning returns by providing crypto assets to DeFi protocols. It works because these protocols need liquidity to function: decentralized exchanges need tokens in pools for traders to swap against, lending platforms need deposits for borrowers to draw from, and all of these activities generate fees that are shared with the users who supply the capital.

The opportunities range from conservative stablecoin lending at 3–5% to complex multi-protocol strategies with higher potential returns and correspondingly higher risk. The key risks include impermanent loss, smart contract vulnerabilities, reward token volatility, and the gas costs of managing positions on Ethereum mainnet.

For beginners, the best approach is to start with established protocols like Aave, Curve, or Uniswap, use stablecoin strategies to minimize price-related risks, operate on Layer 2 networks to reduce gas costs, and invest only what you can afford to lose. As your understanding deepens, you can explore more sophisticated strategies and platforms.

Yield farming is one of the defining features of decentralized finance. Understanding how it works gives you access to a financial mechanism that has no equivalent in traditional banking. To build on this knowledge, explore our complete guide to decentralized finance: What Is DeFi? The Complete Beginner’s Guide to Decentralized Finance.

Keep Reading