Yield farming is the practice of depositing crypto assets into DeFi protocols to earn a return, typically a combination of trading fees, lending interest and incentive tokens distributed by the protocol, and of moving those assets between opportunities as the returns change. The term covers activity in liquidity pools, lending markets, staking contracts and automated vaults that do the moving on behalf of depositors.
Yield farming became widespread in decentralized finance when protocols began paying users in their own governance tokens for supplying capital. That model attracts liquidity quickly, but much of the advertised return depends on the market price of those tokens, which makes yield farming one of the highest-risk activities in DeFi.
Where the yield comes from
Every yield has a source, and identifying it is the first step of any analysis. A return that cannot be traced to a borrower, a trader or a token issuer is a warning sign. The main sources differ sharply in how durable they are.
| Source | Who pays | Durability |
|---|---|---|
| Trading fees | Traders swapping in a liquidity pool | Durable while trading volume lasts |
| Lending interest | Borrowers in a lending market | Varies with demand for leverage |
| Liquidity mining rewards | The protocol, through new token issuance | Temporary and dilutive |
| Staking rewards | A network’s issuance and fees | Fairly stable, tied to the network |
| Bribes and vote incentives | Projects seeking liquidity direction | Depends on governance competition |
Fees and interest are real economic yield, paid by people who use the protocol. Liquidity mining rewards are newly created tokens; they look like income but are funded by dilution of existing token holders. When the reward token falls in price, the advertised rate falls with it.
How a yield farming strategy works
A basic strategy has three layers. The farmer deposits two tokens into an automated market maker pool and receives LP tokens that represent the share of the pool. The farmer then stakes those LP tokens in a reward contract, which pays incentive tokens. Finally, the farmer periodically harvests and compounds the rewards by selling them and adding the proceeds to the position.
Advanced strategies add leverage and recursion. A farmer can deposit a token in a lending market, borrow against it, deposit the borrowed amount again and repeat, which multiplies exposure to the reward rate. This raises the yield but also the liquidation risk, because a small price move can push the position below its collateral requirement.
Yield aggregators and vaults automate these steps. They pool deposits, harvest rewards, swap them and redeposit them, which spreads gas costs across many users. The convenience adds another layer of smart contracts and therefore another place where a bug can drain funds.
APR, APY and the numbers that matter
Headline figures are easy to misread. APR is the simple annual rate without compounding, while APY includes compounding at an assumed frequency. A displayed APY often assumes daily compounding at zero cost and a constant reward token price, which rarely holds.
| Metric | What it shows | Common pitfall |
|---|---|---|
| APR | Simple annualized return | Mixes fee yield with token rewards |
| APY | Return including compounding | Ignores gas and price changes |
| Total value locked | Capital deposited in the farm | High TVL dilutes each depositor’s rewards |
| Reward emission schedule | How many tokens are released and when | Rates drop sharply after halvings |
| Impermanent loss | Value lost versus simply holding | Can exceed all earned fees |
Rates in the hundreds or thousands of percent usually come from early, heavily subsidized pools with little deposited capital. As more capital arrives, the same emissions are shared among more depositors and the rate falls, often within days.
Yield farming compared with related activities
Yield farming overlaps with several neighboring activities in DeFi, but the emphasis differs. The comparison clarifies what each one involves.
| Activity | Core action | Main risk |
|---|---|---|
| Yield farming | Chasing the best combined return across protocols | Stacked smart contract and token risk |
| Liquidity provision | Supplying a pool for trading fees | Impermanent loss |
| Crypto lending | Supplying assets to borrowers for interest | Bad debt and liquidity crunches |
| Staking | Locking tokens to secure a network | Slashing and lockup periods |
| Liquidity mining | Receiving protocol tokens for supplying capital | Reward token price decline |
Risks and common mistakes
The risks of yield farming stack on top of each other. Each protocol in a strategy adds its own smart contract risk, oracle risk and governance risk, and a failure in any layer can affect the whole position.
- Smart contract exploits can drain pools or vaults regardless of market conditions.
- Impermanent loss in volatile pairs can outweigh fee and reward income.
- Reward token collapse turns a high APR into a loss within weeks.
- Rug pulls occur when anonymous developers withdraw pooled funds or mint unlimited rewards.
- Gas costs make frequent compounding unprofitable for small positions on expensive networks.
- Tax treatment of rewards, swaps and LP tokens can be complex and differs between jurisdictions.
A disciplined approach favors audited protocols with long track records, pools of correlated assets such as two stablecoins, and returns that come mainly from fees and interest rather than emissions. Position size should reflect the assumption that any single protocol can fail.
Put simply
Yield farming is like putting money into several savings schemes at once and moving it whenever another scheme pays more. In DeFi, the schemes are computer programs that pay you for lending your coins or helping others trade.
The catch is that part of the payment often comes in new reward tokens that can lose value quickly, and every program you use is another place where something can go wrong. A very high rate usually means a very high risk.
In practice
A farmer deposits 10,000 dollars, split equally between two dollar stablecoins, into a stablecoin pool on a decentralized exchange. The pool earns about 3 percent from trading fees, and staking the LP tokens adds reward tokens worth about 5 percent per year at current prices, for a combined rate near 8 percent.
Over three months the farmer harvests rewards every two weeks on a low-cost layer 2 network, so gas costs stay below 10 dollars. Meanwhile the reward token falls 40 percent, which cuts the incentive part of the yield almost in half. Because both pool assets are stablecoins, impermanent loss stays negligible. The position ends the quarter up about 150 dollars, mostly from fees, which shows why fee-based yield is more dependable than token emissions.