DeFi Lending, Borrowing and Health Factor Calculator

Model simple lending income, borrowing costs, and an Aave-style collateral health factor.

Inputs

Modeled results

Modeled supply income—
Modeled borrowing expense—
Income less expense—
Current health factor—

Method and assumptions

Multiply supplied and borrowed balances by their respective APRs and days ÷ 365. Estimate health factor as collateral × weighted liquidation threshold ÷ borrow value. With 1,000 collateral, an 80% threshold and 400 of debt, the health factor is 2.00. Aave describes liquidation eligibility below 1.

Use one quote currency. This applies fixed simple rates to fixed balances. The health factor is a snapshot. Rates, oracle prices, asset configuration and compounding can change the outcome. See Aave’s health factor explanation.