Yield Farming
Yield farming means moving crypto between DeFi protocols to earn the best rewards — trading fees, interest and incentive tokens. Headline yields can be high, but so are the risks: smart-contract bugs, impermanent loss and reward tokens that lose value.
Yield farming is the practice of putting crypto to work inside decentralised finance (DeFi) protocols to collect rewards. A farmer might supply two tokens to a trading pool, earn a share of the swap fees, then stake the receipt token somewhere else for extra incentive tokens. Advertised yields can look far above bank rates, but they come from fees and token rewards that change daily, and they carry risks that bank deposits do not. This entry explains where the yield comes from, how to estimate it, and what can go wrong.
- Category
- Cryptocurrency and Blockchain
- Reading time
- 6 min
- Also called
- Liquidity mining, DeFi farming, Yield farmer
- Updated
Yield farming in plain words
Yield farmers supply crypto to DeFi protocols, such as decentralised exchanges, and receive rewards in return.1 On many exchanges the deposit goes into a liquidity pool that other users trade against.2
In exchange for the deposit, the provider usually gets an LP token that represents its share of the pool and the fees it builds up.2 Some protocols add governance tokens on top to attract liquidity, which is often called liquidity mining.1
The rewards are not guaranteed. Returns depend on trading volume, incentives, impermanent loss and fees, and bugs in smart contracts can lead to lost funds.1
How a typical yield farm works, step by step
Pick a protocol
Choose a pool or lending market and read what it pays and how. See Decentralised Finance (DeFi).
Deposit assets
Supply a token pair, such as ETH and a stablecoin, to a liquidity pool.1
Receive LP tokens
The LP token is your claim on your share of the pool, including accrued fees.2
Stake for extra rewards
Some platforms let you stake LP tokens again for a second layer of rewards.1
Claim and reinvest
Rewards are claimed and often reinvested, which is what headline APY figures assume.1 See APR and APY.
Monitor and exit
Rewards and risks change quickly, so positions need active management.1
Worked examples
Example 1 — Fee income from a pool
Fee yieldHypothetical: you own 1% of a pool that trades $2,000,000 a day and charges a 0.3% fee, the Uniswap v2 rate.3
| Daily pool fees | $2,000,000 × 0.3% = $6,000 |
| Your daily share | $6,000 × 1% = $60 |
| Over a year | $60 × 365 = $21,900 |
If your 1% stake is worth $100,000, that is about 21.9% a year, but only if volume stays the same, which it rarely does.
Example 2 — The reward token falls
Yield cut by 75%Hypothetical: a $10,000 deposit earns 500 reward tokens a month. The token drops from $2.00 to $0.50.
| Rewards at $2.00 | 500 × $2.00 = $1,000 |
| Rewards at $0.50 | 500 × $0.50 = $250 |
| Monthly yield | $250 ÷ $10,000 = 2.5% |
A headline 10% a month shrank to 2.5% without any change in the farm itself. Incentive yields are only as good as the token's price.
Example 3 — Fees vs. impermanent loss
Behind holdingHypothetical: $10,000 split 50/50 into ETH and a stablecoin. ETH doubles. You earned $600 in fees.
| ETH half if just held | $5,000 × 2 = $10,000 |
| Value if just held | $10,000 + $5,000 = $15,000 |
| Impermanent loss | $15,000 × 5.7% = $855 |
| Pool value | $15,000 − $855 = $14,145 |
| Plus fees | $14,145 + $600 = $14,745 |
| Vs. holding | $14,745 − $15,000 = −$255 |
Uniswap's documentation puts the loss from a 2× price move at about 5.7% against holding, so the fees here did not cover it.3 See Impermanent Loss.
Where the yield comes from
| Aspect | Paid by | Main risk |
|---|---|---|
| Trading fees | Traders using the pool | Impermanent loss, low volume |
| Lending interest | Borrowers | Bad debt, contract bugs |
| Incentive tokens | Newly issued tokens | Token price falls |
Why yield farming matters
Supplying liquidity
Pools funded by farmers let others swap tokens without an order book.1 See Automated Market Maker (AMM).
Bootstrapping protocols
New protocols pay incentive tokens to attract deposits, as Compound did with COMP.1
Reading DeFi activity
Farmed deposits drive figures such as Total Value Locked.
Spotting risk
Very high advertised yields are a prompt to ask who is paying them and why.
Advantages and disadvantages
Advantages
- Earns trading fees, interest or tokens on otherwise idle crypto.
- Open to anyone with a wallet, without an account at a bank.
- Smart contracts are public and can be inspected.4
- Rewards can compound when reinvested.
Going deeper
Read as far as you need. Each level builds on the one before it.
Renting out your tokens
Beginner
Yield farming is a bit like renting out your tokens to traders or borrowers. The rent is the fee or interest; the risk is that the tokens come back worth less, or not at all.
Stacking yields and stacking risk
Intermediate
Staking an LP token in a second protocol adds a second reward stream, but also a second smart contract that can fail.1 Each layer adds yield and a new point of failure. See Reentrancy and Oracle Manipulation.
When yield is a sales pitch
Advanced
In 2021 the SEC charged DeFi Money Market, which had sold tokens paying 6.25% interest and governance tokens through smart contracts, raising more than $30 million in unregistered offerings.5 The SEC found investors were misled about how the returns were generated.5 See Ponzi and Pyramid Schemes and Rug Pull.
Common mistakes
Trusting the headline APY
It usually assumes today's volume, token price and compounding stay the same.
Ignoring impermanent loss
Compare the result with simply holding the two tokens.
Forgetting gas costs
Claiming and moving rewards costs fees that can eat small yields. See Gas Fee.
Skipping due diligence
Unaudited contracts and anonymous teams raise the risk of exploits and rug pulls.
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- Yield farming earns fees, interest or incentive tokens from DeFi protocols.
- Liquidity providers receive LP tokens for their share of a pool.
- Headline yields change with volume, incentives and token prices.
- Impermanent loss can make farming worse than holding.
- Smart-contract bugs and rug pulls can wipe out deposits.
Frequently asked questions
Is yield farming the same as staking?
Why are some yields so high?
Can I lose money yield farming?
Further learning
- Impermanent Loss
The main hidden cost of providing liquidity.
- Automated Market Maker (AMM)
How the pools farmers fund actually work.
- APR and APY
How advertised yields are calculated.
- Rug Pull
The scam to watch for in new farms.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- Kraken Learn. What is yield farming? (opens in a new tab) Checked .
- U.S. Department of the Treasury. Illicit Finance Risk Assessment of Decentralized Finance (2023) (opens in a new tab) Checked .
- Uniswap Docs. Understanding Returns (Uniswap v2) (opens in a new tab) Checked .
- ethereum.org. Decentralized finance (DeFi) (opens in a new tab) Checked .
- U.S. SEC. SEC Charges Decentralized Finance Lender and Top Executives for Raising $30 Million Through Fraudulent Offerings (2021-145) (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.