Before you start
- Margin Account created - see Open a Margin Account if you haven’t done this yet.
- Wallet connected - your wallet must be connected to approve the transaction.
Wallet to Margin Account (add collateral)
Use this direction when you want to increase your collateral, improve your Health Factor, or create borrowing capacity without opening a full deposit-and-borrow transaction.Go to Transfer Collateral
Click Margin in the top navigation bar, then find and click the Transfer Collateral tab in the Margin interface.
Select direction
Choose the wallet-to-account direction. This moves assets from your wallet into your Margin Account.
Choose asset and amount
Select the asset you want to transfer (for example, XLM or USDC) and enter the amount. The panel updates to show your Health Factor after the transfer, along with your updated Net Available Collateral and Collateral Left Before Liquidation.
Margin Account to Wallet (withdraw collateral)
Use this direction when you want to reclaim collateral you no longer need to back your current debt. If you have no outstanding debt, you can withdraw all of your collateral.Go to Transfer Collateral
Click Margin in the top navigation bar, then click the Transfer Collateral tab.
Select direction
Choose the account-to-wallet direction. This moves assets from your Margin Account back to your wallet.
Choose asset and amount
Select the asset and enter the amount you want to withdraw. The panel shows how much your Health Factor will decrease as a result of the withdrawal. Make sure your Health Factor after the withdrawal stays well above 1.1×. If you have outstanding debt, withdrawing too much collateral can push your account into liquidation range.
Related
- Deposit Collateral - add collateral as part of a combined deposit-and-borrow flow.
- Health Factor - understand how collateral movements affect your position health.
- Repay a Loan - reduce your debt to free up collateral for withdrawal.

