Lending & Borrowing Calculator

Calculate liquidation prices, health factors, and borrowing costs across DeFi protocols

Calculate Lending Position

Lending Position Details

💎 Collateral (Supply)

Collateral Value: $35,000.00

💳 Borrowed Asset

Borrow Value: $20,000.00
Supply APY:

2.5%

Borrow APY:

3.8%

Max LTV:

75%

Liq. Penalty:

5%

What is DeFi Lending?

DeFi Lending allows users to supply crypto assets to earn interest or borrow assets against collateral. Unlike traditional finance, it's permissionless, non-custodial, and automated through smart contracts.

Major protocols like Aave, Compound, and MakerDAOenable over-collateralized lending with billions in total value locked (TVL).

How DeFi Lending Works

1
Supply Collateral

Deposit crypto assets (ETH, WBTC, stablecoins) into a lending protocol to earn interest.

2
Borrow Against Collateral

Use your supplied assets as collateral to borrow other tokens up to your Loan-to-Value (LTV) ratio.

3
Maintain Health Factor

Keep your health factor above 1.0 to avoid liquidation. Monitor price changes and add collateral when needed.

Key Metrics Explained

Health Factor (HF)

The most critical metric for borrowers. It indicates how safe your position is from liquidation.

Formula:
HF = (Collateral × Liquidation Threshold) / Borrowed Amount
HF > 3.0
Very Safe
HF 2.0-3.0
Safe
HF 1.5-2.0
Moderate
HF 1.0-1.5
High Risk
HF < 1.0
Liquidated

Loan-to-Value (LTV)

Percentage of collateral value you can borrow. Different assets have different max LTV ratios based on volatility.

Stablecoins (USDC, DAI)85% LTV
Blue Chips (ETH, WBTC)75-80% LTV
Altcoins (LINK, AAVE)60-70% LTV

Liquidation Price

The collateral price at which your position becomes eligible for liquidation. Always maintain a buffer!

Liquidation Price = Borrowed Value / (Collateral Amount × Liquidation Threshold)

Example: If you borrow $20,000 with 10 ETH collateral (80% threshold), liquidation occurs at $2,500 per ETH.

Major Lending Protocols

A

Aave V3

Largest Protocol

TVL:$10B+
Networks:15+
Liquidation:5%
Multi-chain Support
E-mode & Isolation
C

Compound

Battle-tested

TVL:$3B+
Networks:Ethereum
Liquidation:8%
Simple Interface
COMP Rewards
S

Spark Protocol

MakerDAO

TVL:$2B+
Networks:Ethereum
Liquidation:5%
DAI Integration
Higher LTV

Risk Management Best Practices

Do This

  • ✓Maintain health factor above 2.0
  • ✓Set price alerts for liquidation prices
  • ✓Start with small positions to learn
  • ✓Keep reserves to add collateral
  • ✓Monitor positions daily in volatility
  • ✓Use stablecoins for lower risk

Don't Do This

  • ✗Borrow at maximum LTV (no buffer)
  • ✗Ignore health factor warnings
  • ✗Use recursive lending without experience
  • ✗Forget about interest costs
  • ✗Panic sell during dips
  • ✗Underestimate volatility risk

Important Risk Disclosure

DeFi lending involves significant risk including smart contract vulnerabilities, liquidation risk, and market volatility. Never invest more than you can afford to lose. This calculator is for educational purposes only and not financial advice. Always do your own research.

Learn More About DeFi Lending

Read our comprehensive guide with step-by-step examples, real-world scenarios, and advanced strategies for optimizing your lending positions.