Skip to main content

Yield Farming Calculator

Calculate real yield farming returns after gas fees, impermanent loss, and harvest costs. Find the optimal harvest frequency for your deposit size.

Auto-calculates as you type. Always validate gas and IL assumptions first, then compare harvest frequencies.
Net Yield365 Days+$338.16+33.82% net ROI
Deposit$1,000.00
Pool APY50%
Gross Yield+$648.16
Gas: Entry-$15.00
Gas: Exit-$15.00
Gas: Harvests (52x @ $5.00)-$260.00
Total Gas Costs-$290.00
Impermanent Loss (2%)-$20.00
Net Yield+$338.16
Optimal harvest: Bi-weekly — harvesting more often costs more in gas than the compounding benefit.
Your gas costs are covered after 40 days.

Gas Cost Impact at Different Deposit Sizes

DepositGross YieldGasGas %Net
$100.00+$64.82-$290.00447.4%-$227.18
$500.00+$324.08-$290.0089.5%+$24.08
$1,000.00+$648.16-$290.0044.7%+$338.16
$5,000.00+$3,240.79-$290.008.9%+$2,850.79
$10,000.00+$6,481.57-$290.004.5%+$5,991.57
$50,000.00+$32,407.86-$290.000.9%+$31,117.86

Yield farming returns vary based on pool TVL, token prices, and protocol emissions. Gas costs depend on network congestion. This calculator provides estimates only.

Quick answer: Yield farming return = (Principal × APY × Duration/365) − Gas Costs. Farming $10,000 at 50% APY for 30 days yields ~$411 — subtract ~$50 in gas for a net return of $361.

How to Use the Yield Farming Calculator

Our free yield farming calculator helps DeFi participants estimate their real returns after accounting for every cost that eats into farming profits. Whether you are providing liquidity on Uniswap, farming rewards on Aave, or chasing high-APY pools on newer protocols, this tool gives you a clear picture of your net profitability.

  1. Enter your deposit amount — input the total value of the assets you plan to deposit into the farming pool, denominated in USD.
  2. Set the pool APR or APY — enter the advertised annual percentage rate or yield shown by the protocol. Our calculator converts between the two so you can work with either.
  3. Add gas costs — input the estimated gas cost per transaction on your chosen network. The calculator factors in deposit, harvest, and withdrawal transactions.
  4. Specify harvest frequency — choose how often you plan to claim and re-stake rewards (daily, weekly, bi-weekly, or monthly). More frequent harvesting compounds returns but incurs more gas.
  5. Review results — the calculator displays your gross yield, total gas costs, estimated impermanent loss, and net profit over 30, 90, 180, and 365-day periods.

What Is Yield Farming?

Yield farming is the practice of depositing cryptocurrency into decentralised finance (DeFi) protocols to earn rewards. At its core, yield farming involves providing liquidity to automated market makers (AMMs) or lending platforms and receiving token incentives in return. Farmers typically deposit a pair of tokens into a liquidity pool — for example, ETH and USDC on Uniswap — and the protocol rewards them with a share of trading fees plus additional governance tokens.

The concept originated in 2020 when Compound Finance began distributing its COMP token to users who supplied or borrowed assets on the platform. This sparked the "DeFi Summer" phenomenon, where users rushed to find the highest-yielding opportunities across an expanding ecosystem of protocols. Today, yield farming spans lending markets, DEX liquidity pools, yield optimizers like Yearn Finance, and liquid staking derivatives.

While advertised APYs can look incredibly attractive — sometimes exceeding 100% or even 1,000% — the real returns that farmers take home are usually much lower once you account for gas fees, impermanent loss, token price depreciation, and the time value of capital. This calculator exists to bridge the gap between the headline APY and the actual profit you can expect.

Hidden Costs of Yield Farming

The advertised APY on a yield farming pool is almost never the return you actually earn. Several hidden costs significantly erode your real yield, and ignoring them is the most common mistake new DeFi participants make.

Gas costs are the most immediate expense. Every on-chain action — depositing liquidity, harvesting rewards, re-staking, and eventually withdrawing — requires a gas fee. On Ethereum mainnet, a single swap or deposit can cost $5 to $50 depending on network congestion, and a full farming cycle (deposit, multiple harvests, withdrawal) can easily consume $100 or more.

Impermanent loss (IL) occurs when the relative price of the two tokens in your liquidity pool changes. The greater the price divergence, the more value you lose compared to simply holding the tokens. In a standard 50/50 pool, a 2x price change in one token results in roughly 5.7% impermanent loss, while a 5x change causes about 25.5% loss.

Opportunity cost is often overlooked. Capital locked in a farming pool cannot be used for other trades or investments. If the broader market rallies 50% while your farming pool earns 30% net, you have effectively lost 20% in relative terms.

Reward token depreciation is particularly dangerous with high-APY farms. Many protocols emit governance tokens at unsustainable rates, causing continuous sell pressure. A farm advertising 500% APY in its native token is meaningless if that token loses 90% of its value over the farming period.

APY vs APR in Yield Farming

Understanding the difference between APR (Annual Percentage Rate) and APY (Annual Percentage Yield) is essential for evaluating farming opportunities. APR is the simple interest rate without compounding, while APY accounts for the effect of compounding rewards back into the pool at regular intervals.

APY = (1 + APR / n)^n - 1

In this formula, n represents the number of compounding periods per year. If you harvest and re-stake daily (n = 365), a 50% APR becomes approximately 64.8% APY. If you compound weekly (n = 52), the same APR produces about 63.2% APY. The difference between daily and weekly compounding is marginal, but the difference between compounding monthly versus not compounding at all can be substantial over a year.

Many protocols display APY assuming optimal daily compounding, but this only holds if you actually harvest and re-stake every single day — and each harvest costs gas. For small deposits, the gas cost of daily harvesting can exceed the additional yield from compounding, making less frequent harvesting more profitable in practice.

Harvest Frequency Optimization

One of the most important decisions in yield farming is how often to harvest and compound your rewards. The optimal frequency depends on three variables: your deposit size, the gas cost per harvest, and the pool's APR.

The principle is simple: you should harvest whenever the value of your accumulated rewards exceeds the gas cost of harvesting by a meaningful margin. Harvesting too frequently wastes gas; harvesting too infrequently leaves rewards un-compounded and vulnerable to token price drops.

A useful rule of thumb is to harvest when your pending rewards are at least 10 times the gas cost. This ensures that gas consumes no more than 10% of each harvest, preserving the compounding benefit. For a farmer on Ethereum mainnet paying $15 per harvest transaction, this means waiting until at least $150 in rewards have accumulated.

On Layer 2 networks where gas costs are pennies, daily harvesting becomes viable for almost any deposit size, which is one of the major advantages of farming on L2s.

Gas Cost Impact by Deposit Size

The following table illustrates how gas fees affect your net yield at different deposit sizes, assuming a 50% APR pool on Ethereum mainnet with $15 average gas per transaction and monthly harvesting (12 harvests per year plus deposit and withdrawal).

Deposit SizeGross Yield (50% APR)Total Gas (14 txns)Gas as % of YieldNet Yield
$100$50$210420%-$160 (loss)
$500$250$21084%$40
$1,000$500$21042%$290
$5,000$2,500$2108.4%$2,290
$10,000$5,000$2104.2%$4,790
$50,000$25,000$2100.8%$24,790

The table makes one thing immediately clear: yield farming on Ethereum L1 is not viable for small deposits. A $100 deposit farming at 50% APR would lose money after gas costs. Even a $500 deposit barely breaks even. To make L1 farming worthwhile, you generally need at least $2,000 to $5,000, depending on the pool's APR and how often you harvest.

L1 vs L2 Yield Farming

The choice of network dramatically changes the economics of yield farming. Ethereum mainnet (Layer 1) offers the deepest liquidity and most battle-tested protocols, but gas fees make it impractical for smaller farmers. Layer 2 networks and alternative L1 chains provide a much cheaper alternative.

On Arbitrum, Base, and Optimism, gas costs per transaction range from $0.01 to $0.20, making daily harvesting feasible even with deposits as small as $100. Polygon offers similarly low fees. This means L2 farmers can compound more frequently and achieve APYs closer to the theoretical maximum.

However, L2 protocols often have lower total value locked (TVL), which can mean higher slippage on large trades, less liquidity depth, and potentially higher smart contract risk from newer, less-audited codebases. There is also bridge risk: moving assets from L1 to L2 requires a bridge transaction, which has its own costs and security considerations.

For most farmers with deposits under $10,000, L2 farming offers substantially better net returns due to the gas savings alone. Larger depositors may prefer L1 for the deeper liquidity and protocol maturity, accepting the higher gas costs as a small percentage of their total yield.

Frequently Asked Questions

What is yield farming?

Yield farming is the practice of depositing cryptocurrency into DeFi protocols — typically liquidity pools on decentralised exchanges or lending platforms — to earn rewards. These rewards come from trading fees generated by the pool and additional token incentives distributed by the protocol. Farmers allocate capital to the highest-yielding opportunities, often moving between protocols to maximise returns.

How is yield farming APY calculated?

APY (Annual Percentage Yield) is calculated by compounding the base APR over the number of compounding periods in a year. The formula is APY = (1 + APR/n)^n - 1, where n is the number of times you harvest and re-stake per year. Protocols typically display APY assuming daily compounding, but your actual APY depends on your harvest frequency and whether gas costs make frequent compounding practical.

What is impermanent loss?

Impermanent loss occurs when you provide liquidity to an AMM pool and the price ratio of the two tokens changes. The AMM automatically rebalances your position, selling the appreciating token and buying the depreciating one. This means you end up with less value than if you had simply held both tokens. The loss is called "impermanent" because it reverses if prices return to their original ratio, but in practice, prices rarely revert exactly.

How often should I harvest rewards?

The optimal harvest frequency depends on your deposit size, gas costs, and pool APR. A practical rule is to harvest when accumulated rewards are at least 10 times the gas cost of the harvest transaction. On Ethereum mainnet, this might mean monthly or bi-weekly harvesting for most deposit sizes. On L2 networks with sub-dollar gas costs, daily harvesting is often optimal.

Is yield farming profitable for small amounts?

On Ethereum mainnet, yield farming is generally not profitable for deposits under $1,000 due to gas costs. On Layer 2 networks (Arbitrum, Base, Polygon), deposits as small as $100 to $500 can be profitable because gas fees are negligible. The key is to choose a network where gas costs represent less than 10% of your expected yield.

What are the risks of yield farming?

The main risks include smart contract vulnerabilities (bugs or exploits in the protocol code), impermanent loss from price divergence, reward token depreciation that reduces the value of earned rewards, rug pulls or protocol abandonment, and regulatory uncertainty. Additionally, high-APY farms often carry the highest risk because unsustainable emission rates lead to severe token price declines.

Related Calculators