How to calculate position size for US stocks
Position size is how many shares you buy or short so that a stop-loss costs only the dollar amount you planned to risk. Here is the formula, worked examples, and what buying power does and does not mean.
The one formula you need
Position size answers one question: how many shares can I trade so that, if my stop-loss is hit, I lose only the amount I decided to risk?
The top of the formula is your risk in dollars. The bottom is how much you lose per share if the stop is hit. Divide the first by the second and you get the number of shares that keeps the loss inside your limit.
Worked example: a long trade
- Account size: $25,000
- Risk per trade: 1% = $250
- Buy at $50.00 with a stop-loss at $48.00, so you lose $2.00 per share if stopped out
Shares = $250 ÷ $2.00 = 125 shares. The position is worth 125 × $50 = $6,250, which is 25% of the account. If the stop is hit you lose about $250, or 1% of the account, plus any slippage and fees. If your target is twice your risk ($54.00), the gross profit is about $500.
Notice what drives the answer: the distance to your stop, not how confident you feel. A wider stop means fewer shares, and a tighter stop means more shares. The dollars at risk stay the same.
Worked example: a short trade
For a short, the loss per share is the stop minus the entry. Short at $50.00 with a stop at $52.00 is a $2.00 risk per share. With $250 to risk that is again 125 shares. Shorting also carries costs a long trade does not, such as borrow fees and the possibility that shares become hard to borrow, so leave room for them.
What risk percentage should you use?
There is no single correct number. Many risk-focused traders keep it small, often between 0.5% and 2% of the account on each trade. The reason is arithmetic: after a run of losses a small risk per trade leaves you with money and confidence to continue. Our guide on how much to risk per trade shows the numbers. Pick a figure you can accept losing without it changing your next decision, and keep it fixed.
Buying power is not risk
Your broker may show a large buying power, especially in a margin account. That number tells you how much you are allowed to hold. It does not tell you how much you should risk. Risk is set by the number of shares and the distance to your stop. If the position your formula gives is larger than your buying power, reduce the size or skip the trade. If you day trade in a margin account, also read our note on the pattern day trader rule.
Whole shares and fractional shares
Many brokers now offer fractional shares, so you can size a trade closer to the exact number the formula gives. If your broker only trades whole shares, round the result down. Rounding up quietly increases your risk.
Stops are not guarantees
A stop-loss order becomes a market order when the stop price trades, so your fill can be worse than your stop, especially in fast markets, after earnings, at the open, or in thinly traded stocks. A stop limit order avoids a bad fill but may not execute at all. Keep your risk small enough that a gap past your stop does not hurt you badly.
Common mistakes
- Sizing by dollars invested. Buying "$5,000 of a stock" tells you nothing about what you lose at your stop.
- Moving the stop further away after entry to avoid being stopped out. The loss then exceeds the plan.
- Ignoring costs. Commissions may be zero, but spreads, slippage, borrow fees and regulatory fees still exist, and they matter more on tight stops.
- Risking more after a loss to win it back. Keep the same percentage.
Common questions
How many shares should I buy?
Divide the dollars you are willing to lose by the loss per share at your stop. For example, risking $250 with a $2.00 stop distance gives 125 shares.
Is 1% a good risk per trade?
Many traders use between 0.5% and 2%. Smaller risk survives losing streaks better. The right number depends on your account, your strategy and how much a loss affects your decisions.
Does the position size formula work for ETFs and options?
For ETFs and other shares, yes, the same formula applies. Options trade in contracts that usually control 100 shares, so the loss per contract is the price drop per share times 100. Always confirm the contract size with your broker.
Updated 22 November 2026. Educational content only. It is not investment, legal or tax advice, and it is not a recommendation to buy or sell any security or digital asset. Trading involves risk of loss, including the loss of everything you put in. Examples are hypothetical, are shown for illustration, and do not predict or guarantee results. TradingMath is a software tool. It is not a broker-dealer, investment adviser or commodity trading advisor. Rules, fees and margin requirements change, so confirm the current details with your broker.