Skip to main content
Calcimator

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.

Inputs

%
%
%
%

Results

Overall net APY (%)

2.98%

Total supply APY (%)5.05%
Supply base APY (%)3.05%
Net borrow cost APY (%)4.13%
Net earnings ($)$298.20
Supply earnings ($)$504.53
Reward earnings ($)$200.00
Net borrow cost ($)$206.34
Loan-to-Value (%)50%
Health factor1.6
Supply Base Earnings ($)$304.53
How to Use This Calculator
  1. Enter your Deposit Amount ($) and the Supply Base APR % from the lending protocol's dashboard.
  2. Add the Supply Reward APR % for token incentives (e.g., COMP, AAVE rewards) on top of the base rate.
  3. Set Compounds per Year — 365 for daily, 8,760 for hourly compounding.
  4. If borrowing, enter the Borrow Amount ($) and Borrow APR % to calculate your net position.
  5. 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.51.45%
2.252.21%
4.54.54%
7.57.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

  1. Identify Input Parameters
    8 parameters
    Deposit 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
  2. Calculate Overall net APY
    2.982 = 2.982%
  3. Calculate Total supply APY
    Total supply APY = supplyApy + supplyRewardApy
    5.0453 = 5.0453%
  4. Calculate Supply base APY
    Supply base APY = (pow(1 + (supplyAprPct / 100) / compoundFrequency, compoundFrequency) - 1) * 100
    3.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.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Investing & Retirement.