LotCalc guide · Position sizing

How to calculate lot size in MT5

Position sizing answers a specific question: what trade volume corresponds to your chosen risk amount and stop-loss distance? In MetaTrader 5, volume is entered in lots. A lot size calculator helps translate those inputs into a volume you can review before placing an order.

The lot size formula

Start by converting the risk percentage into an amount in your account currency:

Risk amount = account balance × (risk percentage / 100)

Lot size = risk amount / (stop-loss pips × pip value per 1 lot)

The pip value must be expressed in your account currency for one full lot of the selected symbol. It is not the same for every instrument or account. This formula is a useful forex example; do not apply a fixed $10 pip value to every MT5 symbol.

Example: EUR/USD on a USD account

Assume a $10,000 account, a chosen risk of 1%, a 25-pip stop loss and a EUR/USD contract size of 100,000 units per lot. At $10 per pip for one lot, the calculation is:

  • Risk amount: $10,000 × 0.01 = $100.
  • Loss at the stop for one lot: 25 × $10 = $250.
  • Position size: $100 / $250 = 0.40 lots.

This is an illustrative calculation, not a recommended risk level. It excludes commissions, swap and execution differences. A stop-loss order does not guarantee execution at its requested price, so the eventual loss can differ from the estimate.

Pips and points in MetaTrader 5

Check the units before entering a stop distance. On a typical five-decimal EUR/USD quote, a point is 0.00001 and a pip is 0.0001: a 25-pip distance is 250 points. Symbol quoting conventions vary. Confusing pips with points can change the result by a factor of ten.

What changes for gold, indices and other symbols?

For XAU/USD, indices and other contracts, inspect the symbol specification in your broker's MT5 terminal. Contract size, tick size, tick value and currency conversion affect the estimated loss. A forex pip shortcut may not describe that contract.

MetaQuotes documents OrderCalcProfit as a way for MQL5 programs to estimate a trade's result in the account currency using its symbol, volume and opening and closing prices. This is a platform capability; check the calculation method and supported symbols of any calculator you use.

Check the calculated volume before placing an order

  • Confirm the account currency, symbol and stop-loss units.
  • Check the broker's minimum lot, maximum lot and volume step. A result of 0.403 lots may need rounding down to 0.40 when the step is 0.01.
  • If the calculated size falls below the minimum, using the minimum lot can exceed the chosen risk budget.
  • Check available margin separately. Risk-based position sizing and margin requirements answer different questions.
  • Review spread, commission and possible slippage when evaluating the total exposure.

The MetaQuotes volume specification reference explains the minimum, maximum and step constraints used by MT5 symbols.

Put the numbers into practice with the free online lot size calculator. Enter your entry price, stop-loss price and risk. No signup required.

Calculate position size inside MetaTrader 5

LotCalc brings lot size calculation into your desktop MT5 workflow on Windows and macOS. Review the inputs and calculated size before placing an order.

Download LotCalc from your account with trial or paid access. See the current plans for details.

View LotCalc plans