Sub topic 12
Sizing Your First Position
Assume you know what a stock and a share are, have a funded or paper-trading brokerage account, and can do simple price arithmetic. Position sizing means choosing how many shares to buy. A good size fits both your available cash and the amount you are willing to lose if the trade goes against you.
Start with a dollar limit
Your maximum position value is the most money you want committed to the trade:
\text{position value} = \text{shares} \times \text{entry price}For example, with $2,000 available and a $50 stock, buying 20 shares uses about $1,000. The remaining cash stays available for other needs or trades.
Do not use all available buying power automatically. Buying power can include borrowed money in a margin account. A loss can then exceed the cash you deposited.
Use risk per share when you have an exit plan
A risk limit is the maximum planned loss for one trade. If you plan to exit when the stock reaches a specific stop price, calculate:
\text{risk per share} = \text{entry price} - \text{stop price}For a long position, the entry price is the purchase price and the stop price is below it. Then calculate:
\text{shares} =
\left\lfloor
\frac{\text{maximum trade risk}}
{\text{risk per share}}
\right\rfloorSuppose your maximum trade risk is $40, your planned entry is $50, and your stop is $48. The risk per share is $2, so the result is 20 shares. The planned loss is $40 before fees and slippage.
| Input | Example |
|---|---|
| Maximum trade risk | $40 |
| Entry price | $50 |
| Planned stop price | $48 |
| Risk per share | $2 |
| Position size | 20 shares |
import math
max_risk = 40.00
entry_price = 50.00
stop_price = 48.00
cash_limit = 1200.00
risk_per_share = entry_price - stop_price
shares_by_risk = math.floor(max_risk / risk_per_share)
shares_by_cash = math.floor(cash_limit / entry_price)
shares = min(shares_by_risk, shares_by_cash)
position_value = shares * entry_price
planned_loss = shares * risk_per_share
print(shares) # 20
print(position_value) # 1000.0
print(planned_loss) # 40.0Understand the limits of the estimate
A stop price is a plan, not a guaranteed execution price. A fast market or overnight gap can cause a sell order to fill below the stop. Slippage, which is the difference between the expected and actual execution price, can increase the loss. Fees and spread costs also reduce the result.
If you have no exit price, use a smaller cash-based position until you can state what would make you exit. Avoid changing the size after the price moves simply because the trade feels more urgent.
Common sizing errors
- Dividing available cash by the stock price without considering concentration.
- Forgetting that a higher-priced stock can have a smaller or larger risk per share depending on the planned stop.
- Rounding shares up, which can exceed the risk limit.
- Ignoring spread, fees, slippage, and possible gaps.
- Treating a stop as a guaranteed maximum loss.
- Adding shares to a losing position without updating the total risk calculation.
Before submitting an order, check the symbol, share count, entry price, estimated cost, maximum planned loss, and available buying power.
Exercise
You can risk $30 on a trade. The entry price is $25 and the planned stop is $23. How many shares does the risk formula allow, before fees and slippage?
Show answer
Risk per share is $2. The calculation is $30 ÷ $2 = 15 shares.