A margin calculator answers a question every leveraged trader needs to know before opening a position: exactly how much of the account's capital does a broker require to be set aside — "locked up" — to open and maintain a given trade? This page covers what margin actually means in forex trading, how to calculate required margin, the relationship between leverage and margin, margin level, margin calls, and how forex margin differs from margin in stock trading or crypto perpetual futures. Browse all trading calculators for related tools.
What Is Margin in Forex Trading?
Margin is not a fee or a cost — it's a portion of account equity that a broker temporarily sets aside (reserves) as collateral while a leveraged position is open. This distinction matters: margin isn't spent, it's held, and it becomes available again once the position closes. Because forex trading is typically leveraged, a trader can control a much larger position size than the margin amount alone would suggest, which is exactly what leverage enables — and exactly why understanding required margin before entering a trade is essential to avoid over-committing account capital.
How to Calculate Margin
The Margin Formula
Required Margin = (Position Size × Current Price) ÷ Leverage
Position size is the number of units being traded (e.g., 100,000 for a standard lot), current price is the exchange rate of the pair, and leverage is the ratio the broker offers (like 1:50, 1:100, or 1:500).
Worked Example: Required Margin on a Trade
Example: Standard Lot EUR/USD at 1:100 Leverage
Position Size = 100,000 units (1 standard lot)
Current Price (EUR/USD) = 1.0850
Leverage = 1:100
Required Margin = (100,000 × 1.0850) ÷ 100
Required Margin = 108,500 ÷ 100 = $1,085
This means opening a standard lot EUR/USD position at 1:100 leverage requires setting aside $1,085 of account equity as margin — the remainder of the account's capital stays free and available, not tied to this position.
Leverage and Margin: How They're Connected
Why Higher Leverage Means Lower Required Margin
Leverage and required margin move in opposite directions for the same position size — higher leverage means lower required margin, since leverage is the denominator in the margin formula. Using the same EUR/USD example above at 1:500 leverage instead of 1:100:
Required Margin = 108,500 ÷ 500 = $217
The same position now requires far less margin, freeing up more account capital — but it's worth being clear that leverage amplifies both potential gains and potential losses equally; lower required margin doesn't mean lower risk on the position itself, only that less capital is tied up as collateral for it.
Margin Level and Margin Calls
What Triggers a Margin Call
A margin call happens when account equity falls too close to the used margin, signaling that losses on open positions have eroded available capital to a broker-defined danger threshold. If losses continue past that point without additional funds deposited or positions closed, brokers typically begin automatically closing positions (a "stop-out") to prevent the account from going negative.
Margin Level Formula
Margin Level = (Equity ÷ Used Margin) × 100
Margin level is expressed as a percentage, and most brokers define specific margin-call and stop-out thresholds (commonly around 100% for a margin call warning and 50% or lower for a stop-out, though exact thresholds vary by broker) — monitoring margin level is how traders track how much buffer remains before a margin call becomes a real risk. The calculator above computes required margin for a single new position from price, lot size, and leverage; it does not take account equity or existing used margin as inputs, so it does not display margin level.
Free Margin vs. Used Margin
Used margin is the total amount currently reserved across all open positions. Free margin is the remaining account equity not tied up as used margin — the capital still available to open new positions or absorb further unrealized losses on existing ones. A trading account with high used margin relative to total equity has little free margin left, meaning less room to withstand further adverse price movement before facing a margin call.
Margin Calculator vs. Stock Margin — Different Rules
Stock Margin's Regulatory Framework (Reg T)
It's worth being clear about an important distinction: this calculator computes margin the way it works in forex and CFD trading — based on broker-set leverage ratios. Stock margin trading in the US operates under a different regulatory framework entirely, primarily Regulation T (Reg T), which sets specific initial margin requirements (commonly 50% for many stocks) and maintenance margin rules distinct from the broker-chosen leverage ratios used in forex. A stock margin calculation would need to follow Reg T's specific rules rather than the leverage-based forex formula used throughout this page.
Margin on Crypto Perpetual Futures — A Different Product
Perpetual Futures Margin and Funding Rates
Crypto perpetual futures ("perps") use margin mechanics that share some conceptual similarity to forex margin (leverage-based position sizing) but differ in important ways — perpetual futures also involve periodic "funding rate" payments between long and short position holders (a mechanism that doesn't exist in spot forex trading), and margin requirements on perpetual futures exchanges often use their own tiered margin systems tied to position size. This calculator's forex-style margin formula provides a useful conceptual starting point but doesn't replicate the specific funding-rate and tiered-margin mechanics of any particular perpetual futures exchange.
Does This Match What I See in My Trading Platform?
This calculator uses the standard leverage-based margin formula that underlies margin calculations across most retail forex trading platforms. The specific number displayed here should closely match what a trading platform shows for the same position size, price, and leverage inputs, since both are applying the same underlying formula — this calculator is not affiliated with or produced by any specific trading platform, it simply implements the same standard calculation.
Related Trading Calculators
- Pip Calculator — calculate pip value for the position alongside its margin requirement
- Lot Size Calculator — determine appropriate position size based on risk tolerance
- Risk-Reward Calculator — evaluate a trade's risk-to-reward ratio
- Profit/Loss Calculator — calculate a trade's actual outcome once closed
Frequently Asked Questions
What is margin in forex trading?
Margin is the portion of account equity a broker temporarily reserves as collateral while a leveraged position is open. It is not spent, just held, and becomes available again once the position closes.
How do I calculate margin?
Multiply position size by the current price, then divide by the leverage ratio. For a standard lot EUR/USD position at 1.0850 with 1:100 leverage, required margin is approximately $1,085.
What is margin level?
Margin level is calculated as equity divided by used margin, multiplied by 100, expressed as a percentage. It shows how much buffer remains before a margin call.
What triggers a margin call?
A margin call happens when account equity falls too close to used margin, typically as a result of unrealized losses eroding available capital toward a broker-defined threshold.
Does higher leverage mean lower risk?
No. Higher leverage lowers the required margin for a given position size, but does not reduce the actual risk of the position itself.
Is forex margin the same as stock margin?
No. Forex margin uses broker-set leverage ratios, while US stock margin operates under Regulation T's specific initial and maintenance margin rules, a different regulatory framework.
Does this work for crypto perpetual futures margin?
This calculator uses the standard forex-style leverage margin formula, which is conceptually similar but does not replicate the funding-rate and tiered-margin mechanics specific to crypto perpetual futures exchanges.
Is this margin calculator free to use?
Yes. It is free, requires no sign-up, and calculates required margin instantly.