The collateral your broker sets aside from your account while a position is open; it is released when you close and is neither a loss nor a cost.
Margin is the part of your capital that the broker locks up as collateral to hold a position. It is not a fee or a loss: it is still yours and is released when the trade is closed, adjusted for profit or loss. It helps to separate three figures: used margin (what is locked right now), free margin (what remains available) and margin level (the relationship between your equity and used margin).
The formulas are: required margin = lots × contract size × price ÷ leverage, converted into your account currency; free margin = equity − used margin; margin level (%) = equity ÷ used margin × 100.
Example with a 6,000 USD account, 1:30 leverage and 0.50 lots of EUR/USD at 1.0800. Notional = 0.50 × 100,000 × 1.08 = 54,000 USD. Used margin = 54,000 ÷ 30 = 1,800 USD. Free margin = 6,000 − 1,800 = 4,200 USD and margin level = 6,000 ÷ 1,800 × 100 = 333%. If the position builds up a 600 USD floating loss, equity falls to 5,400 USD, free margin to 3,600 USD and the level to 300%.
Each broker and instrument uses its own percentage: in forex it depends on account leverage, and on share or crypto CFDs the required margin is much higher. Some brokers calculate net margin on hedged positions (a buy and a sell on the same pair) while others charge margin on both legs. In futures, the exchange and broker set an initial margin per contract to open and a maintenance margin to hold, and both rise when volatility increases. Some brokers raise requirements ahead of high-volatility events.
Common mistakes: confusing margin with risk. Margin tells you how much capital a position ties up; risk is given by the distance to the stop. A position with a lot of margin and a tight stop can risk less than one with little margin and no stop. Another mistake is opening a position that uses 60–70% of your equity as margin: it fits, but it leaves minimal free margin, and a moderate adverse move takes you close to a margin call. Do not forget either that margin is recalculated at the current price and in the account currency, so it fluctuates with the market.
In practice, check the required margin before sending the order and keep your margin level well above your broker’s margin call threshold, even when the stop already limits the loss. Our margin and pip value calculator gives you the margin for any pair, lot size and leverage, and the lot size calculator makes sure your size comes from your risk and not from the margin available.