There is a specific moment every leveraged trader eventually meets. The account is floating red, the platform is showing some percentage in the margin field, and you genuinely do not know whether you have room for a normal pullback or whether one bad hour ends the account. Most people in that moment do something strange: they stare at the margin level number, which they don't fully understand, and derive a feeling from it. Six hundred percent feels fine. Three hundred feels tense. Nobody can say why.
A proper margin call calculator doesn't give you a feeling. It gives you a distance. Not "your margin level is 412%", but "price can move 187 pips against you before the call, and 214 before the broker starts force-closing your positions". That second framing changes behaviour instantly, because pips are the unit you actually think in. You know what a 187-pip move looks like on your pair. You know whether that's a fortnight of chop or a single news candle.
This article builds that calculator by hand. Not because you'll do the arithmetic on a napkin every session, but because once you've done it three or four times you'll never again misread your own account. We'll run it for a single position, for a stack of correlated positions, for the hedged account (where the answer surprises almost everyone), and for gold, where the pip values are chunky enough to make careless sizing genuinely expensive. Then we'll convert distance into time, because "80 pips of room" means something completely different on a sleepy Asian session than it does forty minutes before a Fed statement.
The number you actually need: pips until the call
Your trading platform reports margin level as a percentage: equity divided by used margin, times one hundred. It's an honest number and an unhelpful one. It tells you where you are; it says nothing about how fast you're moving or how far the cliff edge is in the units that matter.
Think about what actually kills accounts. Price moves against your open positions, floating losses eat equity, equity falls toward used margin. At some threshold, commonly 100% margin level, the broker sends the margin call: a warning, sometimes an email, sometimes just the platform header turning an alarming colour. At a lower threshold, often 50%, sometimes 20%, occasionally 30% depending on the broker and the regulator, the stop-out fires and the platform starts liquidating your positions for you, biggest loser first, no discussion.
So the two numbers worth knowing are:
- How many pips of adverse movement until margin level hits the call threshold.
- How many pips until it hits the stop-out threshold.
Everything else, the percentage, the free margin figure, the little bar in the terminal, is raw material for those two answers. And here's the uncomfortable bit most traders discover only once, the hard way: the gap between the call and the stop-out is usually far smaller than the gap between here and the call. You can drift toward trouble for days and then cover the final stretch in twenty minutes. We wrote about that mechanic in detail in margin call versus stop-out, and it's worth reading alongside this piece, because the calculator below will show you the same asymmetry in cold numbers.
One honesty note before the arithmetic. Everything here assumes leveraged trading, and leveraged trading of forex, CFDs and gold carries real risk of losing your deposit, sometimes quickly. A calculator tells you where the edge is. It does not make standing near the edge safe.
The inputs: four numbers, all on your platform
Every version of the margin call calculator uses the same four inputs. All of them are visible in your terminal right now, though one of them takes ten seconds of thought.
| Input | Where it lives | What it is |
|---|---|---|
| Equity | Terminal header | Balance plus floating profit/loss, right now |
| Used margin | Terminal header ("Margin") | Collateral locked against open positions |
| Broker thresholds | Contract specs / broker site | Margin call % and stop-out % |
| Pip value of exposure | Calculated | Dollars gained/lost per pip of adverse movement, summed |
Equity is the live one. Not balance. Balance is history, the result of closed trades; equity is balance corrected for everything currently open, and it's equity the broker compares against margin. Traders who watch balance while equity bleeds are the ones who get surprised.
Used margin is fixed while your positions are open (it drifts slightly with the quote currency, but for our purposes treat it as static). This matters: as price moves against you, the denominator of the margin level stays put while the numerator falls. The percentage doesn't decay in a straight line against price; your dollars do, and that's why calculating in dollars first, then converting to pips, is the clean route.
Broker thresholds you look up once and write down. Do it today, seriously, before you need it. A 100/50 broker (call at 100%, stop-out at 50%) and a 100/20 broker behave very differently in a crisis; the second gives you more rope, which is not obviously a kindness. If you can't find the thresholds in the contract specifications, ask support and get it in writing.
A word on the threshold zoo, because it's wider than people assume. Offshore brokers commonly run 100/50 or 100/20. Some run 50/20. Brokers under ESMA-style regulation are standardised at a 50% stop-out on retail accounts, with the call convention varying. A handful of platforms show "margin level" as a ratio instead of a percentage, and at least one popular broker fires the stop-out per position rather than per account. None of this is knowable from the platform header, all of it changes your answer, and every bit of it is in the contract specifications you agreed to and never read. Ten minutes with that document is the highest-value research most traders will do this month.
Pip value of exposure is the only input requiring assembly. For a single position it's trivial: a standard lot of EURUSD is $10 per pip, so 0.7 lots is $7. For multiple positions you need to decide which direction "against you" means and sum the pip values of everything that loses in that scenario. We'll do this properly in the multi-position example, because it's where most home-made calculators quietly go wrong.
The margin call calculator, done by hand
Here is the whole method. Four steps, no algebra beyond a division.

Step one: find the equity floor. Multiply used margin by the threshold percentage. If your used margin is $800 and the call comes at 100%, the call floor is $800. If stop-out is 50%, the stop-out floor is $400. These floors are fixed dollar amounts, which is what makes the rest easy.
Step two: find your room. Subtract each floor from current equity. Equity $3,000, call floor $800: you have $2,200 of losses available before the call. Stop-out floor $400: $2,600 before liquidation begins. Notice these are dollars of additional loss from here, on top of whatever you're already floating.
Step three: find your combined pip value. Sum the per-pip dollar exposure of every position that loses in the adverse scenario you're testing. One position, easy. Several, add them. Offsetting positions, subtract, with a large caveat we'll get to in the hedging section.
Step four: divide. Room divided by pip value equals pips of adverse movement remaining.
That's it. That's the entire margin level calculator forex platforms don't build into the header, presumably because "you are 63 pips from liquidation" is worse for trading volumes than a reassuring green percentage.
The margin level percentage tells you where you stand. Pips-to-stop-out tells you how long you get to keep standing there.
Two refinements worth knowing before we run examples. First, spread: your positions are marked to market on the closing side of the spread, so in fast markets the spread widening alone moves you closer to the floor without price "really" going anywhere. On majors this is pennies; on gold at 3am or during news it can be several pips of phantom movement. Shave your answer accordingly. Second, swap: overnight financing debits come out of equity, so if you're holding for days, your room shrinks a little every rollover even in a flat market. Slow bleed, same floor.
Single position: Sam and the short euro
Let's give the method a workout. A trader we'll call Sam has a $4,000 account with a 100/50 broker at 1:200 leverage. Sam is short 1.5 lots of EURUSD from 1.0900 and the trade is currently flat, so equity sits at $4,000.
Used margin: 150,000 euros of notional at 1.0900 is $163,500, divided by 200, gives $817.50. The platform will show something near that.
Call floor: 100% of $817.50 is $817.50. Stop-out floor: 50% is $408.75.
Room to the call: $4,000 minus $817.50 leaves $3,182.50. Room to stop-out: $3,591.25.
Pip value: 1.5 lots of EURUSD is $15 per pip.
Distance: $3,182.50 divided by $15 is roughly 212 pips to the margin call. $3,591.25 divided by $15 is about 239 pips to the stop-out.
Now look at what those numbers are actually saying, because this is where the feeling-based reading of margin level falls apart. Sam's platform shows a margin level of 489%, which feels like a fortress. And 212 pips is genuinely decent room on EURUSD; that's a strong week of trend against him. But the gap between the call and the stop-out is only 27 pips. Once the warning arrives, Sam does not have another comfortable buffer. He has one modest impulse candle. The call isn't the halfway point of the danger zone; it's the last exit before the bridge.
Run the same account at 1:30, the leverage cap a UK or EU regulated broker would apply, and used margin jumps to $5,450, which Sam cannot even open with $4,000. That's not the regulator being a killjoy. That's the regulator doing this exact calculation and deciding retail accounts shouldn't be allowed to stand that close to the edge in the first place.
It's also worth being precise about what "the margin call" gets Sam. On most modern platforms, nothing tangible: no phone call from a concerned broker like the old films, often not even an email, just the margin level readout turning red and, on some terminals, new orders being blocked. The threshold is best understood as the moment the broker starts treating your account as a liquidation candidate rather than a customer. If Sam is at his desk when it happens, he has a 27-pip window to act deliberately. If he's asleep, the platform acts for him at the stop-out, at whatever price the overnight market felt like offering. Which is an argument for doing the arithmetic before bed, not after breakfast.
One more variation, because it's the situation people are usually in when they search for a stop out calculator: suppose Sam's short is already 100 pips underwater. Equity is now $2,500, not $4,000. Room to the call becomes $1,682.50, or 112 pips; room to stop-out about 139. The floors never moved. Only his equity did. Rerun the four steps any time the floating P/L changes materially, because the answer decays exactly as fast as your losses grow.
Multi-position accounts: correlation is a position
Here's where most traders' mental arithmetic collapses. Sam's friend, call her Priya, runs a $5,000 account, same 100/50 broker, same 1:200 leverage, and holds three positions: short 1 lot EURUSD, short 0.5 lots GBPUSD, long 0.5 lots USDJPY. Three different pairs, three different charts. Feels diversified.
It isn't. All three trades are the same trade: long the US dollar. If the dollar sells off broadly, every one of them loses at once.
Used margin: roughly $545 for the EURUSD, $318 for the GBPUSD, $250 for the USDJPY. Call it $1,113 total. Call floor $1,113, stop-out floor about $556.
Room: $5,000 minus $1,113 is $3,887 to the call; $4,444 to the stop-out.
Pip value in the adverse scenario, a broad dollar decline: $10 per pip on the euro short, $5 on the cable short, and roughly $3.40 per pip on the half-lot yen long at current rates. Combined: about $18.40 per pip of synchronised dollar weakness.
Distance: $3,887 divided by $18.40 is roughly 211 pips of coordinated move to the call.
Priya would tell you she has three medium positions. The calculator says she has one position of nearly two lots' worth of pip exposure pointed at a single macro outcome. Her honest distance to the call is about the same as Sam's, except her trigger isn't one pair misbehaving, it's one dollar-negative headline, a soft CPI print, a dovish press conference, and the whole book moves together. The pips to margin call number is only meaningful if you compute it against the scenario that actually threatens you, and for a correlated book that scenario is "everything at once".
The half-honest version of this calculation, the one where you compute each position's distance separately and take comfort from the largest, is worse than not calculating at all, because it manufactures confidence. If your positions share a driver, and most retail books are far more correlated than their owners believe, sum the pip values and treat the stack as one trade. Uncorrelated positions do give you some genuine protection, but "EURUSD and GBPUSD" is not uncorrelated, and neither is "gold and the yen" on a risk-off day. When in doubt, run the worst case: everything against you, simultaneously. If that number still leaves you comfortable, you're actually comfortable.
The hedged account: why the maths flips
Now the case that surprises nearly everyone. Suppose a trader is long 1 lot EURUSD and short 1 lot EURUSD in the same account. Fully hedged. On most MT4/MT5 brokers, the margin charged on a perfectly hedged pair is zero, or half of one side, depending on settings.
Run the calculator and something odd happens. The combined pip value of the book is zero: whatever the long loses the short gains, tick for tick. Divide any amount of room by zero pip value and the distance to the call is, mathematically, infinite. Price cannot margin-call this account. Traders discover this and conclude they've found a cheat code, which is exactly why brokers let you do it.
Here's the flip. Your distance to the margin call is no longer measured in pips at all. It's measured in days.
The hedged book's net floating P/L is frozen, but the account still bleeds through swap, and on most pairs at least one leg, often both after the broker's markup, pays negative rollover every night. The spread cost of eventually closing both legs is baked in too. So equity grinds down a few dollars a day, forever, toward whatever floor your remaining used margin implies. Nothing on the chart can save you, because you've disconnected the account from the chart. You've swapped a fast, visible risk for a slow, invisible one, and paid a nightly fee for the privilege.
And the ending is nastier than it sounds. If the account does eventually reach stop-out, through swap bleed or because other unhedged positions dragged equity down, the platform doesn't close your hedge as a pair. It closes the single biggest losing position first. The instant it does, you are no longer hedged: you're fully exposed, full size, in the direction that was losing, with a gutted account, often during exactly the kind of violent market that caused the trouble. The hedge that made you unkillable in pips makes you maximally fragile at the stop-out.
We see this constantly in accounts that come to us deep underwater: the "locked" hedge that someone opened to stop the bleeding six months ago, quietly composting equity via swap while the owner avoided the decision. If that's the state of your account, and it's floating several thousand down with a hedge nobody wants to touch, that's precisely the situation our drawdown management service exists for, and the first conversation is usually about how to unwind the lock without detonating what's left. There are no recovery guarantees in that work, ours or anyone's, but there is a right order of operations, and "wait for stop-out to choose for you" is not it.
Gold positions: rerunning the numbers at XAUUSD scale
Everything above translates to gold, but the magnitudes change enough that people who size gold like a forex pair get hurt. Since gold is all we trade signals on, this section is close to home.
Contract mechanics first. One standard lot of XAUUSD is 100 ounces. A $1.00 move in the gold price is $100 per lot. The industry loosely calls a $0.10 move a "pip" ($10 per lot), but honestly, think in dollars of price; gold moves are quoted that way everywhere and the mental arithmetic is cleaner.
Concrete case. A $3,000 account, 100/50 broker, 1:100 leverage on metals (metal leverage is often lower than forex leverage; check yours). The trader is long 0.2 lots of gold at $4,000.
Used margin: 0.2 lots is 20 ounces, $80,000 notional, divided by 100 gives $800.
Floors: $800 to the call, $400 to the stop-out.
Room: $2,200 to the call, $2,600 to the stop-out.
Exposure: 0.2 lots loses $20 per $1.00 of adverse movement.
Distance: $2,200 divided by $20 is a $110 price move to the margin call. About $130 to the stop-out.
Is $110 a lot of room on gold? This is where gold punishes forex intuition. In a quiet regime, gold's daily range might be $25 to $40 and $110 feels like a comfortable few days. In the kind of volatility gold has shown through 2025, daily ranges of $60, $80, occasionally north of $100 on real news, that same $110 is one bad day. Not a crash. A Tuesday. The identical position, the identical account, moves from "reasonable" to "reckless" purely on the volatility regime, which is the whole argument of the next section.
The other gold-specific trap is the spread. Gold spreads on retail accounts run anywhere from $0.15 to $0.50 and stretch dramatically around news and at the daily rollover. On a 0.2-lot position a $0.40 spread widening marks your equity down $8 without price moving at all. Trivial on a healthy account; on an account 90% of the way to its floor, sometimes the last straw. Every signal we publish is gold, every one carries a defined stop, and every closed one, winner or loser, sits publicly at /signals/history precisely because gold's speed makes vague risk talk dangerous. The stop is what keeps this whole calculator academic, and that's the goal: an academic calculator means your risk is being handled further upstream.
From distance to time: what volatility does to your number
Pips of room is a distance. Trading happens in time. The conversion between them is volatility, and skipping this step is how traders with "plenty of room" get stopped out on a Wednesday.
The tool is ATR, average true range, sitting in every platform's indicator list. Take the daily ATR of your pair and divide your distance by it. That's your buffer expressed in average days of pure adverse trend.
Sam's 212 pips to the call, against a EURUSD daily ATR of 70 pips, is three days of solid trend against him. Not bad. Priya's 211 correlated pips against a dollar-index style move behave similarly, until an event compresses three average days into one afternoon. The gold trader's $110 against an $80 ATR is 1.4 days, which should make anyone sit up straighter.

Three refinements make this conversion honest rather than decorative:
- Use the current regime, not the yearly average. ATR over the last 14 days, and glance at the last five. Volatility clusters; the market that hurt you yesterday is disproportionately likely to hurt you again today.
- Respect the calendar. ATR is an average over quiet days and violent ones. The day before a rate decision, a payrolls print, a CPI release, your effective ATR is not the average, it's the ugly tail. If your buffer is fine on average and marginal on a news day, and there's a news day tomorrow, your buffer is marginal.
- Remember gaps. Distance-based comfort assumes price travels through every level on the way down, giving you time to react. Weekend gaps and news gaps don't travel; they teleport. A buffer of one ATR can be consumed between Friday's close and Sunday's open with no opportunity to intervene, which is a reason to size down over weekends when you're anywhere near the zone.
There's a subtler time effect worth naming too: the path matters, not just the distance. A market that grinds against you 20 pips a day gives you five separate evenings to notice, think and cut; a market that covers the same 100 pips in one session gives you none. Two accounts with identical buffers can face completely different real risks purely because one is short a slow trend and the other is short a coiled spring. You can't compute this precisely, but you can ask the question: is my adverse scenario a grind or a snap? Positions against building event risk, or against a market that's been unnaturally quiet for weeks, are snap candidates, and snap candidates deserve a bigger multiple of ATR than the table below suggests.
The honest summary: your real question was never "how many pips do I have?" It was "how many bad sessions can I survive?" Distance divided by regime-adjusted ATR is the closest a calculator gets to answering it.
Buffer targets: how much distance is enough
So what should the number be? Anyone selling you a universal answer is guessing, but years of watching accounts die suggests some usable zones, expressed in the units we just built: multiples of daily ATR between current price and your stop-out.
| Buffer (distance to stop-out) | Reading | What it means in practice |
|---|---|---|
| Under 1× daily ATR | Critical | One ordinary bad day liquidates you. Act now, not at the close. |
| 1–3× ATR | Thin | A normal losing streak or one news event puts you in the critical zone. |
| 3–5× ATR | Workable | Survivable turbulence, if nothing is oversized and correlations are known. |
| Over 5× ATR | Comfortable | Margin stops being the binding constraint; your stops and strategy are. |
A few opinions to go with the table. First, the target that matters is distance to stop-out, not distance to the call. The call is a courtesy; the stop-out is the event. Build your margin buffer calculation around the number that actually closes positions.
Second, if you're relying on this buffer at all, something upstream already went soft. A position with a hard stop-loss sized to risk 1% of the account should lose you 1% and close, tens of ATRs above any margin threshold. The margin buffer is the airbag, not the brakes. Traders who regularly know their pips-to-stop-out figure from memory are usually traders who removed their stops at some point, and the calculator has become a way of managing a problem that a stop would have prevented. Worth saying plainly: if the buffer number is part of your daily routine, the routine is the problem.
Third, hold more buffer than feels necessary in gold and during event weeks, and don't let a big equity number seduce you into shrinking the multiple. Five times ATR on a $50,000 account is exactly as necessary as five times ATR on a $500 one; the account is bigger but the market didn't get smaller.

If you compute your buffer and genuinely can't classify it, our FAQ walks through the platform-specific spots where brokers hide their threshold numbers, which is the usual sticking point.
Acting on a thin buffer: the ranked options
You've run the calculator and the answer is bad: under 2× ATR to the stop-out, say. What now? The options, ranked from best to worst, and the ranking is the point, because under stress people reliably reach for the bottom of this list first.
- Reduce size across the board. Closing half of every position doubles your pips-to-stop-out at a stroke, keeps your market view intact, and realises only half the pain. It's the least dramatic option, which is exactly why egos resist it. Do it anyway. Partial closes are the single most underused button on the platform.
- Close the worst position outright. Usually the biggest loser, which is usually the one you're most attached to. Realising a loss converts a floating threat into a fixed, known number and frees its margin, moving both sides of the ratio in your favour. The trade you most dread closing is, with grim reliability, the one that needs closing.
- Cut the correlation. If the multi-position section described your book, you can restore real breathing room by closing the overlapping trades and keeping one clean expression of the view. Three ways of being long the dollar can become one, at a third of the combined pip exposure.
- Add funds, only with a plan. Topping up genuinely increases equity and room, and occasionally that's rational, when the positions are sound, the sizing was the mistake, and the deposit comes paired with an immediate size reduction. But a deposit that just buys more distance for an unchanged, bleeding book isn't risk management; it's paying to extend a losing argument with the market. Brokers love this move for reasons that should give you pause.
- Hedging to "lock it in". Covered above. You already know what we think.
- Doubling down to average the price. The worst answer wearing the most convincing costume, because averaging down does move your break-even closer while it quietly doubles your pip value and slashes your remaining distance. Your buffer, in pips, roughly halves at the moment you can least afford it. There's a whole strategy built on institutionalising this mistake, and we've written about why martingale destroys accounts with the full arithmetic; the short version is that it converts many small survivable losses into one guaranteed unsurvivable one.
Notice that every good option on the list shrinks the position and every bad one grows it or freezes it. Under margin pressure that's nearly a universal law. The market is telling you the position is too big for the account; every response that disagrees with that message makes the ending worse.
The five-minute routine that replaces the panic
Let's compress all of this into something you'd actually do. Once a week, and any day your floating loss is more than a couple of per cent, run the four steps: floor, room, pip value, distance. Divide by current ATR. Write the answer down, and yes, physically write it, because the trend of that number across weeks is more informative than any single reading. An account drifting from 8× ATR to 5× to 3× over a month is telling a story its owner usually hasn't consciously heard yet.
While you're there, sanity-check three things. That you actually know your broker's two thresholds, in writing, not from memory. That your "diversified" positions aren't one macro bet wearing different tickers. And that every open position still has a hard stop, because the entire point of this calculator is to be unnecessary, a fire drill for a building that shouldn't burn.
If you'd rather see what disciplined sizing looks like from the outside before rebuilding your own, watching a stream of stop-defined gold signals with the full win-and-loss history public is one way to calibrate; that's what we do all day, and losing trades appear in that history because losing trades are part of any honest record. And if the calculator has just told you something you didn't want to hear, an account floating $5,000 or more down, hedged or frozen or simply stuck, that's the specific mess our drawdown desk works on, at a flat half of anything actually recovered above a baseline we record together, and nothing promised beyond the effort. High fee, honestly framed: pay-as-you-go on real recovery only, and plenty of accounts recover partially or not at all.
Where this leaves you
Here's the uncomfortable question to end on. Right now, without opening your platform: how many pips is your account from its stop-out, and how many average days is that?
If you can answer within 20%, you're in a small minority and probably don't need most of this article. If you can't, you're trading with a blindfold over the one gauge that decides whether you get to keep trading, and no amount of chart skill compensates for not knowing where the floor is. The margin call calculator isn't really a tool for emergencies. Run when things are calm, it's the instrument that stops emergencies being possible: it catches oversized positions while they're still cheap to fix, exposes correlated books pretending to be diversified, and puts a number on the exact quantity of denial in a hedged account.
Ten minutes, four divisions, one honest number. Cheaper than finding out the other way. Every trader who has taken a stop-out will tell you the same thing: the maths was available the whole time. They just never ran it.




