XAUUSD Position Size Calculator
Calculate XAU/USD lots from an account risk budget and a gold entry-to-stop price distance, then floor the result to your entered broker lot step so modeled risk is not rounded upward.
Enter account risk, gold prices and broker rules
Use account equity only if that is your declared risk basis. Entry and stop are prices in USD per troy ounce; the engine uses their absolute distance for either a long or short scenario.
Risk-sized XAU/USD volume
Entered XAUUSD Contract Math 1.0.0.
| Calculation step | Entered arithmetic | Derived result |
|---|
How XAUUSD lot size is calculated from risk
Risk budget (USD) = account risk × USD per account-currency unit
Stop distance (USD per oz) = |entry − stop|
Raw ounces = USD risk budget ÷ stop distance
Raw lots = raw ounces ÷ contract size (oz per lot)
Placed lots = floor(raw lots ÷ lot step) × lot step
The calculation starts with money at risk, not leverage or margin. Account balance multiplied by the entered risk percentage produces an account-currency budget. That amount is converted into USD because XAU/USD price changes are expressed as dollars per troy ounce. The absolute distance between entry and stop then states how much one ounce would lose if the stop were executed exactly at the entered price.
Dividing USD risk by the stop distance gives raw troy-ounce exposure. Dividing ounces by the broker contract size gives raw lots. Version 1.0.0 floors that raw lot figure to the entered volume step rather than rounding to nearest. Flooring prevents the modeled stop loss from exceeding the risk budget merely because of volume rounding.
The entered minimum lot is a separate gate. If the floored volume is smaller than the broker minimum, the page displays “Below minimum lot” and sets modeled placed volume to zero. It does not round up to the minimum because doing so could exceed the stated risk budget. You can change the risk plan or skip the trade, but that choice is outside the calculator.
A contract-first gold calculation workflow
Start with the instrument specification, not a remembered shortcut. XAU/USD price is a dollar amount per troy ounce, while lot volume is a broker-defined contract count. Connecting those two units correctly is the foundation for pip value, position size and P/L.
- Confirm whether the account input should be balance, equity or a smaller strategy allocation under your own written risk policy.
- Enter the actual planned entry and stop prices in USD per ounce; do not paste a pip count into a price field.
- Verify contract size, minimum volume and volume step from the live symbol specification for the exact account.
- Inspect raw lots and floored lots together so the impact of broker volume granularity stays visible.
- If the output is below minimum lot, do not silently round upward; reassess the risk plan independently.
- Model gaps, spread, commission and slippage outside this exact-price stop-loss calculation.
Worked example from the audited fixture
How to interpret the result
The 0.06-lot result is a mechanical maximum under the entered assumptions, not a recommendation. A real stop can fill beyond the requested price during a gap or fast market. Spread, slippage, commission and broker stop rules may increase realized loss, so the result needs a separate execution buffer if your plan requires one.
XAU/USD pip value, position size and profit compared
The three calculators share one precious-metals contract engine but answer different questions. Pip value translates a declared increment into money. Position size solves volume from a risk budget and stop distance. Profit translates an entered price path and volume into P/L. Keeping those jobs separate makes every assumption auditable.
| Gold tool | Question answered | Required decision | Primary output | Excluded |
|---|---|---|---|---|
| XAUUSD Pip Calculator | What is this entered pip worth? | Pip convention and lot volume | Money per pip and tick | Suitable risk |
| XAUUSD Position Size Calculator | What volume fits this stop-risk budget? | Risk basis, entry and stop | Floored broker lots | Stop quality and fills |
| XAUUSD Profit Calculator | What is the P/L for this entered price path? | Direction, fills, volume and costs | Gross and net P/L | Future price forecast |
Use the Symbol Specification Checker to organize the broker fields before calculating. Use the Total Trade Cost Calculator when spread, commission and financing need their own line-by-line estimate. Neither page can replace the trading server’s final figures.
Assumptions and limits
- The stop is assumed to execute exactly at the entered price; gaps, slippage and spread-side execution are not modeled.
- No current XAU/USD price, account equity, free margin, leverage or broker trading condition is retrieved.
- Contract size, lot step and minimum lot are user inputs and are not verified against a trading server.
- The calculation does not test margin sufficiency, maximum volume, aggregate portfolio risk or correlated exposures.
- Risk percentage is descriptive input; the page does not label any percentage conservative, professional, safe or optimal.
- The result is not an order, guaranteed loss cap, suitability assessment, trade signal or financial advice.
Where to find the correct XAU/USD inputs
In MetaTrader 5, open Market Watch, choose the exact gold symbol, and review its Specification. Record trade contract size, tick size, tick value, minimum volume, maximum volume and volume step. Symbol suffixes and separate account groups can point to different contract rules even when the chart label still resembles XAUUSD.
MetaTrader exposes contract size, tick size, tick value and volume step as separate symbol properties. That separation is important: display digits do not by themselves define a “pip,” and the tick value shown by the server may reflect account-currency conversion. If a broker document and the live server disagree, pause and ask the broker which specification governs the account.
Also record account currency and the direction of the conversion rate. This model defines the rate as USD per one account-currency unit. For USD, enter 1. For a EUR account where one EUR equals USD 1.25, enter 1.25. Do not enter its reciprocal. Rates move, and a broker may use different conversion sides for a realized gain and loss.
Save the date, broker entity, account type, server, full symbol name and a screenshot of the specification with any material calculation. Those details make the result reproducible after a platform or contract update and are stronger evidence than a universal “gold pip value” table copied from another site.
Frequently asked questions
- Convert account risk into USD, divide by the entry-to-stop USD-per-ounce distance, then divide the resulting ounces by the broker contract size.
- It floors raw volume to the entered broker lot step so the modeled exact-stop loss does not exceed the risk budget merely because of rounding.
- The page withholds placed volume and displays a below-minimum message. It does not round up because that could exceed the entered risk budget.
- No. Enter the planned entry and stop as XAUUSD prices. The calculator derives their absolute USD-per-ounce and entered-pip distance.
- Yes. Position size uses the absolute entry-to-stop distance, so the arithmetic is the same for a correctly placed long or short stop.
- Leverage changes margin requirements, not the exact price-distance loss represented here. Margin sufficiency must be checked separately.
- No. The model assumes the entered stop price executes exactly. Real losses can be larger after spread, slippage, gaps and fees.
- No. It is the volume that fits the entered arithmetic assumptions, not a suitability assessment, safe-lot label or trade recommendation.
Sources and methodology
- MQL5 Reference — Symbol Properties — Official definitions for contract size, tick size, tick value, minimum volume and volume step.
- MetaTrader 5 Help — Executing Trades — Official contract-volume and CFD deal-value arithmetic plus account-currency conversion context.
- FXOpen AU Product Disclosure Statement — Broker primary-source example documenting a 100-unit XAU/USD lot; it is an example, not a universal specification.
- CME Group — Gold Futures Contract Comparison — Primary exchange evidence that gold products can use materially different ounce multipliers.
The operational contract is Entered XAUUSD Contract Math version 1.0.0. Independent arithmetic fixtures cover USD and non-USD accounts, buy and sell signs, losses, cost subtraction, alternate pip/tick conventions, volume flooring and below-minimum withholding. Source links explain methodology; they do not endorse this site or any trading outcome.
Continue the gold risk workflow
Compare XAU/USD contract specifications
Before transferring any result into a live order, compare the exact gold symbol, contract size, tick size, volume step, minimum lot, spread, commission, financing and execution terms available for your account and jurisdiction. Broker conditions can change, so confirm them on the trading server rather than relying on the audited example.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. 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 broker entity.

