Yield farming in decentralized finance (DeFi) means putting crypto assets to work in smart contracts to earn a variable return. A farmer might supply a lending market, provide liquidity for swaps, or deposit into a vault that runs a strategy on their behalf. Each strategy earns its return under different conditions.

A yield quote gives only part of the picture. The assets in a position can lose value, rewards can end, and withdrawing or selling may cost money. To understand a farm, follow the funds from deposit to withdrawal. Ask who pays the return, what determines its size, and what could prevent you from recovering your assets.

Where Does Yield Farming Income Come From?

The main sources of yield are borrower interest, trading fees, and token incentives. Vaults pass through the results of the strategies they run with pooled deposits.

• Lending interest. Lending markets pay suppliers interest as borrowers use the pool. Rates can change as borrowing grows or shrinks relative to supply. Depositors who enter at the same time can earn different total returns if they leave at different times or pay different network fees.

• Trading fees. A decentralized exchange can allocate part of each swap fee to liquidity providers. What a position earns depends on trading activity, the pool’s fee rules, and the liquidity competing for those trades.

• Token incentives. A protocol or sponsor may distribute a reward token to users who supply an eligible market. The distribution schedule and the user’s share of the program determine how many tokens they earn. The sale price determines what those tokens are worth when converted.

• Vault proceeds. A vault combines deposits and directs capital into one or more strategies. Depositors hold shares representing a claim on the vault’s assets. Their return depends on the underlying strategies after applicable fees and losses.

What Are the Most Common Yield Farming Strategies?

Yield farming can generate returns from lending, providing liquidity, staking yield-bearing assets, or earning additional token incentives.

1. DeFi lending: Users supply assets to lending protocols such as Compound and earn variable interest paid by borrowers.

2. Liquidity providing and liquidity mining: Users deposit assets into liquidity pools such as Uniswap to earn trading fees. Some protocols also offer additional token rewards, known as liquidity mining incentives, on top of those fees.

3. Yield vaults: Protocols such as Yearn automatically deploy and rebalance deposited assets across DeFi strategies to generate and compound returns.

4. Yield trading: Protocols such as Pendle let users separate principal from future yield, allowing them to lock in, trade, or speculate on yield independently.

What Are Popular Yield Farming Protocols?

1. Compound Finance: Lets users supply crypto assets to lending markets and earn variable interest generated by borrowing demand. Returns depend on market utilization, supported assets, and current supply rates.

2. Uniswap: Lets liquidity providers deposit token pairs into pools and earn a share of trading fees. Returns depend on trading volume, fee tier, liquidity range, and price movements between the deposited assets.

3. Yearn Finance: Offers automated vaults that deploy deposited assets across selected DeFi strategies. Vaults can rebalance or compound positions automatically, while returns depend on the underlying strategies and protocols.

4. Pendle: Lets users separate yield-bearing assets into principal and future-yield components. This allows users to trade, lock in, or speculate on future yield instead of only earning the underlying variable rate.

How Do You Calculate Your Actual Yield Farming Return?

Actual yield farming return should include the value of your position, earned rewards, and all costs over the same holding period. APR shows an annualized rate without compounding, while APY includes assumed compounding. Both can change over time and should not be treated as guaranteed returns.

1. Separate each source of yield: Identify lending interest, trading fees, and incentive tokens separately. A high headline rate may depend heavily on temporary token rewards rather than recurring protocol activity.

2. Include all costs and losses: Account for network fees, swaps, protocol or vault fees, reward-token conversions, and, for liquidity pools, changes such as impermanent loss or out-of-range positions.

3. Compare your final value with your starting value: If you deposit $1,000, withdraw assets worth $940, earn $45 in separate rewards, and spend $15 on fees, your final value is $970, resulting in a 3% loss over the holding period. If rewards are already included in the final position value, do not count them twice.

Can You Lose Money Yield Farming?

Yes. Falling asset prices, limited withdrawal liquidity, and failures in the contracts or markets that hold your capital can outweigh the yield you earn.

1. Divergence from holding. A liquidity pool changes the mix of assets in your position as their relative prices move. This can leave the position worth less than holding the starting assets in your wallet, a difference often called impermanent loss. Fees can offset the gap. The outcome depends on the token pair, price range, and trading activity.

2. Limited exits. A lending pool with heavy borrowing may have little cash available for withdrawals. A reward token with thin trading liquidity can be hard to sell near its quoted price. Stablecoin positions also depend on each coin’s ability to maintain its peg and on its redemption mechanism.

3. Dependencies across contracts. A vault can depend on lending markets, exchanges, and price feeds. A failure in one can affect positions held through another. Strategies that borrow also incur financing costs and can face liquidation if collateral value falls below the required threshold.

Related Concepts

• What Is DeFi?

• What Is Liquidity?

• What Is Smart Contract?

• What Is Gas?

Further Reading

• Top 4 Yield Farming Strategies in DeFi to Watch in 2026

• What Is Aave DeFi Lending Protocol and How Does it Work?

• What Are the Top 10 DeFi Lending Protocols to Watch in 2026?

• What Is DeFi (Decentralized Finance)? 8 Types of DeFi Protocols to Know