How Margin Works in Forex Trading
How Margin Works in Forex Trading
Forex margin is the collateral a trader must deposit with a broker to open and maintain a position. It is not a fee or cost—it is capital reserved to cover potential losses. A trader with $10,000 and 100:1 leverage can open positions totaling $1,000,000 in notional value, but the broker requires a portion of the $10,000 (the margin) to be held as collateral. If the trade moves against the trader, the broker can liquidate the position before the loss exceeds the margin. Understanding margin is essential because insufficient margin management causes margin calls and account liquidation.
Quick definition: Margin is the amount of capital a trader must deposit as collateral to open a leveraged position. It is calculated by dividing the position size by the leverage ratio and represents the minimum account balance needed to maintain the trade without triggering a margin call.
Key takeaways
- Margin is collateral, not a cost or fee—it is returned when the position closes
- Margin requirement is calculated as: Margin = Position Size / Leverage Ratio
- Used margin is the collateral tied up in open positions; free margin is the remaining available capital
- Equity is the real-time value of the account, calculated as: Equity = Balance + Unrealized Profit/Loss
- A margin call occurs when used margin exceeds a broker's margin limit (typically 100% of account balance)
- Margin level = (Equity / Used Margin) × 100; most brokers liquidate positions when margin level <20%
- Proper margin management prevents liquidation and allows traders to survive losing streaks
The mechanics of margin calculation
Margin is not arbitrary. It is mathematically derived from the position size and leverage ratio. Here's how it works:
A trader wants to open a 1-lot EUR/USD position (100,000 units). The current exchange rate is 1.0850. At 100:1 leverage, the margin requirement is:
Margin Required = (Position Size × Exchange Rate) / Leverage
Margin Required = (100,000 × 1.0850) / 100
Margin Required = $108,500 / 100
Margin Required = $1,085
This trader must have at least $1,085 available as collateral. The actual position value is $108,500, but the leverage allows control of this position with only $1,085 tied up.
With 50:1 leverage, the margin requirement doubles:
Margin Required = (100,000 × 1.0850) / 50
Margin Required = $2,170
The same position now requires $2,170 in collateral. Lower leverage requires more margin. Higher leverage requires less margin but increases the risk that a small move will exhaust the available capital.
Used margin vs. free margin
Once a position is open, the margin "used" is the amount tied up as collateral. The remaining available capital is "free margin."
Example: A trader with $10,000 account balance
Opens a 1-lot EUR/USD position at 100:1 leverage, requiring $1,085 margin.
Used Margin = $1,085
Free Margin = Account Balance - Used Margin
Free Margin = $10,000 - $1,085 = $8,915
This trader can open additional positions as long as free margin remains positive. If they open a second 1-lot trade (requiring another $1,085), total used margin becomes $2,170 and free margin becomes $8,830.
Free margin is critical because it serves as a cushion against losses. If the two open positions lose $100 each (a loss of $200), the account balance drops to $9,800, and free margin becomes $8,630. The trader survives because free margin is still positive.
If the positions lose a combined $8,915 or more, free margin reaches zero and a margin call triggers.
Equity: the real-time account value
Equity is the current value of the account, including unrealized gains and losses on open positions. It is calculated as:
Equity = Account Balance + Unrealized Profit/Loss
This is different from the account balance, which is the original deposit plus or minus realized trades.
Example: A trader deposits $5,000
They enter a 0.5-lot EUR/USD trade. The position is currently showing a $300 unrealized loss (the trade moved against them slightly). Their equity is:
Equity = $5,000 - $300 = $4,700
The account balance is still $5,000, but the equity (which accounts for the losing position) is $4,700. If they close the trade, the balance becomes $4,700. If the position moves further against them and the loss becomes $500, the equity drops to $4,500.
Equity is what determines whether a margin call occurs—not the account balance.
Margin level and margin call thresholds
Brokers calculate a "margin level" (or "margin ratio") to determine if a margin call should trigger. The formula is:
Margin Level = (Equity / Used Margin) × 100%
A margin level of 100% means equity exactly equals used margin. At this point, there is no free margin left. Any additional loss will trigger a liquidation.
Example: Trader with $5,000 equity and $1,000 used margin
Margin Level = ($5,000 / $1,000) × 100 = 500%
This trader can lose $4,000 before margin level drops to 100%. They have substantial cushion.
Same trader now with $1,500 equity and $5,000 used margin
Margin Level = ($1,500 / $5,000) × 100 = 30%
This trader is in danger. Most brokers trigger a margin call at 30–50% margin level, meaning the broker will automatically close positions to prevent the equity from going negative. This trader has only a few pips of adverse movement before liquidation.
Regulation and margin call thresholds:
- US brokers (CFTC-regulated): Margin call typically triggers at 25% margin level; forced liquidation at 5%
- UK brokers (FCA-regulated): Margin call typically at 50%; liquidation at 20%
- Unregulated brokers: May trigger margin calls at 100% or even higher, with no warning
Traders should know their broker's specific margin call level and never assume it matches competitors.
The relationship between leverage and margin
Lower leverage requires higher margin; higher leverage requires lower margin. This creates a psychological trap: higher leverage seems to offer more capital efficiency. A trader with $1,000 can open a 1-lot position with 100:1 leverage (requiring only $1,085 margin) but would need $2,170 margin with 50:1 leverage—using up 54% of the account instead of 30%. The trader feels "more efficient" with higher leverage.
But this efficiency is an illusion. The lower margin requirement means less free margin remains as a buffer. A 100-pip loss on the 1-lot position equals $1,000 on a standard lot. With 100:1 leverage, the free margin cushion was only $9,000 initially (on a $10,000 account). A $1,000 loss brings it down to $8,000. But at 200:1 leverage, the free margin cushion was only $4,570. The same $1,000 loss brings it down to $3,570. The "efficient" higher leverage is actually more dangerous.
Calculating margin across multiple positions
When a trader opens multiple positions, total used margin is the sum of all individual position margins.
Example: A trader with $10,000 balance at 100:1 leverage
- Opens 1.0 lot EUR/USD at 1.0850: Margin = $1,085
- Opens 0.5 lot GBP/USD at 1.2700: Margin = (50,000 × 1.2700) / 100 = $635
- Opens 2.0 lots USD/JPY at 150.00: Margin = (200,000 × 150) / 100 = $300,000 / 100 = $3,000
Wait—this reveals a critical problem. The Japanese yen pair is quoted differently (JPY per dollar rather than dollar per unit). Let me recalculate:
For USD/JPY, the notional value is:
Notional Value = Lot Size × 100,000 / Exchange Rate
The margin for 2.0 lots USD/JPY at 150:
Margin = (2.0 × 100,000 / 150) / 100...
Actually, the standard calculation is simpler. For any pair at any leverage:
Margin = (Lot Size × 100,000) / Leverage
Adjusting for the yen pair: Lot size of 2.0 means 200,000 base units.
Margin (USD/JPY) = 200,000 / 100 = $2,000
Total used margin = $1,085 + $635 + $2,000 = $3,720
Free margin = $10,000 - $3,720 = $6,280
This trader can still open additional positions. But if all three positions move against them by 50 pips each, and each pip is worth $5–10 per 0.1 lot traded, the losses accumulate quickly across multiple leveraged positions.
Flowchart
Real-world examples of margin in action
Example 1: The GBPUSD Flash Crash (October 2016)
The British pound experienced a "flash crash," dropping 6% in seconds during Asian trading. A trader with a short GBP/USD position (betting the pound would fall) had a massive unrealized gain, but traders long the pound faced catastrophic losses. A trader long 10 lots GBP/USD with $10,000 account and 50:1 leverage had used margin of approximately $2,500. A 1,000-pip move (6% price swing) meant a $10,000 loss. Their equity went negative, triggering immediate liquidation. The account was wiped out, and due to a gap in execution, some traders lost more than their deposit.
Example 2: Brexit Vote (June 2016)
When the UK voted to leave the European Union, major currency pairs gapped 500+ pips on open. GBP/USD dropped 10% overnight. Traders with leveraged long-pound positions entered the Asian session with positive equity. They woke up (8 hours later for UK-based traders) to find their accounts had been liquidated and they still owed money to the broker due to gap risk and insufficient margin buffer.
Example 3: A Profitable Trader's Margin Management (Real Case)
A professional forex trader maintains a $50,000 account. They use 20:1 leverage and never allow used margin to exceed 40% of account equity. This means they never open more than $40,000 in leveraged positions (using only $2,000 in margin), maintaining $48,000 in free margin. A losing streak of 10 consecutive trades might generate $4,000 in losses, dropping the equity to $46,000. The trader survives and can continue trading. High-leverage traders in the same scenario would be liquidated by trade 3 or 4.
Common mistakes traders make with margin
Mistake 1: Confusing margin with the total position cost. A trader thinks "I have $5,000, so I can only open a $5,000 position." In reality, with 100:1 leverage, they can open a $500,000 position, needing only $5,000 margin. Many traders avoid leverage entirely because they misunderstand how little capital is actually required.
Mistake 2: Ignoring margin on multiple positions. A trader opens trade A (using $2,000 margin), then opens trade B (using $1,500 margin) without calculating that total used margin is now $3,500. They open a third trade assuming they still have $7,000 free margin, but they only have $5,500. This causes liquidation risk they didn't anticipate.
Mistake 3: Assuming equity = balance. A trader's balance is $5,000, and they assume they can lose $5,000 before liquidation. But if they have a $1,200 unrealized loss (showing as negative equity), their true account value is $3,800, not $5,000. The broker uses equity, not balance, for margin call calculations.
Mistake 4: Holding margin-eating positions overnight. A trader opens a position at 4 PM EST (peak liquidity) where spreads are tight and margin requirements are low. Overnight, spreads widen and the trader's margin level increases due to wider bid-ask spread. A small unrealized loss that seemed minor at 4 PM becomes severe at 2 AM when the trader can't exit efficiently.
Mistake 5: Depositing more money to "save" a losing position. A trader's account hits 25% margin level. Instead of closing the losing position, they deposit another $5,000 to add free margin. This allows them to hold the losing position longer, hoping it will recover. Most of the time, the position continues to deteriorate, and the trader has now added $5,000 to an already losing trade.
FAQ
What is a healthy margin level?
A healthy margin level is >200%. This means equity is at least twice the used margin, providing a substantial buffer for adverse moves. A margin level of 400% (equity 4× used margin) is even safer. Traders maintaining 200%+ margin levels rarely experience liquidation unless they encounter a gap event (overnight gap, central bank surprise). At 100% margin level, the account is at maximum leverage with no buffer—this is the danger zone.
Can I use the same margin for multiple trades?
Yes, but you must track total used margin carefully. If you have $5,000 and open two 1-lot positions at 100:1 leverage (each requiring $1,000 margin), your total used margin is $2,000 and free margin is $3,000. Both positions share the same free margin as a buffer. If the first position loses $3,000, there is no free margin left, and any movement against the second position triggers a margin call.
What happens if my margin level hits zero?
Before it reaches zero, your broker will liquidate positions. At exactly 0%, your equity equals your used margin. In practice, brokers liquidate at 30–50% margin level (depending on regulation). If somehow the margin level did hit zero, your account balance would be zero, and any further losses would mean you owe the broker money (a negative balance).
Is there a formula for how many lots I can safely open?
Yes. Calculate your maximum position size based on a safe margin level (e.g., 30% of equity). If you have $10,000 equity and want to maintain 70% free margin (30% used margin):
Maximum Used Margin = $10,000 × 0.30 = $3,000
Number of Lots = (Maximum Used Margin × Leverage) / 100,000
Number of Lots = ($3,000 × 100) / 100,000 = 3.0 lots
This is an absolute maximum. For safety, reduce this by 50% and use 1.5 lots instead.
How do brokers calculate margin for exotic currency pairs?
Exotic pairs (e.g., USD/SGD, USD/ZAR) typically have higher margin requirements. Brokers may require 2:1 or 5:1 leverage on exotics instead of 100:1 on majors. Some brokers express the margin requirement as a percentage (e.g., 2% margin requirement on exotics) rather than a ratio. The calculation is still the same: Margin = Position Size / Leverage, with the leverage effectively being 50:1 for a 2% requirement.
What is the difference between initial margin and maintenance margin?
Initial margin is the collateral required to open a position. Maintenance margin is the minimum collateral required to keep the position open. If equity falls below the maintenance margin level, a margin call triggers. Most retail forex brokers don't distinguish between the two—they use a single margin requirement. However, institutional brokers and derivatives exchanges (like the CME for futures contracts) do distinguish. Initial margin might be 10%, and maintenance margin might be 7.5%, allowing positions to move against you slightly before liquidation.
Related concepts
- What Is Leverage in Forex?
- Margin Calls Explained
- Leverage Ratios Explained
- The Danger of High Leverage
- Free Margin and Equity
Summary
Forex margin is the collateral a trader must hold to maintain an open position. It is calculated by dividing position size by the leverage ratio and represents the minimum account balance needed to keep the trade open. Used margin is capital tied up in open positions; free margin is the remaining available capital that buffers against losses. Equity is the real-time account value including unrealized profit and loss. A margin call occurs when the margin level (equity divided by used margin, expressed as a percentage) falls below the broker's threshold—typically 20–30%. Proper margin management means never using more than 30–40% of account equity as used margin, ensuring traders survive losing streaks and gap events. Margin is not a cost or fee; it is returned when positions close. Understanding margin mechanics is the foundation of risk management in leveraged forex trading.