Position size calculator
Enter the account size, the share of it you are willing to lose on the trade, the entry price and the stop-loss price. The calculator gives the number of shares, the value of the position and the loss if the stop is hit, and refuses a stop on the wrong side of the entry.
Calculator
The loss at the stop assumes the order fills at the stop price. A stock that opens beyond the stop (a gap) fills worse, so the real loss can be larger. Commissions are not included.
How it is calculated
The rule
The risk budget is the account times the percentage you choose. The risk per share is the gap between entry and stop. Shares are the budget divided by the risk per share, rounded down to whole shares, so the loss at the stop never exceeds the budget.
Direction
For a long position the stop must be below the entry; for a short position, above it. Anything else is not a stop-loss, and the calculator says so instead of giving a number.
What it assumes
That the stop fills at its price. A stop order becomes a market order when triggered, and in a fast market or a gap at the open it can fill well beyond the stop, making the loss larger. Commissions are not included.
The formula
risk budget = account × risk % shares = floor(risk budget ÷ |entry − stop|) loss at stop = shares × |entry − stop|
The default inputs, worked through
A $25,000 account risks 1%, a budget of $250. Buying at $50 with a stop at $46 risks $4 a share, so the position is 62 shares (250 ÷ 4 = 62.5, rounded down).
The position is worth $3,100, 12.4% of the account, and a fill at the stop loses $248, 0.99% of the account.
Questions and answers
How much of my account should I risk on one trade?
That is your decision. Many traders keep the loss on a single trade to between 0.5% and 2% of the account, so that a run of losses does not do lasting damage.
Why is the position worth much more than the risk?
The risk is only the distance to the stop. With a stop 8% below the entry, a position worth $3,100 risks about $248.
Can the loss be bigger than shown?
Yes. When the price reaches the stop the order becomes a market order, and if the stock opens below it after bad news it sells at that lower price.
What if the result is zero shares?
The budget is smaller than the risk on one share. Risk a larger share of the account, use a closer stop, or skip the trade.
Sources
- Investor bulletin: stop, stop-limit and trailing stop orders — Investor.gov (U.S. Securities and Exchange Commission)
Related
Updated . Results are arithmetic on the figures you enter, not advice.
Cite this page
Funkfolio, “Position size calculator: shares for a chosen risk”. https://funkfolio.com/tools/position-size-calculator