> For the complete documentation index, see [llms.txt](https://elysia.gitbook.io/elysia-perps/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elysia.gitbook.io/elysia-perps/trading/margin-and-leverage.md).

# Margin & Leverage

Elysia Perps uses **isolated margin**: each open position is backed by its own margin, walled off from your other positions and from your free balance. Leverage lets you control a larger position than that margin alone.

> Isolated margin is the model available today. **Cross-margin, where** your whole balance backs every position, is planned.

## Leverage

* The leverage range is a **per-market** setting. On Elysia Perps (BTC-PERP-EL and US500-PERP-EL), leverage runs from **1× to 5×** with a default of **2×**.
* Higher leverage means **less margin per position**, but a smaller price move against you reaches liquidation.

## Initial margin

The margin required to open a position is set by your leverage:

```
notional = price × size
initial margin = notional / leverage
```

For example, a $9,500 position at 5× leverage requires **$1,900** of margin.

## How your collateral flows

Your collateral sits in three buckets, and trading moves value between them:

| Bucket              | What it holds                                       |
| ------------------- | --------------------------------------------------- |
| **available**       | Free balance, usable for new orders and withdrawals |
| **locked**          | Margin reserved by your open (unfilled) orders      |
| **position margin** | Collateral backing your open positions              |

```
available ──place order──▶ locked ──order fills──▶ position margin
        ◀──── cancel / close / realized PnL ────────
```

At all times, `available + locked + position margin` equals your total equity. When you cancel an order its locked margin returns to available; when you reduce or close a position, its margin plus any profit or loss settles back to available.

## Maintenance margin

Each position must keep a minimum margin: the **maintenance margin**, a per-market setting currently **2.5% of position value** on BTC-PERP-EL and **3.0%** on US500-PERP-EL. If your position's equity falls below that level, the position is **liquidated**. This is covered in **Risk & Security → Liquidation Risk**.

The gap between your initial margin and the maintenance margin is your buffer: more leverage means a thinner buffer.

## Changing leverage

You can change your leverage per market. The new setting applies to new margin calculations and updates the leverage shown on your existing position in that market.

## Where to go next

* How positions open, grow, and close: [Positions](/elysia-perps/trading/positions.md).
* What happens at the liquidation threshold: **Risk & Security → Liquidation Risk**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://elysia.gitbook.io/elysia-perps/trading/margin-and-leverage.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
