APY from APR
APY = (1 + APR / n) ^ n - 1`n` is the number of compounding periods per year.
DeFi APR and APY
Estimate DeFi yield from APR, compounding frequency, deposit amount, time in protocol and gas costs. The calculator shows gross yield, net yield, APY, daily earnings and monthly earnings from the assumptions you enter.
Calculator
Use protocol APR, intended duration and estimated transaction costs.
Formula: APY = (1 + APR / compounds) ^ compounds - 1. Net value subtracts entered costs and platform fees.
Formula
APY = (1 + APR / n) ^ n - 1`n` is the number of compounding periods per year.
gross = deposit * ((1 + APY) ^ (days / 365) - 1)This estimates earnings over the selected time period.
net = gross - gas costs - platform feeCosts can reduce or eliminate yield for short periods or small deposits.
Example
For a $5,000 deposit at 18% APR compounded monthly over 90 days, APY is about 19.56%. The gross estimated earnings are about $225.19. If gas and transaction costs are $35, net earnings are about $190.19.
This result does not guarantee future yield. Protocol APR, reward token value, liquidity, incentives and gas fees can change.
Limitations
The calculator does not automatically include impermanent loss, token reward decay, liquidation risk, borrowing costs, slippage, taxes, smart contract risk or changing protocol incentives. Use the real DeFi return calculator when you need a more conservative net-return view.
Related tools
FAQ
A DeFi yield calculator estimates potential earnings from lending, staking or yield farming assumptions. It uses deposit size, APR or APY, compounding frequency, duration and costs.
APR is the annual rate before compounding. APY includes compounding. The difference can grow when compounding is frequent or the stated rate is high.
No. DeFi yields can change quickly and depend on protocol rules, liquidity, rewards, fees, token prices and smart contract risk.
Gas or transaction costs are included only if you enter them. They can materially reduce net yield, especially for small deposits or short holding periods.
Quality notes
Lamppoli calculators are designed to answer a practical crypto question quickly, then show the assumptions behind the result.
Use this calculator when comparing headline APR or APY with time period, compounding and cost assumptions. It is a first-pass yield estimate, not a guarantee.
Use the result as a planning estimate, then review fees, taxes, slippage, liquidity and risk separately before making decisions.
More FAQ
APY can change when liquidity, incentives, utilization, reward emissions, token price or protocol rules change.
The static MVP uses editable assumptions. A Cloudflare data layer can later add cached DefiLlama-style yield data with attribution.
Gas, protocol fees, slippage, withdrawal costs, reward token movement and impermanent loss can reduce actual returns.