A stylized digital scene of a trading room with

What is yield farming: How DeFi “yield” really gets paid

By AI News Crypto Editorial Team10 min read

Yield farming is depositing crypto into DeFi smart-contract protocols to earn yield from trading fees, borrower interest, and/or incentive-token emissions. The catch is that the “yield” is the market paying you to warehouse specific risks and frictions, not a guaranteed passive rate.

Key Takeaways

  • Yield farming is depositing crypto into DeFi smart contracts to earn trading fees, borrower interest, and/or incentive-token emissions.
  • A common setup is providing liquidity to an AMM pool, receiving an LP token, then sometimes staking that LP token to earn extra rewards.
  • Headline APY is an annualized projection that moves with utilization, capital inflows, and incentive schedules, and APY often assumes compounding.
  • The core trade is carry versus risks like impermanent loss, depegging, smart-contract exploits, liquidity slippage, and transaction costs.

Where the yield actually comes from (and what you’re being paid to absorb)

In practice, the protocol pays you because your deposit makes a market function: it supplies inventory for swaps, collateral for loans, or both. When traders swap against an AMM pool, they pay fees that flow to liquidity providers; when borrowers take loans, they pay interest that flows to lenders. Many farms then add incentive emissions on top to bootstrap liquidity, which can make the headline rate look huge even if the underlying fees or interest are modest. The tradeoff is that those payouts are compensation for real exposures—price moves, liquidity imbalances, and token incentives that can dilute or reprice—rather than a fixed “savings rate.”

First is fee or interest carry. On a DEX, traders pay swap fees and liquidity providers earn a share. On a lending market, borrowers pay interest and depositors receive it. This is the closest thing DeFi has to a straightforward carry trade, because the cash flow is tied to actual usage of the venue.

Second is incentive-token emissions. Protocols often subsidize liquidity or deposits by distributing extra tokens to attract capital. When a farm’s APY looks unusually high, this leg is often doing most of the work. That matters because the depositor is not just earning a “rate.” They are ending up long the reward token’s price and long the protocol’s decision to keep emitting at the same pace.

Third is mark-to-market effects from the position itself, especially in AMM liquidity provision. A farm can pay fees every day and still lose money versus holding if the pool mechanics force the position to rebalance into the underperforming asset. The right mental model is not “what’s the APY,” it is “what risk is being warehoused, what token exposure is being accumulated, and what costs will be paid to maintain and exit the position.”

How does yield farming work? The basic mechanics

Three transactions usually define the baseline workflow: approve, deposit, and claim. A wallet connects to a DeFi app, approves a smart contract to move tokens, then deposits assets into a contract that either lends them out or uses them as liquidity for trading. Rewards accrue over time and are either auto-compounded by the protocol or must be claimed manually.

The classic yield farming path runs through an AMM liquidity pool. A liquidity provider deposits two assets into a pool and receives an LP token. That LP token represents a proportional claim on the pool’s assets and on the fee revenue the pool earns. If the pool grows, shrinks, or earns fees, the LP token’s redemption value changes because it is a receipt for a slice of the pool.

AMMs do not price like an order book. They price based on token balances and a formula, often described as the constant-product model x*y=k. When traders swap, they push the pool along that curve. The pool’s inventory changes, the quoted price changes, and the trader pays slippage because the price moves as size goes through.

Many farms add a second layer called liquidity mining. After receiving LP tokens, the LP stakes those LP tokens into another contract to earn extra rewards, typically the protocol’s token. This is where “how does yield farming work” becomes a stack of moving parts: the pool earns fees, the farm contract emits incentives, and the depositor’s realized P&L depends on the path of the two pool assets plus the reward token. Each extra layer also adds more transactions to enter, harvest, compound, and exit, which is where costs start to matter.

How much can you earn from yield farming? Understanding APY vs reality

Published APYs span a wide range because they are not one product. Some strategies marketed as lower risk, like stablecoin lending, are often quoted around 2% to 10% APY, while riskier farms can be advertised at 50% to 200% APY or more. Those numbers are not a promise. They are a snapshot of a moment in time, on a specific chain, with a specific incentive schedule and a specific amount of capital currently sharing the rewards.

The number on the screen is usually an annualized projection. It compresses when more capital enters and dilutes the same reward stream, and it can change when the protocol adjusts incentives. That is why “is yield farming still profitable” is not a yes-or-no question. The more precise question is whether the yield is coming from durable cash flows like fees and borrower interest, or from emissions that can be diluted and repriced.

APR versus APY is where beginners get tricked by math. APR typically ignores compounding. APY assumes compounding, which often requires harvesting rewards and reinvesting them. If compounding is not done, realized returns can land closer to APR than the advertised APY. If compounding is done, it usually means more transactions, which means more gas and more opportunities for slippage.

A desk-trader way to read a farm is to decompose the return before depositing: fee or interest carry plus incentive emissions plus any mark-to-market effect from AMM rebalancing, minus transaction costs. If the APY is “too good,” it is often because the emissions leg dominates. That turns the farm into a bet on the reward token’s price and on how long the protocol keeps paying that subsidy.

What are the biggest yield farming risks?

Impermanent loss is the risk that surprises people who think LPing is a neutral way to earn fees. When relative prices move, the AMM’s rebalancing can leave the LP worse off than simply holding the two tokens. The pool is continuously selling the outperformer and buying the underperformer as trades flow through, so a strong trend can create a shortfall that fees do not fully offset.

Depegging risk is the next trap, especially in “stable” strategies. Stablecoin pools and other pegged assets can look calm until the day a peg breaks. When that happens, the pool mechanics can concentrate exposure into the asset that is falling away from its peg. The strategy that looked like a small carry trade can turn into a one-way position.

Smart-contract exploits are the tail risk that can make months of yield irrelevant. Yield farming requires handing assets to contracts. Vulnerabilities, bad integrations, or exploit paths can lead to partial or total loss. Audits reduce risk, but they do not eliminate it. The loss severity is the point. This is not a brokerage account with a familiar recovery process if something breaks.

Transaction costs and operational liquidity risk are the quiet killers. Entering a pool, staking LP tokens, harvesting, compounding, and exiting can each be separate actions. On Ethereum mainnet, gas has been cited at $20 to $100 or more per transaction when the network is busy, and small positions can become uneconomic after a handful of interactions. Even when a protocol is non-custodial, liquidity can dry up and slippage can spike, making the exit expensive at the exact moment the position needs to be unwound.

How to start yield farming

A beginner path starts by reducing moving parts so P&L can be attributed. The basic flow is: pick a chain and wallet, fund it with the deposit asset plus gas, choose a protocol, deposit into a lending market or liquidity pool, then monitor and withdraw when needed. The key is not finding the highest number. It is understanding what pays the yield and what could take it away.

A simple starting point is a single-asset lending deposit or a stablecoin-focused pool where relative price moves are smaller. That does not make it “safe.” It makes the drivers easier to see. Interest carry is easier to track than a multi-token stack where LP fees, emissions, and price path all move at once.

Before depositing, write down what portion of the yield is fees or interest versus emissions, then assume emissions fall. If the farm only works when the reward token holds its price and the emissions schedule stays generous, the position is mostly a directional bet disguised as “income.” Treat the reward token as part of the exposure. If holding it outright would be uncomfortable, getting paid in it should not feel like free money.

The difference between yield farming and staking comes down to what job the capital is doing. Staking generally locks a token to support a Proof-of-Stake network or protocol and earns rewards for that contribution. Yield farming is broader. It can include staking, but it often involves lending and AMM liquidity provision, which introduces impermanent loss and a different set of failure modes. That distinction matters because “yield farming = staking” is how people end up taking AMM and depeg risk when they thought they were only taking network-level staking risk.

Common misconceptions

“Yield farming is passive income” is the framing that causes the most damage. The position is a bundle of exposures that can mark-to-market every block, and the ugly outcomes are low-frequency and high-severity. The yield exists because someone is paying to borrow liquidity, trade against it, or bootstrap a protocol with incentives.

“APY is what I’ll earn” confuses a moving quote for a contract. Farm APY changes as capital crowds in and dilutes rewards, and it changes when incentive schedules change. It also often assumes compounding, which requires harvesting and reinvesting. If compounding is not done, the realized number can be materially lower than the screen.

“APR and APY are basically the same” is a math mistake with real consequences. APR is typically a simple annualized rate. APY bakes in compounding assumptions. If the only way to reach APY is frequent harvesting, then gas and slippage are part of the return equation.

“Providing liquidity is neutral” ignores how AMMs rebalance inventory. The pool’s formula forces the position to sell strength and buy weakness as relative prices move. Fees are the rent paid to LPs for accepting that rebalancing, and impermanent loss is the shortfall that shows up when the trend is strong.

“Stablecoin pools are safe because they’re stable” is a category error. Pegs can break, and when they do, the pool can concentrate exposure into the asset that is depegging. “Audited means can’t be hacked” is the same mistake in a different costume. Audits filter out some bugs. They do not remove the possibility of an exploit or integration failure.

The Take

I’ve watched people treat a farm page like a savings account statement, then act shocked when the P&L behaves like a position. The expensive misconception is thinking the APY is the product. It is a marketing compression of three legs that move independently: fee or interest carry, incentive emissions, and the mark-to-market from AMM rebalancing.

The clean posture is to write down what pays you before you deposit, then assume the subsidy leg gets worse. If the yield is mostly emissions, the position is mostly long the reward token and long the protocol’s willingness to keep paying. The rest is execution. I’ve seen “profitable” farms turn into losers because the exit took five transactions and the last one was done when gas was $20–$100+ on Ethereum mainnet and liquidity was thin enough that slippage finished the job.

Frequently Asked Questions

How does yield farming work in DeFi?

A wallet deposits tokens into a smart contract that runs a market, typically a lending pool or an AMM liquidity pool. The depositor earns yield from borrower interest, DEX trading fees, and sometimes extra incentive-token emissions. Many setups add a second step where LP tokens are staked to earn additional rewards.

How much can you earn from yield farming?

Advertised yields vary widely by protocol, chain, and incentives, and they are usually annualized projections rather than guarantees. Some sources cite stablecoin lending around 2% to 10% APY, while riskier farms can be advertised at 50% to 200% APY or more. Realized P&L depends on fees or interest, emissions, price moves, and costs like gas and slippage.

Is yield farming still profitable?

It can be, but profitability is strategy-dependent and changes as capital crowds into a farm and as incentive schedules change. Returns that come from fees and borrower interest tend to be more durable than returns dominated by token emissions. Costs and tail risks can overwhelm the carry even when the displayed APY looks attractive.

What are the biggest yield farming risks?

Key risks include impermanent loss in AMM pools, depegging in stablecoin or other pegged-asset strategies, and smart-contract exploits that can cause partial or total loss. Transaction costs and liquidity conditions also matter because gas and exit slippage can erase returns. “Non-custodial” does not guarantee a cheap or easy exit.

What is the difference between yield farming and staking?

Staking generally locks a token to support a Proof-of-Stake network or protocol and earns rewards for that service. Yield farming is broader and often involves lending or AMM liquidity provision, which introduces risks like impermanent loss and depegging. Some yield farming strategies include staking as one layer, but the risk profile is not the same.