Finance & Economics · Quantitative Trading & Crypto · Position Sizing
Position Size Calculator
Calculates the optimal number of shares or units to trade based on account size, risk percentage, entry price, and stop-loss level.
Calculator
Formula
Account Balance is the total trading capital in the account (in currency units). Risk % is the percentage of the account the trader is willing to lose on this trade (typically 1–2%). Entry Price is the price at which the position is opened. Stop Loss Price is the price at which the trade is automatically closed to limit losses. The denominator represents the risk per unit (share or lot), and dividing the total dollar risk by this per-unit risk gives the number of units to trade.
Source: Van K. Tharp, 'Trade Your Way to Financial Freedom', McGraw-Hill, 2nd ed., 2006. Also standard in CMT curriculum and professional risk management literature.
How it works
At the heart of position sizing is a simple idea: before entering any trade, define how much of your capital you are willing to lose if the trade goes wrong. Most professional traders risk between 0.5% and 2% of their account per trade. This fixed-risk approach ensures that even a long losing streak — say, ten consecutive losses at 1% risk — only reduces the account by approximately 9.6% (due to compounding), leaving plenty of capital to recover. Without this discipline, a single large loss can be psychologically and financially devastating.
The formula works by first computing the dollar amount at risk: Account Balance multiplied by the Risk Percentage. This is the maximum loss you are prepared to accept. Next, the risk per unit (per share or per lot) is calculated as the absolute difference between the Entry Price and the Stop Loss Price. Dividing the total dollar risk by the per-unit risk yields the number of units to trade. For example, if your dollar risk is $100 and the stop is $2.50 away from entry, you should trade 40 shares. The result is typically floored to a whole number since fractional shares are not always tradeable.
This approach applies directly to equities, ETFs, futures, and crypto. For forex, the per-unit risk is expressed in pips, and the pip value must be factored in before dividing. The core principle remains the same: size your trade so that hitting your stop-loss costs exactly your pre-defined risk amount — no more, no less. This creates a consistent, repeatable, and emotionally manageable trading process regardless of the asset class.
Worked example
Suppose you have an account balance of $25,000 and follow a rule of risking no more than 1.5% per trade.
Step 1 — Dollar Risk: $25,000 × 1.5% = $375. This is the maximum you are prepared to lose on this trade.
Step 2 — Identify Entry and Stop-Loss: You want to buy a stock at $85.00 per share. Your technical analysis places the stop-loss at $81.50 (below a key support level).
Step 3 — Risk Per Share: |$85.00 − $81.50| = $3.50 per share.
Step 4 — Position Size: $375 ÷ $3.50 = 107.14 → rounded down to 107 shares.
Step 5 — Verify: If the stop-loss is hit, your loss = 107 × $3.50 = $374.50, which is 1.498% of your account — essentially exactly your target risk.
Total position value: 107 × $85.00 = $9,095, representing about 36.4% of the account — a large but controlled exposure because the stop is relatively tight at 4.12% below entry.
Limitations & notes
This calculator assumes that the stop-loss order will be filled at exactly the specified price. In practice, slippage — especially in fast-moving or illiquid markets — can cause fills significantly worse than the stop price, meaning actual losses may exceed the calculated risk. Gaps at market open (particularly after earnings announcements or major news events) are a common source of slippage that can render stop-loss orders ineffective. Additionally, the formula does not account for commissions or transaction costs, which can be meaningful for small accounts or high-frequency traders. The calculator also assumes the trader is starting a new position; it does not handle scaling into or out of existing positions, portfolio-level correlation risk, or the impact of leverage and margin requirements. For forex and futures, users must adjust for the pip value or contract multiplier before interpreting the output as a number of lots or contracts. Finally, this tool should not be used in isolation — position sizing is one component of a broader risk management framework that also includes diversification, drawdown limits, and portfolio heat monitoring.
Frequently asked questions
What percentage of my account should I risk per trade?
Professional traders typically risk between 0.5% and 2% of their account per trade. A 1% rule is common — at this level, you would need 100 consecutive losing trades to lose your entire account. Higher risk percentages (above 3%) expose you to rapid drawdowns that are psychologically and mathematically very difficult to recover from, as a 50% loss requires a 100% gain just to break even.
Does position size change if I use leverage?
The formula itself does not change — it calculates the number of units required to cap your loss at the stop-loss price. However, leverage affects whether you can actually hold that position given your margin requirements. If the calculated position value exceeds your available margin, you must either reduce the position size, widen the stop (which changes the risk-per-unit), or reduce the risk percentage. Always ensure your position is feasible within your broker's margin rules.
How do I use this calculator for forex trading?
For forex, express the Entry Price and Stop Loss Price in the same units (e.g., pips or currency price). You then need to multiply the resulting 'units' by the pip value for your specific currency pair and lot size to get the number of standard, mini, or micro lots. Many forex brokers provide pip value calculators. The core risk percentage approach remains identical — you are still dividing your dollar risk by the per-pip risk to find the correct lot size.
Why does the calculator floor the result to whole shares?
Most brokerage accounts and exchanges deal in whole shares (integers), so fractional results are rounded down rather than up to ensure the actual risk never exceeds your target. Some modern brokers (such as Robinhood or Interactive Brokers) do offer fractional share trading, in which case you could use the unrounded result. The calculator uses floor() as a conservative default.
Can position sizing alone guarantee I won't lose money?
No. Position sizing controls the magnitude of individual losses but does not improve the underlying win rate or expected value of a trading strategy. A system with a negative expectancy will still lose money in the long run, just more slowly if properly sized. Effective position sizing must be combined with a genuine trading edge — a strategy where wins are sufficiently large and frequent to outpace losses. It is a risk management tool, not a strategy improvement tool.
Last updated: 2025-01-15 · Formula verified against primary sources.