How Many Shares Should I Buy?
The share version of the same formula
Stock position sizing is the same calculation as forex or crypto, minus the pip and contract-size conversions. You know the money you are willing to lose and you know how far the price has to fall before you accept being wrong. Dividing one by the other gives the number of shares, and nothing else.
Note what is not in the formula: your opinion about the company, the share price itself, or how much cash you happen to have. Those decide whether the trade is a good idea or whether you can afford the position; they do not decide the risk-limited size. A 500 USD stock and a 20 USD stock can carry identical risk if the stop distances are set so the arithmetic says so.
Worked example with whole shares
A 25,000 USD account, risking 1% per trade, buying a stock at 42.50 with a stop at 40.75, paying 2.00 USD in total commission on the round turn, with no fractional shares available.
| Input | Value |
|---|---|
| Account balance | 25,000.00 USD |
| Risk per trade | 1% = 250.00 USD |
| Entry price | 42.50 |
| Stop-loss price | 40.75 |
| Commission (round turn) | 2.00 USD |
| Share step | 1 whole share |
- Stop distance per share: 42.50 - 40.75 = 1.75 USD per share.
- Budget after commission: 250.00 - 2.00 = 248.00 USD.
- Shares: 248.00 / 1.75 = 141.71.
- Round down: 141 shares.
- Check the worst case: 141 x 1.75 = 246.75, plus 2.00 commission = 248.75 USD. Inside the 250.00 budget.
- Position value: 141 x 42.50 = 5,992.50 USD.
| Including commission | Ignoring commission | |
|---|---|---|
| Shares | 141 | 142 |
| Real loss at stop | 248.75 USD | 250.50 USD |
| Against a 250.00 budget | under by 1.25 | over by 0.50 |
Here commission is a 2 USD rounding detail. On a tighter stop or a larger budget it stops being one: the tighter the stop, the more shares you hold for the same risk, and every per-share or per-trade fee scales with the share count. This is the same mechanism the forex guide shows with pip spreads.
Stop distance moves the share count more than anything else
Fix the budget at 250.00 USD, the entry at 100.00 USD, ignore commission for clarity, and vary only where the stop goes:
| Stop distance | Stop price | Shares | Position value |
|---|---|---|---|
| 1% (1.00) | 99.00 | 250 | 25,000.00 USD |
| 2% (2.00) | 98.00 | 125 | 12,500.00 USD |
| 4% (4.00) | 96.00 | 62 | 6,200.00 USD |
| 8% (8.00) | 92.00 | 31 | 3,100.00 USD |
Halving the stop distance doubles the shares and doubles the position value, while the money at risk stays exactly 250.00. This surprises people who read position value as a proxy for risk. A 25,000 USD position with a 1% stop and a 3,100 USD position with an 8% stop risk the same amount; the second one simply uses eight times less capital to do it.
It is also why widening a stop after the trade is open is quietly dangerous. If you bought 250 shares for a 1.00 stop and then move the stop to 4.00 without reducing size, the position that risked 250.00 now risks 1,000.00.
Fractional shares: small accounts get precision back
Whole-share rounding hurts most when the share price is high relative to the risk budget. Take a 2,000 USD account risking 1% (20.00 USD) on a stock trading at 318.40 with a stop at 311.00.
- Stop distance per share: 318.40 - 311.00 = 7.40 USD.
- Shares: 20.00 / 7.40 = 2.702 shares (fractional, to three decimals).
- Check the worst case: 2.702 x 7.40 = 19.99 USD. Inside the budget.
- Position value: 2.702 x 318.40 = 860.32 USD.
Without fractional shares you would round down to 2 shares, risking only 14.80 USD — about 26% less than planned. Being under your budget sounds safe, and mostly it is a silent performance leak: your winners are also 26% smaller, and every result you track is distorted by a rounding error rather than by your actual edge.
Availability depends on your broker and jurisdiction, and some platforms allow fractional quantities only on certain order types. Check what yours supports before assuming you can place 2.702.
What does not belong in the calculation
- Taxes and dividends. Neither is caused by the price reaching your stop. Account for them in your returns, not in your size.
- Gap risk. A stop order becomes a market order when triggered; it is not a guarantee of the fill price. If a stock gaps through your stop, the realised loss exceeds the planned one. That is a property of equities, not an error in the formula — and it is an argument for smaller size on names that gap often, such as around earnings.
- Account-level trading rules. Some regimes impose minimum equity thresholds or holding-period restrictions on certain account types, and they can override any size the arithmetic produced. Ask your broker what applies to your account.
- Your conviction. The strongest setups still lose. Sizing is the one part of the plan that is supposed to be mechanical.
And one honest limitation: the formula sizes a single position. It does not know you already hold three correlated names in the same sector, and it will happily size each one to 1% of the account. Portfolio-level exposure is a separate calculation on top of this one.
Do it once, then automate
Work the example through with your own numbers on the next trade you take. Once your result matches what the platform will accept, you have confirmed your share step and fee assumptions.
Related guides
- How much should you risk per trade? — where the 1% comes from.
- Lot sizes explained — the forex equivalent of share counts.
- Position sizing for crypto futures — contracts rather than lots or shares.
- Forex, stock and crypto position size calculator