Finance August 18, 2026

How Does Yield Farming Work?

A 7-minute read

Yield farming is a way to earn returns by moving cryptocurrency around DeFi protocols, chasing the highest available rates. The returns can be extraordinary and so can the risks.

In June 2021, a DeFi protocol named Alpha Finance was offering annual yields above 200% for depositors who staked a particular token pair. Within 72 hours, yield farmers had moved over $500 million into the pool. Within a week, some of them had made more than 10% on their capital. Within a month, several had lost half of it when the yield collapsed and token prices fell. This is yield farming: a system that makes extraordinary returns possible and probable losses equally so, often for the same farmers in the same week.

Yield farming, also called liquidity mining, is the practice of depositing cryptocurrency into DeFi protocols to earn returns. Unlike a savings account at a traditional bank, where interest rates might move by fractions of a percent over a year, DeFi yields can swing from 2% to 200% APY in the span of days. Yield farmers are the people who move money between these protocols to capture those differences. They are arbitrage hunters operating in a market that never closes and where prices update every block.

The short answer

Yield farming works by depositing cryptocurrency into liquidity pools or lending protocols in DeFi. These protocols use your deposited assets to facilitate borrowing, trading, or staking by other users, and they pay you a share of the fees and interest generated. The yields are variable and can be boosted by compounding rewards across multiple protocols, but the returns come with real risks including token volatility, smart contract failures, and impermanent loss.

The full picture

How DeFi lending actually works

To understand yield farming, you need to understand how DeFi lending protocols function. In a traditional bank, when you deposit money, the bank lends it out and pays you interest. The bank keeps the spread between what it pays you and what it charges borrowers.

DeFi lending protocols do the same thing automatically, using code instead of a bank branch. When you deposit Ethereum (ETH) into a protocol like Aave or Compound, other users can borrow it by posting collateral. Borrowers pay an interest rate that is set algorithmically based on how much money is in the pool and how much demand there is to borrow it. You, as the depositor, earn a share of that interest.

The critical difference from a bank is that there is no human approving loans, no credit check, and no customer service line. The terms are encoded in a smart contract that runs on the blockchain. If the conditions are met, the transaction executes automatically. This means the system works 24 hours a day, requires no identity verification, and has no geographic restrictions.

Liquidity pools and how farmers earn

Not all yield farming happens through lending. The most active form involves liquidity pools, which are at the heart of decentralized exchanges like Uniswap.

In a liquidity pool, you deposit two tokens in roughly equal value, such as ETH and USDC. This creates a trading pair that other users can swap between. When someone trades ETH for USDC, they pay a fee, and that fee is distributed proportionally to all the liquidity providers in that pool.

As a liquidity provider, you earn a fraction of every trade that uses your tokens. On popular pairs like ETH/USDC, this might generate 5-10% APY in fee income alone. But farmers rarely stop there. They compound these rewards by reinvesting them back into the same or different pools, using the tokens they earn to open larger positions and capture more fees.

This is where the complexity escalates. A sophisticated yield farmer might simultaneously be lending stablecoins on Aave to earn 4%, providing ETH-USDC liquidity on Uniswap to earn 8%, and staking the resulting LP tokens in a third protocol to earn another 40% in governance tokens. The combined yield looks extraordinary on a dashboard. What the dashboard often does not show clearly is the cost basis, the token price decline, or the compounding gas fees on every transaction.

Where the yields actually come from

The yields in yield farming come from three distinct sources, and knowing which one you are relying on is essential for understanding the risk.

The first source is genuine economic activity. When a borrower pays 5% annual interest on a loan, that 5% represents real demand for capital. It comes from traders who want leverage, arbitrageurs who need working capital, and protocols that borrow for operational reasons. Returns from genuine activity are the most sustainable.

The second source is trading fees. Every swap in a liquidity pool generates a small fee, typically 0.3% on Uniswap-style exchanges. When trading volume is high, these fees can generate meaningful returns for liquidity providers. When volume drops, so does this income stream.

The third source is token incentives. Many DeFi protocols distribute newly minted governance tokens to attract capital. A protocol might offer an additional 50% APY in its own tokens on top of the 5% from actual lending activity. This makes the headline yield look extraordinary, but those tokens have no intrinsic value until the protocol generates real revenue or someone else buys the tokens. When farmers rush to sell their reward tokens, the price collapses and so does the yield. A 2021 analysis by CoinDesk found that in many protocols, the majority of apparent yield came from token inflation rather than genuine economic activity.

Why yields collapse so quickly

In traditional finance, interest rates move gradually because banks, central banks, and financial markets all adjust slowly. In DeFi, anyone with a wallet can move millions of dollars in seconds. When a protocol announces a new liquidity mining program with a 200% APY, farmers flood in within hours. That flood of new deposits immediately drives down the yield because the rewards are spread across more tokens.

A protocol that offered 150% APY in January might offer 15% by March and 4% by June. The farmers who arrived first captured enormous returns. The farmers who arrived in March were chasing a yield that was already collapsing. This is the fundamental dynamic of yield farming: the act of chasing high yields is itself what destroys high yields.

Why it matters

The collapse of the TerraUST stablecoin in May 2022 erased roughly $60 billion in market value in a single week. Many of the funds lost were from yield farming strategies that had been promoted as safe because they offered yields of 15-20% on stablecoin deposits. Those yields were not coming from sustainable economic activity. They were coming from a Ponzi-style cycle where new depositors’ money paid existing depositors. When the cycle reversed, the whole system collapsed within 72 hours.

Understanding how yield farming works matters for two concrete reasons even if you never touch DeFi.

First, the concepts behind yield farming are increasingly appearing in mainstream finance. Fidelity now offers Ethereum staking to institutional clients. BlackRock has explored tokenized assets. The mechanics of liquidity provision, algorithmic interest rates, and token incentives are not going away; they are being adopted by the traditional financial system. Understanding yield farming is a preview of how your future financial products may work.

Second, the risks in yield farming are a stress test for the idea that higher returns always mean higher risk. Traditional finance pays you roughly 4-5% on a US Treasury bill because the US government has never defaulted. DeFi protocols paying 40% on the same currency are either taking on enormous hidden risks or running a cycle that cannot last. The yield number by itself tells you very little. Understanding where the yield comes from tells you almost everything.

Common misconceptions

“High yield means the protocol is successful and sustainable.”

This is the most dangerous misconception in DeFi. In many cases, the highest yields are the most artificial. A protocol distributing token rewards to attract depositors is not demonstrating sustainable economics; it is buying users with newly printed tokens. When the distribution schedule slows down or token prices fall, yields collapse regardless of how busy the protocol is. Always ask where the yield is actually coming from before assuming it represents genuine value creation.

“Impermanent loss is just an accounting thing.”

Impermanent loss sounds like a technicality, but it represents real economic harm. When you deposit tokens into a liquidity pool and one of them rises in value significantly, the pool’s automated rebalancing mechanism sells some of your appreciation and buys more of the underperforming token. This means you end up with less of the token that went up than if you had simply held it outside the pool. The word “impermanent” only applies if both tokens return to exactly the same price they had when you deposited. That almost never happens. A Bancor study found that in practice, impermanent loss affects nearly all liquidity providers who hold volatile assets long enough to matter.

“DeFi protocols are safer than banks because they are decentralized.”

Decentralization is a technical property, not a safety guarantee. A smart contract running on a blockchain can still have bugs, and when those bugs are exploited, there is no customer service line to call and no FDIC insurance to cover losses. In 2022 alone, DeFi exploits totaled over $3.8 billion in stolen funds according to Chainalysis. The largest protocols have undergone extensive audits and have proven reliable over years of operation, but no smart contract is risk-free, and the decentralization of the system does nothing to protect against logic errors in the code.

Key terms

APY (Annual Percentage Yield): The total return earned on an investment over a year, including compound interest. Unlike a simple interest rate, APY accounts for the effect of reinvesting gains, which can make a significant difference when yields are high and compounding is frequent.

DeFi (Decentralized Finance): Financial services built on blockchain networks that operate without traditional intermediaries like banks. DeFi protocols use smart contracts to offer lending, borrowing, trading, and earning services directly between participants.

Impermanent loss: The reduction in value that liquidity providers experience compared to simply holding the same tokens in a wallet. It occurs because automated market makers rebalance pools in a way that systematically sells assets as they appreciate. The loss becomes permanent when you withdraw from the pool.

Liquidity pool: A smart contract that holds two or more tokens and allows anyone to trade against them. Liquidity providers deposit tokens into the pool and earn a share of the trading fees generated by everyone who uses it.

Smart contract: A program that runs on a blockchain and automatically executes terms when conditions are met. DeFi protocols are built from collections of smart contracts that together form lending platforms, exchanges, or other financial services.

Stablecoin: A cryptocurrency designed to maintain a fixed value, usually pegged to the US dollar. Because their value does not fluctuate, stablecoins are the most common token used in yield farming strategies that aim to earn returns without exposure to crypto price volatility.