Crypto

DeFi Yield Calculator

Project DeFi returns from a principal, APY and time period, with compounding.

Last updated · View algorithm, constants and default inputs (JSON)

Enter your values

Final balance $11,200.00
Results

About this calculator

Estimate returns by applying APY as an effective annual yield over the selected days, then subtract entered gas costs and impermanent-loss allowance. APY already includes compounding; frequency is used only for the APR-to-APY comparison. Token prices, pool changes, smart-contract risk and changing yields are not modeled.

Worked example

calculated with the default values below

Principal deposited 10,000 $ · Annual percentage yield 12 % · Days deposited 365 days · Annual percentage rate (base) 11.3 % · Compounding per year Daily · Gas and entry fees 20 $ · Impermanent loss allowance 0 % Final balance 11,200.00 $ · Yield earned 1,200.00 $ · Profit after costs 1,180.00 $ · Return over your period 11.800 % · APY implied by the base APR 11.96 % · Average daily yield before costs 3.2877 $ · Impermanent loss allowance 0.00 $

General background references

Disclaimer

These calculators give estimates for general information only. They are not financial, tax or investment advice and do not take your personal circumstances into account. Before borrowing, investing or filing, confirm the numbers with a qualified adviser in your jurisdiction.

Maintained by: CalcDelta

Implementation source

This record describes the implementation used by this page. It is not independent validation. External references, when available, support only the stated formula or definition; estimates and custom rules retain their own assumptions.

View algorithm, constants and default inputs (JSON)

Formula and variables

Gross = principal × (1 + APY/100)^(days/365); implied APY from APR = (1 + APR/(100n))^n − 1

P
Principal
a
APY (%)
n
Compounding periods/year
days
Period (days)
G
Gross balance
F
Final balance
IL
Impermanent loss (%)

Gross balance = principal × (1 + APY/100)^(days/365). APY is effective and already includes compounding; compound the base APR separately only to show its implied effective annual yield.

Embed this calculator

Copy the iframe snippet to place this calculator on your site. No account required. The snippet stays in sync with the inputs currently shown.

Frequently asked questions

Why does the base APR differ from the quoted APY here?

The balance applies the entered APY as an effective annual yield over the selected days; it does not compound that APY again at the selected frequency. The APR comparison separately shows the effective annual yield implied by compounding the base APR. The impermanent-loss field is a user-entered allowance, not a forecast of actual pool loss; gas is subtracted from modeled profit.