Share Position Size Calculator
By Chad Smith · Updated
On this page
A share position size calculator tells you how many shares to buy so that a fall to your stop price costs only the amount you planned to risk. It also checks the position against a maximum share of your portfolio, because a tight stop on its own can suggest a position far too large. It works for shares, ETFs and stock CFDs.
Share position size calculator
- Risk amount
- USD 500.00
- Risk per share
- USD 5.00
- Position value
- USD 9,800.00
- Position as % of account
- 19.6%
- Limited by
- Risk per trade
How to use it
- Enter your account or portfolio value.
- Enter the risk per trade as a percentage or a money amount.
- Enter the entry price and the stop price.
- Enter the maximum position size as a percentage of the account.
- Optionally enter commission per order.
- Read the number of shares, the position value and which limit set the size.
The formula
Risk amount = Account value × Risk %
Risk per share = Entry price − Stop price (long)
Shares by risk = (Risk amount − Commission) ÷ Risk per share
Shares by cap = (Account value × Max position %) ÷ Entry price
Shares = smaller of the two, rounded down
Position value = Shares × Entry price
For a short position, risk per share is Stop price − Entry price.
Worked example
This is an illustrative example with simple numbers.
- Account: 20,000
- Risk per trade: 1% = 200
- Entry: 50.00, stop: 46.00, so risk per share is 4.00
- Maximum position: 20% of the account = 4,000
Shares by risk = 200 ÷ 4.00 = 50 shares → 2,500 value
Shares by cap = 4,000 ÷ 50.00 = 80 shares
Shares = 50
If the stop were 49.00, shares by risk would be 200, worth 10,000, which is half the account. The cap would limit the position to 80 shares, and the real risk would be 80 × 1.00 = 80.
What the result means
The result is the largest position that keeps both your loss at the stop and your concentration in one stock within limits. If the cap sets the size, the trade risks less than your plan allows, which is fine. If the risk sets the size, a stop hit costs exactly your planned risk, before slippage.
Run the calculator again if you add to a position, because the combined holding has a new average price and a new distance to the stop.
Shares can gap past a stop at the open, especially after earnings, so the real loss can be larger. Many traders reduce size or avoid holding through earnings for that reason.
Sizing without a stop
Long-term investors often hold shares without a stop loss. In that case, size by portfolio weight rather than by risk per trade: decide the largest share of the portfolio any one company may take, and buy up to that amount. The calculator's cap does exactly this when you leave the stop blank. Spreading money across several holdings, or using broad ETFs, reduces the damage any one company can do.
Common mistakes
- Using the whole account on one stock. Concentration risk can outweigh the risk at the stop.
- Ignoring gaps. Stops do not protect against overnight gaps at the open.
- Forgetting commission and FX fees. On small positions, a minimum commission or a currency conversion fee can be a large share of the risk.
- Rounding up. Round down to stay within your risk amount.
- Placing the stop to fit the size. Choose the stop from the chart, then size the position.
Related lessons and tools
- Lesson: Position sizing
- Lesson: Stock order types
- Lesson: Fractional shares
- Lesson: Building a simple portfolio
- Glossary: position sizing, stop loss, fractional shares, share CFD
- Guide: Stock trading
- Tools: stock trade cost calculator, average-down calculator, position size calculator, dividend calculator
Frequently asked questions
How many shares should I buy?
Divide the money you are willing to lose by the distance from your entry to your stop price. The result is the number of shares that loses that amount if the stop is hit.
Why cap the position value as well?
A very tight stop can produce a huge position. A cap on position value, such as a share of the portfolio, stops one stock from dominating your account.
Does this work for fractional shares?
Yes. If your broker offers fractional shares, the calculator can return a fractional amount instead of rounding down to whole shares.
What about long-term investing without a stop?
Without a stop, risk per trade cannot be defined this way. Long-term investors usually size by a target share of the portfolio instead, which the calculator also supports.