# Repaying a loan

How to repay a loan:

1. Borrower goes to [app.brila.finance](https://app.brila.finance/)
2. Borrower clicks 'Repay' button shown on loan details

   <figure><img src="/files/M8BtSMaX2QCSAlGHGf9H" alt=""><figcaption></figcaption></figure>
3. Borrower is first prompted to approve transfer of funds (must complete `approve()`  on-chain transaction).
4. Borrower is then prompted to [`repay`](/brila-protocol/other-concepts/instruments/bulletloans.md#repay-uint256-instrumentid-uint256-amount) transaction. This transaction transfers funds back to the portfolio and repays the full amount owed on the loan.
   * Once this transaction is complete, the loan is marked ‘repaid’ automatically and no further action by the borrower is needed.

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


---

# 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.brila.finance/user-guide/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.
