Forex Leverage and Margin Explained
How forex margin and leverage work, a worked gain-and-loss example, OANDA margin closeout rules, and CFTC and ASIC leverage limits explained.
Marketing
Bottom Line
- Margin is required collateral, while leverage is the ratio of position value to that collateral.
- Profit and loss apply to the full position, not only the margin deposit.
- Closeout rules and leverage limits vary by regulator and OANDA division.
- Conversion rates, open losses, gaps, and regulatory settings can change margin conditions.
- Automated orders should be sized from risk rather than maximum available margin.
Forex leverage lets a trader control a position larger than the capital committed as margin. Margin is the required collateral, while leverage is the ratio between the position value and that collateral. A 2% margin requirement corresponds to 50:1 leverage, but the applicable rate depends on the instrument, broker division, and regulator.
The practical risk is that profit and loss are calculated from the full position, not only the margin deposit. Forex trading on margin is high risk and not suitable for everyone, because leverage magnifies losses as well as gains and you can lose money quickly.
This guide covers used and available margin, a worked example with the loss shown first, OANDA's closeout rules, and the leverage limits published by US and Australian regulators, then how margin affects automated orders.
What Margin Is
Margin as Required Collateral
Margin is capital that a broker requires to open and maintain a leveraged position. OANDA describes it as sufficient collateral to cover potential losses on open positions.1
The requirement is normally expressed as a percentage of the full position value. If a position is worth $10,000 and its margin requirement is 2%, the trader must provide $200 in margin. The remaining position value is exposure created through leverage, not additional cash in the account.
Used Margin and Available Margin
Margin Used is the portion of account value held against existing positions. OANDA calculates it from the margin rate, trade quantity, and current instrument-to-home-currency conversion rate. Margin Available is the amount remaining for new positions and equals NAV at midpoint prices minus Margin Used.2
Neither figure should be treated as fixed. Open profit and loss changes NAV, while currency conversion rates can change the home-currency value of required margin. An order that fit earlier may exceed available margin later.
Margin Sets Position Size
An instrument's margin requirement is connected to the maximum leverage permitted for it. OANDA notes that regulators determine maximum leverage and that limits can vary by instrument.1
A lower margin percentage permits a larger position for the same deposit. That does not make a larger position appropriate. Maximum available size and risk-based size answer different questions.
How Forex Leverage Works
Leverage as a Ratio
Leverage and margin have a direct mathematical relationship:
Leverage = 1 / margin requirement
A 2% requirement is 0.02 in decimal form, so 1 / 0.02 equals 50. The resulting leverage is 50:1. Every $1 of required margin can support $50 of market exposure.2
Leverage Amplifies Both Outcomes
Profit and loss come from the full position value. If the same exchange-rate movement is applied to a larger leveraged position, the dollar change in account equity is larger relative to the margin deposited.
A stop-loss order can limit intended downside, but it does not remove execution risk. Position size should therefore be calculated from the distance to the stop and an acceptable account-level loss, rather than from the maximum leverage available.
Lots, Units, and Position Value
Standard, mini, and micro lots are industry labels for 100,000, 10,000, and 1,000 units of the base currency. Leverage calculations do not depend on the label. They use total position value, which comes from the number of units and the exchange rate.
OANDA permits positions to be sized in arbitrary units rather than only in fixed lots.2 Translating every lot-based figure into units makes margin and risk calculations easier to check.
Worked Example: Loss and Gain
Setting Up the Trade
OANDA provides an example of a USD account opening a long position of 5,000 EUR/USD units at 50:1 leverage. With a 2% margin requirement, the required margin is approximately $106.73. When the base currency differs from the account currency, OANDA calculates margin in the base currency and converts it at the prevailing exchange rate.3
The $106.73 is collateral. Profit and loss still apply to all 5,000 units.
When the Rate Falls
Suppose EUR/USD falls by 0.0020 after the long position opens. The unrealized loss is approximately $10:
5,000 units x $0.0020 = $10 loss
That loss is based on 5,000 units, not on the $106.73 margin deposit. NAV equals account balance plus unrealized profit or loss, so the $10 unrealized loss reduces NAV and moves the account closer to its margin thresholds.3
When the Rate Rises
If EUR/USD instead rises by 0.0020 and the position closes at that difference, the approximate result is a $10 gain before other account adjustments:
5,000 units x $0.0020 = $10 gain
Leverage changes the outcome relative to committed margin, but it does not improve the probability of a favorable movement. The loss case deserves priority when choosing size because it determines whether the account can continue operating through an adverse sequence.
Margin Closeout at OANDA
Margin Call Thresholds
OANDA's Singapore margin documentation defines a margin call as occurring when NAV at midpoint prices falls below Margin Used, corresponding to a Margin Close-Out Percentage of at least 50%. The trader must add funds or close positions to restore NAV above Margin Used.2
For OANDA Corporation in the US, a margin call is described as occurring when NAV falls below the minimum regulatory requirement. Alert emails are sent daily at 3:45 p.m. Eastern time while the account remains below the regulatory value.1 Traders should verify the terminology and process for the division holding their account.
What Happens at 100%
When the Margin Close-Out Percentage reaches 100%, OANDA automatically closes all open positions using current rates. If an instrument cannot trade at that moment, its position remains open and is monitored. Another closeout may occur when its market reopens if the account remains under-margined.2
OANDA Corporation also states that an account remaining under-margined for two consecutive trading days will have all open positions closed. Positions unavailable for trading are closed when their markets reopen.1
Avoiding a Margin Closeout
Monitor the broker's Margin Close-Out Percentage rather than estimating it only from account balance. The closer it is to 100%, the closer the account is to automatic closeout.
- Reduce position sizes incrementally.
- Close individual positions to release margin.
- Add funds before the threshold is reached.
- Use stop-loss orders as part of position planning.
A stop-loss order is not guaranteed to fill at its specified price. A pricing gap can produce a less favorable fill, particularly when trading resumes after a market closure.2
Regulator Leverage Limits
United States Limits
The CFTC limits leverage for US retail forex traders to 50:1 on major currency pairs and 20:1 on other pairs. OANDA Corporation states that its margin and leverage rates are set by the NFA, the self-regulatory organization for the US derivatives industry.1
Australia's ASIC Caps
ASIC's product intervention order took effect on 29 March 2021. It caps CFD leverage for Australian retail clients at 30:1 for major currency pairs and 20:1 for minor currency pairs, gold, or a major stock market index.4
The order also sets caps of 10:1 for other commodities or minor stock indices, 5:1 for shares or other assets, and 2:1 for crypto-assets. It standardizes margin closeout arrangements and limits a retail client's losses to the funds in the CFD trading account.4
Why Limits Vary
OANDA accounts are held through separate divisions, each regulated where it operates, and your division depends on your country of residence.5 The Singapore margin rules cited above apply to OANDA Asia Pacific, for example.
The relevant limit follows the division holding the account and the instruments being traded. Do not copy a leverage figure from another country's account documentation without confirming that it applies to your account.
Why Margin Requirements Change
Weekend and Holiday Gaps
A position left open during a weekend or halted market cannot be closed until trading resumes. OANDA warns that rates may gap significantly when the market reopens and that an adverse gap can trigger an immediate margin closeout.1
A stop price does not reserve an exit price through a closure. Position size must leave enough room for a reopened market to trade beyond the intended stop.
News and Volatility Events
OANDA identifies market openings and closings, major news, severe weather, geopolitical events, and general volatility as conditions in which spreads may widen.1
A wider spread makes entries and exits cost more, and the same events that widen spreads often move prices sharply. A fast move against an open position reduces NAV and pushes the account toward its margin thresholds.
Broker and Regulatory Changes
For OANDA Corporation, the NFA sets margin and leverage rates. Traders should check the broker's current margin table instead of hard-coding one percentage indefinitely.
Margin Used also recalculates with the current instrument-to-home-currency conversion rate. Even when trade quantity remains unchanged, required margin in the account currency can move.2
Margin and Automated Orders
Why Orders Get Rejected
An automated strategy may request a position that needs more margin than the account currently has available. TradersPost routes a trader's own TradingView webhook signal to their own connected OANDA account, but OANDA can reject the resulting order if available margin is insufficient.
Estimate the margin an order needs before you send it. A broker rejection should be the last line of defense, not the strategy's sizing rule.
Size Positions From Risk
A fixed risk amount or percentage of equity starts with the acceptable loss and stop distance, then calculates units. Sizing from maximum available margin starts with the largest position the account may permit, which can leave little capacity for adverse movement.
Keeping part of the balance free of margin leaves room for unrealized losses, conversion rate changes, and other open positions. See the forex position sizing guide for a risk-per-trade calculation.
Test Your Signals
Testing should include intended entries, exits, stop behavior, rejected quantities, and signals sent with "test": true, which processes a test signal without sending an order to the broker.
Review the forex asset page for supported symbol formats and order types. Use the OANDA integration overview and connection guide for account setup. For calculation details, see what a pip is and the position sizing guide.
Forex Leverage FAQ
What Is Margin Versus Leverage?
Margin is the collateral required to open and maintain a position. Leverage is the ratio of total position value to that margin. Mathematically, leverage equals 1 divided by the margin requirement.
How Much Leverage Can I Get?
The limit depends on the regulator and division holding the account. US retail forex leverage is limited to 50:1 on major pairs and 20:1 on other pairs. ASIC limits Australian retail CFD leverage to 30:1 on major currency pairs, with lower caps for other instruments.
Call Versus Closeout?
Under OANDA's described percentage framework, a margin call occurs at a 50% Margin Close-Out Percentage and requires additional funds or reduced positions. Automatic closeout occurs at 100%. Positions that cannot trade remain open and continue to be monitored until their markets reopen.
Can Losses Exceed My Deposit?
OANDA's own education warns that forex trading is high risk and losses may exceed deposits.3 ASIC requires issuers to limit an Australian retail client's CFD losses to the funds in their CFD trading account.4 Whether a protection like that applies depends on the regulator and the division holding your account.
Why Was My Order Rejected?
The requested position may require more margin than the account has available. Recalculate quantity from a fixed risk limit, current equity, stop distance, and conversion rate.
References
1 OANDA: Spreads, Margins, and Leverage
2 OANDA Asia Pacific: Margin Rules
3 OANDA: What Is Margin in Leverage Trading?
4 ASIC: Product Intervention Order Strengthens CFD Protections
5 OANDA Help: What Division Will I Contract With?