> For the complete documentation index, see [llms.txt](https://docs.flipsdex.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flipsdex.trade/trading/leverage-and-margin.md). Agents can also search and read this documentation through its [MCP server](https://docs.flipsdex.trade/~gitbook/mcp).

# Leverage and Margin

This page helps you set leverage and margin mode for each market and move margin in and out of an Isolated position. It also explains how to read **Margin Ratio**, ROE and **Account Leverage**.

## Settings for each market

The top of the order form holds two settings for the market you're viewing: leverage and margin mode.

| Option      | What it does                                                          | Default                                     |
| ----------- | --------------------------------------------------------------------- | ------------------------------------------- |
| Leverage    | Sets the market's leverage, up to the market's maximum                | The venue's default leverage for the market |
| Margin mode | Sets **Cross** or **Isolated** margin for your position in the market | **Cross**                                   |

Leverage sets how much margin a position needs. A position's initial margin is its notional value (size x price) divided by its leverage. For the margin requirements the venue applies, see [Liquidation](https://docs.flipsdex.trade/how-trading-works/liquidation.md#margin-requirements).

### Change leverage

1. Open the market on the [Trade Screen](https://docs.flipsdex.trade/trading/trade-screen.md).
2. Select the leverage button at the top of the order form. It shows the current leverage.
3. Drag the slider to the leverage you want. The **Leverage** window shows the market's maximum.
4. Select **Confirm**.

### Cross and Isolated

* **Cross**: your Cross positions share the collateral in your account. A loss on one position reduces the margin left for the others.
* **Isolated**: the position has its own margin, which you can increase or reduce. The venue treats it as a separate account and checks it for liquidation against that margin.
* FLIPS also shows Isolated positions you opened in other apps.

To switch a market between them:

1. Select the margin mode button at the top of the order form. It shows **Cross** or **Isolated**.
2. Choose **Cross** or **Isolated**.
3. Select **Confirm**.

The venue accepts a switch only while your account has no position and no open orders in that market. Close the position and cancel those orders first.

## Add or remove margin on an Isolated position

Cross positions share your account's collateral, so only an Isolated position has margin you can move.

1. Open the **Positions** tab.
2. Select the amount in the **Margin** column of an Isolated position. It has a pencil icon.
3. Choose **Add** or **Remove**.
4. Enter the **Amount**.
5. Select **Confirm**.

* **Available** shows how much you can add.
* **Removable** shows how much you can take out. You can't take out margin the position still needs, and an unrealized loss (the loss on the open position at the mark price) lowers the amount.
* Adding margin moves the liquidation price away from the mark price. Removing margin moves it toward the mark price.
* You can adjust Isolated positions you opened in other apps too, in markets FLIPS lists.

## Margin Ratio

**Margin Ratio** is maintenance margin divided by account value. At 100%, liquidation starts.

* Maintenance margin is the minimum margin the venue requires to keep your positions open. The venue sets a maintenance margin fraction for each market, a share of notional value.
* Account value is your **Wallet Balance** plus the unrealized profit and loss of your open positions. The account panel shows it as **Perp Equity**.
* The **Margin Ratio** gauge has two warning levels, 50% and 80%, and changes color at each one.
* **Margin Ratio** tracks maintenance margin only. Once your account value falls below initial margin, the venue accepts only orders that reduce positions, and this can start while **Margin Ratio** is below 50%. See [Liquidation stages](https://docs.flipsdex.trade/how-trading-works/liquidation.md#liquidation-stages).
* The account panel on the Trade screen and **Perp Metrics** on the [Portfolio](https://docs.flipsdex.trade/trading/portfolio.md) page show your account's Margin Ratio.
* In the **Margin Ratio** column of **Positions**, a Cross position shows the account's ratio. An Isolated position shows its own: its maintenance margin divided by its margin plus its unrealized profit and loss.

For what the venue does as your account value falls, see [Liquidation](https://docs.flipsdex.trade/how-trading-works/liquidation.md#liquidation-stages).

### Margin Ratio example

Assume your account value is 1,000 USDC and you hold one Cross position with a notional value of 10,000 USDC. Assume the market's maintenance margin fraction is 1.5%, so the maintenance margin is 150 USDC.

* **Margin Ratio** = 150 / 1,000 = 15%.
* If losses bring your account value down to 300 USDC, **Margin Ratio** = 150 / 300 = 50%, the first warning level.
* At an account value of 187.50 USDC, **Margin Ratio** = 150 / 187.50 = 80%, the second warning level.
* At an account value of 150 USDC, **Margin Ratio** = 100%, and liquidation starts.

The example leaves out fees and funding and keeps the maintenance margin at 150 USDC. In the app, a price move also changes the position's notional value, and the maintenance margin moves with it.

## ROE

ROE = unrealized profit and loss divided by margin at entry (entry price x size / leverage). **Positions** shows it in parentheses after the profit and loss in the **PnL (ROE%)** column.

## Account Leverage

**Account Leverage** is the notional value of all your open positions divided by your account value. It appears in the account panel on the Trade screen and in **Perp Metrics** on the Portfolio page. It is a different number from the leverage you set for each market.

## When these settings are locked

If your account isn't on Plus, FLIPS is view-only. The leverage and margin mode buttons and the **Margin** controls in **Positions** stay disabled until you finish enabling trading. See [About the Plus account type](https://docs.flipsdex.trade/getting-started/get-started.md#about-the-plus-account-type).
