Toolkit
All tools
Leverage, margin and risk · Free

Liquidation & Position Size Calculator

Find the price a leveraged long or short is closed out at, and the move it survives before that happens. Then size the trade from the percentage of the account you are willing to lose, and check whether your stop sits in front of the liquidation or behind it.

Runs on your device · No feed, no exchange account, no sign-in

Liquidation price $57,351.30, 4.41% away from an entry at $60,000.00. The stop at $58,200.00 is reached first, with 1.41% of room to spare. A 1.00% account risk allows 0.05361902 BTC, needing $160.86 of margin.

Long liquidation price
$57,351.30

$3,000.00 of BTC at 20.0x. The price has to move 4.41% against you, which is $2,648.70, before the exchange closes the position for you.

Move it survives
4.41%
Notional exposure
$3,000.00
Margin posted
$150.00
Leverage
20.0x
Bankruptcy price
$57,033.00
Loss at liquidation
−$132.44
Margin left over
$14.34
Entry fee paid
$1.65
0.05 BTC long · isolated margin · maintenance 0.500%
Size from risk

How big may this trade be?

Position size is set by the stop, not by the leverage. Decide what a loss is allowed to cost, put the stop where the chart says it belongs, and the size falls out of the two.

The stop is reached first, with 1.41% of room to spare.

Liquidation sits at $57,351.30 and the stop at $58,200.00, so the trade closes on your terms for $100.00. The ceiling before that stops being true is 27.8x, and a gap this size is still worth checking against the spread on a fast move.

Position size
0.05361902 BTC

$3,217.14 of notional

Margin needed
$160.86

1.61% of the account at 20.0x

Loss if stopped
$100.00

1.00% of the account, fees included

Stop distance
3.00%

$1,800.00 from the entry price

Risk budget
$100.00

What the rule you set allows this trade to cost

Fees on the round trip
$3.49

Charged to open and again at the stop

Highest safe leverage
27.8x

Above this, liquidation lands before the stop

Exposure bought
0.32x

Notional against the whole account

Leverage is absent from the size above, and that is the point: the stop sets the size, and the leverage only decides how much margin it ties up and whether the stop is ever reached.

Leverage ladder

The same trade at every leverage

Same size, same entry, same maintenance rate, only the margin changes. Every figure is computed by the formula behind the headline above, so the table can never drift away from it.

LeverageMarginLiquidation priceMove it survivesAgainst your stop
1x$3,000.00$33.184299.94%Stop fills first
2x$1,500.00$30,200.6149.67%Stop fills first
3x$1,000.00$40,256.4232.91%Stop fills first
5x$600.00$48,301.0719.50%Stop fills first
10x$300.00$54,334.569.44%Stop fills first
20xyours$150.00$57,351.304.41%Stop fills first
25x$120.00$57,954.653.41%Stop fills first
50x$60.00$59,161.351.40%Liquidated first
75x$40.00$59,563.580.73%Liquidated first
100x$30.00$59,764.690.39%Liquidated first
125x$24.00$59,885.360.19%Liquidated first

Notice what doubling the leverage does: it halves the room, it does not double the profit on a given move. Going from 10x to 100x turns a 9.5% buffer into a 0.5% one while the profit on any move you actually survive stays the same per coin. What changed is the probability of surviving to collect it.

Liquidation is not the same as a total loss

It is the point where the equity behind the position falls to the maintenance requirement, which is a small percentage of the notional rather than zero. The bankruptcy price sits a little further out, and the gap between the two is the buffer the exchange keeps so it can close the position without going negative.

Adding margin moves the price, closing size does not

Topping up an isolated position pushes the liquidation further away, because the margin term grows while the notional stays put. Closing part of the position shrinks both together, so the liquidation price barely moves at all. That surprises people at exactly the wrong moment.

The stop and the liquidation are set by different things

The stop comes from the chart, the liquidation comes from the leverage, and neither knows about the other. When the leverage is high enough that the second sits inside the first, the stop is decoration. That is the one check this page exists to make.

This is arithmetic on the numbers you type, not investment or financial advice. It models one linear (quote-margined) position with a single maintenance margin rate. It does not model funding payments, which move the equity behind a perpetual every few hours and therefore move the liquidation price; tiered maintenance margin, where the rate steps up with position size on a ladder each exchange publishes separately; partial liquidation, where a position is cut down rather than closed outright; auto-deleveraging or insurance-fund behaviour; slippage between the trigger and the fill, which on a fast move can be far worse than the price shown here; multi-position cross accounts, where every other open trade changes the answer; or inverse coin-margined contracts, whose maths is different. Treat the figure as the price to plan around, and leave room for the difference.

How it works

Equity falls to the maintenance requirement. That is the whole event.

A leveraged position is margin plus a running profit or loss. The exchange asks you to keep a small percentage of the position's current value as maintenance margin, and the moment your equity falls to that line it closes the trade for you. Setting equity equal to the maintenance requirement and solving for the price is the liquidation price, and it takes one line of algebra rather than a table of memorised formulas. The second half of the page runs the same arithmetic backwards: from the loss you are willing to take, through the distance to your stop, to the number of coins that fits. Those two answers only mean something together, because a stop placed beyond the liquidation price is a stop that will never fill.

  1. 01

    Describe the position

    Side, entry price, size in coins or in notional value, and either the leverage or the margin you posted. Switch to cross margin if the rest of your balance also stands behind the trade, because that changes the answer more than most people expect.

  2. 02

    Set the maintenance rate and the fee

    Take the maintenance margin rate from your exchange's risk-limit table for the size you are trading, and add the taker fee it charges to open and to close. Both move the liquidation price, and both are usually left out of the formulas people quote.

  3. 03

    Size the trade, then check the stop

    Enter the account balance, the percentage you are willing to lose, and where the stop belongs. The page returns the size that fits, then compares the stop with the liquidation price and says plainly which one the market reaches first.

Built for leveraged positions

The price, the room, the size, and the mistake to avoid.

One expression, both directions

Equity is margin plus profit and loss, the maintenance requirement is the rate times the notional at the mark price, and setting them equal solves for the price. That gives one formula covering long and short, isolated and cross, with fees, rather than four half-remembered shortcuts that disagree at the edges.

The number a trader actually wants

Not just the liquidation price, but the move it survives: the gap in currency and as a percentage of entry. At 10x with a 0.5% maintenance rate a long survives 9.55% and a short only 9.45%, because a rising price inflates the short's notional and the margin it has to keep.

Position size from a risk percentage

Give it an account balance, a risk rule, and a stop, and it returns the size in coins and in notional, the margin that ties up at your leverage, the fees on the round trip, and the loss when the stop fills. Leverage never enters the size, which is the single most useful thing on the page.

The stop-versus-liquidation check

The most expensive mistake in leveraged trading is a stop that sits past the liquidation price, where it can never fill. The page names which one comes first, how much space is between them, and the highest leverage that keeps the liquidation behind the stop.

A leverage ladder, computed not typed

The same position priced at 1x through 125x, with the margin each rung needs, the liquidation price, the move it survives, and whether your stop still works there. It comes from the same solver as the headline figure, so the table can never drift away from it.

Named answers instead of NaN

A position whose maintenance rate is above 1 divided by its leverage would be closed at the moment it opened, and one whose margin covers the whole notional cannot be liquidated at all. Both are real answers with real explanations here, not blank fields or infinities.

Leverage questions

Maintenance margin, isolated versus cross, and why the stop did not save you.

What is maintenance margin, and why is it not zero?+

Maintenance margin is the minimum equity an exchange requires you to keep behind an open position, quoted as a percentage of its notional value. It is not zero because closing a large position takes time and moves the price, so the venue needs a buffer to unwind you without the account going negative and the loss landing on everyone else. First-tier rates are usually between 0.4% and 1%, and every exchange raises the rate in tiers as the position grows, which is why a very large trade is liquidated sooner than a small one at the same leverage. The rate matters more than it looks: it sets a hard ceiling on usable leverage at 1 divided by the rate, so a 0.5% maintenance rate makes 200x mathematically impossible to hold.

Why was I liquidated before my stop was hit?+

Almost always because the liquidation price sat closer to entry than the stop did, which happens the moment the leverage is high enough. A stop is a decision about the chart; a liquidation is a consequence of arithmetic, and neither knows the other exists. At 20x with a 0.5% maintenance rate the position dies on a 4.4% move, so a 6% stop is decoration. The second cause is the mark price: exchanges liquidate against an index or mark price rather than the last trade on their own book, so a wick that never touched your stop on the chart can still have taken the mark price through your liquidation level. This page checks the first cause for you. Only a wider buffer protects you from the second.

Isolated or cross margin, which is safer?+

They are safe in different directions, and the honest answer is that it depends on which failure you are protecting against. Isolated margin caps the loss at the amount posted to that one position, so a liquidation costs exactly that and nothing else in the account is touched. Cross margin lets the whole free balance stand behind the trade, which pushes the liquidation price much further away and makes it far less likely to happen at all, but when it does happen the loss is not capped at one position's margin. Isolated is the better default because it makes the worst case a number you chose in advance. Cross is defensible on a single, carefully sized position, and it is genuinely dangerous with several open at once, because they share one balance and each one's loss brings the others closer to being closed.

Does adding margin move the liquidation price?+

Yes, and this is the one adjustment that reliably helps. Topping up an isolated position increases the margin term while the notional stays exactly the same, so the liquidation price moves further away in direct proportion. Doubling the margin on a 20x position turns it into a 10x position and roughly doubles the room. What surprises people is the opposite move: closing part of the position does almost nothing to the liquidation price, because it shrinks the margin and the notional together and the ratio between them is what the formula depends on. Closing half the position halves the loss you are carrying but leaves the liquidation price roughly where it was, so if you are trying to survive rather than to reduce exposure, adding margin is the lever and cutting size is not.

Why is 100x leverage not 100 times the profit?+

It is 100 times the profit per unit of margin on any move you survive, and the catch is in that last clause. At 100x with a 0.5% maintenance rate the position is closed on a 0.5% move against you, which on most pairs is one candle and sometimes just the spread. The profit on a 3% winner is the same 3% of the notional whether you posted 1% of it or 50% of it as margin, so leverage changes the denominator, not the trade. What it really buys is a much higher chance of being removed from the position before the move you were right about happens. That is why the ladder on this page shows the surviving move rather than a profit multiple: at 10x you have 9.5% of room, at 100x you have 0.5%, and the trade idea did not get ten times better.

What percentage of my account should I risk per trade?+

Most position-sizing rules land between 0.5% and 2% of the account on any single trade, and the reason is arithmetic rather than tradition. At 2% per trade, ten losers in a row take about 18% of the account and it is recoverable. At 10% per trade, ten in a row take 65% and getting back to even requires nearly tripling what is left. Losing streaks of that length are ordinary in any strategy that wins half the time. The percentage also has to survive being wrong about the plan, not just about the direction: fees, slippage on the stop, and a gap through your level all make the realised loss larger than the budgeted one, which is why this page includes the fees on both sides in the size it returns.

Why does my exchange show a slightly different liquidation price?+

Several small reasons, each worth a few basis points. Exchanges tier the maintenance margin rate by position size, so the rate on your ticket may not be the one you typed here. Some compute the maintenance requirement on the entry notional rather than on the mark notional, which is where the popular shortcut formula comes from and which shifts the answer slightly. Perpetual funding is charged or paid every few hours and changes the equity behind the position, so a liquidation price that was accurate this morning is not accurate tonight. Cross accounts with more than one open position share a balance, so every other trade you hold moves this one's liquidation price. And unrealised profit on other positions may or may not count as margin depending on the venue. Treat the figure here as the correct arithmetic on the inputs you gave it, and your exchange's own number as authoritative for your actual account.

Is a long or a short more dangerous?+

A short, on both counts, and it is not close. The liquidation is slightly tighter: the maintenance requirement is charged on the notional at the current price, so as a short goes against you the position gets larger and demands more margin at exactly the moment you have less. At 10x with a 0.5% maintenance rate a long survives a 9.55% fall while a short survives a 9.45% rise. The bigger difference is what lies beyond the liquidation. A long's worst case is bounded because an asset can only fall to zero, so a 1x long can never be liquidated at all. A short has no ceiling: the price can rise by any multiple, which is why every exchange treats short exposure as the riskier side and why a short at any leverage above 1x has a liquidation price sitting above it.

What is the bankruptcy price, and what happens past it?+

The bankruptcy price is where the equity behind the position reaches zero, which sits a little further out than the liquidation price. The gap between the two is the maintenance margin, and it exists so the exchange has something to work with while it closes you out. In the normal case the liquidation engine sells the position somewhere between the two prices, keeps the remainder as a liquidation fee, and nobody else is affected. In a fast market it may not manage that, and the shortfall is covered by the venue's insurance fund. When the insurance fund cannot cover it either, most exchanges fall back on auto-deleveraging, which force-closes profitable traders on the other side of the book at the bankruptcy price. None of that is modelled here, because it depends on the exchange's own liquidity and rules, but it is the reason your loss on a violent move can exceed the number on this page.

Does this connect to my exchange or fetch live prices?+

No. There is no price feed, no API key, no exchange connection and no account. Every figure comes from a number you typed, the arithmetic runs in your browser, and nothing you enter leaves the page. The maintenance rate presets are labelled typical values to save you a trip to the risk-limit table, not quotes from any venue, and you should overwrite them with the rate your exchange applies at the size you are trading. The same goes for the example entry price and fee: they exist so the page has something to show, and every one of them is meant to be replaced.

More focused tools, ready when you are.

Explore the growing collection for calculations, documents, writing, and everyday work.

Browse all tools