# Repaying a loan

Repaying your loan can be done from the [dashboard](https://docs.lendle.xyz/user-guide-for-ui-v1/dashboard "mention")\
\
In this tutorial we will unwind the positions that we've created by following [how-to-deposit](https://docs.lendle.xyz/user-guide-for-ui-v1/markets/deposit/how-to-deposit "mention") & [how-to-borrow](https://docs.lendle.xyz/user-guide-for-ui-v1/markets/borrow/how-to-borrow "mention")<br>

Head over to the Dashboard of Lendle:

<figure><img src="https://462490326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F04cdaiLBi0HqQJYo2pkS%2Fuploads%2FgJMWhOHVcsRKQVdbFAPn%2Fimage.png?alt=media&#x26;token=c729bbb0-b209-46da-8b29-cdbe6d2174ab" alt=""><figcaption></figcaption></figure>

On the right, we can see all our borrows, in this case, ETH. Click on Repay to start the process.\ <br>

<figure><img src="https://462490326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F04cdaiLBi0HqQJYo2pkS%2Fuploads%2FPXxpTkEzOdd0PxcEi6rQ%2Fimage.png?alt=media&#x26;token=0e83fc8f-f7da-4af0-8d1e-8653b9fe4263" alt=""><figcaption></figcaption></figure>

In this screen, you can see the amount of WETH we have borrowed. The amount we have to repay is higher than what we borrowed, this is because of the interest we owe to the protocol.\
In this example, I want to remove the deposited DAI in the end, so I have to repay the whole loan.\
By pressing MAX we will see the full amount we owe. Press Continue to start repaying.

<figure><img src="https://462490326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F04cdaiLBi0HqQJYo2pkS%2Fuploads%2F9A7EVw6o5aMoC0YZ3HOm%2Fimage.png?alt=media&#x26;token=dd4ae7fd-7b73-4f9c-a8c0-e79ba0af0c44" alt=""><figcaption></figcaption></figure>

Verify the amount we're about to return to the protocol and take note of the new [health-factor](https://docs.lendle.xyz/key-protocol-insights/health-factor "mention").

When you are ready, press Approve and use default again in your MetaMask to only allow spending for the amount you put in.\
\
Then press Repay and sign the tx again. \
\
Success! You've now repaid your loan.

*Note:*

Sometimes your loan will not be paid off in full. This is because during the time you started to repay and the time the funds were received, another epoch happened and thus more money is owed to the protocol.\
\
It will look something like this:\ <br>

<figure><img src="https://462490326-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F04cdaiLBi0HqQJYo2pkS%2Fuploads%2FGTZjm29lL0VuvJS3bSiQ%2Fimage.png?alt=media&#x26;token=7d33fee2-6d9d-4b67-8334-679cec32b550" alt=""><figcaption></figcaption></figure>

By pressing MAX again you will see the exact amount you owe the protocol. \
Go through the process again to repay, until you have 0 borrow open on the [dashboard](https://docs.lendle.xyz/user-guide-for-ui-v1/dashboard "mention")\
For this example, it took 4 transactions to repay the loan in full.
