What is position sizing?
Position sizing determines how many shares or units to buy so that a losing trade costs no more than a fixed percentage of your account. It links account balance, risk tolerance, entry price, and stop loss into one share count. All math runs in your browser.
Pair position sizing with the maximum drawdown calculator to understand how consecutive losses affect portfolio value. For portfolio-level risk across multiple holdings, see the portfolio beta calculator. To compare potential profit against stop-loss risk before sizing, use the risk-reward ratio calculator. For momentum context at your entry level, check the relative strength index calculator.
Position size formulas
First, calculate the dollar amount you are willing to lose on the trade:
Next, find the per-share distance to your stop loss:
Divide risk amount by stop loss distance and round down to whole shares:
Worked example
A trader has a $50,000 account, risks 2% per trade, enters at $150, and sets a stop loss at $142.50.
- Risk amount = $50,000 x 2% = $1,000
- Stop loss distance = |$150.00 - $142.50| = $7.50
- Position size = floor($1,000 / $7.50) = 133 shares
- Total investment = 133 x $150 = $19,950
- Potential loss = 133 x $7.50 = $997.50
The trade deploys 39.9% of the account but risks only 2%, because the stop loss limits downside per share.
Why position sizing matters
Without a fixed risk rule, traders often size positions by gut feel or available cash. A few large losses can erase months of gains. The 1% to 2% risk-per-trade rule, common among professional traders, keeps any single loss manageable and preserves capital for recovery.
Frequently asked questions
What is the 2% risk rule in trading?
Why floor the position size to whole shares?
Does this work for short trades?
What if my total investment exceeds my account balance?
How does position sizing relate to maximum drawdown?
Resources and references
The formulas and methods in this calculator were checked against these independent sources.