Position sizing starts from the loss you accept, not from how much you want to buy. You choose the share of your account to risk on one trade, and the distance from entry to stop sets how many units fit inside that limit.
The calculator also shows the position's value, the gain if a target is hit, and the reward-to-risk ratio. It works for shares, funds, commodities or crypto priced per unit, long or short, in any currency; the picker changes the symbol only.
01How it works
- Max risk = account size × risk per trade.
- Risk per unit = the gap between entry and stop-loss.
- Units = max risk ÷ risk per unit, rounded down to a whole unit so the limit is never exceeded.
If the stop is below the entry the trade is treated as long; if above, as short. The optional target gives the reward per unit, the gain if the target is hit, and the reward-to-risk ratio. A target on the wrong side of the entry is ignored.
The loss shown assumes the stop fills exactly at its price. Slippage and price gaps can make a real loss larger. Commissions, spreads, leverage costs and fractional units are not included. If the position is worth more than the account, it would need leverage.
Risk amount = Account × Risk % Units = floor(Risk amount / |Entry − Stop|) Position value = Units × Entry Reward : risk = |Target − Entry| / |Entry − Stop|
02Worked example
Account 25,000, risk 1% per trade, entry 50, stop-loss 47.50, target 57.50.
- Max risk: 25,000 × 1% = 250.00.
- Risk per unit: 50 − 47.50 = 2.50.
- Units: 250 ÷ 2.50 = 100 units (long).
- Position value: 100 × 50 = 5,000.00, or 20.0% of the account.
- Loss if the stop is hit: 250.00. Gain if the target is hit: 100 × 7.50 = 750.00.
- Reward : risk = 3.00 : 1.
For a short trade at 50 with a stop at 52.50 and a target at 42.50, the numbers mirror these: 100 units, 250.00 at risk, 750.00 potential gain.
03Questions
How much should be risked per trade?
Many traders use a small fixed share such as 0.5% to 2%, so a run of losses does not drain the account. The right figure depends on your own tolerance and strategy.
Why are units rounded down?
Rounding up could push the loss past your limit. Rounding down keeps the loss at the stop at or below the risk amount.
Can the real loss be bigger than shown?
Yes. If the price gaps past your stop or the order fills at a worse price, the loss can exceed the planned amount. Commissions and spreads add to it as well.
What does reward-to-risk mean?
It compares the potential gain at the target with the loss at the stop. At 3 : 1 the target is three times as far from the entry as the stop. It says nothing about how likely either outcome is.