How many units can I buy when the maximum loss is fixed?
Position sizing starts with the loss you are prepared to model, then divides it by the loss per unit between entry and stop. It answers a quantity question; it does not say whether the stop or risk limit is appropriate.
Turning an account risk limit into quantity
Choose how much of the account may be lost if the stop is reached. The calculator converts that percentage into a cash risk amount and divides it by the absolute distance between entry and stop.
The share count is rounded down to a whole number, which keeps the calculated position within the selected risk amount before fees and slippage.
Why wider stops reduce quantity
A wider stop produces a smaller position when every other input stays fixed. A larger account or risk percentage increases the risk budget and therefore the calculated quantity.
Risk budget divided by loss per unit
Risk amount = Account size × Risk percentage ÷ 100Shares to buy = floor[Risk amount ÷ |Entry price − Stop price|]Sizing a position around a defined stop
The default scenario converts account size and risk percentage into a monetary risk budget. The distance between entry and stop then determines how many units fit inside that budget.
Where actual loss can exceed the estimate
If entry and stop are equal, loss per unit is zero and a meaningful position cannot be calculated. Slippage and gaps can also make an actual loss exceed the modelled amount.
- Risk is measured from the entered price to the entered stop for every unit.
- Execution occurs at the entered prices without slippage.
- Fees, spread and overnight financing are outside the model.
Calculations related to position size
The following tools examine neighbouring parts of the same calculation without changing the inputs or assumptions used above.
Quick answers
Frequently asked questions
Why is the share count rounded down?
Rounding down avoids exceeding the selected cash risk because fractional shares may not be available.
Can the stop be above the entry price?
Yes. The calculation uses the absolute difference between the two prices.
Does this include slippage or commissions?
No. Those costs can increase the actual loss beyond the displayed risk amount.
Educational content only. This guide is not financial advice.
