Risk • 6 min • Feb 21, 2026

40% Margin Rule Explained: Real MT5 Position Sizing Examples

The 40% margin rule is the number one reason traders fail prop firm challenges. Here is the exact lot size formula with real MT5 examples to never breach margin again.

Back to Blog Explore Platform

Key Takeaways

  • Understand 40% margin rule: used margin cannot exceed 40% of account equity
  • Learn margin formula: (Lot Size × Contract Size) ÷ Leverage = Margin Used
  • Calculate max lot size for different account sizes and leverage levels
  • Avoid common mistakes: multiple positions, high-leverage traps, and margin calls

What Is the 40% Margin Rule (And Why It Matters)

The 40% margin rule is a hard limit used by most prop firms (FTMO, MyForexFunds, The5ers, and others). It states: the total margin used across all open positions cannot exceed 40% of your account equity at any time.

This is not a suggestion. This is an automatic fail condition. If you violate the 40% margin rule during your challenge, your account is immediately terminated. No warning. No grace period. Same as violating max drawdown or daily loss limits.

Most traders fail this rule because they do not understand the difference between risk, margin, and drawdown. Risk is what you lose if the stop is hit. Margin is what the broker locks up to keep your position open. Drawdown is your total loss from starting equity.

You can risk 1% per trade (safe) but still use 50% margin (unsafe) if your lot size is too large. The 40% margin rule forces you to calculate position size correctly before you enter, not during the trade when it is too late.

Margin vs Balance vs Equity: The Math Explained

Balance is the starting account size. If you start a $100,000 prop challenge, your balance is $100,000. Equity is balance plus or minus your floating profit/loss on open trades. If you are up $2,000 on an open position, equity is $102,000.

Margin is the amount of money your broker locks up as collateral to keep a position open. This is determined by lot size, contract size, and leverage. The formula is: Margin = (Lot Size × Contract Size) ÷ Leverage.

Example: You trade 1 standard lot of EUR/USD. Contract size is 100,000 units. Your prop account has 1:100 leverage. Margin used = (1 × 100,000) ÷ 100 = $1,000. That $1,000 is now locked as margin and cannot be used to open new positions.

The 40% margin rule applies to equity, not balance. So on a $100,000 account with $100,000 equity, your maximum allowed margin is $40,000. If you use more than $40,000 in margin across all open positions, you breach the rule and fail the challenge.

This is why multiple open positions are dangerous. Each position consumes margin. Three 1-lot trades on EUR/USD = $3,000 margin used. That is only 3% of a $100k account. But if you open 15 positions, you are at $15,000 margin (15%). Add high-leverage pairs or indices and you hit 40% fast.

Lot Size Formula for 40% Margin Compliance

The safe formula to stay under 40% margin: Max Lot Size = (Account Equity × 0.40 × Leverage) ÷ Contract Size. This calculates the absolute maximum lot size you can trade without breaching the margin rule.

Example 1: $100,000 account, 1:100 leverage, EUR/USD (contract size 100,000). Max Lot Size = (100,000 × 0.40 × 100) ÷ 100,000 = 40 lots. If you trade more than 40 lots total (across all open positions), you breach the 40% margin limit.

Example 2: $50,000 account, 1:100 leverage, same pair. Max Lot Size = (50,000 × 0.40 × 100) ÷ 100,000 = 20 lots maximum. This is cumulative. If you have 3 open trades at 7 lots each (21 lots total), you are over the limit.

But max lot size is not recommended lot size. Just because you can trade 40 lots does not mean you should. Risk management says risk 0.5-1% per trade. On a $100k account, that is $500-$1,000 risk per trade. With a 50-pip stop, that translates to 1-2 lots per trade, not 40.

The 40% margin rule is a ceiling, not a target. Your actual position size should be determined by risk per trade, not by how much margin you can use. The margin rule just ensures you do not accidentally over-leverage.

  • Calculate max lot size: (Equity × 0.40 × Leverage) ÷ Contract Size
  • Risk-based position sizing: Risk $ ÷ (Stop Distance in Pips × Pip Value)
  • Always use risk-based sizing (0.5-1% per trade) as your primary limit
  • Margin rule is a secondary safety check to prevent over-leveraging

Real MT5 Example: EUR/USD on $100k Account

Let us walk through a real MT5 trade setup. You have a $100,000 prop account with 1:100 leverage. You want to buy EUR/USD at 1.0850 with a 50-pip stop loss. Your risk tolerance is 1% per trade, which is $1,000.

Step 1: Calculate lot size based on risk. Formula: Risk $ ÷ (Stop Pips × Pip Value). For EUR/USD, 1 pip = $10 per lot. So: $1,000 ÷ (50 pips × $10) = 2 lots. This is your risk-based position size.

Step 2: Calculate margin used. Formula: (Lot Size × Contract Size) ÷ Leverage. For 2 lots: (2 × 100,000) ÷ 100 = $2,000 margin. On a $100k account, this is 2% margin usage. Well under the 40% limit.

Step 3: Check if multiple positions would breach margin. If you have 2 other open trades also using $2,000 margin each, total margin = $6,000 (6% of equity). Still safe. But if you had 20 open positions at 2 lots each, margin = $40,000 (40% exactly). Any additional trade breaches the rule.

This is why discipline around number of open trades matters. Even if each trade risks only 1%, having too many open at once consumes margin. Most prop firms allow 3-5 open trades maximum for this reason. More trades = more margin stress.

Common Mistakes That Cause Margin Violations

Mistake 1: Trading multiple pairs simultaneously without tracking cumulative margin. You open 5 trades across EUR/USD, GBP/USD, USD/JPY, Gold, and NAS100. Each uses different contract sizes and margin requirements. You assume you are safe because each trade risks 1%, but total margin hits 45%. Instant fail.

Mistake 2: Using high leverage incorrectly. Some prop firms offer 1:200 or 1:500 leverage. Traders think this means they can trade bigger. Wrong. Higher leverage reduces margin per position, which makes it easier to open too many trades. The risk stays the same. Only margin changes. More leverage = more temptation to overtrade.

Mistake 3: Not accounting for floating losses. Margin is calculated on equity, not balance. If your open trades are down $5,000, your equity drops to $95,000. Now your max margin is $38,000 instead of $40,000. If you had $39,000 margin open when equity was $100k, you now breach the rule at $95k equity.

Mistake 4: Revenge trading after a loss. You lose a trade. Equity drops. You open 3 new positions to recover. But your margin capacity is now lower due to reduced equity. You think you are fine because you traded these lot sizes before, but the margin limit has tightened. Breach.

The fix: pre-calculate lot size and margin before every trade. Use a calculator (like UTC lot calculator). Track total margin used across all open positions. Never open a new trade without verifying you have margin headroom.

UTC Lot Calculator: Instant Position Sizing

Every calculation in this guide is automated in UTC. The lot calculator takes your account size, risk percentage, stop distance, and currency pair. It outputs the exact lot size that satisfies both risk limits (1% per trade) and margin limits (under 40% total usage).

The pre-trade checklist prevents margin violations by forcing you to confirm: How many positions do I have open? What is my current margin usage? What will margin be after this trade? If the answer exceeds 40%, the system flags it before you enter.

The dashboard shows real-time margin usage across all open trades. You always know: current equity, total margin used, and margin headroom remaining. No guessing. No spreadsheet math during live trades. Just instant visibility.

This is not optional for prop trading. Prop firm rules are strict. Manual calculations introduce error. One mistake breaches the challenge and costs you the account. Automated position sizing removes that risk.

Free tier includes lot calculator for single trades. Premium tier includes multi-position margin tracking and real-time alerts when approaching 40% limit. Both prevent the number one avoidable mistake prop traders make.

FAQ

What is the 40% margin rule for prop firms?

The 40% margin rule means used margin cannot exceed 40% of account equity across all open positions. If you violate this limit at any time during a prop challenge, your account is immediately terminated—just like breaching drawdown limits.

How do I calculate margin used on MT5?

Formula: Margin = (Lot Size × Contract Size) ÷ Leverage. Example: 1 lot EUR/USD with 1:100 leverage = (1 × 100,000) ÷ 100 = $1,000 margin. Check MT5 terminal's "Margin" column for real-time usage.

What is the maximum lot size under 40% margin rule?

Max Lot Size = (Account Equity × 0.40 × Leverage) ÷ Contract Size. For $100k account at 1:100 leverage on EUR/USD: (100,000 × 0.40 × 100) ÷ 100,000 = 40 lots total across ALL positions.

Can multiple open positions breach 40% margin?

Yes. Each position consumes margin. Three 5-lot trades = 15 lots total. If total margin across all positions exceeds 40% of equity, you breach the rule. Always track cumulative margin usage, not individual trades.

What is the difference between margin and risk?

Margin is broker collateral to keep position open (calculated from lot size). Risk is potential loss if stop is hit (calculated from stop distance). You can risk 1% safely but still breach 40% margin if lot size is too large.