The formula
Shares = (account × risk %) ÷ (entry price − stop price), rounded down to a whole share (or to the fractional step your broker allows). It is the same idea as position size for forex, with the pip replaced by a price difference and no pip value to look up.
Worked example (E, invented)
Account $25,000, risk 1% = $250, entry $40.00 for a long position. Three possible stops:
| Stop | Risk per share | Exact shares | Whole shares | Position cost | Share of account | Loss if stopped |
|---|---|---|---|---|---|---|
| $36.00 | $4.00 | 62.5 | 62 | $2,480 | 10% | $248 |
| $38.00 | $2.00 | 125.0 | 125 | $5,000 | 20% | $250 |
| $39.50 | $0.50 | 500.0 | 500 | $20,000 | 80% | $250 |
A tighter stop allows more shares, and the position cost can pass what your account can buy. Cost is the second limit: shares × entry must fit your buying power, and many traders also cap any one position at a share of the account. Whichever limit is smaller sets the size.
Where it can go wrong
- Gaps. A stock can open beyond the stop, for example after earnings. The loss is then larger than planned; a stop order is not a guarantee.
- Costs. Commission and slippage add to the loss; include them in the risk if they matter at your size.
- Short positions. Use stop − entry for the risk per share, and check borrow costs and availability.
Using it
- Pick the stop from the chart first (see ATR stop loss and position size).
- Enter account, risk and stop in the position size calculator.
- Decide the risk percent with how much to risk per trade.
Trading can lose money. This page is education, not advice.
Try it with your own numbers
Free calculators that do the math for you. No signup, and nothing leaves your browser.
Pre-set for the market you trade
Pip, point and tick values differ by instrument. These calculators start from each one's contract, with worked examples:
Quick questions
How do I calculate how many shares to buy?
Divide the money you will risk (account × risk percent) by the difference between entry and stop price, and round down.
Why is the position cost larger than the risk?
Risk is only the distance to the stop times the shares. The cost is the whole price times the shares.
What if the stock gaps past my stop?
The loss will be larger than planned. Stops reduce but do not remove that risk.
Does the same formula work for ETFs?
Yes, for any instrument priced per unit with no leverage factor.
Place the stop where the idea fails.
These indicators help you place stops at levels.
Premium indicators come with a 7-day free trial on request: how the trial works.
Keep reading
Last updated November 2026. For education only. Not financial advice.