Position Size Calculator: Shares From Account Size, Risk and Stop
Position size = (account size x risk %) / (entry - stop). On a 10,000 account risking 1% with entry 50 and stop 48, you risk 100 and buy 50 shares, a 2,500 position.
Position size calculator
Values shown are hypothetical examples. Change them to your own.
How to use the position size calculator
Enter your account size, the percentage of the account you are willing to lose if the stop is hit, and the entry and stop prices. The calculator returns the number of shares (rounded down), the dollar risk the position actually carries, and the position value as a share of the account.
The values shown are hypothetical: a 10,000 account, 1% risk, an entry of 50 and a stop of 48. Replace them with your own. Amounts are in whatever currency your account uses, so a Canadian account can enter Canadian dollars and a stock priced in Canadian dollars. If the stock trades in US dollars and your account is in Canadian dollars, convert one of them first. Use the rate on your trade confirmation, not a guide rate.
The formula
Risk amount = account size x risk percentage. Risk per share = the absolute difference between entry and stop. Shares = risk amount / risk per share, rounded down to a whole share. Rounding down matters: rounding up would risk more than the limit you set.
The same formula works for a short trade, where the stop is above the entry. The calculator uses the size of the gap, so a stop above the entry gives the same answer as a stop the same distance below it.
The result is a ceiling on risk, not a target. A position can also be too large for other reasons: it may need more cash than you have, or it may be thinly traded so that your stop fills well away from its price.
Worked example
Account 10,000, risk 1%, entry 50, stop 48. The risk amount is 10,000 x 0.01 = 100. The risk per share is 50 - 48 = 2. Shares = 100 / 2 = 50. The position value is 50 x 50 = 2,500, which is 25% of the account, and the loss if the stop fills at 48 is 50 x 2 = 100.
A second, larger case: a 25,000 account risking 0.5% with entry 84.20 and stop 82.95. The risk amount is 125 and the risk per share is 1.25, so 125 / 1.25 = 100 shares. The position value is 100 x 84.20 = 8,420, or 33.7% of the account.
Notice that a tighter stop allows more shares for the same risk. That is arithmetic, not an advantage: a stop placed too close to the entry is hit by ordinary price noise.
| Input | Example 1 | Example 2 |
|---|---|---|
| Account size | 10,000 | 25,000 |
| Risk % | 1% | 0.5% |
| Risk amount | 100 | 125 |
| Entry / stop | 50 / 48 | 84.20 / 82.95 |
| Risk per share | 2.00 | 1.25 |
| Shares | 50 | 100 |
| Position value | 2,500 (25% of account) | 8,420 (33.7% of account) |
Limits of this calculator
The result assumes your stop order fills at its price. In a gap, a halt or a fast market it can fill worse, and the loss is then larger than the risk amount. Commissions, the bid-ask spread and, for foreign stocks, currency conversion are not included.
It does not know your margin requirement, the lot size of the instrument or whether the stock is available to short. For forex use the pip value calculator and for futures the futures position size calculator, which handle contract values.
Who should not rely on it: anyone who sets the stop after seeing how many shares they want. The stop comes from the chart or the trade idea, and the size follows from it. Working backwards makes the risk percentage meaningless. This page is arithmetic, not advice about how much to risk.
Frequently asked questions
What risk percentage should I use?
That is your decision and this page does not recommend one. The calculator shows what any percentage means in shares and dollars, so you can see how large a losing streak would be at the level you choose.
Why does the calculator round shares down?
Rounding up would put more than your chosen amount at risk. With a risk amount of 100 and a risk per share of 1.50, the division gives 66.67 shares; the calculator returns 66 (risk 99), not 67 (risk 100.50).
Does it work for short selling?
Yes. It uses the distance between entry and stop, so a stop above your entry gives the same share count as a stop the same distance below. Check that your broker allows shorting and what borrow costs apply.
What if the position value is bigger than my account?
The calculator says so. Such a position needs margin, and a margin account adds interest and margin-call risk. A very tight stop is the usual cause; consider whether the stop is realistic.
Sources
This page is pure arithmetic; no provider figures are used. All numbers are hypothetical examples.