Margin calculator

A margin calculator shows the deposit a broker holds back when you open a leveraged position. It is not a fee; it is collateral. But it tells you how much of your account is tied up and how much room is left before the broker starts closing trades.
The formula
Required margin = position value ÷ leverage
For pairs where the dollar is the quote currency, one unit of the base is worth the price. Where the dollar is the base, as in USD/JPY, one unit is simply $1. For cross pairs the calculator asks for a conversion rate.
Worked example
Illustrative numbers. You open 0.5 lots of GBP/USD at 1.2700 with 30:1 leverage.
- Position value: 0.5 × 100,000 × 1.27 = $63,500.
- Required margin: $63,500 ÷ 30 = $2,116.67.
By comparison, 1 lot of USD/JPY is worth $100,000, so at 30:1 it needs $3,333.33 of margin whatever the yen price.
Margin level and close-outs
Equity is your balance plus or minus open profit and loss. Suppose your account holds $4,000 and you open the GBP/USD position above. Your margin level starts at about 189%. If losses reduce equity to $1,058.33, the level falls to 50%, the point at which UK and EU brokers must begin closing retail positions. That is a loss of about $2,942, which on 0.5 lots is roughly 588 pips.
- Major currency pairs30:1
- Other FX, gold, major indices20:1
- Other commodities, minor indices10:1
- Individual shares5:1
- Crypto-assets2:1
Caps set by ESMA and the FCA for retail clients. The FCA does not allow crypto derivatives to be sold to UK retail consumers at all.
Reading the margin calculator result
The big figure is the collateral; the line underneath shows the full position value. The loss if the price moves against you is based on the position value, not the margin, which is why a small margin can hide a large exposure. Size the trade with the position size calculator first, then use this tool to confirm the account can support it. Financial markets explained covers why leverage limits differ between asset classes.
Reader questions
What is a margin call?
A warning, or automatic action, when your equity falls too far relative to the margin used. UK and EU retail brokers must start closing positions at a 50% margin level.
Is margin the same as the cost of a trade?
No. Margin is returned when the position closes; costs such as the spread and swaps are not.
Sources
- European Securities and Markets Authority, CFD product intervention measures (margin close-out and leverage limits)