TheCalculatorVault

Position Size Calculator

Apply the 2% rule with precision: enter your account size, risk percentage, entry price and stop-loss to get the exact number of shares to buy or short. Results include max loss, capital required and dollar risk (R). Updates live as you type — no sign-up, long or short, any currency.

Currency
$
%

The most of your account you're willing to lose on this one trade — the canonical “1–2% rule”. For a $10,000 account, 2% is $200 at risk.

Trade direction

For a long: place the stop below your entry.

$
$

Results update live as you type

Shares to buy
Buy 40 shares/units to risk $200.00 if the stop is hit.
Max loss
$200.00 risk budget
Capital required
40 × entry price
Risk amount
2% of account
Risk per share
|entry − stop| price distance
Account size
your total capital

Capital allocation

Of your $10,000.00 account, $6,000.00 is deployed in this position and $4,000.00 stays in cash. Your actual risk on it is only $200.00.

Like this? Share: Email

Position sizing is a risk-management tool, not a profit guarantee. Figures use whole shares and assume the stop fills exactly at your stop-loss price — they ignore commissions, spread, slippage and overnight gaps, which add to the realized loss. The capital required is the full notional with no leverage; with margin the cash you post is lower but the risk is unchanged. This is not financial advice; see our Terms.

How position sizing works

Position sizing is the discipline that separates traders who survive from those who blow up. Rather than asking “how many shares can I afford?”, it asks “how many shares can I hold so that, if I'm wrong and the stop is hit, I lose only a small, fixed slice of my account?” That slice — typically 1–2% — is the same on every trade, so no single loss can do serious damage. The number of shares falls out of three inputs: your account size, your risk percentage, and the distance from your entry to your stop-loss.

Capital required is not your risk

The value of the position — shares × entry price — is the capital you actually deploy to open the trade. Your risk is a different, much smaller number: shares × (entry − stop), capped at the risk percentage you chose. Beginners conflate the two and feel exposed to the whole position value, but it is the stop-loss that bounds the loss, not the size of the position. Deploying $6,650 of capital while risking only $199.50 is exactly the point of sizing on the stop.

The formula

  • Risk amount (R) = account size × risk % ÷ 100
  • Risk per share = |entry price − stop-loss price|
  • Shares to buy = floor( risk amount ÷ risk per share )
  • Capital required = shares × entry price
  • Max loss = shares × risk per share (always ≤ risk amount)

Two details matter. First, the share count is always floored (rounded down): buying even one extra share would push your realized loss past the budget. Second, the risk per share uses the absolute price difference, so the same formula serves a long (stop below entry) and a short (stop above entry) without change — the direction toggle is just a reminder of which side your stop belongs on.

Worked example (long trade)

Risk 2% of a $10,000 account on a long entered at $50 with a stop at $48.50:

FigureValueHow it's found
Risk amount (R)$200.00$10,000 × 2 ÷ 100
Risk per share$1.50|$50$48.50|
Shares to buy133floor($200.00 ÷ $1.50) = floor(133.33)
Capital required$6,650133 × $50
Max loss if stopped$199.50133 × $1.50

Note the max loss of $199.50 sits just under the $200.00 budget — that gap is the flooring at work. Rounding up to 134 shares would have produced a $201.00 loss, breaching the rule by $1.50.

The 1% and 2% rule across account sizes

With a fixed $50 entry and a $45 stop (a $5 risk per share), here is how many shares the rule lets you buy — and the most you can lose — as your account grows. The max loss is always exactly your risk percentage of the account.

Account sizeShares (1% rule)Max loss (1%)Shares (2% rule)Max loss (2%)
$5,00010$5020$100
$10,00020$10040$200
$25,00050$250100$500
$50,000100$500200$1,000
$100,000200$1,000400$2,000

Capital required is not your risk

The most common beginner mistake is to confuse the cash deployed with the money at stake. In the worked example you commit $6,650 of capital to the position, but your actual risk is only $199.50 — because the stop caps the loss long before the whole position could evaporate. Position sizing decouples the two: the stop distance sets your risk, the entry price sets the capital, and the share count ties them together. If the capital required ever exceeds your account, the stop is unusually tight — either accept that you need margin, or widen the stop to bring the position within your cash balance.

Assumptions and limitations

  • Whole shares only. The formula floors to the nearest integer. For fractional-share brokers or forex/futures lot sizing, the floor may be relaxed to the instrument's minimum increment.
  • Stop fills at the stop price. Slippage, spread, and overnight gaps are not modelled. In fast-moving markets your actual fill may be worse than the stop price, making the realized loss larger than the calculated max loss.
  • No commissions. Brokerage fees are excluded. Add them to the effective stop distance as a conservative adjustment if commissions are material relative to the risk amount.
  • Single-position risk only. The 1–2% rule applies per trade; it does not account for correlated positions held simultaneously. Portfolio-level risk management requires adjusting for correlation across open trades.
  • Cash account assumed. Position value is the full notional (shares × entry price). With margin, the capital required is lower, but the risk calculation is unchanged — the stop distance, not the margin posted, determines your maximum loss.
  • Direction is informational. The absolute-value formula returns the same share count whether the stop is below entry (long) or above entry (short). The direction toggle is a reminder, not a mathematical input.

Frequently asked questions

What is a position size calculator?+

A position size calculator tells you exactly how many shares (or units) to buy or short on a trade so that if the stop-loss is hit, your account loses no more than a pre-set percentage — typically 1–2% — of your total trading capital. It removes guesswork and enforces consistent risk management on every trade.

How do you calculate position size?+

Three steps: (1) Multiply your account size by your risk percentage to get the amount at risk (e.g., $10,000 × 2% = $200). (2) Subtract the stop-loss price from the entry price and take the absolute value to get the risk per share (e.g., |$50 − $48.50| = $1.50). (3) Divide the amount at risk by the risk per share and floor the result to whole shares (e.g., $200 / $1.50 = 133.33 → 133 shares).

How many shares should I buy per trade?+

The answer depends on three things: how much capital you have, how much of it you are willing to risk, and how far your stop-loss is from your entry price. Use the formula: shares = floor( (accountSize × riskPct / 100) / |entry − stop| ). Never size a trade on conviction alone — size it on the stop distance and your risk budget.

What is the 2% rule in trading?+

The 2% rule is a risk-management guideline that says you should never risk more than 2% of your total trading account on any single trade. For a $10,000 account, the maximum loss per trade is $200. Combined with a stop-loss, it keeps any one bad trade from doing serious damage to your capital. Some more conservative traders use 1%.

How does the stop-loss price affect my position size?+

The stop-loss distance is the denominator in the position-size formula. A tighter stop (closer to entry) means a larger position size for the same dollar risk; a wider stop means a smaller position. At a 1% account risk: a $1 stop gives 100 shares, but a $5 stop gives only 20 shares. This is why professionals set the stop first and let position size follow, rather than the other way around.

Why must shares be rounded down and not rounded to the nearest whole number?+

Rounding to the nearest whole number can push shares above the exact quotient, which would make your actual loss exceed your risk budget. Flooring (rounding down) guarantees that shares × risk-per-share is always ≤ your risk limit. For example, 133.33 shares floored to 133 gives a max loss of $199.50, within a $200 budget; rounding up to 134 gives $201.00, which breaks the rule.

Does position size change for short trades?+

The formula is the same for long and short trades. The risk per share is always the absolute difference |entry − stop|. For a long trade the stop is below entry; for a short trade the stop is above entry. Either way, |entry − stop| gives the same positive number, and the shares calculation is identical.

What is the difference between "capital required" and "max loss"?+

"Capital required" (position value) is the total cash needed to open the trade: shares × entry price. "Max loss" is the most you can lose if the stop is triggered: shares × |entry − stop|. These are very different numbers. For example, 133 shares at $50 requires $6,650 in capital, but the max loss with a stop at $48.50 is only $199.50 — roughly 3% of the capital deployed.

What happens when my position value exceeds my account size?+

This happens when the stop-loss is very tight relative to the entry price. The risk math is still correct — you are risking the right amount — but in a cash account you cannot spend more than your balance. In that case, apply an optional cap: shares = min(floor(riskAmount / riskPerShare), floor(accountSize / entryPrice)). With a margin account the broker’s leverage extends your buying power, but the risk calculation itself does not change.

What is "R" in trading?+

"R" (also called "dollar at risk" or "risk amount") is the fixed monetary amount you risk on a single trade. It equals accountSize × riskPct / 100. All trades that get stopped out lose exactly 1R; a trade that hits a 2:1 reward-to-risk target gains 2R. Using consistent R multiples lets you evaluate a strategy’s expectancy — whether you make money on average even if you lose more than half your trades.

Can I use this calculator for forex, crypto, or futures?+

Yes. The core formula — shares = floor(riskAmount / riskPerShare) — applies to any instrument where you can express both entry and stop as a price per unit. For forex you might use pips and pip value per lot; for futures you use the contract’s point value. The calculator uses whole shares (no fractional units) for v1, which suits stocks; for fractional-share brokers or forex lot sizing the floor can be relaxed to the instrument’s minimum increment.

Does this calculator account for commissions and slippage?+

No. The calculation assumes your stop-loss fills exactly at the stop price with no friction. In practice, slippage and commissions add to your realized loss. As a conservative adjustment, some traders widen their effective stop by the expected slippage before computing position size, which reduces the share count slightly and builds in a buffer.

Disclaimer

This calculator is provided for general educational and informational purposes only. Its results are estimates based on the values you enter and do not account for fees, slippage, taxes or live market conditions. Trading and investing carry a real risk of loss, and hypothetical results do not guarantee future performance. It is not investment or trading advice — please do your own research and consult a qualified professional where appropriate.

Sources

Formula and data last reviewed by the TheCalculatorVault team on 26 June 2026. Figures are for general information, not professional advice.