About this calculator
Professional traders usually decide first how much they are willing to lose on a trade, then size the position to match. This calculator divides your risk budget (a percentage of the account) by the distance between your entry and your stop to find the number of shares or units.
The stop can be a price you choose or a multiple of the Average True Range (ATR), which places it outside the asset’s normal daily movement. The result is rounded down. It assumes the stop is filled at its price; in fast or gapping markets the loss can be larger.
How it is calculated
Position size = (account × risk %) ÷ |entry − stop|
- risk %
- share of the account you accept losing
- |entry − stop|
- stop distance per share; with ATR, stop distance = ATR × multiple
Example: 50,000 × 1% = 500 at risk; with an ATR of 3.20 and a 2× multiple the stop is 6.40 away, so 500 ÷ 6.40 = 78 shares.
How to read the result
- Wider stops mean smaller positions, so volatile assets are automatically traded in smaller size.
- If the position value exceeds the account, the trade would need leverage; most traders reduce risk instead.
- Many traders keep risk per trade between about 0.5% and 2% so that a run of losses does not cripple the account.
Worked example
Worked example
Your account is 20,000 and you are willing to lose 1% on one trade: 200. You plan to buy at 50 with a stop at 47, a distance of 3 per share.
200 ÷ 3 ≈ 66.7, rounded down to 66 shares. The position is worth 66 × 50 = 3,300, or 16.5% of the account, and the planned loss if the stop is hit is 66 × 3 = 198.
Using an ATR-based stop instead, with an ATR of 1.20 and a multiple of 2, the stop sits 2.40 below entry at 47.60. 200 ÷ 2.40 ≈ 83 shares, worth 4,150. A tighter stop allows a larger position for the same money at risk; a wider stop requires a smaller one.
Putting the result in context
The position size is the largest holding that keeps the planned loss within your limit. Check the “share of account” figure as well: a very tight stop can produce a position that is a large part of the account, which brings concentration and gap risk even if the planned loss is small.
Risking a small, fixed percentage per trade means a run of losses shrinks the account gradually rather than suddenly. With 1% per trade, ten losses in a row cost roughly 10%; with 5% per trade, the same run costs about 40%, which needs a 67% gain to recover.
Common mistakes
- Choosing the size first and the stop second. A stop placed to fit a size you wanted is usually in the wrong place.
- Ignoring gaps. Prices can open well beyond your stop-loss order, especially around earnings or news.
- Forgetting costs. Commissions and the bid-ask spread add to the loss.
- Using leverage without adjusting. With margin or derivatives, the money at risk is based on the full position, not the deposit.
Frequently asked questions
Why size positions by risk rather than by amount?
Because a fixed amount in a volatile asset risks far more than the same amount in a calm one. Sizing by risk keeps each trade’s potential loss roughly equal.
Does a stop-loss guarantee the loss?
No. If the price gaps past your stop, for example overnight, the order may be filled at a worse price.
Should the risk percentage be based on the starting or current account value?
Most traders use the current value, so positions shrink after losses and grow after gains. That slows the damage in a losing streak.
Is this relevant for long-term investors?
The arithmetic is aimed at traders who use stops. Long-term investors usually control risk with diversification and position limits, for example keeping any single holding below a set share of the portfolio.
Related
Link to this calculator from your website
Free to use: copy this HTML to add a link on your site, blog or resource page.
Embed this calculator on your website
Free to embed: paste this code into your page to show the working calculator. Please keep the credit link.
Results are estimates based on your inputs and simple assumptions such as constant rates. Real products have fees, taxes and terms that change the outcome. This is a planning tool for education, not financial advice.