Yield Farming & Vaults

APR vs. APY in DeFi: Formulas, Assumptions, and Traps

Spot the edge. Swoop in.

APR is the annual percentage rate before compounding. APY projects compound growth using an assumed frequency. In DeFi, both figures rely on rate assumptions that can change immediately, so understanding the formulas prevents overstating expected returns.

By Swoopr Editorial Team

Published · Updated

AI-assisted content · Swoopr is responsible for the final published article.

Direct Answer

APR annualizes a rate without assuming intra-year compounding, while APY includes a compounding assumption. In DeFi, APY can overstate a practical outcome when rates vary, rewards are volatile, compounding costs money, fees apply, or principal changes value.

Key Takeaways

What This Page Covers

This page provides formulas and examples for educational comparison. It does not define how every protocol labels rates; dashboards may use different conventions.

APR Formula

For a simple periodic return annualized without intra-year compounding:

APR ≈ periodic rate × periods per year

If a position earns 1% per month and does not reinvest, simple annualization is about 12%. This assumes the monthly rate persists and ignores changes in principal.

Protocols may calculate APR from block-level emissions, current utilization, recent fees, or annualized reward quantities. The label does not guarantee a standardized measurement window.

APY Formula

With nominal APR r compounded n times per year:

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

At 12% APR compounded monthly:

(1 + 0.12/12)^12 - 1 ≈ 12.68%

With continuous compounding, the theoretical limit is e^r - 1, but real DeFi strategies incur discrete execution, fees, and rate changes. A dashboard may assume daily or per-block compounding even when the user must harvest manually.

Variable Rates and Snapshot Bias

A lending rate can change with utilization every block. LP fees depend on future volume and price movement. Incentive APY depends on token price and total eligible deposits. Annualizing a brief observation can produce a dramatic but fragile number.

Use 7-day, 30-day, and longer histories where available, and explain whether the measure is realized, trailing, or forward-looking. A trailing rate is evidence of the past, not a forecast.

Net Compounding

Compounding is worthwhile only if the incremental return exceeds costs.

If a $1,000 position earns 20% APR but a harvest costs $10, frequent compounding can destroy value. A $100,000 position faces the same transaction fee but different proportional drag. Vaults can pool gas but charge management or performance fees.

Reward conversion also introduces slippage and token-price exposure. Tax consequences can arise when rewards are received, swapped, or disposed of, depending on jurisdiction.

Principal and Denomination

A 20% token-denominated APY can coincide with a 50% decline in the token's dollar value. Stablecoin-denominated returns can still face depeg. LP-denominated returns can hide divergence versus holding.

Always state the unit: more tokens, more LP shares, more stablecoin units, or more purchasing power. Rate comparison without a principal-risk comparison is incomplete.

Practical Decision Framework

Use the RATE worksheet:

Publish both the formula and a plain-language interpretation.

Worked Example

A farm shows 24% APR paid continuously in a reward token.

Monthly compounding with no costs would imply:

(1 + 0.24/12)^12 - 1 ≈ 26.82% APY

But assume:

The effective result is far below 26.82%. The compounding formula was correct, but its inputs did not describe the actual strategy.

Common Mistakes

Risks and Limitations

Rate labels can be inconsistent across interfaces. Formula precision does not fix uncertain inputs. Rates, token prices, emissions, fees, and balances can change immediately. Tax treatment and cost basis depend on circumstances.

Calculator outputs should be described as scenarios, not predictions, and should not store sensitive balances without a clear user need and privacy review.

Practical Checklist

Frequently Asked Questions

Which is higher, APR or APY?

For a positive nominal rate with compounding, APY is higher. The difference depends on rate and compounding frequency.

Can APY change every day?

Yes. DeFi inputs can change every block, and interfaces update at different intervals.

Does APY include fees?

Sometimes partially, often not completely. Read the methodology.

Is daily compounding always better?

Only before costs and operational risk. Small positions may be harmed by frequent execution.

Can I compare two APYs directly?

Only after aligning principal risk, source, measurement window, compounding, fees, denomination, and liquidity.

Summary

APR and APY are mathematical conventions applied to uncertain economic inputs. Use the formulas, but focus more on source, assumptions, total costs, principal exposure, and realistic scenarios.

Sources and Further Reading

Educational disclaimer: Educational information only; not investment, tax, legal, or personalized financial advice. DeFi positions can lose some or all committed assets through market movement, liquidation, smart-contract failure, governance action, oracle failure, bridge failure, stablecoin instability, operational mistakes, fraud, or other causes.

Continue Learning