Margin calculator for forex and CFDs
Enter the price, position size, contract size and leverage. The calculator shows the margin your broker will set aside to open the trade, and how much of your balance is left free.
- Any leverage or margin rate
- Shows free margin left
- Free, no sign-up
For education only, not financial advice. Results depend on the numbers you enter, and trading carries a risk of loss.
How to use the margin calculator for forex and CFDs
Enter the price
The current price of the instrument. Margin is based on the position's full value, so it moves with the price.
Enter position size and contract size
Position size is in lots. Contract size is the number of units in one lot: 100,000 for a standard forex lot.
Enter your leverage
Type 30 for 1:30 or 100 for 1:100. If your broker quotes a margin rate instead, divide 100 by the percentage: a 2% rate is leverage of 1:50.
Set the quote to account rate
Margin is first worked out in the quote currency. Leave the rate at 1 when that is your account currency, or enter the rate that converts it.
Add your account balance
Optional. With a balance entered, the calculator shows the margin as a share of the account and the free margin left after opening.
The formula
- Position value = price × contract size × lots
- Required margin = position value ÷ leverage × quote to account rate
- Position value
- The full market value of the trade, also called notional value: price multiplied by contract size and by lots.
- Leverage
- How many times larger than the margin the position can be. At 1:30, each $1 of margin holds $30 of position.
- Required margin
- The deposit the broker locks while the trade is open: position value divided by leverage.
- Margin requirement
- The same thing as a percentage of the position value: 100 divided by the leverage. 1:30 is a 3.33% requirement.
- Free margin
- The part of your account not tied up as margin, available to open other trades or absorb losses.
Worked example
You open 1 standard lot of EUR/USD at 1.1000 with leverage of 1:30 from a US dollar account.
- Position value = 1.1000 × 100,000 × 1 lot = 110,000 US dollars.
- Margin requirement = 100 ÷ 30 = 3.33% of the position value.
- Required margin = 110,000 ÷ 30 × 1 = $3,666.67.
The broker sets aside $3,666.67 to hold a position worth $110,000. Enter an account balance of $10,000 and the calculator also shows the margin as 36.67% of the account, with $6,333.33 of free margin left.
The calculator above opens with these numbers, so you can change one input and see what moves.
What is margin in trading?
Margin is a deposit, not a cost. When you open a leveraged position, your broker sets aside part of your balance as collateral and releases it when the trade closes. You are not charged the margin, and you do not lose it unless the trade itself loses money.
It is also not your risk. The margin on one lot of EUR/USD at 1:30 is $3,666.67, but what you lose on the trade depends on your stop: a 30-pip stop on that lot loses $300. Margin tells you whether you can open the position. Your stop and size tell you what it can cost.
Margin required at different leverage
The table uses EUR/USD at 1.1000, where one standard lot is worth $110,000. The leverage a broker may offer depends on the regulator, the instrument and the type of client, so check the figure that applies to your account. Major pairs usually get the highest leverage, with lower limits on minor pairs, indices, commodities and crypto.
| Leverage | Margin requirement | Margin for 1 lot | Margin for 0.10 lots |
|---|---|---|---|
| 1:10 | 10.00% | $11,000.00 | $1,100.00 |
| 1:20 | 5.00% | $5,500.00 | $550.00 |
| 1:30 | 3.33% | $3,666.67 | $366.67 |
| 1:50 | 2.00% | $2,200.00 | $220.00 |
| 1:100 | 1.00% | $1,100.00 | $110.00 |
| 1:500 | 0.20% | $220.00 | $22.00 |
Free margin and margin level
Free margin is your equity minus the margin already in use. It is what you have left to open new positions and to absorb losses on the ones you hold. As an open trade loses money, equity falls and free margin falls with it.
Brokers track this with the margin level: equity divided by used margin, as a percentage. If it drops to the broker's margin call level you are warned or stopped from opening new trades, and at the stop-out level the broker starts closing positions. Each broker sets its own levels, so check your account terms.
How much margin should a trade use?
There is no fixed rule, but using most of your balance as margin leaves little room for the trade to move against you before the margin level becomes a problem. Several positions open at once add their margin together.
Size the trade from your risk first, with a stop and a risk percent, then check the margin. If a properly sized trade needs more margin than you have, the account is too small for that instrument at that stop, and more leverage is not the fix.
FAQs
Margin questions
How do you calculate margin?
Divide the position value by your leverage. The position value is the price multiplied by the contract size and the number of lots. One lot of EUR/USD at 1.1000 is worth $110,000, so at 1:30 the required margin is $110,000 ÷ 30 = $3,666.67. If your account is in another currency, convert the result at the current rate.
What is the difference between margin and leverage?
They are two ways of stating the same thing. Leverage says how large a position you can hold for each unit of deposit, and the margin requirement says what deposit a position needs as a percentage. Leverage of 1:50 is a 2% margin requirement, and 1:100 is 1%. Divide 100 by one to get the other.
Is margin the amount I can lose on a trade?
No. Margin is collateral the broker holds while the trade is open. What you lose is set by how far the price moves against you and how large the position is. A trade can lose much less than its margin if the stop is close, or more than its margin if the price gaps or you hold without a stop.
What is a margin call?
A margin call happens when losses on open trades reduce your equity to the point where it no longer covers the margin your broker requires. Depending on the broker, you are asked to add funds, blocked from opening new trades, or have positions closed automatically at a stop-out level. The trigger levels are in your broker's terms.
How much margin do I need for 0.1 lots?
A tenth of the margin for one lot. On EUR/USD at 1.1000, 0.1 lots is worth $11,000. At leverage of 1:30 that needs $366.67 of margin, at 1:100 it needs $110, and at 1:500 it needs $22. Change the price, lot size and leverage in the calculator to match your own trade.
Does higher leverage mean higher risk?
Only if you use it to trade larger. Leverage lowers the margin a position needs, and it does not change what a given position gains or loses per pip. The danger is that high leverage allows positions far too large for the account. A trade sized from a stop and a risk percent carries the same risk at 1:30 as at 1:500.
Free trading journal and analytics
Plan the trade here. Review it in TraderWaves.
Every calculator on this site is also inside the app, next to a journal that records what you actually did and analytics that show whether it worked.

