Margin calculator.

Work out the margin a position ties up from its size, price and leverage, and see how much of your account it uses. Enter the trade and watch the bar fill.

lots
units
price
: 1
balance

Required margin

$3,666.67
at 30:1 leverage
Notional value$110,000.00
Margin requirement3.33%
Used of account36.7%

Margin is in the quote currency of the pair. This assumes the account is in the same currency; otherwise convert at the current rate.

36.7% usedfree $6,333.33
This position needs $3,666.67 of margin, 36.7% of a $10,000.00 account.

How margin works

Margin is the deposit a broker sets aside to let you hold a leveraged position. It is not a fee, it is collateral, locked while the trade is open and released when you close. Leverage is the ratio between the position size and that deposit, so the two are linked: the more leverage, the less margin the same position needs.

Notional = lots × contract size × price
Required margin = Notional ÷ leverage

A worked example

One standard lot at a price of 1.1000 has a notional value of 1 × 100,000 × 1.1000 = 110,000. At 30:1 leverage the required margin is 110,000 ÷ 30 = 3,666.67, which is 3.33% of the notional. On a 10,000 account that uses about 37% of the balance, leaving the rest as free margin.

Why used margin matters

The bar above is the real point. Margin itself is not the risk; the risk is how much of the account a position ties up, because that decides how much room the trade has to move against you before a margin call. Keeping used margin low is the same discipline as sound position sizing and shallow drawdowns.

Build in the guardrails

A well-built Expert Advisor checks free margin and caps exposure before it opens a trade, so the account is never over-committed. We develop custom EAs with margin and risk controls built in. Size the trade first with the position size calculator.

This calculator is provided for educational purposes only and is not financial or investment advice. Margin requirements vary by broker and instrument; always confirm with yours.

Frequently asked

How do you calculate required margin?

Required margin equals the notional value of the position divided by the leverage. The notional value is the lot size times the contract size times the price. So margin = (lots times contract size times price) divided by leverage, in the quote currency of the pair.

What is margin in trading?

Margin is the deposit a broker requires to open and hold a leveraged position. It is not a cost or a fee, but a portion of your account set aside as collateral while the trade is open. Higher leverage means a smaller margin is required for the same position.

What is the difference between margin and leverage?

Leverage is the ratio between the size of a position and the margin needed to hold it, such as 30 to 1. Margin is the actual amount that ratio requires. They are two sides of the same thing: margin equals the position size divided by the leverage.

What happens if margin exceeds my account?

If open positions require more margin than the account can support, the broker issues a margin call and can close positions automatically to protect against further loss. Keeping used margin to a small fraction of the account leaves room for the trade to move against you.

Does higher leverage reduce margin?

Yes. Because margin equals the notional value divided by the leverage, more leverage means less margin for the same position. It also means the same account controls a larger position, which raises risk in proportion, so it should be used with care.

Never over-commit the account.

We build Expert Advisors that check margin and cap exposure before every trade, source code included.

EA development More tools