What position size actually means
Position size is how big a trade is: how many lots, shares, coins or contracts you buy or sell. It is the one part of a trade you fully control. You can't control where price goes, but you can decide, before you click, exactly how much a losing trade will cost.
That is the whole idea. You don't choose a size because it feels right, or because it's what you traded last time. You choose the loss first, and the size falls out of the maths.
The formula
Position size = money at risk ÷ (stop distance × value of one unit of that distance)
Money at risk is usually a percentage of your account. Stop distance is the gap between your entry and your stop-loss, measured in pips, ticks, points or price. The last part is what that distance costs on one lot, one share or one contract, converted into your account currency. Then you round down to a size your broker accepts, so the real risk never ends up higher than the number you picked.
A wider stop means a smaller position for the same risk. A tighter stop allows a bigger one. Where the stop goes should come from the chart (structure, or a volatility measure like ATR), not from the size you were hoping to trade.
Worked examples
These are hypothetical trades with made-up numbers, to show the maths. They are not trade ideas or results.
Hypothetical example 1: EURUSD on a $10,000 account
You risk 1%, so $100. Entry 1.0850, stop 1.0820: a 30 pip stop. On a USD account one standard lot of EURUSD is worth $10 per pip, so the stop costs $300 per lot. $100 ÷ $300 = 0.333 lots, which rounds down to 0.33 lots (33,000 units). If the stop is hit, the loss is $99.
Hypothetical example 2: USDJPY short on a $5,000 account
1% risk is $50. Entry 150.00, stop 150.40: 40 pips, because JPY pairs use 0.01 as the pip. Here the pip is worth yen, not dollars: 1,000 yen per standard lot, which at 150 is about $6.67. The stop costs about $266.67 per lot, so $50 buys 0.1875 lots, rounded down to 0.18 lots and a $48 loss at the stop.
Hypothetical example 3: gold (XAUUSD) on a $20,000 account
Risk 0.5%, so $100. Entry 4,000.00, stop 3,992.00: an $8 move. One lot is 100 ounces, so $8 costs $800 per lot. $100 ÷ $800 = 0.125, rounded down to 0.12 lots, a $96 loss at the stop.
Hypothetical example 4: micro futures on a $25,000 account
Risk 1%, so $250, with a 10 point stop. On MES, each 0.25 tick is $1.25, which makes a point $5 and the stop $50 per contract: 5 contracts. The same stop on the full-size ES is $500 per contract, so even one contract would be double the risk. The calculator shows 0 and tells you why. This is exactly the situation the micro contracts exist for.
Hypothetical example 5: a stock on a $10,000 account
$100 of risk, entry $50.00, stop $48.50. Each share loses $1.50 at the stop, so $100 ÷ $1.50 = 66.67, rounded down to 66 shares ($3,300 of stock, $99 at risk).
How much to risk per trade
Nobody can give you a correct percentage, but the reasoning is simple. Losing streaks happen to every approach. At 1% per trade, ten losses in a row costs a little under 10% of the account. At 5% per trade, the same streak costs about 40%, and you then need a far bigger gain just to get back to where you started. Many traders settle somewhere around 0.5% to 2%. Whatever you pick, keep it the same from trade to trade, so one bad day can't undo a month. Our guide to risk management in trading goes further, and this piece on win rate explains why the size of wins and losses matters as much as how often you win.
R targets
"R" is the amount you risk. A 2R target is a take-profit twice as far from entry as the stop. The calculator lists the 1R, 2R and 3R prices for your trade, so you can check whether a target makes sense before you take the trade. It doesn't mean price will get there; it just shows the reward-to-risk of each level. For when to take profit, see trade exit strategies.
A few things the number can't see
The calculator sizes the trade from the stop you give it. Spreads, commissions and swaps add cost. A fast market can fill your stop worse than its price, and markets can gap over a stop entirely, over a weekend or on news. Brokers also differ on contract sizes, especially for gold, indices and crypto CFDs, so check your broker's spec sheet and edit the values here if they differ.