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.
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.
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.
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.
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
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.
| APR | Annual | Quarterly | Monthly | Weekly | Daily | Continuous |
|---|
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.
| Convention | n | Typical use | APY at 5% APR | APY at 12% APR | APY at 100% APR |
|---|---|---|---|---|---|
| Annual | 1 | Bonds, simple loans, some CEX savings | 5.0000% | 12.0000% | 100.0000% |
| Semi-annual | 2 | Some bonds and structured products | 5.0625% | 12.3600% | 125.0000% |
| Quarterly | 4 | Dividend-paying equities, some savings | 5.0945% | 12.5509% | 144.1406% |
| Monthly | 12 | Traditional savings, many DeFi farms | 5.1162% | 12.6825% | 161.3033% |
| Weekly | 52 | Some staking programs | 5.1246% | 12.7341% | 168.5945% |
| Daily | 365 | Auto-compounding farms, rebasing tokens | 5.1267% | 12.7475% | 171.4562% |
| Hourly | 8,760 | Per-block or near-continuous compounding | 5.1271% | 12.7496% | 171.7091% |
| Continuous | ∞ | Theoretical ceiling — eAPR − 1 | 5.1271% | 12.7497% | 171.8282% |
Variable Reference
| Symbol | Meaning | Typical range | Units |
|---|---|---|---|
| APR | Nominal annual rate | −99 – 10,000 | % per year |
| APY | Effective annual yield | −99 – 10⁶ | % per year |
| n | Compounding periods per year | 1 – 10⁹ | periods |
| r/n | Per-period rate | 0.0001 – 100 | % per period |
| Gain | APY − APR | 0 – 10⁶ | percentage points |
| Ceiling | eAPR − 1 | — | % per year |
| Multiplier | 1 + APY ÷ 100 | 0.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:
Rearranged to solve for the other two unknowns:
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:
The per-period rate and the compounding gain follow directly:
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:
Simple value = P × ( 1 + APR ÷ 100 × t )
APY Variables
| Symbol | Meaning | Notes |
|---|---|---|
| APR | Nominal annual rate | The advertised rate before compounding |
| APY | Effective annual yield | What you actually earn; the fair comparison metric |
| n | Compounds per year | 1 = annual, 365 = daily, 10⁹ ≈ continuous |
| r/n | Per-period rate | The rate applied at each compounding step |
| Gain | APY − APR | How much compounding adds, in percentage points |
| Ceiling | eAPR − 1 | The 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
Per-period rate = 0.12 ÷ 365 = 0.000328767
APY = (1 + 0.000328767)³⁶⁵ − 1 = 12.7475%
Gain over APR = 0.7475 percentage points
APR = 365 × ( 1.1274751/365 − 1 ) = 12.0000%
Solve ( 1 + 0.12 ÷ n )ⁿ = 1.127475 → n ≈ 365 (daily)
e0.12 − 1 = 1.127497 − 1 = 12.7497%
Daily compounding already achieves 99.98% of this maximum
Compounded = 10,000 × 1.127475 = $11,274.75
Simple (at 12% APR) = 10,000 × 1.12 = $11,200.00
Compounding contributed $74.75
Compounded = 10,000 × 1.127475⁵ = $18,192.69
Simple = 10,000 × (1 + 0.12 × 5) = $16,000.00
Compounding contributed $2,192.69
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.
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| Parameter | Value |
|---|---|
| APR | 40% |
| Compounding Frequency | 365 (daily) |
| Parameter | Value |
|---|---|
| APR | 100% |
| Frequency | 52 (weekly) |
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
Related calculators · DeFi & Yield Farming
Recently updated formulas
Suggest an improvement
Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.