Yield Farming Explained: How to Earn DeFi Rewards Step by Step
A practical guide to yield farming: how liquidity pools pay rewards, a worked APY example, a platform comparison, and the risks every DeFi farmer must manage.
Yield farming is the practice of supplying crypto assets to DeFi protocols to earn rewards, typically by depositing tokens into a liquidity pool or lending market and collecting fees, interest, and incentive tokens in return. Unlike leaving coins idle in a wallet, farming puts capital to work across automated, permissionless smart contracts. Returns are quoted as APY or APR and can range from a few percent on stablecoins to triple digits on volatile pairs. This guide explains the mechanics, walks through a real numeric example, compares the main platform types, and covers the risks intermediate users must manage before deploying funds.
What Yield Farming Actually Is
At its core, yield farming (sometimes called liquidity mining) means you deposit crypto into a smart contract and receive a yield for doing so. The yield can come from three distinct sources, and understanding which one you are earning is the single most important skill in DeFi:
- Trading fees — On a decentralized exchange, every swap pays a small fee that is distributed to the people who supplied the pool's liquidity.
- Lending interest — On a money market, borrowers pay interest that flows to suppliers, set algorithmically by supply and demand.
- Incentive tokens — Protocols often hand out their own governance token on top of the base yield to attract capital. This is the "farming" layer that gave the practice its name.
The building block underneath all of this is the smart contract. Because the contract is autonomous and non-custodial, you keep ownership of your assets the entire time — there is no broker holding your funds. That self-custody is the same property that made Bitcoin revolutionary; DeFi simply extends it from payments to lending, trading, and farming. It is the ecosystem's biggest advantage and, as we will see, also its biggest responsibility.
How Liquidity Pools and AMMs Pay You
Most farming happens through an automated market maker (AMM). Instead of an order book matching buyers and sellers, an AMM holds two assets in a pool — classically in a 50/50 value ratio — and lets traders swap against that pool at a price set by a formula. When you become a liquidity provider (LP), you deposit equal value of both tokens and receive LP tokens that represent your share of the pool.
Every trade that passes through the pool charges a fee (commonly 0.30%, though modern AMMs offer tiered fees). That fee is split proportionally among all LPs. The more volume the pool handles, the more you earn — which is why farmers chase high-volume pairs.
A newer refinement is concentrated liquidity, where you choose the price range in which your capital is active. Inside the range you earn outsized fees; outside it, your position stops earning until price returns. It boosts capital efficiency dramatically but demands active management.
A Worked Example: What 100% APY Really Looks Like
Headline APYs are easy to misread, so let's run real numbers. Suppose you deposit $10,000 into a pool advertising 40% APY that compounds rewards daily.
- Simple interest at 40% would return $4,000 in a year.
- With daily compounding, the effective return is closer to $4,918 — because each day's rewards start earning too.
Now watch how fees and token price erode that figure:
| Factor | Effect on your $10,000 position |
|---|---|
| Advertised APY (40%, daily compound) | +$4,918 / year |
| Reward token drops 30% before you sell | A large slice of rewards evaporates |
| Gas + harvest costs (10 compounds @ $8) | -$80 |
| Impermanent loss (pair diverges 25%) | roughly -0.6% of position vs. just holding |
The lesson: a 40% APY paid in a token that loses a third of its value is not a 40% return. Always separate the base yield (fees/interest, usually stable) from the incentive yield (token emissions, often volatile and inflationary). Sustainable farms lean on the former.
Comparing the Main Ways to Farm
There is no single "best" venue — each profile suits a different risk appetite. The table below summarizes the three dominant models.
| Model | How you earn | Typical yield | Impermanent loss? | Best for |
|---|---|---|---|---|
| Lending market (money market) | Interest from borrowers + reward token | Low–moderate, often on stablecoins | No | Beginners, capital preservation |
| AMM LP (volatile pair) | Trading fees + reward token | Moderate–high | Yes | Users comfortable with price risk |
| AMM LP (stable pair) | Trading fees + reward token | Low–moderate | Minimal | Lower-risk fee farming |
Lending markets are the gentlest on-ramp: deposit a stablecoin, earn interest instantly, and face no impermanent loss because you never hold a volatile pair. AMM pairs pay more but introduce divergence risk. Stable-to-stable pools (e.g. two dollar-pegged tokens) keep impermanent loss minimal because the two assets track each other.
If you want a deeper walkthrough of a lending-style farm, our companion beginner's guide to lending protocols covers the supply-and-earn flow in detail, while our guide to AMM-based DEX farming walks through providing liquidity to a token pair.
Getting Started: A Step-by-Step Checklist
The operational flow is similar across nearly every protocol. Follow it in order:
- Fund a self-custody wallet. Install a browser or mobile wallet, write down the seed phrase offline, and never share it. This wallet — not an exchange — is what connects to DeFi apps.
- Acquire the right assets. You need the network's gas token (for example Ethereum on Ethereum-style chains) plus the tokens for the pool you want to join.
- Choose a venue that matches your risk level. Start with a stablecoin lending market or a stable pair before touching volatile pools.
- Connect your wallet and approve the token. The first interaction requires a one-time approval transaction so the contract can access that token. This costs a small gas fee.
- Deposit and confirm. Supply your assets, sign the transaction, and receive LP or interest-bearing tokens representing your position.
- Stake the LP tokens (if required). Many farms have a second step: you stake the LP tokens you just received into a "farm" contract to earn the incentive token on top of base fees.
- Track, harvest, and reassess. Monitor your position, claim rewards on a schedule that justifies the gas cost, and re-evaluate when yields drop.
Risks and Pitfalls Every Farmer Must Manage
Yield farming is not passive in the "set and forget" sense. The risks are real and have wiped out positions:
- Impermanent loss. When the two assets in an AMM pair diverge in price, the pool rebalances against you, leaving you with less value than if you had simply held. It is "impermanent" only if prices reconverge — otherwise it becomes a permanent loss when you withdraw. To go deeper, see our dedicated guide to minimizing impermanent loss.
- Smart contract risk. A bug or exploit in the protocol's code can drain a pool. Favor audited, battle-tested contracts and never put more in a single protocol than you can afford to lose.
- Token emission inflation. A 200% APY paid in a token whose supply inflates faster than demand often means the token price is sinking. High APY can be a warning sign, not a gift.
- Gas costs. On congested networks, transaction fees can exceed small farmers' rewards entirely. Size your position so gas is a rounding error, not a tax.
- Rug pulls and unaudited forks. Anonymous teams launching high-yield clones can disappear with deposited funds. Verify the team, the audit, and the locked liquidity before depositing.
COINOTAG Perspective
The farms that survive multiple market cycles are rarely the ones with the flashiest numbers. In our analysis of DeFi yield, the durable strategy is to anchor your portfolio on base yield — trading fees and lending interest you can model — and treat incentive-token emissions as a bonus that may evaporate. Stablecoin lending and stable-pair pools won't make headlines at 8–12% APY, but they compound quietly without exposing you to impermanent loss or token-price collapse. Reserve volatile-pair farming for capital you have explicitly marked as high-risk, and always price in gas, harvest frequency, and the very real possibility that the reward token is worth less when you sell than when you earned it. Discipline, not chasing the highest advertised APY, is what turns yield farming from a gamble into a strategy. Treat farming as one tool among several for putting idle assets to work — sitting alongside staking and lending, each with its own risk-reward profile.
Frequently Asked Questions
What is yield farming in simple terms?
Yield farming is depositing your crypto into a DeFi protocol — usually a liquidity pool or lending market — so it earns rewards from trading fees, lending interest, and incentive tokens, instead of sitting idle in your wallet. You keep ownership of your assets the whole time through a smart contract.
How is yield farming different from staking?
Staking secures a blockchain by locking a single token and earning protocol rewards. Yield farming supplies assets to DeFi applications — often a pair of tokens to a liquidity pool — to earn fees and incentives. Farming usually carries extra risks like impermanent loss that pure staking does not.
What is impermanent loss and why does it matter?
Impermanent loss happens when the two assets in an AMM liquidity pool change in relative price. The pool rebalances automatically, leaving you with less value than if you had simply held the tokens. It is the single most overlooked cost of farming volatile pairs and can outweigh the fees you earn.
Is a high APY always better?
No. A triple-digit APY is often paid in a freshly minted incentive token whose supply is inflating, so the token's price can fall faster than the yield accrues. Always separate stable base yield (fees and interest) from volatile incentive yield, and treat extreme APYs as a risk signal.
How much money do I need to start yield farming?
Technically very little, but gas fees set a practical floor. On busy networks a few small transactions can cost more than the rewards on a tiny position. Beginners are best served by starting on low-fee networks or stablecoin lending markets where impermanent loss is not a factor.
Can I lose money yield farming?
Yes. Beyond impermanent loss, you face smart-contract bugs, exploits, rug pulls from anonymous teams, falling reward-token prices, and gas costs. Only deposit funds you can afford to lose, favor audited protocols, and never put your entire portfolio into a single high-yield farm.