USD Account on a Direct Quote Pair
- Account Balance: $10,000 USD
- Risk per Trade: 1.0% ($100.00)
- Stop Loss: 25 pips
- Pip Value (1.00 lot): 0.0001 × 100,000 = $10.00
A forex lot size calculator determines your optimal trade volume from account equity, risk tolerance, and stop-loss distance. Using the formula Lots = (Account Balance × Risk %) / (Stop Loss Pips × Pip Value per Standard Lot), traders size MT4 and MT5 positions consistently across currency pairs and XAU/USD without overexposing capital.
Pip: 0.0001 • Lot: 100,000 units
No FX conversion required (rate = 1.0000). Pip Value / Lot = Pip Size × Contract Size.
Contract sizes and typical pip values across MetaTrader order volumes
| Lot Tier | MT4/MT5 Volume | Contract Size | Approx. Pip Value (USD) | Typical Use Case |
|---|---|---|---|---|
| Standard Lot | 1.00 | 100,000 currency units | $10.00 / pip | Larger accounts ($10,000+) & institutional scaling |
| Mini Lot | 0.10 | 10,000 currency units | $1.00 / pip | Mid-sized accounts ($1,000–$10,000) & swing trading |
| Micro Lot | 0.01 | 1,000 currency units | $0.10 / pip | Small live accounts, granular EA scaling & prop challenges |
| Nano Lot | 0.001 | 100 currency units | $0.01 / pip | Cent / nano accounts (100 cents = $1) & micro-grid testing |
| XAU/USD Standard | 1.00 | 100 troy oz (Gold) | $1.00 / 0.01 pip | Metals trading ($100 per $1.00 move in spot gold) |
Manual traders calculate lot sizes before clicking Buy or Sell, while MetaTrader Expert Advisors (EAs) automate position sizing programmatically on every signal. Rather than using hard-coded fixed lots—which drift out of proportion as account equity grows or when trading volatile crosses—well-engineered EAs query live broker contract specifications right before order placement.
In MQL5, the most reliable method is OrderCalcProfit(), which computes the exact loss in account currency for 1.00 lot between the proposed entry and stop-loss price while accounting for broker exchange rates and contract multipliers. In MQL4 and tick-based MQL5 routines, EAs divide the monetary risk amount by stopLossTicks × SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE), then normalize the raw volume to SYMBOL_VOLUME_STEP (typically 0.01) and clamp it within SYMBOL_VOLUME_MIN and SYMBOL_VOLUME_MAX. This is essential for passing prop firm daily drawdown rules without accidental oversizing.
Position Size (Lots) = (Account Balance × Risk %) / (Stop Loss in Pips × Pip Value per Standard Lot). For example, risking 1% of a $10,000 balance ($100) with a 25-pip stop loss on EUR/USD ($10 per pip) yields $100 / (25 × $10) = 0.40 standard lots (40,000 units).
In forex, 1.00 standard lot equals 100,000 base currency units, 0.10 mini lot equals 10,000 units, 0.01 micro lot equals 1,000 units, and 0.001 nano lot equals 100 units. On spot gold (XAU/USD), 1.00 standard lot typically represents 100 troy ounces.
Spot gold (XAU/USD) uses a standard contract size of 100 troy ounces rather than 100,000 currency units. At a 0.01 pip increment, 1.00 standard lot moves $1.00 per pip ($100 per $1.00 price move), whereas a 0.01 micro lot moves $0.01 per pip ($1.00 per $1.00 move).
Most MT4 and MT5 brokers enforce a 0.01 micro-lot minimum order volume. If your calculated size falls below 0.01 lots, opening a minimum trade will risk more than your target percentage. Consider widening your stop loss proportionally, using a cent/nano account if supported, or skipping the setup.
MQL4 and MQL5 Expert Advisors compute dynamic lot sizes using AccountInfoDouble(ACCOUNT_EQUITY), SymbolInfoDouble(..., SYMBOL_TRADE_TICK_VALUE), and OrderCalcProfit() in MQL5. The resulting volume is aligned to SYMBOL_VOLUME_STEP and clamped between SYMBOL_VOLUME_MIN and SYMBOL_VOLUME_MAX before order submission.
Calculate exact pip & tick value across lot sizes and currencies.
Generate Standard, Fibonacci & Camarilla support/resistance levels.
Manage daily equity drawdown limits with strict per-trade sizing.
Learn how MT4 and MT5 automated trading bots execute risk rules.
Risk Disclaimer: Trading leveraged Forex and CFDs carries a high level of risk and may not be suitable for all investors. All guides, calculators, Expert Advisors, and market tools are provided strictly for educational purposes and do not constitute financial advice. Review our full Risk Disclosure before live deployment.
FXAlgoLab (hosted at forexfactory.cc) is an independent algorithmic trading education resource and is not affiliated with, endorsed by, or connected to Forex Factory or Fair Economy, Inc. (forexfactory.com).