MT5 Position Size Calculator: How to Calculate Lot Size by Risk
MT5 does not calculate position size for you. The order window asks for a lot size; it never asks how much you are willing to lose. The calculation below is the whole method — one formula, two worked examples, and the mistakes that break it.
The formula
Position size (lots) = risk money ÷ loss per lot if the stop is hit
Three inputs, in order:
- Risk money. Decide it first, as a percentage of the account. The standard is 1%: on a $10,000 account, $100 per trade.
- Stop distance. Entry to stop, in price. This comes from the market — volatility (ATR) or structure — not from the size you want.
- Loss per lot. What one lot loses over that distance. This is a property of the symbol: on most brokers one lot of gold is 100 oz, so $1 of gold is $100 per lot; one lot of EURUSD is 100,000 units, so 1 pip is $10 per lot. Contract sizes vary between brokers — check the symbol specification in MT5 (right-click the symbol in Market Watch → Specification) before you trust the numbers.
Divide (1) by (3) and round down to a lot step your broker accepts — never up. Add the round-turn commission per lot to the loss per lot before dividing; commission makes the lot smaller, not the loss bigger.
Worked example 1: gold (XAUUSD)
- Account: $10,000. Risk rule: 1% → $100 per trade.
- Entry 4050, stop 4040 → stop distance $10.
- One lot of gold = 100 oz, so $1 = $100 per lot → $10 distance loses $1,000 per lot.
- Size = $100 ÷ $1,000 = 0.10 lots.
Same account, wider stop: with ATR at $15, a 2×ATR stop is $30 away, losing $3,000 per lot — so the same $100 of risk means 0.03 lots. The risk never changed; the size adapted to the stop. That is the entire point.
Worked example 2: EURUSD
- Account: $10,000. Risk rule: 1% → $100 per trade.
- Entry 1.0850, stop 1.0830 → stop distance 20 pips.
- One lot of EURUSD: 1 pip = $10 → 20 pips loses $200 per lot.
- Size = $100 ÷ $200 = 0.50 lots.
Note the contrast: the same $100 of risk is 0.10 lots on gold with a $10 stop and 0.50 lots on EURUSD with a 20-pip stop. A fixed lot size across symbols is not risk management — the risk per trade would swing wildly.
The mistakes
- Sizing first, stop second. Picking 0.50 lots and then placing the stop wherever it fits inverts the formula. The stop belongs to the market; the size follows.
- Forgetting commission and spread. Both come out of the same risk budget. Include commission per lot in the loss per lot; check the spread before entry.
- Rounding up. Rounding 0.13 lots up to 0.15 breaks the risk limit. Always round down.
- One lot size for every symbol. A pip on EURUSD and a dollar on gold are not the same money. Size per symbol, per stop.
- Doing it by hand, every time, under pressure. The formula is simple; doing it live before every entry is where it falls apart. That is a tooling problem, not a knowledge problem.
Doing it live on MT5
Stopwise PRO (MT5) runs the calculation on the chart: it shows live dollar risk and account share from your stop distance and can size the lot automatically at 1% risk, with spread alerts before entry. It also carries the rest of the risk stack — ATR trailing stops, break-even and partial take-profits, hidden stops backed by a broker-side disaster stop, and a daily red-line kill switch with a total lot cap. One chart manages every symbol in the account, hedging and netting included. Plans start at $19/month, with a free trial to verify it on a demo account first.
Frequently asked questions
How do you calculate lot size in MT5?
Position size = risk money divided by the loss one lot would take if the stop is hit. First decide the risk (for example 1% of the account), then measure the entry-to-stop distance, work out what one lot loses over that distance, and divide. Add the round-turn commission per lot to the loss per lot before dividing, and round the result down to a lot step the broker accepts.
What is 1% risk on a $10,000 account?
1% of $10,000 is $100 per trade. That is the maximum the trade should lose if the stop is hit — not the position size. The lot size follows from the stop distance: a $10 stop on gold loses $1,000 per lot, so $100 of risk means 0.10 lots.
How much is 1 lot of gold (XAUUSD) per $1 move?
On most brokers one standard lot of XAUUSD is 100 ounces (check the symbol specification), so a $1 move in gold is worth $100 per lot. A $10 stop distance therefore risks $1,000 per lot, and a $30 stop (for example 2 x ATR of $15) risks $3,000 per lot.
Does MT5 calculate position size automatically?
No. The MT5 order window takes a lot size you type; it does not derive it from your risk or your stop distance. Traders either calculate it by hand before every entry or use a panel: Stopwise PRO (MT5) shows live dollar risk and account share from the stop distance and can size the lot automatically at 1% risk.
Risk warning: trading on margin — including forex, precious metals, CFDs and cryptocurrencies — carries a high level of risk and may result in losses exceeding your deposit. Stopwise PRO (MT5) is risk-management software. It does not provide investment advice, does not promise any return, and cannot guarantee that stops execute at the set price during gaps, disconnections, thin liquidity or broker rejections. Verify every feature on a demo account first. See the full risk disclosure.