---
title: "Liquidation price, calculated: maintenance margin on an inverse perp"
description: "How the liquidation price of a sats-margined inverse perp is found, why it is not symmetric for longs and shorts, and how to keep a position away from it."
---

# Liquidation price, calculated

**The liquidation price is the price at which your equity in a position falls to its maintenance margin.** At that point the position is closed for you. On a bitcoin perp margined in sats, that price is not the same distance from entry for a long and a short.

## What liquidation is

Your equity in a position is the margin you posted plus your unrealised profit or loss. If losses bring equity below the maintenance level, the position is liquidated: closed against the vault. A liquidation is the main risk of trading perps, and the reason to size small while you learn.

## Initial and maintenance margin

|                    |                                               |
| ------------------ | --------------------------------------------- |
| Maximum leverage   | 10×                      |
| Initial margin     | 10% of notional     |
| Maintenance margin | 1% of notional |

Initial margin is what you post to open. Maintenance margin is the floor your equity must stay above while the position is open.

## The calculation for an inverse contract

On an inverse perp, the price is in dollars and everything you hold is in sats. The notional of a position in sats is the number of contracts divided by the price, so it changes as the price moves. The liquidation price is the price at which:

margin + profit or loss at that price = maintenance margin × notional at that price

Because the notional sits on both sides of that equation, the answer is convex, not a straight line. HardBasis solves it exactly, never with a straight line approximation, and the liquidation price the app previews already folds in the spread you would actually close at. [Margin and liquidation](/trading#margin-leverage-and-liquidation).

## A worked long and a worked short

A hypothetical position (illustrative price, not a forecast or a quote): 1,000 contracts at $50,000, a notional of 2,000,000 sats, at 10× leverage, so the margin posted is 200,000 sats.

| Side  | Liquidation price       | Distance from entry                 |
| ----- | ----------------------- | ----------------------------------- |
| Long  | $45,923  | 8.1% down |
| Short | $54,983 | 9.9% up  |

Same size, same margin, but the long is liquidated after a smaller move. When the price falls, a long loses and the sats backing it buy fewer dollars at the same time. These figures come from the engine's own liquidation function with the spread floor folded in; the app previews the exact figure for your own position, at the spread in force when you trade.

Video: Liquidation, up close: maintenance margin and how to keep a position safe (1:58), https://youtu.be/JrbSZEkG_xA

## How to keep away from it

- **Use less leverage.** More margin for the same size puts the liquidation price further away.
- **Add margin** to an open position when it moves against you.
- **Send a stop with the entry**, so the position closes at a level you chose before liquidation would.
- **Read the preview.** The ticket shows the implied liquidation price before you place anything.

## Next

- [What are perps?](/learn/what-are-perps)
- [Funding rate explained](/learn/funding-rate)
- [BTC perps margined in sats](/learn/btc-perps-in-sats)

_Testnet only. Test sats have no value. Nothing here is advice or an offer. Who can use the real venue: [Eligibility and legal](/legal)._
