Margin Level = Equity/UsedMargin ratio.
Example:
You have $1,000 account, stop-out = 50%.
You open a trade using $200 margin.
Its unrealized (paper) loss reaches $900.
Now, your Equity = $100 while UsedMargin = $200. $100/$200 = 50% - stop-out triggered.