ForexGoldEA Get the EA
Position sizing

How to Calculate Lot Size for XAUUSD

Guide by ForexGoldEA · July 20, 2026 · about 7 min read
Calculator and gold price chart — how to calculate lot size for XAUUSD

Getting the lot size right is the difference between a controlled loss and a painful one. The calculation itself takes about ten seconds once you know the formula — the hard part is knowing what the numbers on a gold chart actually represent. This guide walks through the exact math, with worked examples you can copy.

The formula

Every position-size calculation answers the same question: how many lots can I trade so that, if my stop-loss is hit, I lose exactly the amount I decided to risk? On XAUUSD it looks like this:

Lot size = Risk ($) ÷ (Stop distance ($) × 100) 100 = ounces per standard lot

That "100" is the only gold-specific part, and it comes from the contract itself: one standard lot of XAU/USD is 100 ounces. Everything else is the same position-sizing logic you would use on any market.

What a lot actually means on gold

Before using the formula, it helps to have an intuitive feel for the sizes:

Lot sizeOuncesP/L per $1 move in gold
1.00 (standard)100 oz$100
0.10 (mini)10 oz$10
0.01 (micro)1 oz$1

The shortcut worth memorising: at 0.01 lots, a $1 move in gold is roughly $1 of profit or loss. Scale from there — 0.05 lots means a $1 move is about $5.

Step by step

  1. Decide your risk in dollars. Take a percentage of your balance — commonly 1–2%. On a $1,000 account, 1% is $10.
  2. Measure your stop-loss in dollars. Not pips, not points — the actual price distance. If you enter at $2,400.00 and your stop is at $2,395.00, the distance is $5.00.
  3. Apply the formula. Risk ÷ (stop × 100).
  4. Round down to the nearest size your broker allows, usually 0.01.

Worked examples

AccountRiskStop distanceCalculationLot size
$5002% = $10$5.0010 ÷ (5 × 100) = 0.020.02
$1,0001% = $10$8.0010 ÷ (8 × 100) = 0.01250.01 (rounded down)
$2,0002% = $40$10.0040 ÷ (10 × 100) = 0.040.04

Check the first one to see why it works: 0.02 lots is 2 ounces. If gold moves $5 against you, that is 2 × $5 = $10 — exactly the risk you set. The formula is simply that sentence rearranged.

Prefer to skip the arithmetic? Our gold lot size calculator does the same calculation instantly — enter your balance, risk percentage and stop distance, and it returns the size.

Pips, points and dollars — the part that trips people up

Most confusion on gold comes from mixing units. Brokers do not all quote XAUUSD the same way:

The formula needs the distance in dollars, so convert first. If you are unsure which convention your broker uses, open a chart, note the price, and move your cursor one tick — the smallest increment tells you immediately. Our gold pip calculator converts between pips, points and dollar value for any lot size.

Broker differences to check

The formula is stable; the inputs are not always. Before trusting a number, confirm these in your platform's contract specification for XAUUSD:

Common mistakes

How this works inside an EA

If your expert advisor has a risk-percent setting, it is running this exact calculation on every trade — reading the current balance, measuring the stop distance the strategy has chosen, and sizing accordingly. That is why risk-percent sizing adapts as the account grows or shrinks, while a fixed-lot setting does not.

It is worth checking which mode your EA uses. A fixed 0.10 lot that felt reasonable on a $5,000 account becomes reckless on $800 after a drawdown, and no amount of good strategy logic will save an account that is sized wrong. For how this fits alongside daily loss limits and drawdown ceilings, see our guide on how much money you need to run a gold EA.

Want the calculation done for you?

Use our free gold lot size calculator, or get ForexGoldEA and set risk as a percentage — the EA sizes every trade automatically.

Open the Lot Size Calculator Talk to us on Telegram →

Frequently asked questions

What is the lot size formula for XAUUSD?

Risk in dollars ÷ (stop-loss distance in dollars × 100). The 100 is the contract size, since one standard lot is 100 ounces of gold.

How much is 0.01 lot in gold?

0.01 lots is 1 ounce, so a $1 move in the gold price is roughly $1 of profit or loss. It is the smallest size most brokers allow.

How do I convert a stop in pips to dollars?

On most brokers 1 pip on XAUUSD is a $0.10 move, so 50 pips is $5.00. If your broker quotes points, 1 point is $0.01 and 500 points is the same $5.00.

Should I round up or down?

Always down. 0.0125 becomes 0.01. Rounding up means risking more than you planned.

Does the formula change between brokers?

The formula stays the same, but check the contract size — 100 ounces per lot is standard, not guaranteed, and cent accounts scale differently.

Does leverage change my lot size?

No. Leverage affects the margin required to hold the position, not the loss if your stop is hit.

Does an EA calculate this automatically?

If it has a risk-percent setting, yes — it applies this calculation on every trade. A fixed-lot setting does not adapt.

Risk disclosure: Trading foreign exchange and CFDs on margin, including gold (XAU/USD), carries a high level of risk and may not be suitable for every investor. You can lose some or all of your capital. Figures in this article are illustrative examples using a 100-ounce standard contract — always confirm the contract specification with your own broker. Correct position sizing controls the size of a loss; it does not prevent losses. ForexGoldEA is a trading tool, not financial advice.