Yield Farming APY

Calculate Yield Farming APY instantly with the exact formula and a worked example.

Yield Farming APY

Reward APR (farm tokens)%
Pool fee APR%
Compounds per year
Expected impermanent loss per year%
YF APY
44.1498%
Calculate Yield Farming APY instantly with the exact formula and a worked example.
Total APR
40%
APY before IL
49.15%

This calculator turns a pool's advertised APR into an annual yield with compounding, then subtracts the impermanent loss you expect, so you see what is likely to be left.

How the calculation works

First it adds the two income streams: reward APR (tokens the protocol pays for farming) and fee APR (your share of the pool's trading fees). The combined APR is converted to APY with the compound-interest formula APY = (1 + APR / n)ⁿ − 1, where n is how many times a year you harvest rewards and add them back to the pool. Finally, expected annual impermanent loss is subtracted in percentage points.

All fields except frequency are annual percentages. "Compounds per year": 365 for daily, 52 for weekly, 12 for monthly and 1 for no compounding, in which case APY equals APR. Impermanent loss is how far your pool position lags simply holding the same tokens; the calculator does not model it, it uses your estimate.

The output shows the net APY after IL, plus the total APR and the APY before IL, so you can see how much the pair's volatility is costing you.

Worked example

Defaults: rewards 30 %, fees 10 %, daily compounding, IL 5 %. Total APR = 40 %. APY = (1 + 0.40 / 365)³⁶⁵ − 1 ≈ 49.15 %. Subtracting 5 % IL leaves about 44.15 %. On a $1,000 position that is roughly $441 over a year — provided rates and prices stay where they are, which in DeFi they rarely do.

Things to keep in mind

  • Every compound costs gas. On small positions, daily harvesting on an expensive chain can eat the whole compounding benefit: at 40 % APR, daily versus weekly compounding is only 49.15 % versus 48.95 %.
  • Reward APR is paid in the protocol's token. If that token's price falls, your dollar return falls too, and the calculator does not account for that.
  • For a 50/50 pool, impermanent loss can be estimated as 2√r / (1 + r) − 1, where r is the change in the price ratio; a 2× move gives about 5.7 %.
  • A very high APY usually signals high risk: smart-contract bugs, rug pulls, stablecoin de-pegs. Yields are not guaranteed and pool rates change daily.
  • Crypto rewards are taxable in many countries, including the US; check how your jurisdiction treats farming income.

More about: Yield Farming APY

What it calculates

The “Yield Farming APY” calculator computes YF APY in % from 4 parameters: reward apr (farm tokens) (%), pool fee apr (%), compounds per year, expected impermanent loss per year (%).

Used by investors to estimate returns, project savings, and analyze a portfolio.

Example calculation

With parameters Reward APR (farm tokens) = 30 %, Pool fee APR = 10 %, Compounds per year = 365, Expected impermanent loss per year = 5 % the result is 44.15 %.

How to use

  1. Enter reward apr (farm tokens), pool fee apr, compounds per year and expected impermanent loss per year — each field above is adjustable with a slider.
  2. YF APY (%) is calculated automatically as you type.
  3. Check the worked example below to see the formula applied to real numbers.
  4. Copy the result or bookmark this calculator.

Related calculators

FAQ

What is the difference between APR and APY?
APR is a simple annual rate without reinvestment. APY assumes harvested rewards are added back to the pool and start earning too.
Why is IL simply subtracted?
It is a simplification: the calculator assumes the loss over the year equals the percentage you enter. Real IL depends on price moves and is only locked in when you withdraw.
Can the result be negative?
Yes, if expected impermanent loss exceeds what rewards and fees earn. In that case simply holding the tokens would do better.
How often should I compound?
Often enough that the extra yield clearly exceeds gas costs. On cheap networks that can be daily; on expensive ones weekly or monthly is often better.

More calculators in this category

Explore related free tools

Svopy Variance SwapFair Value DCFCointegration TestExcess Kurtosis DohodnostiCash Conversion CycleDSO (Days Sales Outstanding)DPO (Days Payable Out.)DIO (Days Inventory Out.)Payback PeriodDiscounted PaybackCurrent YieldOption Implied Volatility