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

  1. Pick a protocol

    Choose a pool or lending market and read what it pays and how. See Decentralised Finance (DeFi).

  2. Deposit assets

    Supply a token pair, such as ETH and a stablecoin, to a liquidity pool.1

  3. Receive LP tokens

    The LP token is your claim on your share of the pool, including accrued fees.2

  4. Stake for extra rewards

    Some platforms let you stake LP tokens again for a second layer of rewards.1

  5. Claim and reinvest

    Rewards are claimed and often reinvested, which is what headline APY figures assume.1 See APR and APY.

  6. Monitor and exit

    Rewards and risks change quickly, so positions need active management.1

Worked examples

Example 1 — Fee income from a pool

Fee yield

Hypothetical: you own 1% of a pool that trades $2,000,000 a day and charges a 0.3% fee, the Uniswap v2 rate.3

Example 1 — Fee income from a pool — calculation
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.

Example 2 — The reward token falls — calculation
Rewards at $2.00500 × $2.00 = $1,000
Rewards at $0.50500 × $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 holding

Hypothetical: $10,000 split 50/50 into ETH and a stablecoin. ETH doubles. You earned $600 in fees.

Example 3 — Fees vs. impermanent loss — calculation
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

AspectPaid byMain risk
Trading feesTraders using the poolImpermanent loss, low volume
Lending interestBorrowersBad debt, contract bugs
Incentive tokensNewly issued tokensToken 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.

Disadvantages

  • Smart-contract bugs and exploits can drain funds.2
  • Impermanent loss can outweigh fee income.3
  • Incentive tokens can lose most of their value.
  • Rug pulls: creators can withdraw a pool's liquidity and crash a token.2

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

  1. Trusting the headline APY

    It usually assumes today's volume, token price and compounding stay the same.

  2. Ignoring impermanent loss

    Compare the result with simply holding the two tokens.

  3. Forgetting gas costs

    Claiming and moving rewards costs fees that can eat small yields. See Gas Fee.

  4. 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.

Q1What does an LP token represent?
Q2A farm pays 1,000 reward tokens on a $20,000 deposit. The token falls from $1 to $0.40. What is the reward worth?

Key points to remember

  1. Yield farming earns fees, interest or incentive tokens from DeFi protocols.
  2. Liquidity providers receive LP tokens for their share of a pool.
  3. Headline yields change with volume, incentives and token prices.
  4. Impermanent loss can make farming worse than holding.
  5. Smart-contract bugs and rug pulls can wipe out deposits.

Frequently asked questions

Is yield farming the same as staking?

No. Staking locks tokens to help secure a proof-of-stake network; yield farming supplies tokens to DeFi protocols for fees and incentives. See Staking.

Why are some yields so high?

Often because they are paid in newly issued tokens or rely on unusually high volume. High yield usually signals high risk.

Can I lose money yield farming?

Yes. Exploits, impermanent loss, falling reward tokens and scams can all leave you with less than you deposited.

Further learning

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.

  1. Kraken Learn. What is yield farming? (opens in a new tab) Checked .
  2. U.S. Department of the Treasury. Illicit Finance Risk Assessment of Decentralized Finance (2023) (opens in a new tab) Checked .
  3. Uniswap Docs. Understanding Returns (Uniswap v2) (opens in a new tab) Checked .
  4. ethereum.org. Decentralized finance (DeFi) (opens in a new tab) Checked .
  5. 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.