Free tool
Position size calculator
How many shares can you buy without risking more than you planned? Enter your account, your risk per trade, your entry and your stop.
The formula
Shares = (account × risk %) ÷ (entry price − stop price), rounded down. The result is the largest position whose loss at the stop stays inside your budget.
Example: a $25,000 account risking 1% has a $250 budget. Buying at $50.00 with a stop at $48.50 risks $1.50 a share, so the size is 166 shares. The position costs $8,300, a third of the account, and loses $249 if the stop is hit.
The stop sets the size
With the same $250 budget and the same $50.00 entry, a tighter stop buys more shares and a wider one buys fewer. The dollars at risk stay about the same in every row. What changes is how much of the account the position ties up.
| Stop distance | Shares | Position value | Share of account |
|---|---|---|---|
| $0.25 a share | 1,000 | $50,000 | 200% |
| $0.50 a share | 500 | $25,000 | 100% |
| $1.00 a share | 250 | $12,500 | 50% |
| $1.50 a share | 166 | $8,300 | 33% |
| $2.00 a share | 125 | $6,250 | 25% |
| $3.00 a share | 83 | $4,150 | 17% |
| $5.00 a share | 50 | $2,500 | 10% |
A position worth more than the account needs margin. On a $25,000 account the first row does, and the second uses all of it.
Risk is not the amount invested
Two numbers describe a position, and they are easy to confuse. Position value is shares × price: what you pay. Risk is shares × the distance to your stop: what you lose if you're wrong. A $8,300 position with a $1.50 stop risks $249. The same $8,300 with no stop risks far more than that.
What the calculator can't tell you
It sizes the trade you planned. A stock that gaps through your stop on news or earnings fills at the next price, not at yours, so the real loss can be larger. Whether you keep to the size is another question, and your trade log answers it: your real average loss and your largest one. To see what the trade makes or loses at any exit, use the stock profit calculator. For how often a setup has to win at a given ratio, see the win rate calculator and the risk-reward ratio guide. Trading futures? The futures position size calculator does the same job in contracts, from a stop in points or ticks.
Questions
How do you calculate position size for a stock?
Shares = (account size x risk %) / (entry price - stop price), rounded down. With a $25,000 account risking 1% ($250), a $50.00 entry and a $48.50 stop, each share risks $1.50, so the size is 166 shares.
How many shares should I buy?
As many as your risk budget allows at your stop, and no more. Decide the dollars you are willing to lose on the trade first, then divide by the distance from your entry to your stop. The price of the stock does not decide the size. The stop does.
What percentage of my account should I risk per trade?
Many traders use 0.5% to 2% per trade. Lower risk survives longer losing streaks: at 1% per trade, ten losses in a row cost about 10% of the account.
Is position size the same as the amount I invest?
No. Position value is shares x price: what the position costs. Risk is shares x the distance to your stop: what you lose if the stop is hit. In the example above the position costs $8,300 and risks $249.
Does the calculator work for short trades?
Yes. Enter a stop above your entry and it sizes a short. The arithmetic is the same: the risk per share is the distance between the two prices.
Can a stop guarantee my loss?
No. A stock can open beyond your stop after news or earnings, and a stop order then fills at the next available price. The calculator sizes the planned loss. A gap can make the real one larger.
For education only. Not financial advice. You can lose more than your planned risk when a stock gaps through a stop.