# Margining (/docs/risex/trading/margining)

## Margin Modes

RISEx supports both **isolated margin** and **cross margin** modes, giving you flexibility in how you manage risk across positions.

***

## Cross Margin

In cross margin mode, your entire account balance is shared across all open positions.

### How it works

* All positions share the same collateral pool
* Profits from one position can offset losses in another
* Higher capital efficiency for multi-position strategies
* Liquidation affects your entire account

***

## Isolated Margin

In isolated margin mode, each position has its own dedicated collateral that's separate from your other positions.

### How it works

* Each position has its own margin allocation
* Losses are limited to the margin assigned to that position
* Other positions are unaffected if one gets liquidated
* Lower capital efficiency but better risk isolation

***

## Margin Requirements

### Initial Margin

The minimum collateral required to open a position. Calculated as:

```
Initial Margin = Position Size × Entry Price × (1 / Leverage)
```

### Maintenance Margin

The minimum collateral required to keep a position open. When your margin balance falls below maintenance margin, liquidation begins.

```
Maintenance Margin = Position Size × Mark Price × Maintenance Margin Rate
```

***

## Switching Modes

You can switch between isolated and cross margin per position. Note that switching modes requires you to close any open position or limit order.
