Margin and account mechanics
Worked scenario: a single position reaches close out
Every lesson in this module so far has taken one field of the account panel at a time. This one runs all of them at once. A single deposit, a single position, and a price that moves steadily in one direction, with every field restated at each step until the platform closes the position itself. No new idea is introduced anywhere in it. The only thing that is new is watching arithmetic that is already familiar arrive at a close out without anything else happening.
10 min read, Reviewed
What you will be able to do
- Follow equity, used margin, free margin and margin level through a sequence of price moves
- Identify the exact price at which margin call and stop out states are reached
- Explain how the same account behaves with a smaller position
- State what the closing balance is after the close out
The account at the moment the position opens
The scenario is the simplest one that can reach a close out. One deposit, one position, and no second trade at any point in the sequence. Costs are excluded throughout, so nothing below is caused by spread, commission or a financing adjustment, and every movement in every field traces back to the price and to nothing else. That is not what an account looks like in practice. It is the arrangement that makes the mechanism legible, because with one moving part a movement cannot be attributed to the wrong cause.
Three quantities fix the starting state and everything else is derived from them. The balance is the settled cash. The position has a face value, its number of units multiplied by the price at which it opened. The margin requirement is the percentage of that face value held while the position is open, and applying it gives the used margin. Equity, free margin and margin level are then read off those three, in the order the platform calculates them.
The starting state, one long position on a rising expectation
- Balance
- 10,000.00
- Position size, in units
- 100,000
- Opening price
- 1.0000
- Face value, size × price
- 100,000 × 1.0000 = 100,000.00
- Assumed margin requirement
- 5%
- Used margin, 5% of face value
- 5,000.00
- Unrealised result at the open
- 0.00
- Equity, balance plus unrealised
- 10,000.00 + 0.00 = 10,000.00
- Free margin, equity less used margin
- 10,000.00 less 5,000.00 = 5,000.00
- Margin level, equity ÷ used margin × 100
- 10,000.00 ÷ 5,000.00 × 100 = 200%
The instrument is deliberately unnamed and the price is a round canonical figure, because nothing in the arithmetic depends on which market the position is written on. The margin requirement is an assumption chosen to keep the division legible; requirements differ by instrument and are set by the counterparty, and this one is not a term offered anywhere. The used margin is assumed to be fixed at the opening price and held constant for the whole sequence, which is the convention on many instruments but not on all of them. Spread, commission and any financing adjustment are excluded.
Two things in that block matter before the price moves. The account is committed to the used margin rather than to the face value, and the gap between the two is what lets the sequence below run as far as it does before anything happens at all. And equity begins exactly equal to the balance, because at the instant a position opens there is nothing unrealised to add. From the next update onward those two figures are never the same again until the position is closed.
Key term
- Equity
- Equity is an account's balance adjusted for the running profit or loss on every open position, so it states what the account would be worth if all positions closed at the current quotation.
What each price does to the panel
From here nothing is traded and nothing is decided. The price moves and the panel is restated. Of the five figures, two hold still and three move. The balance holds still because nothing has been realised, and the used margin holds still because the position has not changed size and its requirement was fixed at the opening price. Equity, free margin and margin level all move on every update, driven by one quantity between them: the unrealised result of the single open position.
That single dependency is why the ladder below is so uniform. An equal step in price produces an equal step in the unrealised figure, and therefore in equity, in free margin and, because the denominator is held constant, in the percentage as well. Uniformity is a property of this simplified case rather than of close outs in general. On an instrument whose requirement is recomputed from the prevailing price, the denominator moves too and the percentage does not fall in even steps.
The same account restated at each price, adverse and favourable
- Price 1.0000, unrealised result
- 0.00
- Price 1.0000, equity · free margin · margin level
- 10,000.00 · 5,000.00 · 200%
- Price 0.9800, unrealised result
- 0.0200 × 100,000 = 2,000.00 debit
- Price 0.9800, equity · free margin · margin level
- 8,000.00 · 3,000.00 · 160%
- Price 0.9600, unrealised result
- 0.0400 × 100,000 = 4,000.00 debit
- Price 0.9600, equity · free margin · margin level
- 6,000.00 · 1,000.00 · 120%
- Price 0.9500, unrealised result
- 0.0500 × 100,000 = 5,000.00 debit
- Price 0.9500, equity · free margin · margin level
- 5,000.00 · 0.00 · 100%
- Price 0.9400, unrealised result
- 0.0600 × 100,000 = 6,000.00 debit
- Price 0.9400, equity · free margin · margin level
- 4,000.00 · 1,000.00 negative · 80%
- Price 0.9250, unrealised result
- 0.0750 × 100,000 = 7,500.00 debit
- Price 0.9250, equity · free margin · margin level
- 2,500.00 · 2,500.00 negative · 50%
- For comparison, price 1.0200, unrealised result
- 0.0200 × 100,000 = 2,000.00 credit
- Price 1.0200, equity · free margin · margin level
- 12,000.00 · 7,000.00 · 240%
- For comparison, price 1.0750, unrealised result
- 0.0750 × 100,000 = 7,500.00 credit
- Price 1.0750, equity · free margin · margin level
- 17,500.00 · 12,500.00 · 350%
The last four rows are the same distances travelled in the opposite direction, computed from the same figures and shown at the same prominence, so that neither direction reads as the expected one. The used margin stays at 5,000.00 in every row by the assumption stated in the block above. Free margin is written as a negative figure where equity has fallen below the used margin. All figures are illustrative, are not attached to any instrument or account, and exclude spread, commission and any financing adjustment.
Where free margin runs out
One row in that ladder deserves to be pulled out on its own. At one price in the descent the free margin reads exactly zero and the margin level reads exactly one hundred percent, and those are not two coincidences that happen to land together. They are the same statement written two ways. Free margin is equity less used margin, so it reaches zero when equity equals used margin. Margin level is equity divided by used margin, so it reads one hundred percent when equity equals used margin. The identity holds for every account, every position and every size, and it never needs to be checked.
In plain terms that row is where the account has run out of capacity. Nothing further can be opened, because there is nothing left over the used margin to hold against it. The position already open is unaffected: no instruction has been issued and no field has changed except by arithmetic. An account can sit at that row for a long time, and it can climb out of it on the next price update.
A margin call is the state entered when the percentage falls to a level a firm has stated in its own terms, and setting that level at the point where free margin reaches zero is a common convention rather than a universal one. Some firms set it above that point, some below, and some issue no separate warning state at all. Two limits travel with it wherever it is set. It is a notification rather than an action, so no position closes because a margin call occurred. And it is evaluated against the prevailing price, so a market moving quickly enough can pass through the warning level and the close out level between two updates, which is the case where a warning arrives with nothing left to warn about.
Below that row the ladder simply keeps going, and free margin becomes negative. A negative free margin is not an overdraft and nothing has been borrowed. It states one fact and no more: equity has fallen below the amount being held against the open position. Because profit and loss are calculated on the full face value of the contract rather than on the margin held against it, there is nothing in that arithmetic that stops when the margin is exhausted, and losses are therefore not limited to the amount deposited.
Key term
- Margin level
- Margin level states account equity as a percentage of the margin currently in use, the single figure a firm's warning and close-out thresholds are measured against.
The two thresholds located as prices
The ladder was built forwards, by choosing prices and computing the fields. The same arithmetic runs backwards, and running it backwards is what turns a threshold from a number on a panel into a price on a chart. A threshold stated as a margin level states an equity, because equity is the only unknown in the fraction once the used margin is fixed. The balance less that equity is the loss that reaches it. That loss divided by the number of units is the distance in price, and the distance taken off the opening price is the price itself.
Solving the same account backwards, from threshold to price
- Balance, unchanged while the position is open
- 10,000.00
- Used margin, unchanged
- 5,000.00
- Assumed warning level, as a margin level
- 100%
- Equity at the warning level, 100% of used margin
- 5,000.00
- Loss that reaches it, balance less that equity
- 10,000.00 less 5,000.00 = 5,000.00
- Distance in price, loss ÷ units
- 5,000.00 ÷ 100,000 = 0.0500
- Price at the warning level
- 1.0000 less 0.0500 = 0.9500
- Assumed close out level, as a margin level
- 50%
- Equity at the close out level, 50% of used margin
- 2,500.00
- Loss that reaches it
- 10,000.00 less 2,500.00 = 7,500.00
- Distance in price
- 7,500.00 ÷ 100,000 = 0.0750
- Price at the close out level
- 1.0000 less 0.0750 = 0.9250
Both threshold levels here are labelled assumptions used to make the arithmetic legible. They are not terms offered anywhere and they are not attached to any account. The subtraction is written for a position that gains when price rises; for one that gains when price falls the distance is added to the opening price instead and every other line is identical. The used margin is held constant per the assumption in the first block, so the whole calculation reduces to a subtraction and a division. Spread, commission and any financing adjustment are excluded.
Both prices in that block were already sitting in the ladder, which is the point of computing them a second way. Nothing was discovered. The thresholds are not events arriving from outside the account, they are two particular prices among all the others, and the only thing distinguishing them is that the platform is watching for them. On a YAL account the stop out level, the lower of the two, is a margin level of 50%. The warning level above it is a separate figure, set in a firm's own terms, and the two are not the same number and are never assumed to be.
Key term
- Stop out level
- The stop out level is the margin level, stated as a percentage, at which a firm begins closing open positions automatically because the equity supporting them has fallen too far.
The close out, and the balance afterwards
At the close out level the platform closes the position itself, and three things happen in the same instant. The unrealised result stops being unrealised and is applied to the balance. The used margin is released, because there is no longer an open position for it to be held against. And equity, having been the balance plus an unrealised figure for the whole sequence, becomes the balance again.
The account immediately after the close out
- Price at which the position is closed
- 0.9250
- Loss, now realised
- 0.0750 × 100,000 = 7,500.00
- Balance, opening balance less the realised loss
- 10,000.00 less 7,500.00 = 2,500.00
- Used margin, position closed
- 0.00
- Equity, nothing unrealised remaining
- 2,500.00
- Free margin, equity less nothing held
- 2,500.00
- Margin level, nothing open to divide by
- undefined
- Proportion of the opening balance remaining
- 2,500.00 ÷ 10,000.00 = 25%
The closing balance here is what the arithmetic gives at the threshold price, on the assumptions carried through the whole scenario. It is not a floor and not a guarantee. Figures are illustrative, exclude spread, commission and any financing adjustment, and the realised loss would be larger once those were included.
The closing balance has a shape worth naming, because it is the same for every account that reaches a close out on these assumptions. What survives is the equity the threshold defines, which is the stated fraction of the used margin, and nothing else about the account enters it. Neither the opening balance nor the face value appears in it. A close out at a level of half leaves half of the used margin behind, whatever the account started with, which is why the next section can change the position size and predict the answer before computing it.
One qualification sits on all of it, and it is not a small one. A close out is an instruction to close at the price available, not at the price the threshold names. Between the update that breaches the level and the fill the market can move, and in a gapping or fast market a position can close materially worse than the threshold implies. The surviving balance is then smaller than the arithmetic above, and where the gap is large enough it can be negative. The scenario computes the mechanism, not the fill.
Key term
- Margin close-out
- Margin close-out is the automatic closing of open positions by the firm once account equity falls to a stated proportion of the margin those positions require.
The final row restates the result as a proportion, which is what connects this scenario to the lesson before it. The gain required to return the balance to where it started is not the same size as the fall that produced it, because it is calculated on the smaller figure.
Key term
- Drawdown
- The fall from a peak in an account's value to the lowest point reached before a new peak is set, usually stated as a percentage of that peak.
The same account with a smaller position
Nothing about the account changes in this last comparison. The same deposit, the same instrument, the same margin requirement, the same thresholds and the same price falling in the same direction. Only the number of units is different, and it is halved. Because the used margin is a percentage of the face value, halving the size halves the used margin with it.
Half the position size, every other assumption unchanged
- Balance
- 10,000.00
- Position size, in units
- 50,000
- Face value at 1.0000
- 50,000.00
- Used margin, 5% of face value
- 2,500.00
- Margin level at the open
- 10,000.00 ÷ 2,500.00 × 100 = 400%
- Equity at the close out level, 50% of used margin
- 1,250.00
- Loss that reaches it
- 10,000.00 less 1,250.00 = 8,750.00
- Distance in price, loss ÷ units
- 8,750.00 ÷ 50,000 = 0.1750
- Price at the close out level
- 1.0000 less 0.1750 = 0.8250
- Distance at the full size, for comparison
- 0.0750
- Closing balance, half size
- 10,000.00 less 8,750.00 = 1,250.00
- Closing balance, full size, for comparison
- 2,500.00
Every assumption is carried unchanged from the first block, including the margin requirement, the constant used margin and the close out level, and all of them are assumptions rather than terms offered anywhere. The comparison is arithmetic about two hypothetical sizes and is not a statement that either size is appropriate for anybody. Spread, commission and any financing adjustment are excluded.
Two results in that block point in opposite directions, and reading only one of them is how the comparison gets misused. The distance to the close out did not double when the size was halved. It grew by more than that, because the equity the threshold demands fell with the used margin while the balance did not fall at all, so the loss the account can absorb grew at the same time as the loss each price step produces shrank.
The second result cuts the other way and is usually left out. The balance surviving the close out is smaller, not larger, because what survives is the stated fraction of the used margin and the used margin is now half what it was. The smaller position travels much further before it is closed and leaves less behind when it finally is. A comparison quoting the distance without the residue, or the residue without the distance, is describing half of the arithmetic.
Where practitioners disagree
There is a genuine and unresolved argument about what a close out level is for. One tradition describes it as a backstop, a floor the account cannot fall through, and points to the residue in the block above as evidence that something is preserved rather than nothing. The objection is in the previous section: the level names a price the mechanism aims at, not one it can promise, and a market that gaps through it settles the position wherever the market is. A floor that can be passed through is not a floor, and the word invites a confidence the mechanism does not support.
A second argument concerns the backwards calculation itself. One school treats the distance to the close out as a figure worth deriving before a position is opened, on the grounds that a number computed in advance is a different object from one read off a panel under pressure. The counter argument is that the derived distance is only as stable as its inputs, and its inputs are not stable: the requirement can be changed by the counterparty, an instrument whose requirement is recomputed from the prevailing price moves the denominator as the price moves, an overnight financing adjustment reduces equity with no price move at all, and a second position rewrites the whole fraction. Traders who hold this view treat the result as an order of magnitude rather than a level.
What both sides agree on is narrow, and it is the part that is arithmetic rather than opinion. The close out level is evaluated on margin level, margin level is driven by equity, and equity is driven by the full face value of what is open. Everything after that, including what the mechanism should be called and how much weight a computed distance should carry, is a question this page does not answer for anybody.
In summary
- In a single position account only three figures move as price does. Balance and used margin hold still, and equity, free margin and margin level are all restated from the one unrealised result.
- Free margin reaching zero and margin level reading one hundred percent are the same event, because both say that equity has fallen to equal the used margin. Below it free margin is negative, which reports a shortfall rather than a borrowing.
- A threshold stated as a margin level converts into a price in three steps: it states an equity, the balance less that equity is the loss that reaches it, and that loss divided by the position size is the distance. On a YAL account the stop out level is a margin level of 50%.
- What survives a close out is the fraction of the used margin the threshold defines, so a smaller position travels further before it is closed and leaves less behind when it is. The closing price is the one available at the time, not the one the threshold names.
Get started
Open your account in four steps.
A clear path from sign-up to your first trade, in four steps.
No depositNo documents
01/ 04step 1 of 4
Register
A few details to get started.
No deposit to open
02/ 04step 2 of 4
Verify
Confirm your identity, securely.
ID and proof of address
03/ 04step 3 of 4
Fund
Add money by bank transfer or card.
From $0
04/ 04step 4 of 4
Trade
Go live on the platform you already know.
MetaTrader 5



