How is margin level calculated?

The Margin Level is calculated as follows:


Margin Level = (Equity / Margin) x 100%


When an account reaches or drops below a certain level, it gets stopped out.