HeadroomDESK

Position size calculator

Size a position from the share of your account you accept losing at your stop, fees included. For BTC, Delta contracts, EUR/USD and gold.

1 · Your risk and stop

USD
%
USD
USD

A stop below the open price sizes a long; a stop above it sizes a short.

%
Check the liquidation price against the stop
Venue (isolated)
×

Size

–

Position value
–
Loss if the stop fills
–
Margin at this leverage
–

3 · How it is calculated

Runs in your browser. Nothing you type leaves this page.

Size a position from the loss you accept, not from the leverage on offer. Enter how much of your account you are willing to lose if the stop fills, and the distance to that stop; the calculator returns the size, rounded down so the loss at the stop price stays within what you set, and checks that liquidation does not come first.

Arithmetic on your inputs, not advice. A leveraged position can lose all the margin behind it; in cross margin, the whole balance.

What the number means, with a worked example

How to read this number: what it means, the formula in plain words, a worked example, the common mistake and the venue's rule. The full arithmetic and more examples follow.

How to read the result

The position size, in five parts

What the number means

The largest size whose loss at your stop price stays within the share of equity you set, rounded down to the size step. Rounding down keeps the loss at the stop price at or below that share; it does not cover slippage.

The formula, in plain words

The money you accept losing is your equity times the risk you set. The loss per unit is the distance from the open price to the stop, plus the fee on each side if fees are ticked. Divide the first by the second and round down to the size step.

size = equity · risk% / loss per unit, rounded down loss per unit = |open − stop| + open · fee + stop · fee

The fee terms are zero when fees are left out; for contracts and lots, the loss per unit is multiplied by the contract value.

One worked example

The calculator's starting inputs: equity 10,000 USD, risk 1%, a BTC long opened at 60,000 with the stop at 59,400, fees left out.

  1. Money you accept losing10,000 × 1% = 100.00 USD
  2. Loss per BTC at the stop60,000 − 59,400 = 600 USD
  3. Size100.00 ÷ 600 = 0.1667, rounded down: 0.166 BTC

Panel 2 shows 0.166 BTC. At the stop it loses 0.166 × 600 = 99.60 USD, the first row of the worked examples below.

The common mistake

Sizing from the leverage on offer instead of from the stop. At 10× this account could open 1.666 BTC; at the same stop that loses 999.60 USD, 10.0% of equity instead of 1%. And a stop is a trigger, not a fill price: in a fast market the fill can be worse, so the real loss can be larger than the number shown.

Source and venue rule

  • Fee rates: Binance taker 0.05%, read 2026-11-15; Bybit taker 0.055%, read 2026-11-15, from the venues' fee pages. The fee field starts at 0.05% and is yours to change.
  • Size step: 0.001 BTC, the venue's minimum order in the parameter table.
  • Liquidation check: the same formulas and brackets as the liquidation price calculator. With the starting inputs at 10×, Binance liquidates this long at 54,216.9, below the stop at 59,400, so the stop is reached first.

If the venue's order screen shows a different size or cost, the venue's number counts.

The arithmetic

loss per unit = |open − stop| + open·fee_in + stop·fee_out size = equity · risk% / (loss per unit · contract_value), rounded down to the size step loss if the stop fills = size · loss per unit · contract_value
open, stop
your open price and your stop price
fee_in, fee_out
the fee rate on each side, as a decimal; zero if fees are left out
contract_value
1 for BTC sized in BTC; the BTCUSD contract value for Delta; 100,000 for a EUR/USD lot; 100 oz for an XAU/USD lot

Rounding down means the loss at the stop price is at or below the share you set; slippage and gaps can make the real loss larger. When the size rounds to zero, the calculator says so and shows the loss that one size step would carry.

The liquidation check uses the same isolated-margin formulas as the liquidation price calculator. If liquidation sits between the open price and the stop, the stop cannot fill: the venue closes the position first.

Worked examples

Illustrative inputs, not market prices. Computed by the reference code the calculator is tested against.

Illustrative inputs. Equity and loss in USD.
InstrumentEquityRiskOpen → stopFeesSizeLoss if the stop fills
BTC, long10,000.001%60,000.0 → 59,400.0none0.166 BTC99.60
BTC, short10,000.001%60,000.0 → 60,900.00.05% each side0.104 BTC99.89
Delta BTCUSD25,000.000.5%60,000.0 → 58,500.00.05% each side80 contracts124.74
EUR/USD10,000.001%1.08500 → 1.08300none0.50 lots100.00
XAU/USD10,000.001%2,000.00 → 1,990.00none0.10 lots100.00

What this does not cover

  • A stop is a trigger, not a fill price. In a fast market the fill can be worse than the stop, so the real loss can be larger.
  • Funding and swap costs while the position is open are not included.
  • For FX and gold, the result assumes your account is in USD and the instrument is quoted in USD.

When not to use this

It does not tell you where to put the stop or how much to risk. Those are your decisions; the calculator only turns them into a size.

Related

Last reviewed (UTC).