Formula: Position Sizing Financial Formula
- accountEquity: Account Equity (currency)
- maxRiskPct: Max Risk Pct (%)
- entryPrice: Entry Price (currency)
- stopLossPrice: Stop Loss Price (currency)
- targetPrice: Target Price (currency)
Size positions so a stop-loss hit never exceeds your fixed account risk percentage.
It rounds the share count down to a whole number, so the loss at the stop never exceeds the budget. On the default, $500 divided by a $6 stop distance is 83.33, which becomes 83. Rounding up to 84 would push the loss past the $500 budget by a couple of dollars. If your broker allows fractional shares, do the division by hand to get the unrounded figure.
Type 1 for one percent. The field is labelled in percent and the calculator divides by 100 itself. Entering 0.01 would mean one hundredth of a percent, and on the default $50,000 account the dollar risk would shrink to five dollars and the share count to almost nothing. If the 1R line looks tiny, this is the usual cause.
A price. Enter the level where the position would be closed, such as 94 on the default, not the $6 gap. The calculator works out the distance from entry. Typing 6 into the stop field while entry is 100 would be read as a stop at 6, a distance of $94 a share, and the result would size the trade at only a handful of shares.
Because it depends only on the three prices. On the default the reward distance is $18 and the risk distance is $6, giving 3 R whether the account is $30,000, $50,000 or $75,000 in the field. Equity changes how many shares fit inside the dollar risk, and so the size of the position, but not the ratio between the target and stop distances.
Not on the ratio alone. R compares the size of the planned gain with the size of the planned loss, and says nothing about how often each happens. A higher multiple usually means the target is further away, which may be reached less often. The calculator cannot judge that trade-off. It only reports the ratio of the distances you entered.
The arithmetic is the same for anything priced per unit, so units of a coin work as shares do. Futures and currency pairs often have a contract size or point value that turns one price step into a larger money amount. This calculator has no multiplier input, so for those you would need to convert the stop distance into money per contract before using it.
It is the share count times the entry price, so $8,300.00 on the default. It shows how much of the account the position would occupy at entry. The page does not compare it with your equity, so a tight stop can produce a capital figure larger than the whole account without any warning. Check it against your available cash yourself.
The calculator stops and asks for a stop that differs from the entry. A zero distance would mean dividing the dollar risk by zero, which has no answer. Very small distances are still accepted, though, and they produce very large share counts: a stop 50 cents from the default entry sizes the trade at a thousand shares. Check the capital line whenever the stop is tight.
No. The 1R figure is the planned loss if the position exits exactly at the stop price. Commissions, spreads, fees and any fill worse than the stop are all extra. A price that gaps through the stop can produce a loss well beyond 1R. If you want those costs inside the figure, widen the stop you enter to the price you think is realistic.
It infers direction from the stop. A stop below entry is treated as a long and a stop above entry as a short, and the target must then sit on the other side of the entry. A long with stop 94 and target 90 returns an error instead of a result. What it cannot know is whether the direction it inferred is the one you intended.
Yes, with one extra step. Divide the dollar amount you have in mind by your account equity and enter the result as a percentage. On a $50,000 account, a $300 risk is 0.6%, and with the default 94 stop that sizes the trade at 50 shares. The calculator itself only accepts the percentage, so the conversion has to happen before you type it in.
Start with the numbers already filled in. The account holds $50,000 of equity, the risk setting is 1%, the planned entry is 100, the stop-loss sits at 94 and the target at 118 on the upside. The headline says the position can be 83 shares.
The arithmetic runs in two short steps. First, 1% of $50,000 is $500, which the result labels Dollar Risk at Stop-Loss (1R). Second, the gap between entry and stop is $6 a share. Dividing $500 by $6 gives 83.33, and the calculator rounds down to 83 because you cannot hold a third of a share on most platforms.
Everything else on the result follows from that. Total Position Capital Required is 83 shares times the entry price, so $8,300.00 of the account goes into the trade. The Reward-to-Risk Multiple compares the $18 between entry and target with the $6 between entry and stop, which is 3 R.
Notice what the page does not ask for. It never asks how much you want to spend. The share count falls out of how much you are prepared to lose if the stop is hit, and the capital figure is a consequence, not an input. That reversal is the whole point of sizing by risk rather than by a fixed amount of money per trade.
Two trades on the same account can end up with very different share counts even at the same entry price. What decides it is how far away the stop is.
Move the stop from 94 to 97 on the default and the gap shrinks to $3. The $500 budget now covers twice as many shares, one fewer than double 83 once the rounding is applied, and the capital tied up doubles too. Because the target has not moved, the reward gap is still $18 but the risk gap is half as large, so the multiple jumps from 3 R to 6 R.
Run it the other way and the effect reverses. A wider stop means fewer shares and a smaller position for the same $500 of risk. A very volatile instrument with a wide stop can therefore produce a modest share count on a large account, while a quiet one with a tight stop can produce a large count on a small account.
This is why the calculator asks for the stop as a price rather than as a percentage of the position. It needs the distance in money per share, because that is what multiplies the share count into a loss. If you think of your stop as a percentage below entry, convert it to a price first and type that in.
Account equity is the input that behaves most predictably. Holding the 1% risk, the 100 entry and the 94 stop fixed, the page gives these results:
On $30,000 the dollar risk is $300 and the position is 50 shares, needing $5,000 of capital. On the default $50,000 it is $500 and 83 shares. On $75,000 it is $750 and 125 shares, needing $12,500 of capital. The reward-to-risk multiple stays at 3 R in every case, because it depends only on the three prices.
The share count is close to proportional to equity, but not exactly, because of the rounding. $300 divided by $6 is exactly 50, so nothing is lost. $500 divided by $6 is 83.33, so a third of a share is dropped. On small accounts or expensive instruments that dropped fraction can be a noticeable slice of the intended risk.
A practical note on what to enter: use the equity figure you actually measure risk against. Some people use total account value including open positions, others use only settled cash, and others use the balance at the start of the month. The calculator accepts any of them. It simply multiplies whatever you type by the risk percentage, so the choice is yours and it changes every figure below it.
The share count is always rounded down, never to the nearest whole share. That is deliberate. Rounding 83.33 up to 84 would put the loss at the stop slightly above the $500 budget, and the purpose of the calculation is to stay at or under it.
The consequence is that the real risk at the stop on the default is 83 times $6, which is about two dollars short of the $500 shown. The 1R line reports the budget, not the rounded loss. On a large account with a cheap instrument the gap is trivial. On a small account buying something priced in the hundreds per share it can be a meaningful fraction.
If your platform allows fractional shares, you could in principle hold the full 83.33. The calculator does not offer that, so treat the headline as the whole-share answer and work out the fractional version by hand if you need it: divide the 1R figure by the stop distance and stop there.
The R-multiple is a ratio of two distances. On the default the target is $18 above entry and the stop is $6 below, so a trade that reaches the target would make three times what a trade stopped out would lose. In money, that is roughly three times $500 on the full position.
The ratio says nothing about how likely either outcome is. A 3 R setup where the target is rarely reached can be worse than a 1 R setup where it usually is. The calculator has no input for probability and makes no claim about it.
There is one piece of plain arithmetic that helps put the number in context. If every trade either hits its stop for minus 1 R or its target for plus 3 R, the two cancel out on average when one trade in four reaches the target. The general version is 1 divided by (1 plus R). At 1.67 R the break-even fraction is about 37%, and at 6 R it is about 14%. These are averages over many identical trades with no costs, which real trading never is, so read them as a description of the ratio rather than as a forecast.
Also remember that R is measured from your planned prices. If the fill is worse than the entry you typed, both distances change and the real multiple differs from the one on the page.
The page does not check whether the position it sizes is affordable. It only checks the risk. That gap shows up quickly with tight stops.
Set the stop to 99.5 on the default. The stop distance is now 50 cents, the $500 budget covers a thousand shares, and Total Position Capital Required comes out at twice the $50,000 account. The R-multiple reads 36 R. Nothing on the result flags that the position is larger than the equity it was sized from.
In practice a trade like that could only be placed with borrowed money or a leveraged product, and both bring costs and risks the calculator does not model. Before relying on the share count, compare the capital line with the cash you actually have available. If it is larger, the risk percentage is not the constraint that binds; your buying power is.
A related point is a stop equal to the entry price. A zero distance would mean dividing by zero, so the calculator refuses it and asks for a stop that differs from the entry. It also asks for an account, entry and stop above zero. A stop has to be some real distance from entry for the method to mean anything, and a stop only a few cents away produces the kind of oversized result described above.
The formula takes the absolute difference between entry and stop, and does the same for entry and target. That makes it work for short trades without a separate setting. A short entered at 94 with a stop at 100 and a target at 76 gives the same 83 shares and 3 R as the default long trade, because both distances are the same size. Only the capital line differs, since it is priced at the lower entry.
The calculator also checks direction. If you are long with a stop at 94 and accidentally type a target of 90, which is below entry, the page shows an error rather than a result: the target must sit on the opposite side of the entry from the stop. On a long trade that means above entry, and on a short trade below it.
That check catches a typing slip, but it cannot tell whether the direction you meant is the one you entered. A stop above entry is read as a short. If you meant a long and typed the stop on the wrong side, the page will size a short trade without complaint, so glance at which side of entry each price sits before using the share count.
The $500 on the default is the loss if the position exits exactly at 94. Markets do not promise that. A price can open below the stop after news or a weekend, and a stop order can fill several cents or dollars lower than its trigger in a fast market. In either case the realised loss is larger than 1R and the calculator cannot know by how much.
Commissions, exchange fees, spreads and any financing charges are also left out. On a single trade they may be small next to $500, but they come off every trade, winners and losers alike, so over many trades they pull the realised R below the planned one.
Taxes on gains are outside the model too, as are currency conversion costs if the instrument trades in a different currency from the account. The Display Currency setting only changes the symbol on the result; it does not convert anything.
None of this makes the figure useless. It makes it the planned loss at a planned price, which is a useful number to have written down before a trade. Just do not read it as a guaranteed maximum. If gap risk matters for the instrument, some people size against a wider assumed exit than the stop itself, and the calculator can do that if you enter the worse price as the stop.