Yield farming is lending your crypto to DeFi protocols in exchange for a return — that’s the whole concept. The confusion (and the body count) comes from where the return supposedly comes from. As of July 2026 roughly $100–150 billion sits in DeFi protocols chasing yields, with headline APYs ranging from 3% to numbers with a phone number’s digit count. This guide explains the mechanics, the math that eats beginners, and how to tell a yield from a lure.
The setup: pools and liquidity providers
Most farming starts with a liquidity pool: a smart contract holding two (or more) tokens that traders swap against. Instead of matching buyers and sellers, an automated market maker sets prices by formula — the deeper the pool, the less each trade moves the price. You become a liquidity provider (LP) by depositing a pair, say ETH and USDC in equal dollar value, and receiving LP tokens as your receipt. Every swap in that pool pays a fee — commonly 0.05%–0.3% — distributed pro-rata to LPs. That’s the baseline yield, and everything else is layered on top. (New to the whole category? Start with what DeFi is first.)
Where the yield actually comes from — all three sources
Every farming return is one of these, or a blend:
- Real fees. Traders pay swap fees, borrowers pay interest, the network pays staking rewards. Sustainable, boring, usually single-digit. This is real yield — revenue someone outside the system actually paid.
- Token emissions. The protocol prints its own token and hands it to farmers as a subsidy to attract liquidity. The APY looks enormous because it’s denominated in a token whose price usually melts under the very selling pressure it creates. A subsidy is marketing spend, not yield.
- Other depositors’ money. If no one can point to the revenue, there isn’t any — “40% fixed, withdraw anytime” is a Ponzi with extra steps. It’s item one on every scam checklist for a reason.
Before farming anything, force a one-sentence answer to: who pays this, and why?
APY vs. APR
APR is the simple annual rate: 12% APR on $1,000 is $120 over a year. APY assumes you compound — harvest the rewards and redeposit them — so 12% APR compounded daily becomes ~12.75% APY. Two traps: quoted farm APYs often assume daily compounding of a reward token you haven’t sold, and the rate itself floats — a pool paying 60% APY this week attracts a flood of deposits that dilutes it to 8% by next month. Treat any quoted APY as a snapshot, not a promise.
Impermanent loss: the math that eats beginners
Impermanent loss is the gap between LPing a 50/50 pool and simply holding the two assets. The pool’s formula keeps the value of both sides equal, which means it sells your winner and buys your loser as prices move. Concrete example: you deposit $1,000 of ETH and $1,000 of USDC. ETH doubles. A holder has $3,000; the pool’s rebalancing leaves you with about $2,828 — ~5.7% less than just holding. The same curve, at other moves:
| Price change (one side) | Pool vs. holding |
|---|---|
| +25% | −0.6% |
| +50% | −2.0% |
| +100% (2×) | −5.7% |
| +200% (3×) | −13.4% |
| +300% (4×) | −20.0% |
Fees earned can outweigh this in busy, range-bound pools — that’s the LP’s actual bet. “Impermanent” is a polite fiction, by the way: it’s only recovered if the price ratio returns to where you entered. Correlated pairs (two stablecoins, or ETH and a liquid-staked ETH token) barely suffer IL — but carry their own depeg risk instead.
Newer DEX designs sharpen the trade-off. With concentrated liquidity, you choose the price range your liquidity covers: inside the range you earn a larger share of fees with less capital; outside it you earn nothing and hold 100% of the weaker asset. It’s leverage on the same IL curve — higher returns for active managers who rebalance, faster losses for set-and-forget depositors.
Compounding and vaults
Raw farming means manually claiming reward tokens and redepositing them — on Ethereum mainnet, gas can make this pointless under a few thousand dollars. Auto-compounding vaults do it for everyone in aggregate, socializing the gas cost, in exchange for a performance fee and one more layer of smart-contract risk. Layer-2 networks have largely solved the gas side; the contract-risk side is permanent.
The full risk list
- Smart contract risk. A bug is a vault with a hole; an audit reduces risk but never removes it.
- Rug pulls. Anonymous team, fresh contract, huge emissions — the team drains the pool and vanishes. Routine on new farms.
- Depeg risk. Stablecoin and derivative pairs assume the peg holds; when it doesn’t, the pool’s rebalancing hands you 100% of the broken asset.
- Reward token collapse. Your “yield” is paid in a token whose price you must watch like a hawk.
- Admin keys. Many “decentralized” farms can be upgraded or paused by a small multisig. Know who holds the keys.
A checklist before you deposit
- Age and size. Protocols that have held hundreds of millions for over a year are genuinely safer. Check the TVL chart on DefiLlama’s Yields — a healthy farm’s TVL is stable or growing; a dying one’s chart slides down and right.
- Revenue source. One sentence of real economics, or walk away.
- Audits and track record. Multiple reputable audits, plus surviving a market crash, beats a fresh PDF.
- APY sanity. Compare the pool against its peers on DefiLlama; an outlier 10× above comparable pools is an outlier for a reason.
- Your exit. Can you withdraw anytime? Any lockups, vesting on rewards, or withdrawal fees?
Where to go next
Get the foundations from what is DeFi, understand the assets most farms are denominated in with stablecoins explained, and keep the glossary open — DeFi is a jargon firehose.
This guide is educational only and is not financial advice. Yield farming can lose your entire deposit to bugs, exploits, depegs, or market moves. Read our full disclaimer.