Yield farming is the practice of depositing crypto into decentralised finance (DeFi) protocols, such as lending markets or liquidity pools, to earn fees, interest or reward tokens on top of your deposit. The advertised returns can look large, but they come with risks that are easy to underestimate.
Yield farming became popular in 2020 during the “DeFi summer”, when projects began handing out their own tokens to attract users. This guide explains the main strategies, where the yield really comes from, how to read the numbers, and which dangers matter most for beginners. It is educational content, not financial advice.
Key takeaways
- Yield farming earns returns by lending crypto, providing liquidity, or collecting reward tokens from DeFi protocols.
- Returns come from borrowers’ interest, trading fees or newly issued tokens. If the source is only new tokens, the yield may not last.
- APY figures are estimates that change constantly and often assume reward tokens keep their price.
- Main risks include smart contract hacks, impermanent loss, token price crashes, rug pulls and high fees.
- A very high yield usually signals very high risk. Test with small amounts only.
How yield farming works
Think of a farmer moving crops between fields to find the best harvest. In DeFi, the “farmer” is a user who moves tokens between protocols looking for the best return. The process usually looks like this:
- You deposit tokens, for example a stablecoin or a pair of tokens, into a protocol.
- The protocol uses your deposit for something useful: lending it out, enabling trades, or securing a service.
- You receive a share of the income, and sometimes extra reward tokens.
- You may then use the receipt token you got (such as an LP token) as a deposit somewhere else to earn even more. This stacking is called composability, and it is both the attraction and the danger of DeFi.
Everything is done through smart contracts and a wallet. There is no bank or support desk. If something goes wrong, nobody can reverse it. Our guide to DeFi covers the foundations.
Common yield farming strategies
| Strategy | How it works | Main extra risk |
|---|---|---|
| Lending | Deposit tokens into a lending market and earn interest from borrowers | Borrower defaults handled by collateral; contract bugs |
| Liquidity provision | Supply two tokens to a pool and earn trading fees | Impermanent loss |
| Liquidity mining | Earn the project’s own reward tokens for providing liquidity | Reward token price may collapse |
| Staking in a protocol | Lock tokens to earn rewards or fees | Lock-up periods, slashing, platform failure |
| Auto-compounding vaults | A contract reinvests rewards automatically | Extra contract layer and fees |
The pool mechanics are explained step by step in liquidity pools and impermanent loss. Simple staking is a related but separate idea, covered in crypto staking explained.
Where does the yield come from?
This is the most important question. A sustainable return has a real source:
- Borrowers paying interest: people borrow, often to trade with leverage, and pay for it.
- Traders paying fees: each swap in a pool pays a small fee to liquidity providers.
- Newly issued tokens: projects hand out their own tokens as an incentive. These are not income from outside the system. They are paid by diluting everyone holding the token.
When most of a yield consists of new tokens, it is a marketing cost for the project. If the token price drops, the real return drops with it. In the worst cases, high returns are simply paid with money from newer depositors, which is the pattern of a Ponzi scheme. See crypto scams for warning signs.
Reading APR and APY
APR is the simple yearly rate. APY includes compounding, meaning earnings are reinvested. A farm showing 100% APY does not guarantee that you double your money. The number is a snapshot based on current conditions, and it usually falls as more people join.
Here is a simple example with round numbers, not a forecast. You deposit 1,000 units in a farm advertising 50% APR paid in the farm’s own token. After a year you receive tokens that were worth 500 on the day you received them. But if the token price falls by 70% before you sell, those rewards are worth about 150. Add gas fees of, say, 40 for entering, claiming and leaving, and the real result is much lower than the headline.
Before trusting a number, ask what it is paid in, how long it has been stable, and what happens to it if the reward token falls.
A worked example of costs and returns
Imagine, with round example numbers only, that you deposit 2,000 units into a liquidity farm. The pool pays trading fees equal to 8% a year and a reward token worth another 30% a year at today’s price. On paper that is 38%, or 760 units.
- If the reward token halves in price during the year, the reward portion drops from 600 to about 300, and the total falls to about 540 before costs.
- If impermanent loss of 5% occurs because the pair’s prices diverged, subtract about 100 more.
- If gas fees for entering, claiming twice and exiting come to 60, the net is roughly 380 units, or 19%, rather than 38%.
- If the contract is exploited, the result could be a total loss of the 2,000.
The example shows why headline yields are the best case rather than the typical case. Compare this with simply lending a stablecoin at a modest rate: the number is smaller, but there are fewer moving parts. Neither choice is risk-free.
The main risks
- Smart contract risk: bugs or exploits can drain funds. Audits help but do not guarantee safety. See smart contracts and their limits.
- Rug pulls: developers abandon a project or withdraw liquidity, leaving depositors with worthless tokens.
- Impermanent loss: price changes in a liquidity pool can leave you worse off than holding.
- Token price risk: reward tokens often lose value quickly after launch.
- Liquidation risk: if you borrow against your deposit and prices fall, your collateral can be sold automatically.
- Approval abuse: giving unlimited token approvals to a malicious contract can let it empty your wallet.
- Costs and taxes: every deposit, claim and withdrawal may cost gas and may be a taxable event in your country.
A cautious checklist
- Learn the basics first with small test transactions.
- Prefer long-running, audited protocols with a public team and a clear record, and still assume they can fail.
- Understand exactly where the yield comes from before depositing.
- Never put in money you cannot afford to lose, and avoid borrowing to farm.
- Use a dedicated wallet with limited funds and review token approvals regularly. Review wallet safety in hot wallet vs cold wallet.
- Be wary of promises of guaranteed returns, urgency, and links sent by strangers.
Is yield farming profitable?
It can be, but profits are uncertain and many participants lose money through hacks, impermanent loss, falling reward tokens and fees. No yield is guaranteed.
What is the difference between yield farming and staking?
Staking usually means locking a token to help secure a blockchain and earning rewards for it. Yield farming is a broader term for moving funds between protocols to chase the best return, often with more complexity and risk.
What is a rug pull?
It is a scam in which a project’s creators attract deposits and then withdraw the funds or sell their tokens, leaving everyone else with worthless assets.
Is yield farming the same as passive income?
Not really. It needs ongoing attention to rates, contract risks and prices, and gains may be taxable.
Can beginners yield farm safely?
No strategy is completely safe. Beginners should start by learning, using small amounts, and treating the funds as high-risk money.
Next step: understand the mechanics behind pools in liquidity pools and impermanent loss, and the safety basics in crypto scams.



