Yield Farming Calculator — DeFi APY & Earnings Projections
Calculate DeFi yield farming returns with compound interest. Enter your principal, APY, compounding frequency, and duration to see final value, total earnings, and daily/weekly/monthly income breakdowns.
Annual Percentage Rate (before compounding)
Duration: 365 days (12m 5d)
How to Use the Yield Farming Calculator
Enter your principal — the amount you are depositing into the yield farming protocol. Then enter the advertised APY (Annual Percentage Yield). Select the compounding frequency: daily compounding is most common in DeFi (auto-compounding vaults reinvest rewards every block or every few hours). Finally, set your duration in days using the slider.
The calculator compounds your returns at the selected frequency and shows the final value, total earnings, and an earnings breakdown by day, week, and month. The effective APY is also shown — this equals the stated APY when compounding is daily, but may differ for less frequent compounding schedules.
Keep in mind that APYs in DeFi are variable. The rate shown today can change dramatically as more liquidity enters or exits the pool, or as token reward prices fluctuate. Use this calculator for planning, not as a guaranteed return forecast.
The Formula
The calculator uses the standard compound interest formula, adapted for any compounding frequency:
- Periodic Rate (r) = (1 + APY/100)^(1/n) − 1, where n = number of compounding periods per year
- Number of Periods = durationDays / (365 / n)
- Final Value = Principal × (1 + r)^periods
- Total Earnings = Final Value − Principal
- Daily Earnings ≈ Total Earnings / durationDays
- Effective APY = (1 + r)^n − 1
For example, at 100% APY with daily compounding for 365 days, the periodic rate is (2)^(1/365) − 1 ≈ 0.1902% per day. The final value of a $10,000 principal would be $20,000 — exactly doubling your money.
Practical Examples
Example 1 — Stablecoin Vault at 15% APY
- Principal: $10,000
- APY: 15% | Compounding: Daily | Duration: 365 days
- Final Value: ~$11,618
- Total Earnings: ~$1,618
- Daily: ~$4.43 | Monthly: ~$134.80
Stablecoin yield farming offers predictable returns with minimal price risk, making it popular for conservative DeFi participants. Protocols like Aave, Compound, and Curve regularly offer 5–20% APY on stablecoins.
Example 2 — Liquidity Pool at 200% APY
- Principal: $5,000
- APY: 200% | Compounding: Daily | Duration: 90 days
- Final Value: ~$8,280
- Total Earnings: ~$3,280
- Monthly: ~$1,093
Very high APYs are common for new token launches or incentivized pools, but they are rarely sustainable. Token reward prices can collapse, and the APY may drop 80–90% within weeks. Short durations with high APYs require active monitoring and frequent reinvestment of rewards.
APY vs APR — What Is the Difference?
APR (Annual Percentage Rate) is the raw rate without compounding. APY (Annual Percentage Yield) includes the effect of compounding. A 100% APR with daily compounding becomes ~171.46% APY. DeFi protocols often advertise APY to make returns look higher. Always check whether a protocol shows APR or APY — and use this calculator with the correct value.
Frequently Asked Questions
Related Guides
DeFi Passive Income: Yield Farming, Staking & Liquidity Explained
Explore the main ways to earn passive income in decentralized finance: staking, yield farming, and liquidity provision. Understand the risks and calculate your real returns.
The Power of Compound Interest: How Your Capital Grows Exponentially
Understand the most powerful force in finance: compound interest. See how small, consistent gains turn into exponential growth across trading, investing, and DeFi.
Related Calculators
Impermanent Loss Calculator
Calculate impermanent loss for Uniswap V2 and V3 liquidity positions. Compare your LP return against simply holding the tokens.
Liquidation Price Calculator
Calculate the liquidation price for leveraged crypto positions. Know your risk before you open a perpetual futures position.
Staking Rewards Calculator
Calculate your cryptocurrency staking rewards. Enter staked amount, APY, and period to see daily, monthly, and annual staking income with compounding effects.
Ethereum Gas Fee Calculator
Calculate Ethereum gas fees in USD instantly. Enter base fee, priority fee, and transaction type to see the exact cost of any ETH, ERC-20, or DeFi transaction.