Skip to content
Menu

Margin Calculator

By Chad Smith · Updated

On this page
  1. How to use it
  2. The formula
  3. Worked example
  4. What the result means
  5. Margin across instruments
  6. Common mistakes
  7. Related lessons and tools

A margin calculator shows how much of your account a broker will hold as a deposit to open a leveraged position. You enter the instrument, trade size and leverage, and it returns the required margin in your account currency. Use it to check that you have enough free margin before you trade, and to see how much room is left for price to move against you.

Margin calculator

Fills the maximum retail leverage of that legal entity. Major forex pairs usually get the maximum; other markets get less.

lots
units
: 1

Enter 30 for 1:30.

USD

Not needed for this pair and account.

Required margin
USD 3,600.00
Position value
USD 108,000.00
Leverage
1:30
Margin rate
3.33%

How to use it

  1. Choose the instrument and enter the trade size in lots.
  2. Enter the leverage available to you on that instrument, or the margin rate as a percentage.
  3. Choose your account currency.
  4. Read the required margin. Compare it with your free margin to see if the trade can be opened.

Leverage limits differ by regulator and by asset class. Retail clients in the UK, EU and Australia face lower caps than professional clients or clients of offshore entities, so use the leverage your account actually has.

The formula

Position value = Lots × Contract size × Price

Required margin = Position value ÷ Leverage
               = Position value × Margin rate

Margin rate = 1 ÷ Leverage
Example: 1:30 leverage = 3.33% margin rate

The position value is in the quote currency when you use the price, or in the base currency when you use units alone. The calculator converts it into your account currency at the current rate.

Worked example

This is an illustrative example with simple numbers.

You want to buy 1 standard lot of EUR/USD at 1.1000 on a USD account with 1:30 leverage.

Position value  = 1 × 100,000 × 1.1000 = 110,000 USD
Required margin = 110,000 ÷ 30 = 3,666.67 USD

At 1:100 leverage, the same trade would need 1,100 USD of margin. The position, and the 10 USD per pip it makes or loses, would be exactly the same.

What the result means

The required margin is the part of your account that is locked while the trade is open. Everything left over is free margin, which absorbs losses and funds new trades. If losses reduce your equity until it no longer covers the margin, you reach a margin call and then a stop-out, where the broker closes positions for you.

A low margin requirement makes it easy to open positions that are far too large for the account. The position size calculator sizes a trade from risk, which is the safer starting point; this calculator then confirms the margin fits. Leveraged trading carries a high risk of losing money quickly.

Margin across instruments

Margin rates are not the same for every market. Major currency pairs usually have the lowest rates, while minor pairs, gold, indices, commodities, shares and crypto CFDs need more margin because they are more volatile. Under ESMA-style rules, for example, retail leverage caps step down from major pairs to crypto. The calculator uses the rate you enter, so look it up for each instrument rather than assuming one figure for your whole account.

Common mistakes

  • Treating margin as the cost of the trade. Margin is returned when you close. The costs are the spread, commission and swap.
  • Using all the free margin. A position that uses most of your margin leaves almost no room before a margin call.
  • Forgetting that margin changes with price. As the price moves, the position value and so the margin move too.
  • Assuming one leverage figure for all instruments. Indices, gold and crypto usually have lower leverage than major pairs.
  • Confusing leverage with risk. Risk depends on lot size and stop distance, not on how much margin is tied up.

Frequently asked questions

What is required margin?

Required margin is the amount of your account a broker sets aside to keep a leveraged position open. It is a deposit, not a fee, and it is released when you close the trade.

How does leverage affect margin?

Margin equals the position value divided by the leverage. Higher leverage means less margin per trade, but the profit or loss on the position stays the same.

Why is my margin different from the calculator?

Brokers can set different margin rates for different instruments, account types and regulators, and some raise margin for large positions or around weekends. Check the margin rate shown in your platform's symbol details.

Does lower margin mean lower risk?

No. Margin only decides how much of your account is tied up. The risk comes from the position size, and a large position can lose far more than its margin if there is no stop loss.

Is margin the same as the maximum I can lose?

No. With negative balance protection, a retail account cannot go below zero, but you can still lose your whole balance, not just the margin on one trade.