Margin Calculator
Work out how much of your balance a position will tie up before you open it. Enter the instrument, your leverage, the lot size and the contract size your broker actually uses, and this page returns the required margin in your account currency. The maths runs in your browser — nothing you type is sent anywhere.
Warning: the exchange rate is more than a few days old, so the margin may be slightly off.
- Exchange rate used
- 1 EUR = 1.09837 USD (2026-11-20)
Loading exchange rates…
How this is calculated
Margin is the deposit your broker holds while a position is open. It comes from the size of the position, not from where your stop loss sits:
notional = contract size × lots
margin = notional / leverage
× rate(base → account)Three currencies are involved, and mixing them up is where most margin numbers go wrong.
The base currency is the first one in the symbol. One lot of EURUSD is 100,000 EUR — not 100,000 USD. The notional value and the raw margin are both measured in that base currency.
The quote currency is the second one. It is what the price is expressed in: EURUSD at 1.0850 means 1.0850 USD per EUR.
The account currency is whatever your balance is denominated in. The last step converts the margin from the base currency into it. If the two are the same, that step does nothing.
Worked example
EURUSD, 1.00 lot, leverage 1:100, contract size 100,000, price 1.0850, account in USD.
notional = 100,000 × 1.00 = 100,000 EUR margin = 100,000 / 100 = 1,000 EUR in USD = 1,000 × 1.0850 = 1,085.00
The same trade on a EUR account requires exactly 1,000 EUR — no conversion, so no exchange rate enters the result at all.
Gold works the same way with different numbers. One lot of XAUUSD is 100 ounces, so at 2,650 per ounce and 1:100 the notional is 100 XAU, the raw margin is 1 XAU, and in a USD account that is 2,650.00.
Where to find contract size in MT5
Your broker's own numbers beat any default. In MetaTrader 5, right-click the symbol in Market Watch and choose Specification.

Four lines on that window matter here:
- Contract size — units of the base currency in one lot. 100 000 for this symbol.
- Margin currency — EUR. This is the terminal confirming that margin is computed in the base currency before anything is converted.
- Profit currency — USD. Your profit and loss is quoted in the quote currency, which is a different question from margin.
- Digits — how many decimal places the price carries.
Contract size is a broker setting, not a market constant. Silver is the usual trap: some brokers use 5,000 ounces per lot, others 1,000. If your broker's figure differs from the default here, type it into the contract size field and the whole calculation follows it.
Why we ask you for the gold and crypto price
For currency pairs this page fills the price in for you from a daily central-bank reference-rate feed, and shows you the date it is using.
For metals and crypto the price box starts empty on purpose. We compared a daily reference source against a live MT5 terminal: the currency pairs agreed to within half a percent, but gold was out by roughly 6% and bitcoin by roughly 2%. A daily reference price is simply the wrong instrument for something that moves that much inside one session.
Six percent on a 1-lot gold position at 1:100 is around 160 of margin you did not plan for. Rather than show you a number that looks authoritative and is quietly wrong, the page asks for the price from your own terminal — the same screen your broker will charge you from.
Common mistakes
- Reading the notional in the wrong currency. One lot of EURUSD is 100,000 EUR; at 1.0850 that is 108,500 USD of exposure, not 100,000.
- Assuming one leverage covers everything. Brokers tier leverage by instrument and often by position size, and metals and crypto normally get less of it than the majors.
- Treating required margin as money at risk. Margin is what is held; risk is what your stop loss defines. Those are different numbers, and the position size calculator handles the second one.
- Leaving a default contract size in place when your broker uses a different one.
FAQ
Is required margin the money I can lose?
No. Margin is the amount your broker sets aside while the position is open and returns when it closes. What you stand to lose is set by the distance to your stop loss and by your position size, not by the margin.
Why does my broker show a different margin than this page?
Four things usually explain it: the leverage tier that applies to that instrument on your account, the broker's own price at the moment you open the trade, the contract size your broker uses, and the rate it applies when converting into your account currency. Change those inputs here to match your terminal and the numbers converge.
Does moving my stop loss change the margin?
No. Margin depends on contract size, lots and leverage. The stop loss does not appear in the formula.
What is margin currency, and why is it not my account currency?
Margin currency is the instrument's base currency — EUR for EURUSD, XAU for gold. Your broker computes the margin there and then converts it to your account currency. On a USD account trading USD-base pairs like USDJPY the two coincide, which is why that case needs no exchange rate.
Why does the gold price field start empty?
Because a once-a-day reference price is not accurate enough for metals and crypto. The measurement behind that decision is in the section above.
Margin tells you what a position will tie up. It does not tell you when the position is worth opening — for that you need to know when price reaches your level. Draw the line on your MT5 chart and let the fx-alert EA watch it for you: How alerts work · Download
More calculators · Not trading advice.