Risk warning: trading carries a high risk of loss. Our tools are software: they work only while MetaTrader 5 runs, and they can stop. Risk disclosure
Start free

Home/Learn/How to calculate lot size

How to calculate lot size in forex, gold and indices without blowing your account

Knowing how to calculate lot size is what keeps a 1% risk at 1%. Many traders learn "one pip is $10 per lot" and use it everywhere: at the example rates below, that habit risks a third less than planned on USDJPY and 25% more on EURGBP. Below is the one formula that works on every MT5 symbol, with worked examples you can check line by line.

Key points

  • Lots = risk ÷ (stop distance × contract size × rate into your account currency).
  • "$10 a pip per lot" is only true when the profit is paid in your account currency and the contract is 100,000 units, as on EURUSD with a USD account.
  • Measure the stop from your real entry price, and count spread and commission, or a 1% risk becomes 1.04% or more.
  • Round down to the volume step, then check the minimum lot and your free margin.

How to calculate lot size in forex: the formula

To calculate lot size, divide the money you are willing to lose by what one lot loses at your stop: lots = risk ÷ (stop distance × contract size × exchange rate into your account currency). Round the result down to your broker's volume step and check that it fits the minimum lot.

This is MT5's own profit formula turned around. The MQL5 documentation gives the profit of a forex or CFD trade as price change × contract size × lots, in the symbol's profit currency. Solve that for lots at your stop, and you have your position size.

How to calculate lot size in four steps: risk in money, stop distance, money per lot at the stop, lots rounded down
The four numbers behind every lot size, with a EURUSD example.

The four numbers, and where to find them in MT5

  • Risk in money. A percentage of your account, for example 1% of $10,000 = $100. Decide whether you take it from your balance or your equity; with open trades, the two differ.
  • Stop distance in price. The gap between your entry and your stop loss, as a price: 20 pips on EURUSD is 0.0020. Put the stop where your trade idea is wrong first, then size the lot; never move the stop to fit a lot size.
  • Contract size. Press Ctrl+M for Market Watch, right-click the symbol and choose Specification. A standard forex lot is usually 100,000 units of the first currency, gold is usually 100 ounces, and indices differ by broker.
  • Exchange rate. Only needed when the symbol pays profit in another currency than your account. The Specification window shows the profit currency.

Pip value: why "$10 a pip" is only sometimes true

One pip on 1.00 lot is the pip size times the contract size, in the profit currency. On EURUSD that is 0.0001 × 100,000 = $10, and with a USD account no conversion is needed. Change the pair or the account currency, and the number changes.

Pip value per lot for lot size calculation: EURUSD $10, USDJPY about $6.67, EURGBP about $12.50, gold $10, US30 $1 or $10 per index point
The exchange rates are examples; use today's rates for your own trades.

For yen pairs a pip is 0.01, the second decimal, so one pip on 1.00 lot of USDJPY is ¥1,000. At an example rate of 150.00, that is about $6.67. On EURGBP the profit is paid in pounds: £10 per pip, which is $12.50 if GBPUSD is 1.2500.

Worked examples on a $10,000 account

Every example risks $100 (1%) on a USD account, and rounds down to the 0.01 lot step. You can check each line with a calculator.

SymbolStopMoney per lot at the stopLots
EURUSD20 pips (0.0020)0.0020 × 100,000 = $2000.50
USDJPY at 150.0030 pips (0.30)0.30 × 100,000 = ¥30,000 = $2000.50
EURGBP, GBPUSD at 1.250020 pips (0.0020)0.0020 × 100,000 = £200 = $2500.40
XAUUSD, 100 oz80 pips ($8.00)8.00 × 100 = $8000.12 (0.125)
US30, contract size 1120 index points120 × 1 = $1200.83 (0.833)
US30, contract size 10120 index points120 × 10 = $1,2000.08 (0.083)

Now apply the "$10 a pip" habit to the same trades. On USDJPY it gives 100 ÷ (30 × $10) = 0.33 lot, which really risks $66. On EURGBP it gives 0.50 lot, which really risks $125: a quarter more than planned on every trade.

Gold (XAUUSD)

With the common 100-ounce contract, every $1.00 move is $100 per lot, so an $8.00 stop costs $800 per lot. Traders count gold pips in different ways; we count 0.10 as one pip, so this stop is 80 pips. Our XAUUSD pip value guide and gold lot size calculator cover gold in more depth.

Indices (US30)

Index contract sizes are set by each broker. In November 2026, Tickmill listed a US30 contract size of 1 and Eightcap listed 10, so the same 120-point stop needs 0.83 lot at one and 0.08 lot at the other. Read your own Specification window before your first index trade.

When your account is not in US dollars

Convert the money per lot into your account currency. With a EUR account, EURUSD at an example rate of 1.0800 and a 20-pip stop, one lot loses $200, which is about €185.19. A €100 risk then buys exactly 0.54 lot.

Points, pips and digits

MT5 counts many distances in points, and a point is simply the smallest price step of the symbol. A 5-digit EURUSD and a 3-digit USDJPY both have 10 points in a pip. Gold and indices are where it goes wrong.

Points, pips and digits table for lot size calculation in MT5: EURUSD, USDJPY, XAUUSD with 2 and 3 digits, and US30
Check the Digits field in Specification before you count in points.

On a 2-digit gold quote, 80 pips are 800 points; on a 3-digit quote, the same stop is 8,000 points. On a US30 quote with two decimals, a 120-point stop in trader talk is 12,000 points in MT5. Type the wrong one into a calculator and the lot size is off by ten or a hundred times.

Risk after costs: spread and commission

Spread. MT5 charts of forex and CFD symbols show the Bid, but a buy fills at the Ask. Say EURUSD shows 1.08500 with an Ask of 1.08508, and you put the stop at 1.08300, 20 pips below the chart price. From your real entry it is 20.8 pips away, so the right size is 0.48 lot, and 0.50 lot would lose $104.

Commission. If your broker charges $7.00 per lot for the round trip, one lot at the 20-pip stop loses $200 + $7 = $207. That gives 0.48 lot and a real risk of $99.36. Sized without the commission, 0.50 lot would lose $103.50.

Swap, slippage and gaps can add more, and none of them can be known exactly in advance. That is why careful traders size from the money they can afford to lose, not from the money they hope to lose.

Before you click: minimum lot, volume step and margin

  • Round down, never up. 0.125 lot becomes 0.12, not 0.13: rounding up would risk $104 instead of $100 on the gold example.
  • Minimum and maximum lot. If the size is below your broker's Minimal volume, the trade does not fit your risk; skip it rather than moving the stop. Above the maximum, it must be split into several orders.
  • Volume step. The examples here use a 0.01 step. If your index symbol steps in 0.1, 0.83 lot is not allowed and becomes 0.8.
  • Margin. The size must also fit your free margin. MT5's forex formula is lots × contract size ÷ leverage: 0.50 lot of EURUSD at 1:100 needs €500, about $540 at an Ask of 1.0800.

Position size calculator: by hand, online or on the chart

Doing it by hand once is the best way to understand it. After that, the question is how fast and how safely you can do it on every trade.

MethodHow it worksWatch out for
By handSpecification window, the formula and a calculatorTypos, the wrong pip size, a missed conversion
Online position size calculatorType the account, risk, stop and pairIt may not know your broker's contract size, digits or commission; you still type the lot into MT5
On-chart tool in MT5Drag the stop line; the lot comes from your broker's own symbol dataCheck its settings once, such as risk % and whether the spread is counted

For a swing trade placed once a day, the manual method costs a minute and works well. For intraday trading, the time spent on a calculator is time the price keeps moving, and a typed lot is one more place for a typo.

We built Trade Manager, an MT5 panel with a free version, to do this on the chart. You drag the stop line, and the panel sizes the lot from your risk in % or money, using the contract details MT5 reports for that symbol and converting them to your account currency, then rounds down to the volume step. It can add the spread to the stop distance, and its Costs view shows the risk before and after commission.

Trade Manager's Trade tab in MT5: 1% of a $10,000 balance, a 50-pip gold stop and a lot size of 0.20
Gold, 50-pip stop, 1% of $10,000: the panel shows 0.20 lot and $100 of risk, the same answer as the formula. The Trade tab is the same in the free and PRO versions.

You can get the free version, or read how lot sizing fits into the rest of a trade in our complete guide to MT5 trade management.

Summary

To calculate lot size on any MT5 symbol, divide your risk in money by the stop distance times the contract size, converted into your account currency. Measure the stop from your real entry, include commission, round down to the volume step, and check the minimum lot and your margin. Never copy a lot size or a pip value from one symbol to another.

Questions

How do you calculate lot size in forex?

Divide your risk in money by the stop distance times the contract size, converted into your account currency. With $100 of risk, a 20-pip EURUSD stop and a USD account, that is 100 ÷ (0.0020 × 100,000) = 0.50 lot.

How much is one pip worth on 1.00 lot?

On pairs that pay profit in your account currency with a 100,000 contract, such as EURUSD with a USD account, it is $10. On other pairs it depends on the exchange rate: USDJPY pays ¥1,000 per pip, about $6.67 when USDJPY is 150.00.

How do I calculate lot size for gold (XAUUSD)?

With the common 100-ounce contract, every $1.00 move is $100 per lot. Divide your risk by the stop in dollars times 100: $100 of risk with an $8.00 stop is 0.125, rounded down to 0.12 lot.

How do I calculate lot size for US30?

Find the contract size in your broker's Specification window, because it differs between brokers. With a contract size of 1, a 120-point stop costs $120 per lot; with 10, it costs $1,200.

Should I round my lot size up or down?

Always down, to your broker's volume step. Rounding up puts more than your planned risk on the trade, every single time.

Sources

Risk note

This guide is education, not financial advice. Trading forex, gold and indices with leverage carries a high risk of losing money. Exchange rates and contract sizes here are examples; your broker's figures and fills may differ, and a stop can fill worse than its price in fast markets.