Position Size Calculator

Enter your account balance, risk per trade, entry and stop-loss to get position size, quantity and margin, plus an estimated liquidation price.

All calculations happen locally in your browser. Nothing you type leaves your device.

Direction
—
Risk amount
—
Position size (USD)
—
Quantity
—
Required margin
—
Est. liquidation price
—

Estimates only. Liquidation uses the textbook isolated-margin formula and ignores trading fees, funding and maintenance margin, so your exchange may differ. Nothing here is financial advice.

How It Works

This calculator sizes a trade from the downside first: you decide how much of your account a single losing trade may cost, and the position size falls out of the distance between entry and stop-loss. The same three steps every time, no matter what you trade.

The Three-Step Math
Risk amount = balance × risk % — with a $10,000 account and 1% risk that is $100. Stop distance = |entry − stop| ÷ entry — an entry of 50,000 with a 48,000 stop is 4%. Position size = risk amount ÷ stop distance % — $100 ÷ 4% = $2,500, and the quantity is $100 ÷ 2,000 = 0.05 units. If the stop is hit, the loss equals the risk amount by construction.
Leverage Only Changes Margin
Leverage never touches the position size or the quantity: those are set by your risk and your stop. It changes how much collateral you must post (position size ÷ leverage — $250 at 10x for the example above) and how close the liquidation price sits to your entry.
Liquidation Estimate
For isolated linear futures the textbook approximation is entry × (1 − 1/leverage) for longs and entry × (1 + 1/leverage) for shorts, ignoring trading fees, funding and maintenance margin. Your exchange will liquidate slightly earlier, so use the number as a sanity check — a stop that sits beyond the liquidation price will never be reached.

Frequently Asked Questions

Does leverage increase my risk?

Not through the position size: the quantity is derived from your risk amount and the distance to the stop, so if the stop is hit you lose about the risk percent you chose regardless of leverage. Leverage changes the margin you post and how close liquidation sits — at 10x an isolated long is liquidated roughly 10% below entry, so a stop farther out than that would be reached by liquidation first.

What about spot trades?

Pick 1x. There is no borrowing, so the required margin equals the full position size and there is no liquidation price — a spot position is simply closed when the stop is reached. The position size and quantity rows still apply; the margin and liquidation rows describe futures and margin trading.

Is the estimated liquidation price accurate?

It is the textbook isolated-margin approximation: entry × (1 − 1/leverage) for longs and entry × (1 + 1/leverage) for shorts, ignoring trading fees, funding payments and maintenance margin. Real exchanges liquidate slightly earlier than this estimate, so treat it as a sanity check and confirm the exact price with your exchange.

Is this financial advice?

No. This calculator is an arithmetic aid that shows what a risk-based sizing rule would do for the numbers you enter. It does not know your fees, your exchange's rules, or the market, and it does not recommend any trade. Nothing here is financial advice.

Is my data uploaded to a server?

No. Every number is computed locally in your browser with plain JavaScript. Your balance, orders and results never leave your device, and there is no account and no network request attached to a calculation.