Back to contents

Free tool · MT5 / forex

Lot size calculator: position size from your risk

Lot size = risk money ÷ (stop distance × contract size × value of 1 unit of the quote currency in your account currency), rounded down to the broker’s lot step. Example: risking 1% of a 10000 USD account (100 USD) with a 20-pip stop on EURUSD (1.08500 → 1.08300) gives 0.50 lot.

Calculate your lot size

Pick the symbol and the account currency, enter balance, risk, entry and stop loss: the lot updates as you type. Everything is calculated in your browser; nothing is sent anywhere.

Trade

Balance or equity, in USD.

Risk as

The prices filled in for each symbol are examples: replace them with your own entry and SL. Both “,” and “.” work as the decimal separator.

Broker settings: contract size, spread, commission, lot step

Filled in with typical MT5 values for the symbol. Your broker’s exact values are in Market Watch → right-click the symbol → Specification.

Quote → account rate

Profit of EURUSD is already in USD: the rate is 1.

EURUSD 100000, XAUUSD usually 100, indices 1 to 100 depending on the broker.

0.00001 on a 5-digit EURUSD, 0.001 on USDJPY, 0.01 on gold.

1 point = 0.00001 in price. Added to the stop distance.

Open plus close. Added to the loss per lot.

Leave empty for no cap.

Result

Lot size0.50lot

Rounded down to the lot step, so the actual risk is never above the target.

Lot size: 0.50 lot. Rounded down to the lot step, so the actual risk is never above the target.
Risk target
100.00 USD
Actual risk after rounding
100.00 USD · 1% of balance
Stop distance incl. spread
0.00200 · 200 points
Loss of 1.00 lot at the stop
200.00 USD
Lots before rounding
0.5

How to calculate lot size from risk

Divide the money you are ready to lose by what 1.00 lot loses if the stop is hit. The loss of 1.00 lot is the stop distance in price times the contract size, converted into your account currency.

Formula

Lots = Risk money ÷ (Stop distance × Contract size × Quote→account rate)

Loss per 1.00 lot = (Stop distance + Spread) × Contract size × Quote→account rate + Commission per lot

Risk money
A percent of the balance or a fixed amount, in the account currency.
Stop distance
The gap between entry and stop loss in price; the same for a BUY and a SELL.
Contract size
Units of the asset in 1.00 lot: 100000 for forex pairs, usually 100 oz for gold; indices and crypto differ between brokers.
Quote→account rate
Profit is counted in the quote currency (USD for EURUSD, JPY for USDJPY). If that is your account currency the rate is 1; if your account is in the base currency it is 1 ÷ price; otherwise use the current rate between the two.

Spread and commission make every losing trade a little bigger, so the calculator adds the spread to the stop distance and the round-turn commission to the loss per lot. The lot comes out slightly smaller, and the loss at the stop still fits the target.

Brokers accept volumes only from a minimum lot and in steps (often 0.01 lot). The calculator rounds the raw result down to the step, never up, so the actual risk is at or slightly below the target. If even the minimum lot risks more than the target, it says so instead of rounding up.

Lot size examples: EURUSD, gold, USDJPY, US500

Four trades on a 10000 USD account, calculated by the same code as the calculator above. Prices are illustrative.

Lot size for four example trades on a USD account
SymbolBalanceRiskEntry → stopLoss per 1.00 lotLot sizeActual risk
EURUSD10000 USD1% = 100 USD1.08500 → 1.08300200 USD0.50100 USD
XAUUSD10000 USD1% = 100 USD2400.00 → 2392.00800 USD0.1296 USD
USDJPY10000 USD0.5% = 50 USD150.000 → 149.500334.45 USD0.1446.82 USD
US50010000 USD100 USD5800.00 → 5780.0020 USD5.0100 USD
  • EURUSD: a stop of 0.00200 (20 pips) on 1.00 lot of 100000 EUR loses 200 USD; 100 USD ÷ 200 USD = 0.50 lot.
  • XAUUSD: 1.00 lot is 100 oz, so a stop of 8.00 loses 800 USD per lot; 100 USD ÷ 800 USD = 0.125, rounded down to 0.12 lot, so the actual risk is 96 USD, a little under the target.
  • USDJPY: profit is in JPY, so the loss is converted at the lower of the entry and stop prices, the conservative side: 1 JPY = 1 ÷ 149.500 = 0.006689 USD; a stop of 0.500 costs 334.45 USD per lot, and 50 USD gives 0.14 lot.
  • US500: with a contract size of 1 per lot, a stop of 20.00 costs 20 USD per lot, so 100 USD gives 5.0 lots. Many brokers use a different contract size for indices; with 10 per lot the same risk is ten times fewer lots, so check the Specification first.

Where to find contract size, tick value and lot step in MT5

Every number the calculator needs is in the symbol’s Specification in MetaTrader 5: Market Watch → right-click the symbol → Specification.

  1. Open Market Watch: View → Market Watch, or Ctrl+M.
  2. Right-click the symbol and choose Specification.
  3. Contract size: units in 1.00 lot. Enter it under Broker settings in the calculator.
  4. Tick size and Tick value: one price step and what it is worth for 1.00 lot in the account currency. Tick value ÷ Tick size × stop distance is the loss per lot, a cross-check for the calculator.
  5. Minimal volume, Maximal volume and Volume step: the smallest lot, the largest single order and the increment the broker accepts.
  6. Profit currency: if it differs from your account currency, the calculator needs the rate between them.
  7. Your account currency is shown next to Balance in the Toolbox (Ctrl+T) → Trade tab.

Values differ between brokers and account types (standard, raw, cent), most of all for indices, metals and crypto. Check them once for each symbol at your broker.

How much to risk per trade

There is no single right number: it depends on your strategy, how many losing trades in a row it can produce and how deep a drawdown you can sit through. Many traders cap the risk of one trade at a fixed share of the balance; 0.5–2% is the range quoted most often.

Prop firm accounts add hard limits: a maximum daily loss and a maximum overall drawdown. A trade sized from risk keeps a normal losing streak inside both only if the risk per trade is small compared with those limits.

Risking a percent makes the lot smaller after losses and bigger after wins; a fixed amount keeps it the same. The calculator works with both.

This is general education, not financial advice. The calculator does not know your strategy, your broker’s execution or slippage.

Size and manage the trade automatically in MetaTrader 5

Magic Entry does this calculation inside MT5: you set the risk in % or money, place entry and stop on the chart, and it opens the lot that fits, with spread, commission and the broker’s lot step included.

  • Lot from % of balance or a money amount, spread and commission included
  • One-click entry: MARKET with the DEFAULTS scheme on, LIMIT in two; without it two and three clicks, with SL and TP placed on the chart
  • DEFAULTS scheme: take profit, partial takes (PTT) and break-even set on every new trade at once
  • Partial take profits PT-1…PT-n
  • Break-even (BE): trigger and stop move level
  • Trailing stop and trailing take profit
  • PNL GUARD: drawdown protection, including a daily limit

Magic Entry is a trade manager (Expert Advisor) for MetaTrader 5, sold on MQL5 Market. It is not a trading bot: it never opens trades on its own. HINN doesn’t sell guaranteed profit.

Questions and answers about Magic Entry

Lot size: questions and answers

What is the difference between a pip and a point?

On 5-digit forex quotes 1 pip = 10 points: on EURUSD a pip is 0.0001 and a point is 0.00001; on USDJPY a pip is 0.01 and a point is 0.001. MetaTrader 5 counts stops and spreads in points, which is why the spread field is in points. The formula works with the price distance, so pips or points never change the lot.

What if my account currency is not the quote currency?

Profit and loss of a symbol accrue in its quote (profit) currency, so the loss per lot has to be converted. If your account is in the base currency (USDJPY on a USD account) the rate is 1 ÷ price and the calculator derives it from the lower of the entry and stop prices, so the real risk stays at or below the target. Otherwise (EURJPY or GER40 on a USD account) enter the value of 1 unit of the quote currency in your account currency, for example 1 ÷ USDJPY for JPY.

Does it work for gold, indices and crypto?

Yes: the formula is the same, only the contract size changes. XAUUSD is usually 100 oz per lot and XAGUSD 5000 oz; indices and crypto differ most between brokers (1, 10 or 100 units per lot are all common). Check Contract size in the symbol’s Specification and enter it under Broker settings.

Why is the actual risk lower than my target?

Brokers accept volumes only in steps, usually 0.01 lot. The calculator rounds down to the step, so the risk never exceeds the target; the difference is the part of a step that did not fit. If even the minimum lot risks more than the target, the calculator says so instead of rounding up.

Does the calculation include spread and commission?

Yes, when you enter them under Broker settings. The spread is added to the stop distance, and the round-turn commission per 1.00 lot is added to the loss per lot; both make the lot a little smaller. Slippage is not included: in a fast market the stop can fill at a worse price.

Should I risk a percent of the balance or a fixed amount?

A percent scales the lot with the account: smaller after losses, bigger after wins. A fixed amount keeps every trade the same in money, which suits fixed daily limits. The formula is the same; only the risk money differs. Which one fits is your decision, not the calculator’s.

Is this the same calculation Magic Entry does?

In principle, yes: Magic Entry sizes the position from risk in % or money, includes spread and commission, and rounds to the broker’s minimum lot and lot step. Inside MT5 it reads the symbol’s specification and rates from the terminal, so nothing has to be typed by hand.

General education, not financial advice. Prices in the examples are illustrative. HINN doesn’t sell guaranteed profit.

Trade management guides