XAUUSD Position Size Calculator
Calculate XAU/USD lot volume from an entered account-risk budget and direction-aware entry-to-stop distance. Contract ounces, pip convention, broker tick, lot step, minimum, maximum and account conversion remain explicit.
Enter the risk plan and gold symbol rules
Use a declared balance, equity or strategy allocation as the risk basis. Prices are USD per troy ounce.
Risk-fit gold volume reconciliation
XAU/USD Position Size 2.0.0.
Stop-distance sensitivity
Five distances around the entered stop show how volume changes when every other assumption stays fixed.
On smaller screens, scroll this table horizontally; the page itself remains contained.
| Distance factor | Stop price | Distance | Selected pips | Raw lots | Placed lots | Modeled risk | Status |
|---|
How XAUUSD position size is calculated
Risk budget in USD = account risk × USD per account-currency unit
Stop distance = |entry − stop| in USD per oz
Raw ounces = USD risk budget ÷ stop distance
Raw lots = raw ounces ÷ contract ounces per lot
Placed lots = floor(raw lots ÷ lot step) × lot step
The engine floors volume so rounding cannot push the modeled exact-stop loss above the entered risk budget. It withholds volume instead of rounding up when the stepped result is below the broker minimum, then applies the entered per-deal maximum if needed.
Worked example from the audited fixture
A USD 10,000 risk basis at 1% creates a USD 100 budget. A buy entry at 2,650 and stop at 2,635 are USD 15 per ounce apart. Dividing USD 100 by USD 15 gives 6.6667 oz; dividing by a 100-oz contract gives 0.066667 raw lot.
Flooring to a 0.01 step returns 0.06 lot, or 6 oz. The modeled exact-stop risk is USD 90, equal to 0.90% of the risk basis, leaving USD 10 unallocated. This is deterministic arithmetic, not a suitable-position claim.
Use and limitations
- Declare whether the risk basis is balance, equity or a smaller strategy allocation.
- Verify contract size, tick size and volume rules for the exact symbol and account.
- Use the planned direction, entry and stop; do not paste a pip count into a price field.
- The account conversion is manually entered and not timestamped.
- Margin, leverage, liquidation, portfolio heat and correlated exposure require separate checks.
- The result is not an order, loss guarantee, safe-lot label, recommendation or financial advice.
Frequently asked questions
- Convert the entered account-risk budget into USD, divide by the entry-to-stop USD-per-ounce distance, then divide the resulting ounces by contract ounces per lot.
- It floors raw volume to the entered broker lot step so volume rounding alone cannot make the modeled exact-stop loss exceed the risk budget.
- The page withholds placed volume. It does not round up to the broker minimum because that could exceed the entered risk budget.
- No. Enter the planned entry and stop as USD-per-ounce prices. The page derives distance in USD, the selected pip convention and broker ticks.
- Yes. A buy requires a stop below entry and a sell requires a stop above entry. After that direction check, sizing uses the absolute price distance.
- Not in this exact price-distance calculation. Leverage changes margin and liquidation conditions, which must be checked separately with broker-specific rules.
- No. The stop is assumed to execute exactly at the entered price. Realized loss can be larger after spread, slippage, gaps, fees or partial execution.
- No. It is the volume that fits entered arithmetic and broker constraints. The page does not assess suitability, stop quality, market conditions or total portfolio risk.
Sources and methodology
- MQL5 Reference — OrderCalcProfit — official pre-evaluation interface using order type, symbol, volume, open price and close price.
- MQL5 Reference — Symbol Properties — defines contract size, tick size, minimum volume, maximum volume and volume step as separate properties.
Version 2.0.0 performs deterministic entered-data arithmetic locally. It does not call a trading server or claim its example values match a broker symbol.
Continue gold trade planning
Compare Top Forex Brokers
Risk-fit arithmetic does not establish execution quality or suitability. Verify the current entity, account, symbol, contract, volume, stop, margin, spread and commission terms available in your jurisdiction.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. Position-size arithmetic does not guarantee a stop fill or limit realized loss. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and entity.

