Tested tool guide
Tested browser tools
Checked August 16, 2026
What Forex Margin & Leverage Calculator does, with a checked example
This calculator shows how much account equity a forex position would reserve as margin at a selected leverage ratio. It divides position notional, expressed in the account currency, by leverage, then uses total used margin to calculate free margin and margin level. It also compares that level with the entered margin-call threshold. The common mistake is treating free margin as the maximum safe loss. It is only current headroom, and market losses can reduce equity while the position remains open.
Worked example
A concrete input and expected output from the current implementation.
Input
Account equity: 1,000 USD
Position notional: 10,000 USD
Leverage: 20:1
Other used margin: 0 USD
Margin-call threshold: 100%
->
Expected output
Required margin: 500 USD
Total used margin: 500 USD
Free margin: 500 USD
Margin level: 200%
Threshold alert: No
Required margin is 10,000 / 20 = 500 USD. Free margin is 1,000 - 500 = 500 USD, and margin level is 1,000 / 500 x 100 = 200%, which is above the 100% threshold.