Forex Margin Calculator
Calculate forex margin with our free Forex margin Calculator. Compare rates, see projections, and make informed financial decisions.
Forex Margin Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Required Margin = (Lot Size × Contract Size × Exchange Rate) / Leverage
Worked example — Margin: $1,085 | Free: $8,915 | Level: 921.7%
Formula
Required Margin = (Lot Size × Contract Size × Exchange Rate) / Leverage
Calculate the notional value of your position by multiplying lot size by contract size (100,000 for standard forex, 100 for gold) and the exchange rate you enter in the Market Rate field. That field is pre-filled with a placeholder rather than a live quote, so replace it with your broker's current price before relying on the figure. Divide by your leverage ratio to get the required margin. Free margin is your account balance minus used margin. Margin level is equity divided by used margin, expressed as a percentage.
Worked Examples
Example 1: Standard Lot EUR/USD with 1:100 Leverage
Problem:Calculate margin for 1 standard lot EUR/USD with 1:100 leverage and a $10,000 account, taking 1.0850 as the market rate entered. (Substitute your broker's live price — the result scales directly with it.)
Solution:Notional value = 100,000 × 1.0850 = $108,500 Required margin = $108,500 / 100 = $1,085 Free margin = $10,000 - $1,085 = $8,915 Margin level = ($10,000 / $1,085) × 100 = 921.7%
Result:Margin: $1,085 | Free: $8,915 | Level: 921.7%
Example 2: Gold (XAU/USD) with High Leverage
Problem:Calculate margin for 0.5 lots XAU/USD with 1:200 leverage and a $5,000 account, taking $2,035 per ounce as the rate entered. (Substitute the live gold price.)
Solution:Notional value = 50 oz × $2,035 = $101,750 Required margin = $101,750 / 200 = $508.75 Free margin = $5,000 - $508.75 = $4,491.25 Margin level = ($5,000 / $508.75) × 100 = 982.8%
Result:Margin: $508.75 | Free: $4,491.25 | Level: 982.8%
Frequently Asked Questions
What is margin in forex trading?
Margin is the amount of money required in your account to open and maintain a leveraged trading position. It acts as a good-faith deposit, not a fee or transaction cost. The deposit is a fraction of the position's notional value, and that notional has to be expressed in your account currency first. One standard lot of EUR/USD is 100,000 euros, so at a market rate of 1.0850 the notional is $108,500 and 1:100 leverage requires $108,500 / 100 = $1,085. Only when the base currency is already the account currency does the conversion drop out: 1 standard lot of USD/JPY is 100,000 dollars, giving 100,000 / 100 = $1,000 at the same leverage regardless of the yen rate. The margin is locked by your broker while the position is open and returned when you close it (adjusted for profit or loss). Margin requirements vary by broker, instrument, and regulatory jurisdiction. Understanding margin is crucial because insufficient margin leads to margin calls and forced position closure.
How does leverage affect required margin?
Leverage and margin have an inverse relationship: higher leverage requires less margin for the same position size. With 1:50 leverage, you need 2% of the notional value as margin. With 1:100, you need 1%. With 1:500, you need just 0.2%. For a $100,000 position: at 1:50 you need $2,000 margin; at 1:100 you need $1,000; at 1:500 you need only $200. While higher leverage means you can open larger positions with less capital, it dramatically increases your risk. A 1% move against you with 1:500 leverage wipes out five times your margin. European regulators cap retail leverage at 1:30 for major forex pairs.
What is a margin call and how do I avoid one?
A margin call occurs when your account equity falls below the required margin level, typically at 100% margin level (where equity equals used margin). When triggered, you must either deposit more funds or close positions to free up margin. To avoid margin calls: never use more than 5-10% of your account as margin for all open positions combined, use appropriate lot sizes based on risk management (not maximum leverage), always set stop losses to limit drawdown, avoid holding multiple correlated positions simultaneously, and keep a healthy margin buffer. Most brokers have a stop-out level (often 50%) where they automatically close your positions to prevent further losses.
What is the difference between used margin and free margin?
Used margin is the total amount locked by your broker for all open positions. Free margin is the remaining equity available to open new positions or absorb floating losses. Free Margin = Account Equity - Used Margin. For example, with a $10,000 account and $2,000 used margin, your free margin is $8,000. If your open trades have a floating loss of $1,000, your equity drops to $9,000 and free margin becomes $7,000. Monitoring free margin is essential — when it approaches zero, you are close to a margin call. Professional traders typically keep their used margin below 20% of account equity.
How is margin level percentage calculated?
Margin level is calculated as: (Account Equity / Used Margin) × 100%. It indicates the health of your account relative to your open positions. A margin level of 1000% means your equity is 10 times your used margin — very healthy. At 200%, your equity is twice the used margin — still safe but requires monitoring. At 100%, your equity exactly equals the used margin — you are at margin call territory. Below 100%, you are in negative territory and your broker may start closing positions. Most professional traders maintain margin levels above 500%. If your margin level drops below 200%, consider reducing position sizes or closing losing trades.
What is the difference between account balance and equity, and which one drives margin level?
Balance is the settled result of your closed trades. Equity is balance plus the floating profit or loss on everything still open, and it is equity, not balance, that the margin level formula divides by used margin. Forex Margin Calculator assumes a flat account with no open floating P/L, so the two coincide. Once a position moves against you, equity falls while used margin stays fixed, which is precisely how a comfortable margin level decays toward the margin call threshold.
Why does USD/JPY margin ignore the yen exchange rate while EUR/USD margin does not?
Margin is charged on the notional value of the position expressed in your account currency. For USD/JPY the base currency is already the US dollar, so one standard lot is 100,000 dollars of notional and the margin is simply 100,000 divided by your leverage, whatever the yen happens to be doing. For EUR/USD the base is the euro, so 100,000 euros must first be converted at whatever rate you enter before dividing by leverage: at a rate of 1.0850 that is 108,500 dollars, and at 1.1500 it would be 115,000. That is why the margin figure moves as the pair does even when your lot size has not changed.
Why does gold use a 100-ounce contract instead of the 100,000-unit forex lot?
Contract size is an instrument convention rather than a universal rule. A standard forex lot is 100,000 units of the base currency, while a standard gold lot is 100 troy ounces. The calculator switches automatically for XAU/USD, so 0.5 lots means 50 ounces. Notional value is then ounces multiplied by whatever dollar price per ounce you enter: at 2,035 dollars, 50 ounces would be 101,750 dollars. Because gold's price per unit is so much larger than a currency unit, a modest-looking lot number still carries heavy exposure, so check the rate field is showing the live metal price before reading the margin.
What is the stop-out level and how does it differ from a margin call?
A margin call is a warning: your margin level has slipped to a threshold the broker sets, and you are asked to deposit funds or cut exposure. The stop-out is the lower threshold at which the broker stops asking and begins liquidating, typically closing the largest floating loser first and continuing until the level recovers. Both figures are broker-specific and published in the account terms, so find the two numbers before you size a position rather than during a drawdown.
Why is required margin not the same thing as the risk on the trade?
Required margin is a returnable deposit released when you close, so it is a funding requirement rather than a loss. Your real exposure is set by the notional value and by where your stop sits. One standard lot of EUR/USD at a rate of 1.0850 carries 108,500 dollars of notional, so a one percent adverse move costs 1,085 dollars, which happens to equal the entire margin posted at 1:100. Size from the distance to your stop, never from the margin the platform will let you commit.
References
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Related Calculators
🧮Margin Call Calculator
Calculate margin call with inputs, formulas, and instant results.
🧮Pip Calculator
Calculate pip with inputs, formulas, and instant results.
🧮Forex Profit Calculator
Calculate forex profit with inputs, formulas, and instant results.
🧮Spread Cost Calculator
Calculate spread cost with inputs, formulas, and instant results.
🧮Forex Commission Calculator
Calculate forex commission with inputs, formulas, and instant results.
🧮Currency Pair Correlation Calculator
Calculate currency pair correlation with inputs, formulas, and instant results.
🧮Pip to Dollar Converter
Calculate pip to dollar converter with inputs, formulas, and instant results.
🧮Trading Journal Analyzer
Calculate trading journal analyzer with inputs, formulas, and instant results.