Trader Abacus

Position Size Calculator

Enter your account balance, the percentage you are willing to lose on this trade, and your entry and stop-loss prices. The calculator returns the number of shares that keeps your loss within that limit.

$
%
$
$
Direction

Auto: long if the stop is below entry, short if above.

Position size
50 shares
Risk amount
$100.00
Risk per share
$2
Position value
$2,500.00
Position as % of account
25%
Loss if stopped out
$100.00

Long trade. Shares are rounded down, so the loss at the stop never exceeds your risk amount.

How it works

Position sizing answers one question before you place a trade: how many shares can I buy (or sell short) so that, if the price hits my stop-loss, I lose only the amount I decided in advance? This calculator uses the fixed fractional method, sometimes called fixed percentage risk. You choose a percentage of your account to risk on each trade, and the share count is worked out backwards from that number and the distance to your stop.

The key idea is that your risk is set by the stop, not by how much stock you buy. Two trades of the same dollar size can carry very different risk: a position with a stop 1% below entry loses far less if stopped out than one with a stop 10% below entry. Fixed fractional sizing flips the usual approach. Instead of picking a position size and hoping the loss is acceptable, you fix the acceptable loss first and let the position size follow.

The calculation runs in four steps:

  1. Risk amount. Multiply your account balance by your risk percentage. This is the most you are prepared to lose on this trade.
  2. Risk per share. Take the distance between your entry price and your stop-loss price. For a long trade the stop is below entry; for a short trade it is above. Either way, the distance is what each share loses if the stop is hit.
  3. Position size. Divide the risk amount by the risk per share and round down to a whole number of shares.
  4. Position value and exposure. Multiply the share count by the entry price to see how much capital the trade ties up, and divide that by your balance to see it as a share of your account.

Because the risk amount scales with the account, position sizes shrink automatically after losses and grow after gains. A losing streak reduces the dollar amount at stake on each following trade, which slows the decline of the account. A winning streak does the opposite. This self-adjusting property is the main reason the method is widely used.

The method has limits worth understanding. It assumes your stop-loss is actually honored at the price you entered. Overnight gaps, fast markets and illiquid stocks can fill you well beyond the stop, so the real loss can be larger than the calculated one. It also treats each trade on its own: if you hold several positions that tend to move together, a single market move can hit all of their stops at once, and your combined loss will be a multiple of the per-trade risk.

Pay attention to the "position as % of account" figure. A very tight stop produces a small risk per share, which can push the position value above your available cash. That is not an error in the math; it means the trade, sized to your risk, would need margin. Decide whether that is acceptable rather than letting the calculator decide for you.

This page covers fixed fractional sizing only. Methods that size positions from your historical win rate and payoff, such as the Kelly criterion, answer a different question and are treated separately.

Worked example

You have a $25,000 account and risk 0.5% per trade. You want to buy a stock at $120.00 with a stop-loss at $116.50.

Now a short trade with the same account and risk: you sell short at $40.00 with a stop at $42.25. The risk per share is $42.25 − $40.00 = $2.25, so the position size is $125.00 ÷ $2.25 = 55.56, rounded down to 55 shares, with a position value of $2,200.00 (8.8% of the account).

Formula

Risk amount       = Account balance × Risk % ÷ 100
Risk per share    = |Entry price − Stop-loss price|
Position size     = floor(Risk amount ÷ Risk per share)
Position value    = Position size × Entry price
Position % of acct = Position value ÷ Account balance × 100

floor means rounding down to the nearest whole share. The vertical bars mean the absolute value, so the same formula works for long and short trades.

FAQ

What risk percentage should I use?

There is no single correct number. Small fixed percentages such as 0.5%, 1% or 2% are common starting points because they keep any one loss small relative to the account. The right figure depends on your strategy, how many positions you hold at once and how large a drawdown you can tolerate. Whatever you choose, apply it consistently.

Why does the calculator round the share count down?

Rounding down guarantees that the loss at your stop-loss is equal to or less than the amount you chose to risk. Rounding up would put you slightly over your limit on every trade. The "Loss if stopped out" line shows the exact loss with the rounded share count.

Does this work for short trades?

Yes. For a short trade the stop-loss sits above the entry price, and the risk per share is the stop minus the entry. Choose Short, or leave the direction on Auto and the calculator will infer it from which side of the entry your stop is on.

Does the result include commissions, spreads or slippage?

No. The calculation assumes you exit exactly at your stop price with no costs. In practice gaps, slippage and fees can make the real loss larger. If that matters for your market, reduce the risk percentage slightly or subtract expected costs from the risk amount.

What if the position value is larger than my account?

That happens when the stop is very close to the entry. A tight stop means a small risk per share, so the formula allows many shares. Without margin you cannot buy more than your cash allows, so you would either use a wider stop, accept a smaller position, or use leverage knowingly. The calculator shows a warning when the position exceeds 100% of the account.

Embed this calculator

Free to use, no sign-up and no ads inside the embed, and the numbers your visitors enter stay in their browser. Please keep the credit line.

All embeddable calculators and usage notes

Results are estimates based on your inputs, not financial advice. See Terms & Disclaimer.