Clean workspace with lending analytics, a notebook, and a blockchain finance interface.
Glossary

Health Factor

A health factor is a numerical metric used by decentralized lending protocols to represent the safety of a loan, calculated as the ratio of the collateral value to the borrowed value, where a value below 1 triggers liquidation.
definition
DEFI RISK METRIC

What is Health Factor?

A core risk metric in decentralized finance (DeFi) lending protocols that measures the safety of a user's collateralized debt position.

The Health Factor (HF) is a numerical value, typically expressed as a ratio like 1.5 or 2.0, that indicates the risk level of a borrower's position in a lending protocol. It is calculated by dividing the total value of a user's collateral (in a base currency like USD) by their total borrowed value. A higher Health Factor signifies a safer, more overcollateralized position, while a lower value indicates higher risk. If the Health Factor drops to or below a protocol's liquidation threshold (often 1.0), the position becomes eligible for liquidation, where a portion of the collateral is automatically sold to repay the debt.

The calculation relies on several protocol-specific parameters: the Loan-to-Value (LTV) ratio for each asset, which determines how much can be borrowed against it, and the liquidation threshold, which is the LTV level at which liquidation is triggered. For example, if a user deposits $10,000 of ETH (with a 75% LTV) as collateral and borrows $5,000 of USDC, their Health Factor would be calculated as ($10,000 * 0.75) / $5,000 = 1.5. This position has a 50% safety buffer before facing liquidation.

Health Factor is a dynamic metric that fluctuates with market prices. A sharp decline in the value of the collateral asset or a rise in the value of the borrowed asset can cause the HF to drop precipitously, a phenomenon known as volatility risk. Users must actively monitor their HF to avoid unexpected liquidations, often by depositing more collateral or repaying part of their debt. Protocols like Aave and Compound prominently display this metric in their user interfaces as the primary indicator of position health.

Beyond individual risk management, the aggregate Health Factor of users across a protocol serves as a macro-level indicator of systemic risk within that DeFi ecosystem. Analysts and risk managers monitor these trends to assess the stability of lending markets. The concept underscores the foundational principle of overcollateralization in permissionless DeFi, where trustless loans require collateral worth more than the loan value to mitigate the lender's risk in the absence of a credit check.

how-it-works
DEFI MECHANICS

How Health Factor Works

A technical breakdown of the Health Factor, a core risk metric in decentralized finance lending protocols that determines the safety of a user's collateralized debt position.

The Health Factor (HF) is a numerical ratio, typically calculated as (Total Collateral Value * Liquidation Threshold) / Total Borrowed Value, that measures the risk level of a borrower's position in a DeFi lending protocol like Aave or Compound. A health factor greater than 1 indicates a safe, overcollateralized position, while a value equal to or less than 1 triggers a liquidation event, where a portion of the borrower's collateral is automatically sold to repay the debt. This mechanism is the fundamental safeguard for lenders, ensuring loans are always backed by sufficient assets.

The calculation relies on two critical protocol parameters: the collateral factor (or loan-to-value ratio) and the liquidation threshold. While related, they serve different purposes. The collateral factor determines how much you can borrow against your deposited assets. The liquidation threshold, which is usually a few percentage points lower, is the specific value at which your position becomes eligible for liquidation. For example, if ETH has an 80% collateral factor and a 75% liquidation threshold, you could borrow up to $800 against $1000 of ETH, but liquidation risk begins when your borrowed value reaches $750.

A health factor decreases primarily through two mechanisms: a decline in the value of the collateral asset or an increase in the value of the borrowed asset. In a volatile market, if the price of your collateral (e.g., ETH) drops significantly, the numerator in the HF formula shrinks. Conversely, if the price of the asset you borrowed (e.g., USDC) increases dramatically—which is rare but possible with algorithmic stablecoins—the denominator grows. Both scenarios push the HF closer to 1. Users must monitor this ratio and can improve it by depositing more collateral or repaying a portion of their debt.

When the health factor crosses the liquidation threshold (≤1), an automated liquidation process begins. Liquidators—specialized bots or users—can repay a portion of the undercollateralized debt in exchange for the borrower's collateral at a discounted rate, known as a liquidation bonus. This bonus incentivizes liquidators to act quickly, ensuring the protocol remains solvent. The liquidated collateral is sold, the debt is reduced, and the borrower's health factor is restored above 1, albeit with a loss of some collateral. This process is permissionless and critical for system stability.

Managing health factor is a key responsibility for DeFi users. Proactive strategies include using debt monitoring tools and setting up price alert notifications. More advanced users may employ hedging with derivatives or choose collateral assets with lower volatility correlation to their borrowed assets. Understanding that the health factor is a real-time, price-dependent metric—not a static number—is essential for operating safely within leveraged DeFi environments and avoiding unexpected liquidations during market turbulence.

key-features
MECHANISM

Key Features of Health Factor

The Health Factor (HF) is a core risk metric in DeFi lending protocols that determines the safety of a user's collateralized debt position (CDP). It is calculated as the ratio of the collateral's value to the borrowed value, factoring in asset-specific liquidation thresholds.

01

Dynamic Risk Calculation

The Health Factor is a real-time, dynamic ratio calculated as: HF = (Total Collateral Value * Liquidation Threshold) / Total Borrowed Value

  • Liquidation Threshold: The maximum Loan-to-Value (LTV) ratio at which the position can be liquidated, set per asset by the protocol's governance.
  • It updates continuously with price oracle feeds, making it sensitive to market volatility.
02

Liquidation Trigger

A Health Factor dropping below 1.0 triggers the liquidation process.

  • Liquidation: A portion of the user's collateral is automatically sold (often at a discount) to repay the debt and restore the HF above 1.0.
  • Safety Buffer: Users typically maintain an HF significantly above 1.0 (e.g., 1.5-2.0) to avoid liquidation due to normal price fluctuations.
03

Collateral Composition & Risk

The HF aggregates risk across a portfolio of collateral assets.

  • Weighted Average: The effective liquidation threshold is a weighted average based on each collateral asset's value and its specific risk parameters.
  • High-Risk Assets: Adding volatile or less-trusted assets lowers the portfolio's average liquidation threshold, requiring more collateral to maintain the same HF.
04

Primary Use Case: Overcollateralized Lending

HF is the foundational mechanism for overcollateralized loans, the standard model in DeFi.

  • Borrowing Power: A higher HF indicates a larger safety cushion and potentially more available borrowing capacity.
  • Protocol Safety: By ensuring all open positions are overcollateralized (HF > 1), the protocol protects itself from insolvency, making the system's solvency non-dependent on borrower repayment.
05

Comparison to Traditional Finance

HF automates and transparently enforces concepts from traditional margin lending.

  • Automated Margin Call: An HF < 1.0 is analogous to a margin call, but executed automatically by smart contracts without intermediaries.
  • Transparent Parameters: Liquidation thresholds and processes are publicly verifiable on-chain, unlike the opaque terms in some traditional agreements.
06

Related Concepts

Loan-to-Value (LTV): The inverse perspective of HF. It's the ratio of borrowed value to collateral value. A maximum LTV is derived from the liquidation threshold. Liquidation Bonus/Incentive: The discount offered to liquidators who repay the debt, typically a percentage (e.g., 5-10%) of the seized collateral. Close Factor: The maximum percentage of a position's debt that can be liquidated in a single transaction, limiting market impact.

calculation-formula
DEFINITION

The Health Factor Calculation

The Health Factor (HF) is a core risk metric in DeFi lending protocols that measures the safety margin of a user's collateralized debt position.

The Health Factor is a numerical value, typically expressed as a ratio like 1.5 or 2.0, that indicates the risk level of a borrowed position. It is calculated by dividing the total collateral value (in a base currency like USD) by the total borrowed value, with both values adjusted by their respective Loan-to-Value (LTV) ratios. A higher Health Factor signifies a larger safety buffer, meaning the collateral value is significantly higher than the debt value. Conversely, a Health Factor approaching 1.0 indicates the position is at imminent risk of being liquidated.

The precise formula is: Health Factor = (Σ Collateral Amount * Collateral Price * LTV) / (Σ Borrowed Amount * Borrowed Price). This calculation aggregates all assets in a user's position. Each collateral asset has a specific maximum LTV set by the protocol governance, which acts as a discount factor on its value. For example, if ETH has a 75% LTV, only 75% of its market value is considered in the numerator. This built-in conservatism creates the necessary buffer to protect the protocol from market volatility and price oracle inaccuracies.

When the market value of the collateral falls or the value of the borrowed assets rises, the Health Factor decreases. If it drops below the protocol's liquidation threshold (often 1.0), the position becomes undercollateralized. At this point, the position is eligible for liquidation, where liquidators can repay part of the debt in exchange for the discounted collateral to restore the protocol's solvency. Users must monitor this metric closely, often adding more collateral or repaying debt to maintain a safe HF, especially during periods of high market volatility.

protocol-examples
COMPARATIVE ANALYSIS

Health Factor in Major Protocols

While the core concept of a Health Factor (HF) is universal—a numerical representation of a loan's safety margin—its calculation, thresholds, and liquidation mechanics vary significantly across leading DeFi protocols.

06

Common Themes & Risks

Despite implementation differences, all protocols share core principles and risks.

  • Oracle Dependency: All HF calculations are critically dependent on accurate, timely price oracles. Oracle failure is a systemic risk.
  • Liquidation Incentives: Each protocol designs liquidation bonuses (e.g., 5-10%) to incentivize keepers, directly impacting user losses.
  • Parameter Risk: Governance-controlled parameters (LTV, Liquidation Threshold) can change, affecting HF overnight.
  • Cross-Protocol Contagion: A major price drop can trigger cascading liquidations across multiple protocols simultaneously.
liquidation-mechanism
DEFI RISK MANAGEMENT

Health Factor and Liquidation

A core mechanism in decentralized finance (DeFi) lending protocols that measures the safety of a user's collateralized debt position and triggers automated asset sales when risk becomes excessive.

The Health Factor (HF) is a numerical metric, typically calculated as (Total Collateral Value * Liquidation Threshold) / Total Borrowed Value, that determines the risk level of a borrowed position. A health factor greater than 1 indicates the collateral value sufficiently covers the loan, while a value equal to or below 1 puts the position at risk of liquidation. This real-time calculation acts as a solvency buffer, protecting the protocol and its lenders from undercollateralized loans.

Liquidation is the automated, penalty-enforced process that occurs when a position's health factor falls below the protocol's threshold (often 1.0). To restore solvency, a portion of the user's collateral is sold, usually at a discount, to repay the borrowed assets plus a liquidation penalty. This penalty, paid to the liquidator, incentivizes third parties to participate in this risk-management process. Key variables influencing liquidation risk include asset price volatility, the specific liquidation threshold for each collateral type, and the borrowed asset's interest rate.

For example, if Alice deposits 10 ETH (worth $30,000) as collateral with an 80% liquidation threshold and borrows $15,000 of USDC, her initial health factor is ($30,000 * 0.80) / $15,000 = 1.6. If ETH's price drops to $2,000, her collateral is now worth $20,000, and her HF becomes ($20,000 * 0.80) / $15,000 ≈ 1.067. A further drop to ~$1,875 would push the HF to 1.0, triggering liquidation. A liquidator would then repay part of her debt in exchange for a discounted portion of her ETH collateral.

Managing health factor is critical for DeFi users. Strategies include: using less volatile collateral assets, maintaining a high HF safety margin (e.g., above 1.5), utilizing debt ceilings and loan-to-value (LTV) ratios to limit borrowing, and monitoring positions during market volatility. Protocols like Aave, Compound, and MakerDAO implement variations of this system, with differences in threshold levels, penalty structures, and liquidation mechanisms (e.g., fixed discount auctions vs. instant swaps).

The health factor and liquidation framework is fundamental to the overcollateralized lending model that underpins most DeFi. It creates a trustless, algorithmic alternative to traditional credit checks, enabling permissionless borrowing while ensuring protocol solvency. Understanding this mechanism is essential for assessing the risks and responsibilities of participating in decentralized lending markets.

security-considerations
HEALTH FACTOR

Security and Risk Considerations

The Health Factor is a critical risk metric in DeFi lending protocols that measures the safety margin of a user's collateralized debt position (CDP). A lower health factor indicates higher risk of liquidation.

01

Core Definition & Calculation

The Health Factor (HF) is a numerical representation of the safety of a borrowed position, calculated as (Total Collateral Value * Collateral Factor) / Total Borrowed Value. A value of 1.0 is the liquidation threshold. For example, if your collateral is worth $10,000 with a 75% collateral factor and you've borrowed $5,000, your HF is ($10,000 * 0.75) / $5,000 = 1.5.

02

Liquidation Trigger

When the Health Factor drops below 1.0, the position becomes undercollateralized and is eligible for liquidation. This can happen due to:

  • A drop in the market price of the collateral asset.
  • An increase in the borrowed asset's value (e.g., borrowing a stablecoin that depegs upward).
  • A protocol governance action that reduces the collateral factor for the asset.
03

Risk of Bad Debt & Protocol Insolvency

If liquidations cannot be executed quickly enough when HF < 1.0 (e.g., during extreme volatility or low liquidity), the protocol may accumulate bad debt. This is debt that is not fully backed by collateral, threatening the protocol's solvency and potentially requiring intervention from a treasury or insurance fund to cover the shortfall.

04

Oracle Manipulation Attacks

The Health Factor depends on price oracles for asset valuations. Attackers may attempt to manipulate these oracle prices to artificially lower a victim's HF, triggering an unfair liquidation, or to inflate their own HF to borrow more than allowed. Reliable, decentralized oracles with time-weighted average prices (TWAP) are a key defense.

05

Managing Your Health Factor

Users must actively monitor their HF to avoid liquidation. Common risk management actions include:

  • Adding more collateral to increase the numerator.
  • Repaying borrowed assets to decrease the denominator.
  • Using automated tools (like DeFi Saver or Gelato) to perform these actions automatically when HF reaches a user-defined threshold.
06

Protocol-Specific Nuances

While the core concept is universal, implementations vary. Aave uses a Health Factor where HF < 1 triggers liquidation. Compound uses a Collateral Factor (borrow limit) and a separate Liquidation Threshold; liquidation occurs when Borrow Value > Collateral Value * Liquidation Threshold. Understanding the specific model is crucial for risk assessment.

KEY METRICS

Health Factor vs. Loan-to-Value (LTV)

A comparison of two core risk metrics used in DeFi lending protocols to assess collateralization and liquidation risk.

FeatureHealth Factor (HF)Loan-to-Value (LTV)

Primary Purpose

Real-time liquidation risk indicator

Initial collateralization requirement at loan origination

Typical Calculation

Collateral Value / (Borrowed Value * Liquidation Threshold)

Borrowed Value / Collateral Value

Direction of Risk

Lower value indicates higher risk (e.g., HF < 1.0)

Higher value indicates higher risk (e.g., LTV > 80%)

Dynamic vs. Static

Dynamic: Updates with market prices

Static: Set at loan creation, based on asset risk

Liquidation Trigger

When HF ≤ 1.0 (or protocol-specific threshold)

When effective LTV exceeds the Liquidation Threshold

User Action Indicated

Add collateral or repay debt to increase HF

Determines maximum initial borrow amount

Typical Range

1.1 (safe), 1.0 (liquidation), < 1.0 (underwater)

50-80% (varies by collateral asset)

Primary User

Borrower (monitoring position health)

Protocol & Borrower (setting borrowing limits)

Chains We Build On

Looking to build on a specific blockchain?

We build smart contracts, DeFi applications, wallets, tokenization platforms, and blockchain infrastructure across the major ecosystems teams choose today. That includes Ethereum, Arbitrum, Optimism, Polygon, Avalanche, Solana, Sui, Aptos, Hedera, Stellar, and NEAR, with support for additional EVM and non-EVM networks based on your product requirements.

EVM ecosystems

  • Ethereum logo
    Ethereum
  • Arbitrum logo
    Arbitrum
  • Optimism logo
    Optimism
  • Polygon logo
    Polygon
  • Avalanche logo
    Avalanche
  • Cronos logo
    Cronos

Non-EVM ecosystems

  • Solana logo
    Solana
  • Sui logo
    Sui
  • Aptos logo
    Aptos
  • Hedera logo
    Hedera
  • Stellar logo
    Stellar
  • NEAR logo
    NEAR

Additional ecosystems

  • Polkadot logo
    Polkadot
  • Cosmos logo
    Cosmos
  • TON logo
    TON
  • Cardano logo
    Cardano
  • Algorand logo
    Algorand
  • Tempo logo
    Tempo

Also available for Base, appchains, custom EVM networks, and cross-chain product architecture.

HEALTH FACTOR

Frequently Asked Questions

The Health Factor is a critical risk metric in DeFi lending protocols, representing the safety margin of a user's collateralized debt position. These questions address its core mechanics and implications.

A Health Factor (HF) is a numerical risk metric used by decentralized lending protocols to measure the safety of a user's collateralized debt position. It is calculated by dividing the total collateral value (in the protocol's base currency, e.g., USD) by the total borrowed value, with each asset's Loan-to-Value (LTV) ratio applied as a discount to the collateral. The formula is typically: Health Factor = (Total Collateral Value * Collateral Factor) / Total Borrowed Value. A Health Factor above 1.0 indicates the position is sufficiently collateralized; a value at or below 1.0 risks liquidation. The protocol continuously recalculates this value based on fluctuating market prices from its oracle feed.

Trusted by Industry Leaders

Delivering blockchain solutions for 5+ years.

We have partnered with 50+ leading DeFi protocols, NFT ecosystems, and fintech innovators to build secure, scalable, and capital-efficient blockchain products.

Selected Partners & Clients

ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
I've been working with Chainscore Labs for last 3+ years, they've consistently delivered with strong ownership across multiple projects. The team is reliable and detail-oriented.
L
Lee Erswell
CEO, Telos Foundation
how to get started

How to get started?

If you're looking for blockchain integration, ChainScore Labs has 5+ years of experience helping teams build and integrate exchanges, wallets, smart contracts, tokenization solutions, and protocol-connected products, we can help you choose the right path, integrate securely, and get to production faster. Our team consists of experienced blockchain developers and architects who can help you with your blockchain integration needs.

01

Exploration & Strategy

Define your product goals and choose the right blockchain architecture for your use case.

02

Architecture & Design

Design the smart contracts, tokenomics, and security parameters of your system.

03

Development & Integration

Build and integrate with wallets, oracles, and front-end dApps for a seamless experience.

04

Security & Launch

Comprehensive audits followed by a risk-managed mainnet deployment to protect your users.

Start a build

Need a blockchain engineering team?

Send the project context and we will respond with next steps, scope questions, and a practical path to delivery.