> For the complete documentation index, see [llms.txt](https://docs.sai.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sai.fun/learn/trading/leverage-and-liquidations.md).

# Leverage and Liquidations

> **Tip:** If you’re new to margin trading, start with lower leverage. Watch your margin ratio closely and consider using stop-loss orders to manage downside risk.

***

## Leverage Overview

### What is Leverage?

Leverage is the ratio of your *position size* to the *collateral* you deposit.

* For example, depositing $100 to open a $500 position is `$500 / $100 = 5x leverage`.

**Key Points**

* **Higher Leverage = Higher Risk**: Even small price changes can cause large profits or losses.
* **Borrowing Fees**: With larger positions, borrowing fees accumulate faster.
* **Liquidation Threshold**: Higher leverage reduces the price cushion before forced liquidation.

**How to Set Leverage**

1. **Open a Trade**: Select your desired leverage (e.g., 3x, 5x, or another value allowed by that market) in the Sai UI.
2. **Review Position Size**: Confirm the total notional value of your trade.
3. **Check Liquidation Price**: The UI estimates your liquidation price; higher leverage brings the liquidation price closer to the current market price.
4. **Update Leverage Later**: By adding or removing collateral, you can increase or decrease your effective leverage.

> **Note**: Every increase in leverage comes with greater exposure to market swings and potentially higher borrowing fees.

### Market-Specific and After-Hours Limits

Each market has its own minimum and maximum leverage. The UI shows the available range for the market and collateral you are trading.

Some scheduled markets also have an **after-hours effective leverage cap**. If a live position is carried through a scheduled market close, Sai can reduce the position's effective leverage to that lower cap. This reduces the position size used for risk, PnL, and liquidation checks. It does not add collateral to the trade.

Read [After-Hours Leverage](/learn/trading/after-hours-leverage.md) for the full behavior.

### Leverage Examples

* **Example A (High Leverage)**
  * Collateral: $200
  * Leverage: 5x → Position Size = $1,000
  * A 10% price rise yields roughly a $100 profit (50% gain on collateral). A 10% price drop results in a $100 loss (50% loss on collateral).
* **Example B (Lower Leverage, More Cushion)**
  * Collateral: $200
  * Leverage: 2x → Position Size = $400
  * A 10% price drop is a $40 loss (20% of your collateral). Lower leverage means more room before liquidation.

### Adjusting Leverage Mid-Position

* **Add Collateral**: Lowers your effective leverage, providing a bigger buffer against liquidation.
* **Remove Collateral**: Increases leverage, exposing you to higher risk if the market continues to move against you.

***

## Liquidation Mechanics

### What is Liquidation?

A **liquidation** automatically closes your position when your collateral can’t cover potential losses. This protects both your remaining capital (if any) and the protocol from a negative balance.

### Liquidation Threshold

Sai uses a *maintenance margin* requirement, typically a small portion of your initial margin (e.g., 10%).

* If your total equity (`PnL + Collateral`) falls below this maintenance margin, your position becomes eligible for liquidation.
* The Sai interface normally displays a **liquidation price** to show where you’d be at risk of forced closure.

**Example**:

* $100 collateral at 5x leverage = $500 position. If maintenance margin is $10, your position can only lose $90 before liquidation is triggered. A price drop beyond that threshold triggers forced closure.

### The Liquidation Process

1. **Trigger**: If your margin ratio dips below the safe threshold, a keeper (liquidator) can call `Trigger Trade` to forcibly close your position at the current market price.
2. **Close the Position**: The system sells (or covers) your position.
3. **Distribute Remaining Collateral**: After covering losses and fees, any leftover collateral is returned to you. If losses exceed your collateral, you lose most or all of your margin.

### Avoiding Liquidations

1. **Use Lower Leverage**: Lower leverage gives you a wider price cushion.
2. **Add Collateral**: If the market moves against you, extra funds reduce your liquidation risk.
3. **Set a Stop-Loss**: Stop-loss orders let you exit earlier, often preventing liquidation and limiting losses.
4. **Monitor Borrowing Fees**: Accumulated fees can reduce your available margin and move you closer to liquidation.

***

## Pro Tips

1. **Mind Volatility**: High volatility can cause rapid price swings—be extra cautious with high leverage.
2. **Watch Borrowing Fees**: Fees accumulate over time, gradually eating into your collateral.
3. **Act Preemptively**: If you see your margin ratio dropping, adding collateral or closing part of the position can prevent a forced liquidation.
4. **Track the “Est. Liquidation Price”**: If the market price moves close to this value, you’re at high risk.

***

### 5. FAQ

**Q: What is the maximum leverage I can use in Sai?**\
A: Each market (e.g., BTC-PERP, ETH-PERP) has its own max leverage, displayed in the UI. Values like 10x, 20x, or 50x depend on that market's risk parameters. Scheduled markets can also have a lower after-hours effective leverage cap for positions carried through a market close.

**Q: How do I know if I’m near liquidation?**\
A: Check your margin ratio and the displayed liquidation price in the position details. If the market price is near or past the liquidation price, a forced close can happen any moment.

***

### 6. Next Steps

1. **Try a Test Market**: Practice opening a small leveraged trade to observe how price changes affect your margin and PnL.
2. **Read About Order Types**: Learn about limit orders, stop-losses, or advanced order types if Sai supports them, to manage risk.
3. **Join the Community**: Have more questions? Need live support? Join our Discord to connect with other traders and the Sai team.

> **Trade responsibly, and best of luck with Sai!**


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sai.fun/learn/trading/leverage-and-liquidations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
