What Is Yield Farming?
Yield farming moves crypto between DeFi protocols to earn fees and tokens. Learn how lending pools, liquidity mining, and impermanent loss work.
Updated October 2026 · Reviewed by the PipeFlare team
Yield farming is the practice of moving cryptocurrency between decentralized finance protocols to earn interest, trading fees, or governance tokens.
Yield farming stacks smart contract bugs, impermanent loss, and volatile reward tokens on top of ordinary asset price fluctuations.
Category
Core concepts
Difficulty
Intermediate
Where you'll see it
Lending protocols like Aave, decentralized exchanges like Uniswap, and liquidity mining reward programs across decentralized finance.
First introduced
Compound launched its COMP governance token on June 15, 2020, starting the wave of liquidity mining that brought decentralized finance mainstream.
About yield farming
Yield farming is the practice of depositing and moving cryptocurrency across decentralized finance protocols to collect returns in the form of interest, trading fees, or newly minted reward tokens. A participant directs digital assets into software-driven pools rather than leaving those tokens idle in a personal address. The arrangement is not safe in the sense of guaranteed capital protection or predictable revenue. Smart contract vulnerabilities, impermanent loss from automated market maker pools, and sudden price drops in secondary reward tokens can cause a depositor to lose money.
How it actually works
Yield farming operates through automated smart contracts deployed on blockchains, most prominently shown across the ecosystem documented on Ethereum's decentralized finance portal. The simplest mechanic relies on decentralized lending pools. When a user deposits cryptocurrency into a lending system such as Aave, the protocol issues a receipt token in return. For instance, lending 100 Dai produces 100 aDai, an interest-bearing token that represents the loan balance and accrues interest over time as borrowers draw against the shared liquidity. The depositor earns income directly from borrower interest, and the receipt token remains redeemable for the underlying asset subject to pool liquidity conditions.
A second mechanism routes capital into automated market maker liquidity pools on platforms like Uniswap, which operate as a decentralized exchange. To learn about that exchange model, see our guide on What is a DEX. In these pools, liquidity providers supply a pair of tokens so that external traders can swap between them without centralized order books. In exchange for underwriting this trading activity, liquidity providers collect a proportional cut of protocol transaction fees. Supplying two tokens exposes depositors to impermanent loss, which is the divergence in portfolio value compared to simply holding both assets in a wallet when market exchange rates shift. If the price ratio between the deposited tokens diverges sharply, the underlying share of the pool can end up worth less than the original tokens held separately outside the contract.
The dynamic expanded significantly on June 15, 2020, when Compound launched its COMP governance token, establishing the model called liquidity mining. In a liquidity mining structure, protocols distribute their own native governance tokens on top of regular interest or trading fees to attract total capital. Farmers deploy assets into a pool, collect baseline interest or swap fees, receive newly minted governance tokens, and often re-deposit those earned tokens into secondary protocols to repeat the loop. These extra reward tokens can lose purchasing power rapidly on secondary markets. Every protocol introduced into this chain introduces additional software failure points. Code exploits or technical failures at any single layer can drain deposited collateral entirely.
Yield farming differs fundamentally from base-layer validation mechanisms such as staking. To compare network consensus with protocol lending, review our guide on What is crypto staking. Staking locks coins to secure an underlying blockchain network against attacks, where primary hazards center on token price volatility, unbonding lockup intervals, and protocol slashing penalties. Farming deposits assets into user-facing smart contract applications, stacking multiple layers of external code risk, market trading activity, and impermanent loss directly on top of token price volatility.
Start here
- 1Verify whether the target protocol has undergone reputable external code audits and check community review notes on ethereum.org to evaluate known smart contract vulnerabilities.
- 2Identify the source of the yield, confirming whether payouts originate from organic borrower interest, trading fee volume, or inflationary governance token distributions.
- 3Review protocol withdrawal terms, lockup windows, and liquidity constraints to ensure an unencumbered exit path is available if market conditions deteriorate.
- 4Test every deposit, claim, and withdrawal interaction using a negligible amount of capital before committing larger balances to the smart contract.
- 5Record every token swap, pool deposit, receipt token distribution, and reward claim for accounting purposes, referencing the guidance on DeFi taxes.
Strengths
- Depositors can put idle cryptocurrency to work by providing liquidity to peer-to-peer lending markets and decentralized exchange trading pools.
- Liquidity providers capture a direct share of protocol trading fees and automated lending interest paid by external borrowers.
- Early capital contributors can accumulate protocol governance tokens distributed through targeted liquidity mining initiatives.
Common misunderstandings
- Smart contracts can contain software bugs or protocol exploits that result in the total permanent loss of deposited capital.
- Depositing paired assets into automated market maker pools carries impermanent loss if market prices diverge after entry.
- Reward tokens distributed by liquidity mining protocols can collapse in market value, eliminating expected returns and leaving capital exposed.
- Executing multi-step farming strategies across smart contracts generates frequent taxable events that require comprehensive reporting.
Common questions
What is yield farming in crypto?
Yield farming is an active decentralized finance strategy where crypto holders deposit tokens into lending markets or liquidity pools to generate returns. Participants earn lending interest, decentralized exchange trading fees, or newly minted governance tokens. The capital is managed entirely by self-executing smart contracts rather than human financial intermediaries.
Is yield farming safe?
Yield farming is not safe because it carries multiple distinct technical and market hazards. Smart contracts can suffer from software bugs and exploits that community code review cannot fully prevent. Depositors also face impermanent loss when supplying trading pairs, alongside sudden price drops in volatile reward tokens.
Is yield farming profitable?
Yield farming is not guaranteed to be profitable and can generate net financial losses. Displayed yield percentages represent fleeting point-in-time snapshots that adjust as capital enters or exits the pool. If reward token prices decline or impermanent loss exceeds earned trading fees, a farmer will lose money relative to holding the original tokens.
What is the difference between yield farming and staking?
Staking locks native cryptocurrency to secure a single layer-one consensus network, carrying price risk, lockup intervals, and protocol slashing. To understand slashing and balance loss, read Can you lose money staking crypto. Yield farming deposits tokens into decentralized finance applications like Aave or Uniswap, adding smart contract vulnerabilities and impermanent loss on top of base asset price volatility.
What is the difference between yield farming and liquidity mining?
Liquidity mining is a specific subset of yield farming popularized when Compound distributed COMP tokens in June 2020. Standard yield farming encompasses any yield generation, including baseline lending interest and trading fees. Liquidity mining specifically rewards participants with the protocol's own newly minted governance tokens for providing capital.
Is yield farming taxed?
Yield farming transactions may trigger taxable events depending on your local regulatory jurisdiction. Depositing assets, receiving yield tokens, claiming liquidity mining distributions, and swapping receipt tokens can all be taxable. For detailed transaction reporting rules, review our comprehensive resource on DeFi taxes.
Sources
Related guides
Ready to put this into practice?
Exchange sign-up bonuses pay both you and a referrer after a qualifying trade.