Tool
Margin
Margin is collateral for the notional. Leverage in this formula is a divisor. It is not a suggestion to choose a high setting.
The formula, in words
Notional value in the quote currency equals units times the price you enter. Margin equals that notional divided by leverage. Convert with your quote-to-account rate when the currencies differ. The price is user-supplied. It is not a live quote.