Home / Crypto & Blockchain / DeFi & Yield Farming / Yield Farming APY (Auto-Compounded)

Formula & Calculator

Yield Farming APY (Auto-Compounded)

Yield farming involves staking crypto in DeFi protocols to earn rewards. When rewards are auto-compounded, your effective APY is higher than the stated APR. This formula calculates it: (1 + APR/n)^n − 1, where n is compounding frequency. For example, 100% APR compounded daily becomes about 171% APY. Very high yields often come with high risk (smart contract bugs, impermanent loss, token depreciation). It is a key calculation for DeFi farmers.

Crypto DeFi Yield Farming
VORZEP · YIELD & RETURN TOOLS

Yield Farming APY Calculator

Solve the auto-compound return identity APY = (1 + APR ÷ n)ⁿ − 1 for any of its three unknowns — the annual percentage yield, the annual percentage rate, or the compounding frequency — with step-by-step math, a live compounding-limit schematic, an auto-compound growth projection, and a net-APY cost-drag helper that accounts for platform fees and impermanent loss.

APY = ( 1 + APR ÷ n )n − 1
Solve for
APR — Nominal Annual Rate The simple, un-compounded annual rate — what the farm advertises before compounding is applied. It is the rate you would earn if the yield were paid out once a year and never reinvested. APR does not account for the frequency of compounding, which is why two farms advertising the same APR can deliver different actual returns. Enter it as a percentage, so 12.5% is typed as 12.5.
% / yr
APR must be greater than −100%.
= 12.0000% = 0.120000 decimal = 1,200 bps
Compounding Frequency (n) How many times per year the yield is folded back into the principal. Annual is n = 1, monthly is 12, weekly is 52, daily is 365, hourly is 8,760. Most yield farms auto-compound every block or every few minutes, which is effectively continuous — the APY converges to eAPR − 1 as n grows without bound. This is why a farm advertising 12% APR with per-block compounding shows an APY noticeably above 12%.
periods / yr
Compounding frequency must be greater than zero.
= 365.00 = daily compounding = every 24.00 hours
APY — Effective Annual Yield The real return you earn over a year once compounding is applied — the number that matters for comparing farms. APY is always greater than or equal to APR, and the gap grows with both the rate and the compounding frequency. At 12% APR, daily compounding gives about 12.75% APY; hourly gives about 12.749%; the continuous limit is 12.7497%. The gap widens fast at high rates: at 1,000% APR, daily compounding produces roughly 2,222% APY, and the continuous limit is about 2,617%.
% / yr
APY must be greater than −100%.
= 12.7475% = 0.127475 decimal = 1.127475× multiplier
Auto-compound growth projection HELPER
USD
years
USD
USD

Compounded value = principal × (1 + APY)years. Simple value = principal × (1 + APR × years). The difference is the value created by compounding alone. Over one year it looks small; over five years it becomes the dominant term, because compounding is exponential and simple interest is linear.

$10,000.00 at 12.7475% for 1 year → $11,274.75 compounded vs $11,200.00 simple → compounding adds $74.75.
Net APY — platform fee & impermanent loss HELPER
% of yield
% / yr
% / yr
% / yr

Net APY = gross APY × (1 − platform fee ÷ 100) − impermanent loss − gas drag. A farm advertising 500% APY with a 10% performance fee, 8% expected impermanent loss, and 2% gas drag actually delivers about 440% — still enormous, but the headline number is not the number you keep. On lower-yield farms the drag matters proportionally more: a 12.75% APY farm with a 2% fee, 3% IL, and 1% gas drag nets roughly 8.5%, a third of the headline.

Gross 12.7475% → after 0% fee, 0% IL, 0% gas → net 12.7475%.
Compounding frequency comparison HELPER
% / yr
% / yr

The table below shows the APY at each common compounding frequency for the APR you enter. The gains are large at first — annual to monthly adds more than monthly to daily — and then flatten out. Going from daily to hourly buys almost nothing, and the continuous limit is barely above hourly. This is why farms that compound per block are effectively at the continuous ceiling.

APR 12% → annual 12.0000% · monthly 12.6825% · daily 12.7475% · hourly 12.7496% · continuous 12.7497%.
EFFECTIVE ANNUAL YIELD (APY)
12.7475 % / yr
12.0000% APR · 365 compounds/yr · +0.7475 pp from compounding
MODERATE — 5% TO 20% APY
APY = ( 1 + APR ÷ n )ⁿ − 1
0.1%trivial 5%low 20%moderate 100%high 1000%extreme
12.75% — MODERATE band
APR 12.0000%
Compounding gain +0.7475 pp
APY / APR 1.0623×
Step-by-step solution
APY vs. compounding frequency
Current APR APR × 0.5 APR × 2.0
APY vs. APR at current frequency
Current n n ÷ 4 n × 2
Sensitivity
Companion return metrics
Compounding — live schematic
COMPOUNDING · APY = ( 1 + APR ÷ n )ⁿ − 1 NOMINAL RATE APR 12.0000% COMPOUNDS / YEAR n = 365 ( 1 + r/n )ⁿ EFFECTIVE YIELD APY 12.7475% APY = ( 1 + 0.120000 ÷ 365 )³⁶⁵ − 1 = 12.7475% APY BAND (log scale) — 0.1% TO 1000% 0.1% 5% 20% 100% 1000% 12.75% APY BY COMPOUNDING FREQUENCY (AT CURRENT APR)
APR — the nominal rate the farm advertises Compounding frequency — how often yield is reinvested APY — what you actually earn, and its position on the band
What the APY relation really measures
APYeffective annual yield
=
( 1 + APR/n )per-period growth
ⁿ
− 1net of principal

APY is always at least APR, and the gap compounds

Every extra compounding period adds a little more yield, and that extra yield itself earns yield in the next period. The result is that APY exceeds APR for any n greater than 1. At 12% APR the gain is 0.75 percentage points with daily compounding — modest. At 1,000% APR the same daily compounding produces over 2,200% APY, a gain of more than 1,200 percentage points. The compounding gap is proportional to the square of the rate, which is why it matters enormously at the high APRs farms advertise and barely at all at the single-digit rates traditional finance uses.

There is a hard ceiling, and farms hit it

As n grows without bound, (1 + APR/n)ⁿ converges to eAPR, so the maximum possible APY for a given APR is eAPR − 1. Nothing can exceed this. At 12% APR the ceiling is 12.7497%, and hourly compounding already reaches 12.7496% — within a hundredth of a percentage point. At 1,000% APR the ceiling is about 2,617%, and daily compounding reaches about 2,222%. This is why farms that compound every block are effectively at the theoretical maximum, and why a farm advertising more than eAPR − 1 for a stated APR is either using a different definition of APR or inflating the number.

The headline APY is not what you keep

A farm advertising 500% APY may have a 10% performance fee on yield, an expected 8% impermanent loss on the pool, and a 2% drag from harvest gas. Applied in sequence those reduce the net return to roughly 440% — still extraordinary, but 12% lower than the headline. On a more modest farm the proportional impact is far larger: a 12.75% APY with a 2% fee, 3% IL, and 1% gas drag nets about 8.5%, roughly a third below the advertised figure. This is why net APY, not gross APY, is the number that should drive allocation decisions.

Four-digit APYs are a warning, not an opportunity

If a farm genuinely produced a durable 1,000% annual return, capital would flood in until the yield compressed to something ordinary. A four-digit APY almost always means one of five things: the rate is emission-funded and will fall as the token inflates, the pool is tiny and cannot absorb meaningful capital, the APY is calculated on a token whose price is falling faster than the yield accrues, the number is an instantaneous snapshot rather than an average, or the principal is at risk of a contract exploit. Occasionally a high APY is real and early — but the burden of proof is entirely on the buyer, and the default assumption should be that the yield is not what it appears.

How to Use This Calculator

The APY relation links three quantities: the effective annual yield, the nominal APR, and the compounding frequency. Pick which one you want the tool to solve, then fill in the other two.

1. Choose what to solve for

Pick APY, APR, or n from the toggle. The calculator rearranges APY = (1 + APR ÷ n)ⁿ − 1 automatically for whichever variable you choose and greys out that field.

2. Set the compounding frequency

Use the frequency bar for annual, semi-annual, quarterly, monthly, weekly, daily, hourly, or continuous. Most farms auto-compound per block, which is effectively continuous — the calculator uses a very large n for that case.

3. Enter APR or APY, not both

Farms usually advertise APR; some advertise APY. If you have APR, leave APY to be solved. If a farm only publishes APY, switch to solving for APR to see the underlying nominal rate and compare it fairly against other farms.

4. Project the growth

Enter a principal and a holding period to see the compounded final value alongside the simple-interest value. The difference is what compounding alone contributed — small over one year, dominant over five.

5. Subtract fees and impermanent loss

Enter the platform performance fee, your expected impermanent loss, and any harvest gas drag to see the net APY. This is the number to compare against other opportunities; the gross APY is marketing.

6. Switch to Advanced for depth

Advanced mode adds an APY-vs-APR chart at your compounding frequency, a sensitivity check, and companion metrics including the continuous ceiling, the compounding gain in percentage points, the effective per-period rate, and the number of periods needed to double the principal.

What This Tool Offers

Built around the compounding identity APY = (1 + APR ÷ n)ⁿ − 1, the conversion that turns a nominal rate into the return you actually earn.

Three-way solving

Solve for APY, APR, or the compounding frequency. The frequency is found numerically by root-finding on the compounding equation.

Eight frequency presets

One tap for annual, semi-annual, quarterly, monthly, weekly, daily, hourly, or continuous compounding — covering every conventional convention plus the theoretical limit.

Auto-compound projection

Enter a principal and a holding period to see the compounded final value against the simple-interest value, isolating exactly what compounding contributed.

Net APY after costs

Apply a performance fee, an impermanent loss estimate, and a gas drag to see the net APY — the number that should drive the allocation decision.

Dual comparison charts

APY vs. compounding frequency for three APR levels, plus an advanced APY-vs-APR chart at the current frequency.

Reference tables

A live APY converter, an APY lookup grid across APR and frequency, a compounding-convention comparison table, and a full variable reference.

Reference Tables & Conversions

A live APY converter, an APY lookup grid, and the compounding-convention table that shows how much each convention actually adds.

APR · frequency · APY converter

% / yr
periods / yr
% / yr
pp
% / period
% / yr
= 12.0000% APR with 365 compounds/yr → 12.7475% APY · gain +0.7475 pp · per-period rate 0.032877% · continuous ceiling 12.7497%.

APY Lookup — APR × Compounding Frequency

Computed from APY = (1 + APR ÷ n)ⁿ − 1. Each cell shows the effective annual yield for a given APR and convention.

APRAnnualQuarterlyMonthlyWeeklyDailyContinuous

Compounding Conventions Compared

The gains are large at first and flatten quickly. Going from annual to monthly adds far more than going from daily to hourly.

ConventionnTypical useAPY at 5% APRAPY at 12% APRAPY at 100% APR
Annual1Bonds, simple loans, some CEX savings5.0000%12.0000%100.0000%
Semi-annual2Some bonds and structured products5.0625%12.3600%125.0000%
Quarterly4Dividend-paying equities, some savings5.0945%12.5509%144.1406%
Monthly12Traditional savings, many DeFi farms5.1162%12.6825%161.3033%
Weekly52Some staking programs5.1246%12.7341%168.5945%
Daily365Auto-compounding farms, rebasing tokens5.1267%12.7475%171.4562%
Hourly8,760Per-block or near-continuous compounding5.1271%12.7496%171.7091%
Continuous∞Theoretical ceiling — eAPR − 15.1271%12.7497%171.8282%

Variable Reference

SymbolMeaningTypical rangeUnits
APRNominal annual rate−99 – 10,000% per year
APYEffective annual yield−99 – 10⁶% per year
nCompounding periods per year1 – 10⁹periods
r/nPer-period rate0.0001 – 100% per period
GainAPY − APR0 – 10⁶percentage points
CeilingeAPR − 1—% per year
Multiplier1 + APY ÷ 1000.01 – 10⁴×

What Does APY = (1 + APR ÷ n)ⁿ − 1 Measure?

APY converts a nominal annual rate into the return you actually earn once compounding is applied. The formula says: divide the annual rate into n equal periods, grow the principal by that per-period rate n times, and subtract the original principal. What is left is the effective annual yield. It is the number that lets you compare a farm compounding every twelve seconds against a savings account compounding monthly against a bond paying annually, on equal terms.

Auto-Compound APY Formula

The defining relationship is:

APY = ( 1 + APR ÷ n )ⁿ − 1

Rearranged to solve for the other two unknowns:

APR = n × ( ( 1 + APY )1/n − 1 )
n = the value satisfying ( 1 + APR ÷ n )ⁿ = 1 + APY   (solved numerically)

The continuous-compounding limit, approached as n grows without bound, uses the exponential function:

APYcontinuous = eAPR − 1

The per-period rate and the compounding gain follow directly:

Per-period rate = APR ÷ n
Compounding gain = APY − APR
Multiplier = 1 + APY ÷ 100

And the projected value of a principal P held for t years at a given APY is:

Compounded value = P × ( 1 + APY ÷ 100 )t
Simple value = P × ( 1 + APR ÷ 100 × t )

APY Variables

SymbolMeaningNotes
APRNominal annual rateThe advertised rate before compounding
APYEffective annual yieldWhat you actually earn; the fair comparison metric
nCompounds per year1 = annual, 365 = daily, 10⁹ ≈ continuous
r/nPer-period rateThe rate applied at each compounding step
GainAPY − APRHow much compounding adds, in percentage points
CeilingeAPR − 1The maximum possible APY for a given APR

How Each Variable Affects the Yield

APY rises with both APR and n, but the two effects are not equivalent. Increasing APR raises APY proportionally at low rates and explosively at high rates, because the compounding gain is roughly proportional to the square of the rate. Increasing n raises APY but with rapidly diminishing returns: the difference between annual and monthly compounding is large, between monthly and daily it is small, and between daily and continuous it is a rounding error.

The convergence to the continuous ceiling is the key structural fact. Because (1 + APR/n)ⁿ increases monotonically toward eAPR, there is a hard maximum on what any compounding scheme can deliver for a given APR. At 12% APR the ceiling is 12.7497% and daily compounding already reaches 12.7475% — 99.98% of the maximum. At 100% APR the ceiling is about 171.83% and daily compounding reaches 171.46%. This means that a farm bragging about per-second compounding has, at most, a few hundredths of a percentage point of edge over a farm compounding daily. The frequency is almost never the differentiator it is presented as.

What does differ enormously is the rate itself — and the durability of that rate. A 12% APY that persists for five years compounds to 76% total growth; a 500% APY that lasts three months before collapsing to 20% produces a very different outcome. The APY figure is a snapshot of an instantaneous rate, not a promise about the future. Yield farming APYs move constantly as emissions schedules change, liquidity shifts between pools, and token prices move. The number you see today is the number that was true for the last block, extended over a year as if nothing would change. Treat it as a current reading, not a forecast.

Auto-Compound APY Calculation Examples

Given: APR = 12%, n = 365 — solve for APY
Per-period rate = 0.12 ÷ 365 = 0.000328767
APY = (1 + 0.000328767)³⁶⁵ − 1 = 12.7475%
Gain over APR = 0.7475 percentage points
Given: APY = 12.7475%, n = 365 — solve for APR
APR = 365 × ( 1.1274751/365 − 1 ) = 12.0000%
Given: APR = 12%, APY = 12.7475% — solve for n
Solve ( 1 + 0.12 ÷ n )ⁿ = 1.127475 → n ≈ 365 (daily)
Given: APR = 12% — continuous ceiling
e0.12 − 1 = 1.127497 − 1 = 12.7497%
Daily compounding already achieves 99.98% of this maximum
Given: Principal $10,000, APY 12.7475%, 1 year
Compounded = 10,000 × 1.127475 = $11,274.75
Simple (at 12% APR) = 10,000 × 1.12 = $11,200.00
Compounding contributed $74.75
Given: Principal $10,000, APY 12.7475%, 5 years
Compounded = 10,000 × 1.127475⁵ = $18,192.69
Simple = 10,000 × (1 + 0.12 × 5) = $16,000.00
Compounding contributed $2,192.69
Given: Gross APY 12.7475%, 2% platform fee, 3% IL, 1% gas drag
After fee = 12.7475 × 0.98 = 12.4926%
Net = 12.4926 − 3 − 1 = 8.4926%
A third of the headline yield is consumed by costs

Frequently Asked Questions

APR is the nominal rate — what you would earn if the yield were paid out once a year and never reinvested. APY is the effective rate — what you actually earn when the yield is reinvested at the stated frequency. APY is always greater than or equal to APR, and the gap grows with both the rate and the frequency. At 12% APR with daily compounding, APY is 12.7475%. At 1,000% APR with daily compounding, APY is over 2,200%. Because APY accounts for compounding and APR does not, APY is the correct metric for comparing opportunities. A farm advertising a high APR but compounding infrequently may deliver less than one advertising a lower APR compounded frequently.

Because the per-period rate shrinks as the number of periods grows, and the two effects balance out at a finite limit. As n increases without bound, (1 + APR/n)ⁿ converges to eAPR, the exponential function. So the maximum APY for a given APR is eAPR − 1, and nothing can exceed it. At 12% APR that ceiling is 12.7497%; at 100% APR it is 171.83%; at 1,000% APR it is about 2,617%. The convergence is very fast — hourly compounding is already within a hundredth of a percentage point of the limit at typical rates. This is why farms that compound every block are effectively at the theoretical maximum already, and why further increases in frequency add essentially nothing.

Several reasons. First, farms often quote APY computed on a short window — the last hour, the last day — and annualise it, so the number reflects a temporary emission rate rather than a sustainable one. Second, many farms include the value of their own token emissions in the yield, and if that token is falling in price, the dollar-denominated return is lower than the token-denominated APY suggests. Third, the APR itself changes as the pool's liquidity and the emissions schedule change, sometimes hourly. Fourth, some farms report the rate per block multiplied by the number of blocks in a day and then annualised without compounding, which understates the figure; others compound it, which overstates it relative to a short sample. Always check what window the quoted APY covers and whether the reward token is the same asset you deposited.

Rarely, and never for long. If a farm genuinely paid a durable 1,000% annual return, capital would rush in until the yield compressed to ordinary levels — this is the same force that drives arbitrage in every market. A four-digit APY almost always means one of five things: the emissions are inflationary and the reward token is losing value, the pool is tiny and cannot absorb meaningful capital without collapsing the rate, the APY is a snapshot of a brief spike, the reward token is not the same as the deposit token and is falling faster than the yield accrues, or the contracts carry an elevated risk of exploit. Sometimes a high APY is genuine and early, and those windows can be extremely profitable for the people who find them. But the base rate is that the yield is not what it appears, and the burden of proof is on the buyer.

Impermanent loss is the opportunity cost of providing liquidity in a two-asset pool versus simply holding the two assets. When the relative price of the two assets changes, the pool rebalances — selling the appreciating asset and buying the depreciating one — so you end up holding more of the loser and less of the winner. The loss is "impermanent" only in the sense that it reverses if prices return to their original ratio; if you withdraw after the ratio has changed, it becomes permanent. In a pool where one asset doubles relative to the other, the IL is about 5.7%. For a 4× move it is about 20%. For a 10× move it is about 42%. Those losses come out of the yield, which is why a 20% APY farm with a large expected price divergence can net less than simply holding.

Auto-compounding almost always wins, unless the gas cost of harvesting exceeds the value of the harvest. The farm compounds at every block or on a short schedule, which puts it at or near the continuous ceiling; manual compounding at a weekly or monthly cadence captures most but not all of that. The exception is on chains with very high gas costs and small positions, where a manual harvest transaction might cost more than the yield it compounds — in that case, waiting and harvesting less frequently is correct. As a rule: if the harvest value is less than roughly twenty times the gas cost, do not bother, and if the farm offers an auto-compound vault, use it.

It depends on the risk you are willing to take and where we are in the market cycle. Stablecoin pools on established protocols have historically paid 3% to 12% APY, and those are the closest thing to a benchmark rate. Blue-chip volatile pairs on major venues have paid 5% to 30%, with the yield varying with trading activity. Newer pools and smaller protocols can pay 50% to several hundred percent, but with correspondingly higher risk of contract failure, token depreciation, and liquidity evaporation. Anything above 100% APY should be treated as compensation for a specific risk you can name — if you cannot articulate what you are being paid to bear, you probably should not be bearing it. The correct comparison is always against the risk-free rate plus an honest estimate of what the additional risk is worth.

Calculating...

Variables

Symbol Quantity Unit
APY Annual percentage yield
APR Nominal annual reward rate
n Compounding frequency per year

What it means

In DeFi, yield farming often involves auto‑compounding rewards. This formula calculates the effective annual yield. It is used to compare different farming strategies and to estimate returns. Understanding this helps farmers choose the best protocols and to understand the power of compounding. The compounding frequency n is crucial; more frequent compounding gives higher APY.

Worked example

Yield Farming APY (Auto‑Compounded) – Two Detailed Examples

Real‑World
Scenario: A farming pool offers an APR of 40% with daily compounding (n=365). APY = (1 + 0.40/365)^365 - 1 = (1.001096)^365 - 1 = 1.4915 - 1 = 49.15%. This higher APY reflects the effect of compounding. The farmer compares this to other pools.
ParameterValue
APR40%
Compounding Frequency365 (daily)
1APY = (1 + 0.40/365)^365 - 1 = 1.4915 - 1 = 49.15%
Result 49.15% ✓ Effective yield
Scenario: A pool offers 100% APR with weekly compounding (n=52). APY = (1 + 1.00/52)^52 - 1 = (1.01923)^52 - 1 = 2.680 - 1 = 168%. This extremely high yield is attractive but comes with higher risk. The farmer uses APY to compare across protocols.
ParameterValue
APR100%
Frequency52 (weekly)
1APY = (1 + 1.00/52)^52 - 1 = 2.680 - 1 = 168%
Result 168% ✓ High APY
Insight: Auto‑compounding increases effective yield. APY = (1 + APR/n)^n - 1. Higher compounding frequency leads to higher APY, which is why yield farmers prefer pools with frequent compounding.

Common mistakes

  • Yield farming APY with compounding: APY = (1 + APR/n)^n − 1.
  • APR: The nominal annual percentage rate.
  • n: Number of compounding periods per year.
  • Auto‑compounded: Many protocols auto‑compound rewards.

Applications

Yield farming APY (auto‑compounded) converts the periodic APR to an effective annualised yield that accounts for compounding. This is used by DeFi protocols to display the true annual return on liquidity provision or staking. Investors use it to compare different yield farming opportunities and to assess the impact of compounding frequency. Understanding auto‑compounded APY is crucial for maximising returns in DeFi.

  • Comparing yield farming and staking opportunities
  • Estimating true annual returns with compounding
  • Evaluating the effect of compounding frequency
  • Selecting protocols with favourable compounding mechanics
  • Educational understanding of DeFi yields

Suggest an improvement

Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.

Page details

1,873

Views
  • Published July 15, 2026
  • Last updated October 4, 2026