Skip to content
Allin

Leverage & margin calculator

From the margin you post and the leverage you pick: the position size it controls, the round-trip trading fees on that size, and roughly how far the price can move against you before liquidation (≈ 100 / leverage). Higher leverage buys a bigger position and a thinner cushion.

Liquidation price calculatorFor a leveraged position: the approximate price at which you get liquidated, and — the number that actually matters — how far the market can move against you before it happens. Isolated-margin estimate; each exchange adds its own maintenance margin and fees.Fund expense ratio cost calculatorEstimate the fees an investment fund charges over time from its expense ratio.Funding rate calculatorOn perpetual futures you pay or receive funding every few hours. Enter your position size, the rate and how long you hold, and it totals what funding costs you (or pays you) over the whole period — the drag that quietly eats a held perp.Crypto lending / borrowing calculatorPost collateral, borrow against it, and see the numbers that keep you from getting liquidated: your loan-to-value, a health factor (above 1 is safe), how far the collateral can fall before the liquidation threshold, how much more you could still borrow, and the yearly interest.Break-even price calculatorFees on both sides mean you don't break even at your buy price — you break even a little above it. Enter the buy price and the buy/sell fees and get the exact sell price that gets you back to zero, plus the minimum gain that price represents.Mining profitability calculatorDaily coins, revenue, electricity cost and net profit from your hashrate, the network hashrate, the block reward and your power draw. It also gives the break-even coin price — the price below which you mine at a loss.Impermanent loss calculatorProvide the price of the volatile token when you deposited into a 50/50 pool and its price now: it computes the impermanent loss versus simply holding, the value in the pool against the HODL value, and the fee yield you would need to break even.Slippage calculatorThe gap between the price you expected and the price you actually got, as a percentage and as money on your trade size. Set a slippage tolerance by seeing what each percent costs before you sign the swap.

Enter Margin (collateral), Leverage (x), Taker fee per side (%) and the Leverage & margin calculator works out Position size, Approx. move to liquidation, Round-trip fees straight away. For instance, with Margin (collateral) = $1,000.00, Leverage (x) = 10 and Taker fee per side (%) = 0.05 it returns Position size = $10,000.00, Approx. move to liquidation = 10% and Round-trip fees = $10.00.

How to use it

  1. Enter your values: Margin (collateral), Leverage (x), Taker fee per side (%).
  2. Read the result instantly: Position size, Approx. move to liquidation, Round-trip fees.

Frequently asked questions

How does the Leverage & margin calculator work?

It takes Margin (collateral), Leverage (x) and Taker fee per side (%) and derives Position size, Approx. move to liquidation and Round-trip fees from them. The calculation is live as you type, so the result updates on every change.

Which values does the calculator ask for?

3 values: Margin (collateral) ($), Leverage (x) and Taker fee per side (%). Nothing else is required — no account, no file upload.

What does a typical calculation look like?

With Margin (collateral) = $1,000.00, Leverage (x) = 10 and Taker fee per side (%) = 0.05, the calculator returns Position size = $10,000.00, Approx. move to liquidation = 10% and Round-trip fees = $10.00. Those figures come from running this exact tool, so you can reproduce them by entering the same values.

How much does the result change with different inputs?

It moves a lot. Using Margin (collateral) = $1,100.00, Leverage (x) = 20 and Taker fee per side (%) = 0.1 instead, Position size goes from $10,000.00 to $22,000.00 — which is why it is worth testing a few scenarios rather than trusting a single figure.

What does it give for smaller values?

Scaled down to Margin (collateral) = $900.00, Leverage (x) = 5 and Taker fee per side (%) = 0.03, Position size comes out at $4,500.00. The relationship is worth checking at both ends before you rely on a single result.

When would I actually use this?

Comparing two investments that pay at different times, deciding whether a project clears its cost of capital, and sanity-checking a valuation someone else produced.

What is the most common mistake?

Trusting a valuation without asking what share of it comes from the terminal value. Past 70%, the answer is an assumption about the distant future dressed up as a calculation.

How accurate is it, and what are the limits?

Estimate only — not financial or tax advice. Exchange formulas vary.

What is the difference between the Leverage & margin calculator and the Liquidation price calculator?

This one returns Position size and Approx. move to liquidation; the Liquidation price calculator returns Liquidation price and Move to liquidation. That is the whole difference — open the one whose figure you need.

Is there a tool for the next step?

Fund expense ratio cost calculator is the closest one after this: Estimate the fees an investment fund charges over time from its expense ratio.

Further reading

All guides
ExplainerLeverage, Liquidation, and the Asymmetry of LossesLiquidation distance is (1 ÷ L − m) ÷ (1 − m): at 20× that is 2.56 percent on a 2.5 percent maintenance margin, inside a normal day. Recovering a loss needs 1 ÷ (1 − L) − 1, so 90 percent lost needs 900 percent back. Combined, repeated leveraged bets on a market with a genuine +0.08 percent edge compound at −1.23 percent per period at 10×.ExplainerWhat Is a Funding Rate? The Recurring Cost of Holding a PerpetualFunding is paid every eight hours on the full notional, between traders rather than to the exchange. A rate of 0.01 percent looks like nothing and costs 10.95 percent a year. Here is the formula and an annualised table.How-toHow to Calculate Your Liquidation Price on a Leveraged PositionThe liquidation price follows directly from your leverage: at 10x a 10 percent move wipes you out. Here is the formula, the maintenance margin that moves it closer, and how to read the number before you open.ExplainerWhat Is Slippage in Crypto? Price Impact, Tolerance and What It CostsPrice impact is arithmetic: on a constant-product pool it equals your trade size divided by the reserve plus your trade. Here is the formula, a table of trade size against impact, and why the setting called slippage tolerance changes none of it.GuideWhere to Set a Stop-Loss and a Take-ProfitThe stop goes where your idea is wrong, not where your comfort runs out — and then the position size adapts to it. Here is the volatility argument, the sizing arithmetic, and the win rate each reward multiple demands.GuideYield Farming: What an Advertised APY Actually PaysThe number on the farm's front page is a gross figure before every subtraction. Here is a 120 percent APY walked down, one layer at a time, to the 33.6 percent that actually landed — plus why APR and APY are not the same number.