Crypto futures calculator

How much a leveraged trade on perpetual futures makes, where the liquidation price is, how much margin you need and what fees and funding cost. The entry price is the latest price of the coin; you can change it.

Position
Side
Prices and target
Fees and funding
Margin and liquidation
Margin mode
Profit or loss+48.68 USDTbefore fees and funding: +50.00 USDT
ROE, % of margin+48.68%price move +5%
Liquidation price53,384.8−9.55% from the entry price
Initial margin100.00 USDTvalue 1,000.00 USDT · 0.0169434 BTC
Exit for target65,001.6ROE +100% after fees and funding
Break-even59,096.7exit with no profit or loss after fees and funding
Fees−1.03 USDTentry 0.50 USDT + exit 0.525 USDT
Funding−0.30 USDT3 × 0.01% per period: longs pay shorts

This is an approximation: a single maintenance margin rate, fees on the position value at the entry and exit prices, funding on the value at the entry price. On an exchange the maintenance margin grows in tiers with the position size, liquidation is based on the mark price and the closing fee is added to the maintenance margin, so the real liquidation price is usually a little closer to the entry. This calculation is not investment advice.

Liquidation price by leverage

Isolated margin, entry 59,019.9, maintenance margin 0.5%.

LeverageLong liquidationShort liquidation
2×29,658.2−49.75%88,089.4+49.25%
3×39,544.3−33%78,301.7+32.67%
5×47,453.2−19.6%70,471.5+19.4%
10×53,384.8−9.55%64,598.9+9.45%
20×56,350.7−4.52%61,662.6+4.48%
25×56,943.8−3.52%61,075.3+3.48%
50×58,130.2−1.51%59,900.8+1.49%
75×58,525.6−0.84%59,509.3+0.83%
100×58,723.3−0.5%59,313.5+0.5%
125×58,842−0.3%59,196.1+0.3%

Source: crypto exchanges

How it is calculated

Position value is the margin times the leverage. The profit of a linear USDT contract is the number of coins times the difference between the exit and entry prices; for a short it is the other way round. ROE is the profit divided by the initial margin: before fees it is the price change times the leverage.

The liquidation price is the price at which the margin plus the unrealized loss falls to the maintenance margin. For an isolated long it is entry × (1 − 1/leverage) / (1 − MMR), for a short — entry × (1 + 1/leverage) / (1 + MMR), where MMR is the maintenance margin rate. In cross margin the free balance of the account also backs the position, which pushes liquidation further away.

An inverse futures contract is settled in the coin: the size is in dollars, the margin and the profit are in the coin. The profit of a long is size × (1/entry − 1/exit). The liquidation price of a long is entry × (1 + MMR) / (1 + 1/leverage), of a short — entry × (1 − MMR) / (1 − 1/leverage).

Fees are charged on the position value, not on the margin. A maker is a limit order that waits in the order book; a taker is an order filled at once at market. The funding rate of a perpetual future is paid every period — usually every 8 hours, hourly on some exchanges: when it is positive longs pay shorts, when negative it is the other way round.

FAQ

How do you calculate the liquidation price of a futures position?

For an isolated long: entry price × (1 − 1/leverage) / (1 − maintenance margin rate); for a short: entry price × (1 + 1/leverage) / (1 + rate). For example, with an entry of 100, 10× leverage and a 0.5% maintenance margin, a long is liquidated at about 90.45 and a short at about 109.45. On an exchange the rate grows in tiers with the position size, so the real liquidation price may be slightly closer to the entry.

How does leverage affect the liquidation price?

The higher the leverage, the closer the liquidation. With a 0.5% maintenance margin, at 10× the price has to move a little under 10% against the position, at 20× a little under 5%, at 100× about 0.5%. If the initial margin (1/leverage) is no higher than the maintenance margin, the position is liquidated right after it opens.

What is ROE in futures trading?

ROE is the profit or loss as a percentage of the initial margin. Before fees it is the price change times the leverage: a 2% rise at 10× gives +20% on the margin, a 2% drop gives −20%.

What is the difference between isolated and cross margin?

With isolated margin a position can only lose its own margin. With cross margin the whole free balance of the account backs the position: liquidation is further away, but you lose more when it happens. The calculator uses the free balance only in “Cross” mode.

What is the difference between linear and inverse contracts?

A linear contract is settled in a stablecoin: margin, profit and fees are in USDT. An inverse contract is settled in the coin itself: the size is set in dollars while the margin and profit are in the coin, so the result in dollars also depends on the coin price at exit.

How is funding calculated on perpetual futures?

The funding rate is multiplied by the position value and paid every period — usually every 8 hours, i.e. three times a day, and hourly on some exchanges. A positive rate means longs pay shorts, a negative one means shorts pay longs. On an exchange the rate changes every period; the calculator keeps it constant.

How much do maker and taker fees cost?

The fee is charged on the position value, not on the margin. A maker is a limit order that rested in the order book until it was matched; a taker is an order filled immediately. Takers usually pay more: at a 0.05% fee and 10× leverage, a market entry and exit cost about 1% of the margin.

Why is the liquidation price on an exchange different?

An exchange uses tiered maintenance margin, works with the mark price rather than the last price, reserves the closing fee and, in cross margin, counts every position of the account. The calculator gives a simple approximation — check the liquidation price with the exchange before you trade.

↑ Top