HOME / FINANCE & ECONOMICS / BLOCKCHAIN & CRYPTO / DEFI YIELD APR TO APY & GAS BREAK-EVEN CALCULATOR
Finance & Economics / Blockchain & Crypto

DeFi Yield APR to APY & Gas Break-Even Calculator

Educational mathematical illustration only. This does not model impermanent loss, changing APRs, or protocol risk.

Convert DeFi APRs into APY, see your net yield after gas fees, and find the minimum deposit size that makes a vault or farm worthwhile.

Formula

APY = (1 + r / n)^n - 1; f = d / 365; final = deposit * (1 + r / n)^(n * f); profit_gross = final - deposit; profit_net = profit_gross - gasCosts; deposit_breakeven = gasCosts / APY.

Worked Example

aprPercent20
compoundsPerYear365
deposit5000
durationDays365
gasCosts40
Result: apyPercent: 22.1; finalBalance: 6105; grossProfit: 1105; netProfit: 1065; breakEvenDeposit: 181A 20% APR compounded daily yields about 22.1% APY. On a 5,000 deposit for one year, that is roughly 1,105 in gross yield; after 40 of gas, you net about 1,065. You need around 181 deposited to break even on 40 of gas over a full year.

Frequently Asked Questions

Does this account for impermanent loss or variable APRs?

No. This is a mathematical yield model using fixed APR and compounding assumptions only.

How should I estimate gas costs accurately?

Use transaction history or protocol-specific estimates for entry, compounding, and exit operations under your expected chain conditions.

Can I use this for lending protocols or only LP farms?

You can use it for either when APR, compounding frequency, and gas assumptions match your strategy.