Leverage and margin explained
Leverage lets a small deposit control a large position. Losses are worked out on the full position, not on your deposit.
Margin
Margin is the money your broker sets aside from your balance while a position is open.
Margin = position value ÷ leverage.
Example: 1 standard lot of EURUSD at 1.1000 on a USD account is worth 110,000 USD. At 1:30 leverage the margin is 110,000 ÷ 30 = 3,666.67 USD.
Why leverage raises your risk
In that example a 1% move against you is a loss of about 1,100 USD. That is 30% of the margin set aside.
If losses use up your free margin, the broker can close your positions. This is called a stop out. Check your broker's margin call and stop out levels before you trade.
Leverage limits differ by country
Regulators in many countries cap retail leverage. The same broker can offer very different leverage through different companies. Higher leverage means larger possible losses.
Work out the margin for a trade with the margin calculator.