Margin Calculator
Margin is the deposit your broker sets aside to hold a leveraged position open. This calculator shows how much margin a trade needs, so you can check it fits your account before you click buy or sell.
How to use it
- Enter the instrument’s price.
- Enter your lot size and the contract size (units per lot). Gold is usually 100 oz; a standard forex lot is 100,000 units.
- Enter your leverage, for example 100 for 1:100.
The formula
Worked examples
| Position | Leverage | Margin |
|---|---|---|
| Gold at 2,000, 1 lot (100 oz) | 1:100 | $2,000 |
| Gold at 2,000, 0.10 lots | 1:100 | $200 |
| Gold at 2,000, 1 lot | 1:30 | $6,666.67 |
| Gold at 2,000, 1 lot | 1:500 | $400 |
| EURUSD at 1.10, 1 lot (100,000 units) | 1:100 | $1,100 |
To test EURUSD, enter price 1.10, contract size 100000, lots 1 and leverage 100.
Margin is not your risk
Margin is only the deposit. Your risk is how far price can move against you before your stop. A 1-lot gold position needs $2,000 of margin at 1:100, but a $10 move against it loses $1,000. Higher leverage lowers the margin required, which can make oversized positions easier to open, not safer.
Margin level and stop-out
With $5,000 of equity and $2,000 of used margin, your margin level is 250%. If losses push it below your broker’s margin-call or stop-out level, positions can be closed automatically. Those levels differ by broker, so read your account terms.
Frequently asked questions
What leverage can I use?
It depends on your broker’s regulated entity and your country. Many regulators cap retail leverage, and professional accounts often allow more with fewer protections.
Is margin the same as the cost of the trade?
No. Margin is a refundable deposit held while the position is open. The cost of a trade is spread, commission and swap. See the spread cost calculator.
Why does my broker show a different margin?
Brokers can apply different margin rates per instrument, tiered rates for large positions, and currency conversion into your account currency.
New to leverage? Read pips, lots and leverage explained, then size your position with the lot size calculator.
Calculators give estimates from the numbers you enter and common assumptions. Check your broker’s contract specification and costs. For education only, not financial advice. Trading carries a high risk of loss.