Skip to content

Position & risk · Free calculator

Forex Margin Calculator

Calculate the margin required for your position and leverage.

Calculator

Your result

Enter values and calculate to see your answer here.

Estimate only. Broker margin tiers, currency conversion, spread and temporary margin increases are excluded.

How it works

Your inputs. A clear answer.

  1. Pick the instrument

    Choose the pair, gold, an index or a coin to fill in its contract size and currency, or type the contract size yourself.

  2. Enter price, size and leverage

    Type the price, the quantity in lots or units, and your leverage as one number: 30 for 1:30.

  3. Read the margin

    Calculate margin to see the position value and the margin it needs, in the instrument's quote currency.

Worked exampleEUR/USD, contract size 100,000, leverage 1:30
Price1.0850
Quantity1.00 lot
Leverage30
Position value108,500.00 USD
Margin3,616.67 USD
Illustrative numbers, not a trade idea.

Forex Margin formula and details

Position value
value equals quantity × contract_size × price
Margin
margin equals value ÷ leverage
Inputs and units
Price, quantity (lots or units), contract size and leverage (enter 30 for 1:30). Selecting an instrument fills in its contract size and currency.
Supported formulas
Linear margin: price × units / leverage. Tiered or percentage-based broker margin is not modeled.
Not included
Estimate only. Broker margin tiers, currency conversion, spread and temporary margin increases are excluded.
Instrument data
Contract size and profit currency come from the AlgoVistra instrument database when you select an instrument. The calculation runs in your browser.

This tool is for educational purposes only and does not constitute financial advice. Calculations are deterministic and do not account for market conditions, execution costs, or account-specific parameters.

FAQ

A few things to know.

How is forex margin calculated?

Position value divided by leverage. One lot of EUR/USD at 1.0850 is worth 108,500 USD, so at 1:30 leverage the margin is 108,500 ÷ 30 = 3,616.67 USD.

What currency is the margin in?

In the instrument's quote currency, for example USD for EUR/USD and XAU/USD. Your broker converts it to your account currency.

Why does my broker show a different margin?

Brokers can set different leverage per instrument, use tiers for large positions and raise margin around news or weekends. Check your broker's margin rules for the exact figure.

Does higher leverage mean more risk?

Leverage changes how much margin a trade locks up, not how much you lose per pip. Your risk depends on position size and stop distance, which the position size calculator works out.