Explainerintermediate

    How Yield Farming Works in DeFi: Beginner's Guide

    That 120% APY may be mostly printed tokens. Learn how DeFi yield farming really works and how beginners can earn rewards safely.

    40 min read

    Updated 19 November 2026

    Level 2 Β· PractitionerAssumes you can use a wallet and an exchange.
    DeFi Fundamentals
    3 to read first Β· 3 next steps

    A farm dashboard shows "120% APY," and the number looks fantastic. How much of it is real? If you're a beginner asking how yield farming works in DeFi, that question matters more than any list of protocols. In the illustrative breakdown examined later in this guide, only 8 percentage points come from people actually paying the pool. The other 112 points come from new tokens the protocol prints and hands out. If that reward token falls 80%, the printed share is worth about 22% (112 Γ— 0.20 = 22.4). Your realistic return then drops to roughly 30%, and that's before impermanent loss, gas, and taxes.

    If these numbers make you tempted and suspicious at the same time, both reactions are reasonable. Collapsed stablecoins like Terra/UST, and farmers who ended up with less money than they started with, are a familiar part of DeFi history. Most yield guides list protocols and big percentages, but they never show where the percentages come from. They rarely check whether farming actually beats simply holding your tokens.

    This guide takes a different approach: follow the money, then do the math. Every yield comes from one of two places: someone paying, or someone printing. You won't find a "hot farms" list here, because those go stale in weeks. Instead, you'll learn three skills that keep working. You'll trace where any yield comes from, test whether a farm beats holding, and make a small first deposit you know how to exit. By the end, you'll know where yield comes from, whether a farm beats holding, and how to make a safe first deposit.

    πŸ“‹ What You'll Learn

    • How liquidity pools, automated market makers, LP tokens, and lending markets produce yield
    • How to split any headline APY into real yield (fees and interest) and printed yield (emissions)
    • How to convert APR to APY, and why gas makes frequent compounding a trap on small deposits
    • How to estimate impermanent loss and run a "Beat-the-HODL" test before depositing
    • How to choose a strategy on the Risk Ladder that matches your risk tolerance
    • How to complete a safe first deposit, monitor it, and exit cleanly with approvals revoked

    πŸ—ΊοΈ The 5-Phase Roadmap: 1) Understand the machine β†’ 2) Read the Yield Nutrition Label β†’ 3) Run the Beat-the-HODL test β†’ 4) Pick a rung on the Risk Ladder β†’ 5) Deposit small, monitor, harvest, exit.

    ⏱️ Estimated Time: 25–30 minutes to read, plus 30–45 minutes for the optional hands-on walkthrough

    πŸ“Š Difficulty: Beginner–Intermediate (●●○○○). Assumes you've used a crypto wallet before. Every DeFi term is defined where it first appears.

    βš–οΈ Disclaimer: This is educational content, not financial advice. Yields, fees, and protocol details change constantly, so verify current numbers in each protocol's official documentation.

    This guide deliberately contains no "best farms right now" list. It teaches judgment, which still works when today's top farm has disappeared.

    What Is Yield Farming? (Plain-English Definition)

    The term sounds exotic, but the core idea is simple. A short definition and one comparison will get you most of the way there.

    The One-Sentence Explanation

    Yield farming means depositing crypto into a DeFi protocol so it can provide a service, such as swaps or loans, and getting paid for that service.

    The payment comes in two flavors. A restaurant analogy helps here. Some of a waiter's income comes as tips from real customers; in DeFi, that's trading fees and borrower interest. Some comes as coupons the restaurant prints; in DeFi, that's token emissions. Coupons are useful, but they lose value the more of them the restaurant prints. This distinction runs through the whole guide.

    Yield Farming vs Staking vs Lending: Quick Comparison

    These three terms get used interchangeably, but each involves a different payer and a different risk.

    Yield FarmingStaking (Proof-of-Stake)Lending
    Who pays youTraders (fees) plus the protocol (emissions)The network (protocol rewards plus transaction tips)Borrowers
    Typical yield sourceSwap fees, reward tokens, incentivesRewards for securing the blockchainInterest on loans
    Main risksImpermanent loss, contract bugs, reward-token price declineSlashing, withdrawal delays, token priceContract bugs, bad debt, stablecoin depeg
    ComplexityMedium–HighLow–Medium (via pools)Low

    For context, Ethereum switched on proof-of-stake in 2022. Running a validator yourself requires depositing 32 ETH and running three pieces of software: an execution client, a consensus client, and a validator client. Staking pools exist so people with smaller amounts can participate together.

    In practice, "farming" often stacks these activities. A farmer might lend USDC and then stake the receipt token for extra rewards. Or they might provide liquidity to a pool and then stake the LP token in a second contract. Each layer adds yield, and each adds risk.

    Key Terms You'll See (Glossary Box)

    • Liquidity pool: a smart contract holding tokens that traders swap against or borrowers draw from.
    • LP token: a receipt proving your share of a liquidity pool.
    • AMM (automated market maker): a formula that sets prices inside a pool, with no order book or human market maker.
    • TVL (total value locked): the dollar value of all assets deposited in a pool or protocol.
    • APR vs APY: APR is simple yearly interest. APY assumes you reinvest rewards along the way.
    • Emissions: new reward tokens a protocol mints and distributes to depositors.
    • Gauge: a contract that decides how emissions are split across pools, common in Curve-style systems.
    • Harvest: claiming the rewards your position has earned.
    • Slippage: the gap between the expected price of a trade and the price you actually get.
    • Allowance/approval: permission you grant a contract to move a specific token from your wallet.

    If this vocabulary feels like an insider's club, that's because it is one. You're now in it.

    How Does Yield Farming Work in DeFi? The Mechanics Step by Step

    With the vocabulary in place, here is how the machine actually runs. Five components cover nearly every farm you'll encounter.

    Liquidity Pools and Automated Market Makers

    A liquidity pool works much like a currency exchange booth. The booth holds two currencies, say ETH and USDC. Anyone can swap one for the other at the booth, and every swap pays a small fee. The booth's owners are the liquidity providers (LPs) who supplied the tokens. On Uniswap, those swap fees accrue to LPs, and the protocol is self-custodial: you interact with contracts directly rather than handing funds to a company.

    The booth sets prices with a formula rather than a person. The classic version is the constant product rule, often written x * y = k. The pool tries to keep the product of its two token balances constant. When traders buy ETH from the pool, ETH becomes scarcer inside it, so the pool's ETH price rises. Arbitrage traders then buy or sell until the pool's price matches the wider market.

    That's all the math you need for now. For a fuller walkthrough, see Automated Market Makers (AMMs) Explained or the official Uniswap pool documentation.

    What LP Tokens Are (Your Coat-Check Ticket)

    When you deposit into a pool, you receive LP tokens in return. They work like a coat-check ticket. The ticket proves your share of the pool. You hand it back to reclaim your deposit plus any fees it earned.

    That makes LP tokens valuable in their own right. If you send them to a scam contract, or approve a malicious site to move them, your claim on the pool goes with them. Guard them like the underlying tokens.

    Lending Markets: Getting Paid by Borrowers

    Ethereum.org describes DeFi lending funds as being held in liquidity pools, which it calls "big pools of funds used for borrowing." In the Aave and Compound model, you supply an asset like USDC. Borrowers post collateral worth more than their loan, then pay interest. You receive a share of that interest.

    Rates depend on utilization, meaning the share of the pool currently borrowed. Lending protocols generally raise rates as utilization climbs, which attracts new lenders and discourages more borrowing. Aave's documentation describes variable and stable rate options, and its model is designed to push rates up steeply when a pool runs low on available funds. See the Aave protocol FAQ for details.

    Beginner surprise: when nearly everything in a pool is borrowed, there may be no idle cash to pay you back right away. Withdrawals can be temporarily limited until borrowers repay or new lenders arrive.

    Staking LP Tokens for Extra Rewards (The "Farm" Layer)

    Many protocols let you take your LP token or lending receipt and stake it in a second contract. That contract pays extra reward tokens on top of your base fees or interest. This is the "farm" in yield farming.

    Two things are true about this layer. First, it's where most printed yield comes from. Second, it adds another smart contract that could fail, be exploited, or be changed by its admins.

    Compounding: How APR Becomes APY

    APR is simple interest. APY assumes you reinvest rewards and earn on them too. The formula is APY = (1 + APR / n)^n βˆ’ 1, where n is the number of compounding periods per year.

    For example, take an APR of 100% compounded daily: APY = (1 + 1.00 Γ· 365)^365 βˆ’ 1 β‰ˆ 2.7146 βˆ’ 1 β‰ˆ 1.7146, or about 171% APY. That gap explains why dashboards prefer to show APY. For a fuller comparison, read APR vs. APY in Crypto: How Compounding Affects Your DeFi Returns.

    The gas reality check: compounding isn't free. Suppose you deposit $200 at 20% APR. Yearly earnings are $200 Γ— 0.20 = $40, so daily earnings are $40 Γ· 365 β‰ˆ $0.11. If each compounding transaction costs $0.50 in gas, daily compounding costs $0.50 Γ— 365 = $182.50 a year. That's more than four times what you earn. On Ethereum mainnet, where gas is usually far higher, it's hopeless. On a Layer 2, sensible compounding is often weekly, monthly, or less often.

    πŸ“ Rule of thumb, the 20x rule: only harvest or compound when your pending rewards are worth at least 20 times the gas cost. That keeps fees at or below 1 Γ· 20 = 5% of what you claim. In the example above, with $0.50 gas you'd wait until rewards reach $10. At $0.11 per day, that takes about $10 Γ· $0.11 β‰ˆ 91 days, or roughly quarterly.

    One more caution: many dashboards calculate APY using reward tokens you haven't sold yet. If that token is falling, compounding it compounds the fall.

    Where Does the Yield Actually Come From? (Follow the Money)

    This section is the heart of the guide. Every percentage on a dashboard has a source. The farm harvest vs fertilizer handout image captures it. Fees and interest are crops your field actually grows. Emissions are bags of fertilizer the farm owner hands out. They're valuable only while other people still want to buy fertilizer.

    Source 1: Trading Fees

    Swappers pay a percentage fee on each trade, and that fee goes to the pool's LPs. This is real yield, because someone is paying for a service they actually wanted. Fee levels vary by pool and protocol, so check the fee tier shown in the interface before depositing.

    What drives fee income is volume relative to TVL. A pool with heavy trading and modest deposits pays each LP more. A pool with huge deposits and little trading spreads thin fees across everyone. The official Uniswap documentation explains how pools and fees fit together.

    Source 2: Borrower Interest

    Lending yield is also real, because borrowers pay it. It rises when borrowing demand rises, which makes it cyclical. Rates often climb when traders want leverage during bull markets, then shrink when that demand fades. A lending rate you see today is a snapshot, not a promise.

    Source 3: Token Emissions

    Emissions are new governance or reward tokens that a protocol mints and distributes to depositors. This is printed yield. It dilutes existing token holders, and its dollar value depends entirely on the token's market price.

    There's a structural problem here. Many farmers sell reward tokens as soon as they harvest them. That constant selling pressure tends to push the price down, which shrinks the dollar value of future emissions. Emission APYs often fade this way even when nothing "goes wrong."

    Source 4: Incentives, Points, and Bribes

    The last category covers temporary campaigns. Protocols run limited-time incentive programs, award "points" that might become an airdrop, or receive "bribes." A bribe is a payment from one project to token voters, aimed at steering emissions toward its pool. This is common in Curve and Convex-style gauge systems.

    Treat all of these as speculative and time-limited. Points may never convert into anything. Campaigns end on schedule.

    How to Read a Yield Nutrition Label

    A food label tells you what's inside a snack. The Yield Nutrition Label does the same for an APY. Suppose a farm advertises 120% APY, and its data shows 8% from fees and 112% from emissions.

    Yield Nutrition Label

    Headline APY: 120%

    Real yield (fees + interest) ........ 8%

    Printed yield (emissions) ........ 112%

    Temporary incentives ........ 0%

    Sustainability score: 8 Γ· 120 β‰ˆ 6.7% of the headline is paid by real users

    Now stress-test the label. If the reward token falls 80%, the printed portion keeps only 20% of its value: 112% Γ— 0.20 = 22.4%. The realistic total becomes 8% + 22.4% β‰ˆ 30.4%. That figure comes before impermanent loss, gas, and taxes.

    This math simplifies one thing. It assumes the 80% drop applies to all rewards. In reality, rewards harvested and sold early keep more of their value. Still, the label shows how quickly a 120% headline can shrink to something far more ordinary.

    A leaky bucket sums up the next step. The headline APY pours in at the top. Holes labeled gas fees, impermanent loss, reward-token decline, and taxes drain it. What stays in the bucket is what actually ends up in your hands.

    Pulling the Numbers Yourself from DefiLlama

    You don't have to trust a protocol's own dashboard. DefiLlama Yields is a free aggregator that splits APY into its parts. Labels may change over time, but the workflow looks like this:

    1. Open DefiLlama and go to the Yields section.
    2. Use the filters to select your chain (for example, Arbitrum or Base). Enable the Stablecoins filter if you only want stablecoin pools.
    3. Read the Base APY column. This is fees and interest, your real yield.
    4. Read the Reward APY column. This is emissions, your printed yield.
    5. Check the TVL column. Tiny TVL can mean high yields that collapse once a few more depositors arrive.
    6. Click into the pool and review its APY history chart. Sudden spikes usually mean a temporary incentive or a short burst of volume.

    Fill in your Nutrition Label straight from those columns. For a deeper treatment of this distinction, see Real Yield vs Token Emissions in DeFi: How to Identify Sustainable APY.

    Real Yield vs Ponzinomics: The Sustainability Test

    Before trusting any yield, ask three questions:

    1. Who is paying? Traders, borrowers, or the protocol's token printer?
    2. Will they keep paying when the hype fades? Organic demand survives quiet markets. Marketing budgets often don't.
    3. What happens to the APY when emissions stop or halve? If the answer is "it drops to almost nothing," you're mostly being paid in coupons.

    πŸ’‘ A reassuring truth: most high APYs are partly printed money. That isn't automatically a scandal. Emissions are a protocol's marketing budget. Your job is simply to price that budget correctly rather than mistake it for income.

    History shows the cost of skipping this test. Anchor Protocol's UST deposit yield was subsidized rather than earned from borrowers, and it ended when UST lost its peg. Yields that can't answer question one honestly tend to end the same way.

    Impermanent Loss Explained with Real Numbers

    Knowing where yield comes from is half the job. The other half is checking whether that yield beats simply holding your tokens. That's where impermanent loss comes in. This section focuses on dollars; for the conceptual background, the prerequisite guide on impermanent loss covers it in depth.

    What Impermanent Loss Actually Is

    A seesaw captures the mechanic. When one asset in a pool rises, the AMM automatically sells some of it and buys more of the other asset. Arbitrage traders make this happen with every price move. As a result, your side of the seesaw never rises as high as it would if you had just held both tokens.

    Impermanent loss (IL) is the gap between your LP position's value and what the same starting tokens would be worth if you had simply held them. It's called "impermanent" because the gap shrinks if prices return to your entry ratio. Once you withdraw at a different ratio, the loss becomes permanent.

    Uniswap's documentation and whitepapers identify impermanent loss as a core risk of providing liquidity. It's not a bug; it's how constant-product pools work.

    The Impermanent Loss Cheat Sheet

    For a standard 50/50 constant-product pool, IL depends only on how much the price ratio changes. The formula is IL = 2√r Γ· (1 + r) βˆ’ 1, where r is the new price ratio divided by the old one. For example, if ETH goes from $2,000 to $4,000 against USDC, r = 4,000 Γ· 2,000 = 2. Then IL = 2 Γ— 1.4142 Γ· 3 βˆ’ 1 β‰ˆ βˆ’5.7%.

    Price change (r)Impermanent loss vs holding
    1.25xβ‰ˆ βˆ’0.6%
    1.5xβ‰ˆ βˆ’2.0%
    2xβ‰ˆ βˆ’5.7%
    3xβ‰ˆ βˆ’13.4%
    4xβ‰ˆ βˆ’20.0%
    5xβ‰ˆ βˆ’25.5%
    0.5x (price halves)β‰ˆ βˆ’5.7%
    0.25x (price falls 75%)β‰ˆ βˆ’20.0%

    Three notes on reading this table:

    • The loss is symmetric in ratio terms. A 2x rise and a 0.5x fall produce the same percentage IL.
    • Stable/stable pairs largely avoid IL. USDC/USDT barely moves relative to itself, as long as both coins hold their peg.
    • IL is measured against holding, not against your deposit. You can lose to holding and still have more dollars than you started with.

    Concentrated liquidity warning: Uniswap's docs note that in earlier versions, liquidity was spread uniformly along the price curve between 0 and infinity. Concentrated liquidity lets you choose a narrower price range instead. Narrow ranges amplify both fee income and IL. If the price leaves your range, your position converts entirely into one token and stops earning fees. See the Uniswap concentrated liquidity docs.

    The three scenarios below turn this table into a Beat-the-HODL scoreboard. Each compares holding the tokens with providing liquidity plus fees.

    Beat-the-HODL Walkthrough, Scenario A: Farming Wins

    Hypothetical example: All figures are illustrative round numbers, not current market data. Suppose you deposit $10,000 into an ETH/USDC pool: 2 ETH at $2,500 plus 5,000 USDC. One year later, ETH has doubled to $5,000.

    • HODL value: 2 Γ— $5,000 + $5,000 = $15,000
    • LP value: the pool rebalances to √2 β‰ˆ 1.414 ETH and about $7,071 USDC. That's 1.414 Γ— $5,000 + $7,071 β‰ˆ $14,142.
    • Impermanent loss: $14,142 βˆ’ $15,000 β‰ˆ βˆ’$858 (βˆ’5.7%, matching the 2x row)
    • Fees: assume a flat 15% fee yield on $10,000 = $1,500
    • LP + fees: $14,142 + $1,500 = $15,642

    πŸ† Scoreboard: LP + fees $15,642 vs HODL $15,000. Farming wins by β‰ˆ $642.

    The lesson: with a moderate price move and solid fee income, fees can more than cover IL.

    Beat-the-HODL Walkthrough, Scenario B: Farming Loses

    Hypothetical example: Same illustrative $10,000 deposit (2 ETH at $2,500 plus 5,000 USDC) and the same 15% fee yield. This time, ETH quadruples to $10,000 over the year.

    • HODL value: 2 Γ— $10,000 + $5,000 = $25,000
    • LP value: the pool rebalances to √(2 Γ— 5,000 Γ· 10,000) = 1 ETH and √(2 Γ— 5,000 Γ— 10,000) = $10,000 USDC. That's $10,000 + $10,000 = $20,000.
    • Impermanent loss: $20,000 βˆ’ $25,000 = βˆ’$5,000 (βˆ’20%, matching the 4x row)
    • LP + fees: $20,000 + $1,500 = $21,500

    ❌ Scoreboard: LP + fees $21,500 vs HODL $25,000. Farming loses by $3,500.

    The lesson: in a strong trend, LPs are effectively paid fees to sell the winner early. Fees rarely cover a 4x move. Notice that the LP still ended with more dollars than the $10,000 deposit. It just lost badly to holding.

    Scenario C: When Emissions Mask the Loss

    Hypothetical example: Illustrative figures again. You deposit the same $10,000 into an ETH/USDC farm advertising about 100% APR: 5% from fees and 95% from emissions paid in a reward token called FARM. Over the year, ETH triples to $7,500. FARM falls 85% while you hold your harvested rewards.

    • HODL value: 2 Γ— $7,500 + $5,000 = $20,000
    • LP value: the pool rebalances to about 1.155 ETH and $8,660 USDC. That's 1.155 Γ— $7,500 + $8,660 β‰ˆ $17,321, an IL of β‰ˆ βˆ’$2,679 (βˆ’13.4%).
    • Fees: 5% Γ— $10,000 = $500
    • Emissions: 95% Γ— $10,000 = $9,500 nominal. After the 85% drop, 15% remains: $9,500 Γ— 0.15 = $1,425.
    • Gas from frequent claims: βˆ’$75
    • Total: $17,321 + $500 + $1,425 βˆ’ $75 β‰ˆ $19,171

    ❌ Scoreboard: Farm total $19,171 vs HODL $20,000. Farming loses by β‰ˆ $829, even though the dashboard showed triple-digit APY all year.

    Had FARM held its price, the position would have looked like $17,321 + $500 + $9,500 βˆ’ $75 β‰ˆ $27,246. That gap between dashboard value and real value is the emissions mirage.

    Your Break-Even Formula

    All three scenarios reduce to one inequality. A farm beats holding when:

    Fee yield + (Emissions Γ— expected price retention) βˆ’ Gas βˆ’ Impermanent loss > 0

    Applied to the scenarios above, with every figure in dollars:

    • Scenario A: $1,500 + $0 βˆ’ $0 βˆ’ $858 = +$642 β†’ farm
    • Scenario B: $1,500 + $0 βˆ’ $0 βˆ’ $5,000 = βˆ’$3,500 β†’ hold
    • Scenario C: $500 + ($9,500 Γ— 0.15) βˆ’ $75 βˆ’ $2,679 = $500 + $1,425 βˆ’ $75 βˆ’ $2,679 = βˆ’$829 β†’ hold

    The hardest input is "expected price retention." Be pessimistic. If you can't explain why a reward token will hold its value, assume it won't.

    Build Your Beat-the-HODL Spreadsheet

    You can turn the formula into a reusable tool in a few minutes. Create a sheet with these inputs in column B:

    • B1 Deposit in USD (half in the volatile token, half in a stablecoin)
    • B2 Entry price of the volatile token
    • B3 Expected exit price
    • B4 Fee APR (as a decimal)
    • B5 Emission APR (as a decimal)
    • B6 Expected reward-token price retention (as a decimal)
    • B7 Total gas cost in USD
    • B8 Holding period in years

    Then add these outputs:

    • HODL value: =B1/2*(B3/B2)+B1/2
    • LP value: =B1*SQRT(B3/B2)
    • Impermanent loss ($): LP value βˆ’ HODL value
    • Fees: =B1*B4*B8
    • Emissions after haircut: =B1*B5*B8*B6
    • Net vs HODL: IL + fees + emissions βˆ’ B7

    The LP value shortcut works for 50/50 constant-product pools paired with a stablecoin. Check it against Scenario A: $10,000 Γ— √(5,000 Γ· 2,500) = $10,000 Γ— 1.414 β‰ˆ $14,142, which matches. Add rows for entry dates, transaction hashes, and gas paid, and the same sheet becomes your tax log.

    Simplification disclosure: these examples treat fees as a flat annual percentage. In real pools, fees accrue into the pool and get rebalanced too, and trading volume changes over time. The spreadsheet is for decisions, not accounting. To cross-check your numbers, see How to Calculate Impermanent Loss: Formula and Examples.

    What the Research Says

    Your skepticism has research behind it. A widely cited study by Topaze Blue and Bancor analyzed Uniswap v3 liquidity providers. It found that a large share of LPs in the pools studied would have done better by simply holding, once impermanent loss was counted.

    That doesn't mean liquidity provision never works. It means a positive APY isn't the same as a positive result. Running the Beat-the-HODL test puts you ahead of many people who never check.

    Is Yield Farming Profitable or Risky? An Honest Answer

    The short answer: it can be profitable, and it's always risky. Profits mostly go to people who understand where their yield comes from and size their positions sensibly.

    When Farming Tends to Work

    • Stablecoin pairs and single-asset lending, where impermanent loss is minimal or absent.
    • High-volume pools where trading fees provide steady, real income.
    • Sideways or range-bound markets, where prices wobble without trending hard.
    • Deposits large enough that gas is a rounding error rather than a major cost.

    When It Tends to Fail

    • Strongly trending markets, as Scenario B showed.
    • Emission-heavy farms whose reward token keeps falling, as in Scenario C.
    • Late entries into hyped farms. Arriving after early farmers have dumped rewards can make you their "exit liquidity," the buyer they sell to.
    • Small deposits on high-gas chains, where transaction costs eat the yield.

    The Full Risk Map

    Impermanent loss is only one risk. A complete map looks like this:

    • Smart contract bugs: code flaws can let attackers drain pools, even after audits.
    • Oracle manipulation: oracles feed external prices to contracts. Manipulated feeds can trigger wrongful liquidations or let attackers withdraw more than they deposited.
    • Depegs: stablecoins or liquid staking tokens can trade below their target. Algorithmic stablecoins like UST have collapsed entirely. Even major fiat-backed stablecoins have briefly slipped below $1 during banking stress.
    • Rug pulls and admin keys: anonymous teams with upgradeable contracts or unchecked admin powers can change the rules or withdraw funds.
    • Liquidation: this applies only if you borrow against your deposits.
    • Bridge risk: funds moved between chains depend on the bridge's security.
    • Regulatory and tax risk: rules can change, and record-keeping is your responsibility.

    Security incidents aren't rare. Rekt News keeps a leaderboard of the largest DeFi exploits. Chainalysis tracks stolen funds in its annual Crypto Crime Report. Check their latest figures before you decide how much to deploy.

    Risk is also cumulative. Every extra layer adds another way to fail, whether it's a bridge, a wrapped token, or a reward staking contract. That idea leads directly to the Risk Ladder. For more on LP-specific dangers, see DeFi Liquidity Provision Risks and How to Mitigate Them.

    Choose Your Yield Strategy: Lending | Stablecoin LP | Blue-Chip Volatile LP | Liquid Staking + DeFi

    Pick the rung that matches your risk tolerance. Read only that path, then come back to compare. The Risk Ladder runs from single-asset lending at the bottom to stacked liquid-staking strategies at the top. Risk and complexity rise with each rung.

    πŸͺœ Choose your rung:

    StrategyRisk levelIL exposureTypical yield sourceBest for
    Single-asset lendingLowNoneBorrower interestFirst-timers
    Stablecoin LPLow–MediumMinimal unless a depeg occursFees + emissionsStablecoin holders wanting more
    Volatile pair LPMedium–HighHighFees + emissionsPeople expecting range-bound ETH
    Liquid staking stacksHighVariesStaking + fees + emissionsExperienced users

    Option 1: Single-Asset Lending

    This is the simplest rung. A typical example is supplying USDC on Aave. Interface labels change over time, but the flow looks like this:

    1. Open the official app from a bookmark and click Connect Wallet.
    2. Select the correct network and market, for example Arbitrum.
    3. Find USDC in the supply list and click Supply.
    4. Approve a limited amount equal to your deposit (see Step 4 of the walkthrough).
    5. Confirm the supply transaction. You'll receive an interest-bearing receipt token (on Aave, an aToken).
    6. Withdraw a small amount to test the exit before you rely on the position.

    Clarification: supplying alone carries no liquidation risk. The "health factor" shown in lending apps only matters if you also borrow. Your main risks are smart contract risk and the stablecoin's peg.

    Option 2: Stablecoin Liquidity Pools

    Curve is the best-known venue here. Its documentation describes it as a decentralized exchange using Stableswap, Cryptoswap, and Tricrypto AMMs for low-slippage trading, under decentralized governance. Steps:

    1. Check the pool's Base vs Reward APY on DefiLlama.
    2. Check the pool's balance. A heavily lopsided pool, with far more of one coin than the others, is an early depeg warning.
    3. Deposit one or more stablecoins.
    4. Optionally stake the LP token in the pool's gauge to earn emissions.
    5. Record your entry in your spreadsheet.

    Depeg warning: if one coin in the pool depegs, traders dump it into the pool and pull out the healthy coins. You could then exit holding mostly the broken coin. Learn more in What Is Curve Finance? Stablecoin DEX Explained and the official Curve docs.

    Option 3: Volatile Pair LP (e.g., ETH/USDC)

    This rung earns more fees and carries real IL exposure. On Uniswap, the flow generally runs through the Pool section and a new position screen:

    1. Choose the token pair and a fee tier.
    2. On concentrated-liquidity versions, set a price range. Wider ranges mean less maintenance and less IL amplification.
    3. Approve both tokens with limited allowances.
    4. Deposit and confirm the transaction.
    5. Record entry prices and token amounts.
    6. Set a calendar reminder to check the position and its range.

    When to avoid this rung: skip it if you expect a big ETH rally (Scenario B), if you can't monitor your range, or if your deposit is too small for rebalancing gas to make sense.

    Option 4: Liquid Staking Tokens in DeFi

    Ethereum.org explains that some staking pools take deposits into a smart contract and issue a receipt called a liquid staking token (LST), like stETH. Farmers then use that LST in lending markets or liquidity pools to stack yields. Ethereum.org also notes a trade-off: every pooled option puts an intermediary between the staker and the core Ethereum protocol. See the ethereum.org staking pools page.

    The risks stack up quickly:

    • Validator risk: the staking provider's validators can be slashed for dishonest behavior.
    • Discount risk: LSTs have historically traded below ETH during market stress.
    • Protocol risk: every lending market or pool you add brings its own contracts.
    • Liquidation risk: "looping" (borrowing against an LST to buy more) can be liquidated if the discount widens.

    Treat this rung as "not for your first month."

    Decision helper: if you're unsure, start on rung 1 or 2. The 30-day plan at the end walks you up the ladder deliberately.

    How to Start Yield Farming Safely: Step-by-Step First Farm

    Theory becomes skill only when you complete a full cycle. These eight steps take a $50–$200 test deposit from entry to exit.

    Step 1: Run the 5-Point Safety Gate

    The gate works like airport security. Every farm must clear each checkpoint before your funds board. If it fails any one, it doesn't fly.

    πŸ›‚ The 5-Point Safety Gate

    1. ☐ Audits: are there public audits from reputable firms? Were the findings fixed? Is there a bug bounty?
    2. ☐ Track record: how long has it been live? Is its TVL history on DefiLlama steady rather than a sudden spike?
    3. ☐ Team and admin keys: are admin powers held by a multisig (several signers) with a timelock (a mandatory delay before changes)? Is the team known or long-standing?
    4. ☐ Nutrition Label: what's the Base vs Reward APY split? Does it pass the 3-question sustainability test?
    5. ☐ Exit liquidity: can you withdraw and sell reward tokens without major slippage?

    Step 2: Fund Your Wallet on a Low-Fee Network

    Step 3: Verify the Official URL

    Reach the app only through a bookmark, the protocol's verified docs, or its DefiLlama listing. Never use search ads, links from direct messages, or "support" accounts that contact you first. Check the domain spelling letter by letter, because lookalike domains are a common phishing trick.

    Step 4: Approve Tokens with Limited Allowances

    An approval lets a contract move a specific token from your wallet. Many apps request "unlimited" by default. Most wallets, including MetaMask, show a spending cap field on the approval screen. Enter your deposit amount instead of the suggested maximum.

    Before confirming, compare the spender address in the prompt with the contract addresses in the protocol's official docs. If they don't match, stop.

    Step 5: Deposit a Test Amount, Then Your Real Amount

    1. Deposit a tiny amount first, for example $10.
    2. Confirm it appears correctly in the app and that the receipt token arrived in your wallet.
    3. If everything looks right: deposit the rest of your $50–$200 test budget.
    4. If anything looks off: stop, withdraw, and investigate before going further.

    Step 6: Stake LP Tokens (If Applicable) and Record Your Entry Prices

    If you're on an LP path with a farm: stake the LP token in the official gauge or farm contract. If you're lending only: skip staking.

    For everyone: log the date, token amounts, token prices, transaction hashes, and gas paid in your Beat-the-HODL spreadsheet. Without entry prices, you can't measure IL or prepare taxes later.

    Step 7: Monitor, Harvest, and Decide Whether to Compound

    • Check the position weekly and compare it with HODL in your spreadsheet.
    • Harvest only when rewards are worth at least 20 times the gas cost.
    • If the reward token is falling: consider selling rewards when you harvest rather than compounding them.
    • If the Base APY collapses or reward emissions end: re-run the Safety Gate and decide whether to stay.

    Step 8: Exit Cleanly and Revoke Approvals

    1. Unstake the LP or receipt token from the farm contract.
    2. Withdraw your liquidity or supplied assets.
    3. Swap back into your preferred asset if needed.
    4. Record exit prices, amounts, and gas.
    5. Revoke allowances using revoke.cash or your wallet's approval manager. Connect, select the network, find each spender you used, and click Revoke.

    βœ… Completion check: you've finished a full farm lifecycle: vetting, depositing, tracking, harvesting, exiting, and revoking. That's more than most farmers practice before going big.

    Security Best Practices for Yield Farmers

    The walkthrough covers one farm. These habits protect every farm after it:

    • Use a hardware wallet for meaningful amounts, and confirm transaction details on the device's screen.
    • Keep a separate "farming wallet" holding only what's deployed. A bad approval then can't touch your long-term holdings.
    • Run a monthly revoke routine on revoke.cash, plus an immediate revoke after every exit.
    • Learn the phishing red flags: urgent DMs, "claim your airdrop" sites, fake support agents, lookalike domains, and signature requests you don't understand. Be especially careful with permit or "setApprovalForAll"-style prompts.
    • Avoid unaudited forks and copycat farms that launch with huge APYs and anonymous teams.
    • Size positions sensibly: as a rule of thumb, keep no more than about 5–10% of your crypto in any single protocol. Spread across rungs of the ladder.
    • Use monitoring tools: DefiLlama for TVL and APY changes, official protocol accounts and status pages for incident alerts, and wallet notification tools for approvals and large movements.
    • Write an incident plan in advance. Know exactly how you'll withdraw and revoke if a hack is announced, because speed matters.

    ⚠️ Common Mistakes to Avoid

    Each mistake below includes the symptom, why it hurts, and a one-line fix.

    • Chasing the highest APY. Symptom: picking farms by the biggest number. Why it hurts: the biggest numbers are usually the most printed and the most crowded. Fix: read the Nutrition Label first, and remember Scenario C.
    • Ignoring impermanent loss. Symptom: judging success by APY alone. Why it hurts: a positive APY can still lose to holding, as Scenario B showed. Fix: run the break-even formula with a realistic price-move assumption before depositing.
    • Compounding small positions on expensive chains. Symptom: frequent harvests on a small deposit. Why it hurts: gas can exceed rewards. Fix: use the 20x rule and stay on Layer 2 networks.
    • Unlimited token approvals. Symptom: clicking through default approval prompts. Why it hurts: a standing permission can be abused by a later exploit or a malicious contract. Fix: use limited allowances and a monthly revoke routine.
    • Forgetting taxes. Symptom: no records of harvests, swaps, or withdrawals. Why it hurts: in many countries, rewards may count as income when received, and swaps or withdrawals may be taxable disposals. LP treatment is often unclear. Fix: log every transaction and consult local guidance, such as the IRS digital assets page in the US, or a tax professional.
    • Treating "audited" as "safe." Symptom: skipping other checks once you see an audit badge. Why it hurts: audits cover a snapshot of code, not future upgrades, integrations, or economic attacks. Many exploited protocols had audits. Fix: treat audits as one checkpoint among five.

    Frequently Asked Questions

    How does yield farming work in crypto?

    You deposit tokens into a DeFi protocol, such as a liquidity pool or lending market, so it can offer swaps or loans. In return, you earn trading fees, borrower interest, and often extra reward tokens. Many farmers then stake their receipt tokens for additional emissions. The mechanics section above walks through each layer.

    Is yield farming profitable or risky?

    It can be profitable, and it's always risky. Returns depend on fee income, reward-token prices, impermanent loss, and gas. Risks include contract exploits, depegs, and rug pulls. Run the Beat-the-HODL test before depositing to see whether a farm is likely to beat simply holding.

    How much money do I need to start yield farming?

    For learning, a small amount on a low-fee Layer 2 is enough to practice a full lifecycle. On Ethereum mainnet, gas costs can make small deposits uneconomic. Whatever you start with, use only money you can afford to lose entirely.

    Can you lose money yield farming with stablecoins?

    Yes. Stablecoin farming largely avoids impermanent loss, but a stablecoin can depeg, and a pool can fill up with the broken coin. Smart contract exploits and falling reward tokens can also cost you money. Stablecoin strategies are lower risk, not no risk.

    What is the difference between APR and APY?

    APR is simple yearly interest. APY assumes rewards are reinvested and compound. For example, 100% APR compounded daily equals about 171% APY. Gas costs make frequent compounding unrealistic on small deposits, so the APY you actually get is often closer to the APR.

    Is yield farming taxable?

    In many jurisdictions, yes. Rewards may be treated as income when received, and swaps or withdrawals may trigger capital gains. Rules vary by country and are often unclear for LP positions. Keep detailed records and consult official guidance or a tax professional.

    What happens if a DeFi protocol I'm farming on gets hacked?

    You may lose part or all of your deposit, and there's usually no guaranteed reimbursement. Some protocols compensate users from treasuries or insurance funds, but that's not assured. Limit position sizes, use a separate farming wallet, and have a withdraw-and-revoke plan ready.

    Is impermanent loss permanent?

    It becomes permanent when you withdraw at a different price ratio than you entered with. If prices return to your entry ratio, the loss shrinks back toward zero. Fees earned along the way can offset it, as Scenario A showed.

    What's the difference between base APY and reward APY on DefiLlama?

    Base APY reflects trading fees or borrower interest, which is real yield paid by users. Reward APY reflects token emissions, which is printed yield whose value depends on the reward token's price. A farm with mostly Reward APY is more fragile than one with mostly Base APY.

    Should I compound my rewards or sell them?

    It depends on the reward token and on gas. If the token's value is steady and rewards exceed 20 times the gas cost, compounding can make sense. If the token is falling, selling on harvest usually protects more value, because compounding a falling token compounds the fall.

    What's Next?

    Now that you've completed this guide, you understand how yield farming works in DeFi at a beginner level, with real math rather than hype. A deliberate 30-day plan turns that knowledge into experience:

    1. Week 1: supply $50–$100 of USDC to a lending market on a Layer 2. Practice the full lifecycle, including a partial withdrawal.
    2. Week 2: enter a stablecoin LP after running the 5-Point Safety Gate. Log it in your Beat-the-HODL spreadsheet.
    3. Week 3: watch both positions. Read the Nutrition Label weekly and note how Base and Reward APY drift.
    4. Week 4: run the Beat-the-HODL review, then exit or keep each position and revoke unused approvals. Only then consider a small volatile-pair position, with your price-move assumption written down.

    To keep building your skills, you might want to:

    Follow the money, then do the math. The farm with the biggest number is rarely the one that pays you most.

    Sources

    Further reading

    Keep learning