> For the complete documentation index, see [llms.txt](https://docs.arkis.xyz/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkis.xyz/home/troubleshooting/closing-margin-account.md).

# Closing Margin Account

## "Close" button is not active&#x20;

This means that your Margin Account does not have enough of borrowed asset + interest to be eligible for loan repayment. Please refer to [Loan Repayment](/home/for-borrowers/loan-repayment.md)\
You can either:&#x20;

1. Send Borrowed Amount + Interest to the Margin Account.&#x20;
2. Swap assets inside of Margin Account such that it has Borrowed Amount + Interest.&#x20;

Once it is done. - please refresh the page and try again.&#x20;

When Margin Account is closed, all whitelisted tokens will be returned to your wallet which originated the Margin Account creation (including PT and LP tokens).
