Minimalist Trading
  1. Home
  2. Learn
  3. Stock position size: how many shares to buy

Stock position size: how many shares to buy

Shares to buy = money at risk divided by the risk per share. The stop decides the size, not the other way round. Worked example with invented numbers.

  • 6 min read
  • By a.b
  • Updated November 2026

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:

StopRisk per shareExact sharesWhole sharesPosition costShare of accountLoss if stopped
$36.00$4.0062.562$2,48010%$248
$38.00$2.00125.0125$5,00020%$250
$39.50$0.50500.0500$20,00080%$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

  1. Pick the stop from the chart first (see ATR stop loss and position size).
  2. Enter account, risk and stop in the position size calculator.
  3. Decide the risk percent with how much to risk per trade.

Trading can lose money. This page is education, not advice.

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:

See all instrument calculators →

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.

Keep reading

a.b

Written by a.b. I joined TradingView in December 2015 and publish indicators there. These guides are for education only. Message me on TradingView chat with questions or topics you want covered.

Last updated November 2026. For education only. Not financial advice.