# Repaying a loan

{% embed url="<https://drive.google.com/file/d/13dBwD3KLuWGFdZ2X4Cgp3-BoRoJ1kygf/view?usp=sharing>" %}

Repaying your loan can be done from the "Portfolio" tab. In this tutorial we will unwind the positions that we've created by following [How To Deposit](/user-guide-for-ui-v2/borrow-page/deposit/how-to-deposit.md) & [How To Borrow](/user-guide-for-ui-v2/borrow-page/borrow/how-to-borrow.md).

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

**Locate Your Borrow Position:** check your active borrows. Click the "Repay" button next to the borrow you want to settle to open the repayment screen.

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

​

**Enter the Repay Amount:** enter the amount to repay or click "MAX" to select the full owed amount.  If aiming to fully close the position, use "MAX." Click "Continue" to move forward.

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

* **Approve the Token Spend: a**pprove the transaction in your wallet to allow Lendle to access the exact repay amount from your wallet. Use default settings for security—confirm the popup. This is a one-time approval per asset if not done before.
* **Confirm the Repay Transaction:** verify the repay amount, new health factor, and any fees. Click "Repay" and confirm again in your wallet.

Once the borrow is 0 on the Dashboard, confirmation is complete. Check your updated positions, wallet balance.


---

# Agent Instructions: 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.lendle.xyz/user-guide-for-ui-v2/borrow-page/borrow/repaying-a-loan.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.
