CoinPopBit

Crypto Position Size Calculator (Risk-Based, Fees Included)

Decide how much you are willing to lose if the stop-loss is hit, then let the calculator size the position. The calculation runs in your browser.

By CoinPopBit Market Desk · Fee rates checked 2026-11-14 · Editorial policy

Position
Position size (notional)
-
Amount at risk
-
Quantity
-
Margin at this leverage
-
Distance to stop
-
Estimated liquidation price
-

Fees (regular / VIP 0 tier): OKX 0.020% / 0.050% (okx.com/fees), Bybit 0.020% / 0.055% (Trading Fee Structure), MEXC BTCUSDT 0.000% / 0.010% (mexc.com/fee, as shown from South Korea; MEXC rates differ by region), Binance 0.020% / 0.050% (binance.com/en/fee/futureFee), Bitget 0.020% / 0.060% (bitget.com/fee), Bitunix 0.020% / 0.060% (bitunix.com/service/handling-fee), Toobit 0.020% / 0.080% (toobit.com/en-US/vip; VIP 1 ≥200 USDT: 0.020% / 0.060%). Presets updated 2026-11-30. The stop-loss is counted as a taker fill at the stop price; slippage can make the real loss larger.

How the position size is calculated

Fix the loss first, then solve for the size. At the stop the trade loses the price move plus the opening and closing fees, so all three go in the denominator:

Amount at risk = balance × risk % Long: quantity = risk ÷ ((entry − stop) + entry × opening fee + stop × closing fee) Short: quantity = risk ÷ ((stop − entry) + entry × opening fee + stop × closing fee) Position size = quantity × entry Margin = position size ÷ leverage

Leverage does not change the position size here. It only changes how much margin the position ties up, and how close the liquidation price sits to your entry.

Worked examples (balance 2,000 USDT, risk 1.5%, long at 3,000, OKX taker both ways, 3x)

Stop-lossPosition size (USDT)QuantityMargin at 3x (USDT)
2,970 (−1%)2,728.510.90950909.50
2,940 (−2%)1,429.250.47642476.42
2,910 (−3%)968.210.32274322.74
2,850 (−5%)588.520.19617196.17

Calculated values. A wider stop gives a smaller position for the same 30 USDT at risk (2,000 × 1.5%).

How much to risk per trade

How do I use this with TradingView's Long/Short Position tool?

TradingView's Long Position and Short Position drawings let you mark an entry, a stop and a target on the chart. Take the entry and stop from the drawing, size the trade here with fees included, then set an alert so you hear about it before the stop or the liquidation price is reached.

Open TradingView ↗

Partner link: if you later buy a TradingView plan through it, CoinPopBit may earn a commission at no extra cost to you. The steps above work the same without the link. See our editorial policy. More on the tool, with screenshots and its formula: TradingView position size calculator.

Frequently asked questions

How do I calculate position size in crypto?
Multiply your balance by the share you are willing to lose to get the amount at risk, then divide it by the loss per coin at your stop, including fees. Position size is that quantity times the entry price.
Does leverage change the position size?
Not in risk-based sizing. The size comes from the amount at risk and the stop distance. Leverage only sets the margin the position uses and how close liquidation is.
What risk percentage should I use?
Many traders keep each trade small enough that a long losing streak does not empty the account, often 1-2% of the balance. It is a personal choice; the calculator shows the size for whatever you enter.
Why is my real loss larger than the amount at risk?
Stop orders can fill below the stop price in a fast market (slippage), funding may be paid while you hold, and a liquidation before the stop loses the margin instead.
Why is the quantity here smaller than in TradingView's Long/Short Position tool?
TradingView's help gives that drawing's quantity as risk ÷ (entry − stop), capped by account size × leverage ÷ entry, with no trading fees. This calculator adds the opening and closing fees to the loss per coin, so the quantity comes out slightly smaller: 0.2440 instead of 0.2500 in the default example with OKX taker fees.

Sources and limits

Fee pages: OKX, Bybit, MEXC, Binance, Bitget, Bitunix, Toobit (presets updated 2026-11-30). The liquidation estimate uses the isolated-margin formulas of our liquidation calculator with the maintenance margin rate you enter. Planning tool, not trading advice. Leveraged futures can lose the whole margin. TradingView section: Long and Short Position drawing tools, leverage in the position tools (Oct 27, 2025), introduction to alerts and the pricing page, read 2026-11-17.