How does stock position sizing work?
A stock position size calculator estimates the number of shares that fit a predefined loss budget if a trade exits at a chosen stop price. This tool uses account equity, a risk percentage, entry price, stop price, and a maximum allocation percentage. It returns whole shares and applies whichever limit produces the smaller position. This is educational arithmetic, not a suggested trade or promised loss.
First, the risk budget is account equity multiplied by the risk percentage. Risk per share is the absolute difference between entry and stop. Dividing the budget by risk per share gives the maximum shares allowed by the planned price move. Separately, the allocation cap is account equity multiplied by the maximum allocation percentage; dividing that amount by entry price gives the maximum shares allowed by that cap. The calculator rounds each limit down to a whole share and uses the lower result.
For example, with $25,000 of equity, a 1% risk budget is $250. If entry is $100 and a long stop is $95, the planned difference is $5 per share, so the risk limit is 50 shares. A 25% allocation cap allows $6,250 of stock, or 62 whole shares at $100. The risk limit is tighter, so the modeled position is 50 shares, with $5,000 entry value and $250 planned loss at the stop. This is a hypothetical example, not a market quote.
For a short position the stop must be above entry; for a long position it must be below entry. The calculator rejects a stop on the wrong side or equal to entry because the risk-per-share calculation would not describe the selected direction. It assumes one entry price, one stop price, and a constant share count. Buying power rules, unsettled funds, short-sale availability, margin interest, commissions, taxes, dividends, and conversion costs are excluded.
A stop price does not guarantee an execution price. A fast move, trading halt, overnight gap, low liquidity, or order type can cause an exit below a long stop or above a short stop. Actual loss can therefore exceed the modeled budget. Fractional shares are also excluded; broker support varies. Review broker rules before relying on the estimate. This is not financial, investment, or trading advice.
Source and date: The SEC’s Investor.gov explains that a stop order becomes a market order when triggered and that its execution price can differ from the stop price. Source: Stop, Stop-Limit, and Trailing Stop Orders, accessed 2026-11-03. This supports the execution caveat; the calculator’s position sizing remains a simplified model using user-entered prices.
Frequently asked questions
What is the risk budget?
It is the entered percentage of account equity that the calculation uses as the planned loss allowance between entry and stop. It is an input.
Why is the allocation cap separate?
Risk per share alone can produce a position whose total purchase value is large relative to the account. The allocation cap limits entry value as a share of account equity; the tighter of the two limits determines the result.
Does this guarantee the loss will stay within budget?
No. Execution can differ from the stop price, and fees and other costs are excluded. Gaps, halts, and slippage can increase realized losses.