What Is Yield Farming in Crypto? How It Works and What the Risks Are
Educational content · reviewed for accuracy · not financial advice

Yield farming is the practice of deploying crypto assets into DeFi protocols to earn a return — through trading fees, lending interest, or token rewards. Returns can be high, but so are the risks: smart contract vulnerabilities, impermanent loss, and token reward inflation can all erode or eliminate gains. It requires active management and a clear understanding of what drives the yield.
Live price right now
Prices update automatically every minute · data from CoinMarketCap.
On this pagetoggle
Yield farming became one of the defining concepts of DeFi's explosive growth period. At its peak, protocols advertised annual percentage yields of hundreds or even thousands of percent. Most of those yields did not survive contact with reality. Understanding what yield farming actually is — and why the numbers can be so misleading — is essential before committing any capital.
What Yield Farming Means
Yield farming (also called liquidity mining) is the practice of deploying crypto assets into DeFi protocols to generate a return. The return can come from several sources:
Trading fees. When you provide liquidity to a decentralized exchange — depositing a pair of tokens into a liquidity pool — you earn a share of the trading fees generated by that pool. Every swap made through the pool pays a small fee; liquidity providers collect that fee in proportion to their share of the pool.
Lending interest. Lending protocols pay depositors interest funded by borrowers. The rate varies with supply and demand for each asset.
Token rewards. Many protocols distribute their own governance tokens to users who interact with them. This is the mechanism behind many extremely high yield figures: the protocol is essentially paying users in newly minted tokens that may have little underlying value.
The combination of these sources — sometimes simultaneously — is what makes yield farming more complex than a simple savings account.
Liquidity Pools: Where the Yield Comes From
The most common mechanism underlying yield farming is the automated market maker (AMM) liquidity pool. You deposit two tokens in equal value (for example, ETH and USDC) into a pool contract. The AMM algorithm uses the ratio of the two tokens to determine prices for swaps. As the ratio changes with trades, liquidity providers earn fees from both sides.
For a detailed look at how pool pricing and fee mechanics work, the guide on what a liquidity pool is covers the mathematics in depth.
Impermanent Loss: The Hidden Risk
Impermanent loss is the most important yield farming concept that marketing rarely emphasizes. It refers to the loss liquidity providers experience relative to simply holding the two tokens outside the pool.
Here is why it happens: when the price of one token in a pair moves significantly relative to the other, the AMM rebalances the pool by adjusting the ratio. A liquidity provider ends up holding more of the asset that fell in price and less of the one that rose. Compared to just holding both assets, they are worse off.
The loss is called 'impermanent' because if prices return to their original ratio, the loss disappears. But in practice, prices rarely return to exact entry levels, and the term can mislead people into underweighting the risk.
Example: You deposit ETH and USDC into a pool at a 50/50 split. ETH doubles in price. The AMM has sold some of your ETH for USDC to rebalance. Your position is worth more in absolute terms, but less than if you had simply held the same ETH and USDC outside the pool. The trading fees you earned may or may not offset this gap.
For high-volatility pairs, impermanent loss can easily exceed trading fee income.
Why Yields Can Be So High
Triple-digit APYs in DeFi almost always involve token rewards — the protocol issuing its own native token to attract liquidity. The yield calculation typically uses the current token price, which is often speculative and can drop sharply as early participants sell rewards.
The typical arc:
- New protocol launches with high token emissions to bootstrap liquidity.
- Early participants earn high yields but harvest and sell the reward token.
- Selling pressure drives the token price down.
- The effective yield collapses.
- Liquidity migrates to the next high-emission protocol.
This cycle is called 'mercenary capital' — liquidity that moves to wherever yields are highest and leaves as soon as they compress. It describes most of the dramatic yield events of 2020–2022.
Ethereum and Yield Farming
Ethereum remains the primary home for yield farming activity. Its smart contract ecosystem is the most mature, with thousands of protocols, deep liquidity, and years of security track record (and exploits) from which the industry has learned. Layer 2 networks built on Ethereum — Arbitrum, Optimism, Base — now host significant yield farming activity with lower gas costs.
Understanding gas fees in crypto matters specifically for yield farming: if gas fees on Ethereum mainnet are high, the cost of entering and exiting positions can eat substantially into returns, particularly on smaller positions.
Assessing Yield Farming Risk
Before using any yield farming protocol:
Audit status. Has the smart contract been audited by a reputable security firm? Multiple audits reduce but do not eliminate risk. Check if the audit is public and recent.
Token reward sustainability. What generates the yield? Trading fees and lending interest are real economic activity. Token rewards are inflationary subsidies — evaluate whether they are likely to hold value.
Time in market. Newer protocols carry higher risk of undiscovered bugs. Protocols that have operated for years with large amounts of value locked have a longer track record, though past security does not guarantee future safety.
Liquidity and exit. Can you exit your position quickly if needed? Some strategies involve locked positions or tokens with limited market liquidity.
This is educational information, not financial advice. Yield farming involves significant risk, including smart contract vulnerabilities, token price volatility, impermanent loss, and potential loss of all deposited capital. Consult a qualified financial adviser before investing.
Frequently asked questions
What is yield farming in simple terms?+
Yield farming means putting your crypto assets into DeFi protocols to earn a return. You might earn trading fees by providing liquidity to a decentralized exchange, interest from lending protocols, or token rewards from a protocol trying to attract users. The return varies widely and often involves significant risk.
Is yield farming profitable?+
It can be, but most published APY figures are misleading. High yields often come from token rewards paid in newly issued tokens that may drop in value quickly. Real profitability depends on trading fees earned, impermanent loss suffered, the value of reward tokens actually realized, gas costs to enter and exit, and smart contract risk during the holding period. Many participants have lost money despite high advertised yields.
What is impermanent loss in yield farming?+
Impermanent loss is the difference in value between holding tokens in a liquidity pool versus holding them in a wallet. When the price ratio between two pooled tokens changes, the AMM rebalances by selling the appreciating token and buying the depreciating one. This leaves you with less of the winner than if you had held both tokens outright. Trading fee income may or may not compensate for this loss.
What is the difference between yield farming and staking?+
Staking locks tokens to secure a proof-of-stake blockchain and earns protocol-issued block rewards. It is a native function of the blockchain. Yield farming is an application-layer activity — deploying tokens into DeFi protocols to earn trading fees, lending interest, or token emissions. Yield farming is generally more complex, involves more smart contract risk, and can expose you to impermanent loss.
Which blockchains support yield farming?+
Ethereum and its Layer 2 networks (Arbitrum, Optimism, Base) host the most yield farming activity and the deepest liquidity. Solana, BNB Chain, and Avalanche also have active DeFi ecosystems. Each chain has different gas cost structures, protocol options, and risk profiles.
Our editorial team covers cryptocurrency market data, on-chain metrics and beginner education. Every guide is fact-checked against live market data from CoinMarketCap and Binance and reviewed for accuracy. Content is educational only and not financial advice. Learn about our data & methodology →
Track the market live
Real-time prices, market cap and trends for the top 100 coins.