What Is Yield Farming and How Does It Work?

Yield farming is a term that came out of decentralized finance, usually shortened to DeFi. At its simplest, it describes the practice of depositing crypto assets into an automated protocol that pays out rewards for doing so. The "farming" metaphor comes from the idea of planting capital in one place and harvesting a return over time. What makes it different from simply holding tokens in a wallet is that the assets are actively being used by a piece of software that other people are paying to interact with.

To understand where the rewards come from, it helps to start with liquidity pools. Many decentralized exchanges do not use a traditional order book where buyers and sellers post bids and offers. Instead they use an automated market maker, which is a smart contract holding a reserve of two or more tokens. Traders swap against that reserve, and a mathematical formula adjusts the price based on the changing ratio of assets in the pool. For this to work, someone has to supply the tokens in the first place. Those suppliers are called liquidity providers, and every swap charges a small fee that is distributed among them in proportion to their share of the pool.

When you deposit into a pool, the protocol typically issues you a liquidity provider token, often called an LP token. This is a receipt that represents your claim on the pool. It is not the reward itself; it is proof of ownership that you redeem later to withdraw your share of the underlying assets plus whatever fees accumulated. LP tokens are themselves transferable, which is what makes more elaborate yield farming possible.

The second source of yield is incentive emissions. New protocols face a chicken-and-egg problem: traders will not use an exchange with thin liquidity, and liquidity providers will not deposit where there is no trading volume. To break the deadlock, a protocol may distribute its own governance token to people who provide liquidity. Users deposit their LP tokens into a separate contract, sometimes called a farm or a staking contract, and the protocol streams newly issued tokens to them over time. This is why yields on a brand-new pool can look dramatically different from an established one: the extra rewards are being paid in a token the protocol created, not purely from organic trading activity.

Lending markets offer another common path. These protocols let users deposit assets into a shared pool that borrowers can draw from by posting collateral worth more than what they borrow. Borrowers pay interest, and that interest flows back to depositors, with the rate adjusting algorithmically based on how much of the pool is currently borrowed. Some farmers layer strategies, using deposited collateral to borrow another asset and deploying that elsewhere, which multiplies both the potential return and the potential for loss.

Compounding plays a large role in how yields are quoted. Rewards often accrue continuously and must be claimed, then converted and redeposited to start earning on the larger balance. Some protocols and third-party vaults automate this loop. Because compounding assumes conditions stay constant, advertised rates are projections rather than promises, and they move as deposits, trading volume, and emission schedules change.

The risks are specific and worth understanding before anything else. Smart contract risk is the possibility that the code contains a bug or an exploitable flaw, and funds in DeFi are generally not covered by deposit insurance. Impermanent loss affects liquidity providers whenever the relative prices of the pooled assets diverge: the automated market maker rebalances your position as traders arbitrage it, and you can end up with less value than if you had simply held the two tokens separately. Reward tokens can lose value as more of them are emitted, so a headline yield paid in a freshly minted token may not translate into the value it appeared to promise. Network transaction fees can consume small positions, particularly for strategies that require frequent claiming. Layered or leveraged strategies add liquidation risk, where a price move can trigger the automatic sale of your collateral.

Yield farming is best understood as a set of mechanics rather than a single activity. Fees from real usage, interest from real borrowers, and emissions from a protocol's treasury are three very different sources of return, with different durability and different risks attached. Knowing which one a given opportunity actually relies on is the core skill involved.

This article is for general education only — not financial advice, and nothing here is a recommendation to buy, sell, or hold any asset. Cryptocurrency carries real risk of loss; always do your own research before making a financial decision.