After closing a position, if your account owes money, the system can handle it automatically. However, the automatic process does not apply to every case, and large debts can trigger a manual review. Binance margin trading has a close position feature. When it is triggered, the system automatically sells your collateral, repays all debt, and converts the remaining assets into the coin you selected. This is an automated process, and repaying debt does not require you to make a manual transfer. But debt after a normal close and debt after a forced liquidation are handled differently.

The world's largest cryptocurrency exchange by trading volume,leading in security and liquidity.
New user benefit: Enjoy 20% off trading fees upon registration!
Case 1: You click "Close Position" yourself
If you click "Close Position" on the position panel, the system automatically completes these steps at that moment: sell the position → use the sale proceeds to repay the loan → return the remaining assets. As long as your account assets can cover the debt, the position is cleared after this process, and there is no "debt" status.
[What to do]: Close the position all at once with the "Close Position" button.
[How to do it]: On the margin trading page, open the "Positions" tab, click the [Close Position] button for the target coin, choose a settlement coin such as USDC, and the system handles the remaining steps automatically.
[Completion standard]: Order history shows the close is complete, and the margin account debt is zero.
Case 2: Forced liquidation is triggered
When your risk rate falls below a certain level, the system will forcibly sell your collateral to repay the debt. In most cases, the margin account balance becomes zero after forced liquidation. But if the market moves sharply and the sale amount is not enough to repay the debt, a "shortfall" occurs—your account equity becomes negative, and debt appears.
At this point, the "automatic deduction" logic has two situations:
1. Debt ≤ 0.1 BTC equivalent
The system automatically uses the margin insurance fund to repay your debt. You do not need to do anything, and the account debt will directly return to zero.
2. Debt > 0.1 BTC equivalent
Manual review is required. This amount is roughly from several thousand to tens of thousands of USDT, depending on the BTC market price at the time. After the review is approved, the system will use the insurance fund to cover the loss. Before that, your debt record will remain on the account.
If the total shortfall across your main account and all sub-accounts exceeds 10,000 USDT equivalent, withdrawals equal to the shortfall amount will be frozen. Even if the insurance fund later covers the debt, the withdrawal restriction during the review period can still cause an impact.
Case 3: A shortfall debt appears after forced liquidation
After forced liquidation, if the account shows a negative balance but the insurance fund has not deducted yet, or the deduction failed, the debt remains on your account. The official API documentation has a specific endpoint called "forced liquidation debt repayment," which shows this state is real—and it requires the user to actively repay from the spot wallet.
[What to do]: Actively repay an unsettled cross margin forced liquidation debt.
[How to do it]: Use the API endpoint sapi/v1/margin/liquidation-loan/repay to transfer the specified asset and amount from the spot wallet to cover the debt. If the spot wallet USDC balance is insufficient, the repayment will fail directly.
[Completion standard]: The response returns status: SUCCESS, and the debt balance becomes zero. Failed repayment records are not returned, so you need to confirm through the query endpoint.
The insurance fund only covers losses caused by a shortfall. It does not cover normal borrowing interest or fees. If the assets sold during closing are enough to repay the debt, the insurance fund does not need to appear.

The world's largest cryptocurrency exchange by trading volume,leading in security and liquidity.
New user benefit: Enjoy 20% off trading fees upon registration!
How to verify the operation is complete
Open the Binance App or website, go to "Wallet - Margin Account", and check "Debt" and "Risk Rate". If debt shows 0 and the risk rate is normal (> 1.1), the debt has been settled. To check past shortfall records, go to "Orders - Margin Orders - Liquidation History".
If you confirm the account had a shortfall debt but it now shows settled, the insurance fund has already covered it for you. No further action is needed.


