Direct answer
In forex, “contract size” is usually the traded position size expressed in lots (for example, standard, mini, micro). To calculate it, you typically start from either (1) how many lots you want to trade, or (2) the intended position value and convert that into lots using the base currency relationship.
Because brokers can define contract specifications differently (especially for CFDs vs. spot-style products), treat this as a general method: you use your platform’s lot size definition and the current relevant exchange rate for the pair.
Mechanics: inputs and formulas
1) Map lots to traded exposure
A common convention is:
- 1 standard lot = 100,000 units of the pair’s base currency
- 1 mini lot = 10,000 units
- 1 micro lot = 1,000 units
If your platform uses a different unit convention, use that platform’s definition.
2) Convert between “position value” and “contract size”
For a forex pair quoted as BASE/QUOTE (base currency over quote currency), the base-currency units determine the position’s notional exposure. If you know the desired base units (U), then contract size in lots is:
- Lots = U / lot_units
Where lot_units is 100,000 for a standard lot (or your platform’s equivalent).
If instead you know a target position value in quote currency (V_quote) and you have an exchange rate r for BASE/QUOTE, then:
- V_quote = U × r
- U = V_quote / r
- Lots = (V_quote / r) / lot_units
This is the core conversion: contract size follows from base units, and base units follow from your chosen notional value and the pair’s rate.
3) Use pip value as a verification check
A practical way to check whether your contract size inputs make sense is the pip value. In many setups, pip value scales with the base units (and therefore with lots). In simplified terms, if pip location and quote currency match common conventions, pip value will be proportional to lots.
If your calculated pip value is far from what your platform shows for the same trade size, your lot/units assumption or rate usage may be inconsistent.
Example or checks
Assume a pair is BASE/QUOTE and you want base-currency exposure of 20,000 units. With the common definition 1 mini lot = 10,000 units:
- Lots = 20,000 / 10,000 = 2 mini lots
If you instead start with a desired notional value in quote currency, say V_quote = 30,000 and the exchange rate is r (quote per base), then:
- U = 30,000 / r
- Lots = (30,000 / r) / lot_units
To validate, compare your resulting size with what your platform calculates for notional exposure and pip value. This helps ensure the contract-size conversion uses the correct base currency and lot units.
Limitations and risks (what can’t be inferred)
- Broker/platform contract specifications can differ. Some products use CFD-style contract definitions, so lot-to-units conversion may not match the common 100,000/10,000/1,000 convention.
- Margin is account- and policy-specific. Even with correct contract size, required margin depends on leverage and margin rules set by your provider.
- Pip value depends on the instrument details. Pip size (e.g., 0.0001 vs. other conventions), quote currency, and calculation method can vary.
- No single formula guarantees risk. Contract size is one input; spreads, slippage, and margin rules affect the realized outcome.
If you share the pair (BASE/QUOTE), your platform’s lot-unit definition, and whether you target base units or notional value, the same method can be applied consistently—within the limits above.