> For the complete documentation index, see [llms.txt](https://docs.bitlen.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bitlen.io/borrowing/health-factor.md).

# Health Factor

The Health Factor is a numerical value that indicates the safety of your position from its liquidation point. A higher value indicates a healthier position, and thus, greater safety against liquidation.

If the Health Factor drops to 1 or below, liquidation is triggered.

The calculations are as follows:

Health Factor = Collateral Credit / Borrow Credit

<figure><img src="/files/FSxsdrjvW62GdepUW9gc" alt=""><figcaption></figcaption></figure>

Where

* **Collateral Credit:**

<figure><img src="/files/AJ9Y3CWwtCQy7MEiA8ls" alt=""><figcaption></figcaption></figure>

* **Borrow Credit:**

<figure><img src="/files/1LJ2xbqi3LaihvAlaAtR" alt=""><figcaption></figcaption></figure>

#### Collateral and Borrow Factors <a href="#collateral-and-borrow-factors" id="collateral-and-borrow-factors"></a>

Note: Collateral Factor should be <= 1, Borrow Factor should be >= 1


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bitlen.io/borrowing/health-factor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
