Lending Protocol APY Calculator
Calculate net APY from DeFi lending protocols like Aave or Compound, accounting for supply APR, borrow APR, token rewards, compounding frequency, and health factor.
About this calculator
This calculator converts the APR figures a DeFi lending protocol like Aave or Compound displays into a compounded APY, then nets supply earnings against borrow costs to show your true return on deposited capital. It converts base supply and borrow APR to APY using the standard compounding formula APY = (1 + APR/n)^n − 1, where n is compounds per year — more frequent compounding produces a slightly higher effective yield than the quoted APR for the same nominal rate, which is why the calculator asks for compounds per year separately from the base rate. Token rewards (like COMP or AAVE incentives) are treated as simple, non-compounding APR on top of the base rate, reflecting that reward tokens are typically claimed and not automatically reinvested into the position.
If you're also borrowing against your deposit, the calculator nets your borrow cost (minus any borrow-side rewards) against your supply earnings to show an overall net APY on your deposited capital — useful for evaluating leveraged or recursive lending strategies where you're simultaneously earning supply yield and paying borrow interest. The Health Factor is a simplified liquidation-risk indicator based on a flat 80% liquidation threshold; real protocols set liquidation thresholds per asset (often lower for volatile collateral and higher for stablecoins), so treat this figure as illustrative and check your specific protocol's actual liquidation parameters for the assets involved before relying on it.
Financial Disclaimer
This calculator is for educational purposes only and does not constitute financial advice. Results are estimates based on the inputs provided. Consult a qualified financial advisor before making investment or financial planning decisions.
Inputs
Results
Overall net APY (%)
2.98%
How to Use This Calculator
- Enter your Deposit Amount ($) and the Supply Base APR % from the lending protocol's dashboard.
- Add the Supply Reward APR % for token incentives (e.g., COMP, AAVE rewards) on top of the base rate.
- Set Compounds per Year — 365 for daily, 8,760 for hourly compounding.
- If borrowing, enter the Borrow Amount ($) and Borrow APR % to calculate your net position.
- Review Net APY, Projected Earnings, and Health Factor — keep Health Factor above 1.5 to avoid liquidation risk.
How the result changes with Supply base APR (%)
| Supply base APR (%) | Overall net APY (%) |
|---|---|
| 1.5 | 1.45% |
| 2.25 | 2.21% |
| 4.5 | 4.54% |
| 7.5 | 7.72% |
What each input means
- Deposit amount ($)
- Amount deposited as collateral/supply.
- Supply base APR (%)
- Base interest rate earned on supplied assets (from protocol).
- Supply reward APR (%)
- Additional token rewards (e.g., COMP, AAVE) earned on supply.
- Compounds per year
- How often interest compounds (365 = daily, 8760 = hourly).
- Borrow amount ($)
- Amount borrowed against your collateral. Set to 0 for supply-only.
- Borrow APR (%)
- Interest rate paid on borrowed assets.
- Borrow reward APR (%)
- Token rewards earned for borrowing (can offset borrow cost).
- Time period (months)
- Investment time horizon in months.
What each result means
- Overall net APY (%)
- Net annualized return on deposited capital after borrow costs.
- Total supply APY (%)
- Supply APY including base interest and token rewards.
- Supply base APY (%)
- Compounded base supply APY (from APR).
- Net borrow cost APY (%)
- Borrow APY minus borrow rewards. Positive = net cost.
- Net earnings ($)
- Total earnings minus borrow costs over the time period.
- Supply earnings ($)
- Total interest and rewards earned from supplying.
- Reward earnings ($)
- Earnings from token rewards on supply.
- Net borrow cost ($)
- Total borrow interest minus borrow rewards.
- Loan-to-Value (%)
- Borrow amount as percentage of collateral. Keep below liquidation threshold.
- Health factor
- Liquidation risk indicator. Below 1.0 = liquidation. Above 1.5 recommended.
- Supply Base Earnings ($)
- Earnings from the compounded base supply rate alone, excluding token rewards (compare to Supply Earnings, which includes rewards).
How this is calculated
Worked example, using the default values
- Identify Input Parameters8 parametersDeposit amount ($) = 10000, Supply base APR (%) = 3, Supply reward APR (%) = 2, Compounds per year = 365, Borrow amount ($) = 5000, Borrow APR (%) = 5, Borrow reward APR (%) = 1, Time period (months) = 12 = 8 input(s) provided
- Calculate Overall net APY2.982 = 2.982%
- Calculate Total supply APYTotal supply APY = supplyApy + supplyRewardApy5.0453 = 5.0453%
- Calculate Supply base APYSupply base APY = (pow(1 + (supplyAprPct / 100) / compoundFrequency, compoundFrequency) - 1) * 1003.0453 = 3.0453%
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why is the compounded APY higher than the base APR I see on the protocol's dashboard?
APY accounts for interest earning interest as it compounds throughout the year, while APR is the simple annualized rate before compounding. The more frequently interest compounds — daily versus weekly, for example — the more the effective APY exceeds the quoted APR for the same nominal rate, which is why this calculator asks for compounds per year as a separate input from the base rate.
Why are token rewards treated differently from the base supply rate?
Token rewards like COMP or AAVE incentives are typically distributed periodically and need to be manually claimed and, if you want them compounding, manually restaked — they don't automatically compound the way base interest often does within the protocol. This calculator treats reward APR as simple (non-compounding) interest for that reason, which is a more conservative and typically more realistic estimate than assuming automatic reinvestment.
What does it mean if my Net Borrow Cost APY is negative?
It means your borrow-side token rewards exceed your borrow interest cost — some protocols during certain periods have paid enough in incentive tokens that borrowing was effectively profitable before even counting the yield on your supplied collateral. This isn't universal or permanent; it depends entirely on the specific protocol's reward emissions at the time.
Why does the Health Factor use a flat 80% liquidation threshold instead of asset-specific values?
Real lending protocols set liquidation thresholds per collateral asset — often lower for volatile assets to give the protocol more of a cushion, and higher for stable assets like major stablecoins. This calculator uses one flat threshold as a simplified, illustrative estimate; check your specific protocol's actual per-asset liquidation threshold before relying on the Health Factor for real risk management.
Does raising my deposit amount always improve my Health Factor?
Yes, holding your borrow amount fixed — Loan-to-Value is borrow amount divided by deposit amount, so a larger deposit against the same borrow lowers LTV, which raises the Health Factor (since Health Factor here is calculated as the liquidation threshold divided by LTV). This is the same principle behind adding collateral to reduce liquidation risk on any over-collateralized lending position.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Flash Loan Calculator
Size a flash loan arbitrage opportunity by calculating net profit after protocol fees, DEX fees, gas costs, and slippage. Determine break-even spreads and daily/monthly profit projections.
Crypto AdvancedDeFi Protocol Risk Score Calculator
Score a DeFi protocol's risk level (0-100) based on TVL, audits, protocol age, admin key setup, timelock, oracle diversity, bug bounty, and insurance coverage.
DeFi & CryptocurrencyYield Farming APY Calculator
Convert APR to actual APY based on compounding frequency. See how daily, weekly, or monthly compounding affects your DeFi yield farming returns.
Investing & RetirementAPY Calculator
Turn a nominal rate + compounding frequency into effective annual yield.
Crypto AdvancedValidator Node Cost Calculator
Estimate the costs and profitability of running a Proof-of-Stake validator node, including hardware, bandwidth, electricity, staking rewards, and slashing risk.
More in Investing & Retirement.