Position size calculator
How many lots to open so that the stop-loss costs exactly the risk you chose — any forex pair, gold, index, oil or crypto, any account currency, with lot rules of a live broker terminal.
XAUUSD now: 3737.86 / 3738.01 (bid / ask, IC Markets, November 18, 2026 at 06:53 PM UTC). 1 pip = 0.01. Profit currency: USD.
- Risk you set
- 100.00 USD
- Actual risk after rounding
- 84.44 USD (0.84%)
- Pip value for this size
- 0.04 USD
- Margin at 1:100
- 149.52 USD
- Distance to stop
- 2,111.0 · 21.11
Build the entry conditions without code and see how 1% risk per trade would have behaved on XAUUSD history: the result in R, losing streaks, drawdown.
Run a backtest XAUUSDPosition size by instrument
How it is calculated
Lots = risk in your account currency ÷ loss of one lot at the stop. The loss of one lot is the distance to the stop × contract size, converted from the instrument's profit currency into your account currency at the latest quote. The stop can be set by entry and stop price, in pips or as a percentage of the price.
The size is rounded DOWN to the broker's lot step, so the trade never risks more than you set, and kept within the broker's minimum and maximum lot. If even the minimum lot risks more, the calculator says so and shows the actual risk.
Contract sizes, lot steps and quotes come from a live trading terminal and are refreshed daily; the date of the snapshot is on the page. If your broker's contract differs (some brokers trade gold in 10-ounce lots), change the contract size field.
Questions
Should risk be a share of the starting or the current balance?
With a share of the current balance the lot shrinks after losses and grows after wins, so a losing streak costs less and a winning one compounds. With a fixed amount from the starting balance every trade risks the same dollars. Our backtests show both; the calculator takes the balance you enter.
Why does the result differ from another calculator?
Usually because of the pip value. For a pair quoted in another currency the dollar value of a pip moves with the exchange rate, and a calculator with a fixed table is off by that amount. Here it is converted at the latest quotes of a live terminal, with the date on the page.
What if the stop is very small?
The lot gets large and is capped at the broker's maximum. A very tight stop also makes the spread and commission a large share of the risk; check it with the trade cost calculator.
Put this calculator on your site
Free, no registration. Copy the code into your page:
<iframe src="https://1ntest.com/en/embed/position-size" width="100%" height="760" style="border:0;max-width:960px" loading="lazy" title="1nTest"></iframe>
For education. The figures are measured for one commission-charging broker at the reference date and are not a quote; your broker's conditions may differ.
← All calculators