cfd brokers with signals
Home / Margin calculator

CFD margin calculator

See how much margin a leveraged trade needs, and how much of your balance it ties up.

Last reviewed 3 November 2026 · Editorial team

Margin is the deposit your broker holds while a leveraged CFD position is open. Enter the price, size and leverage to see how much margin a trade needs and how much of your balance it ties up.

Your numbers

units
x
5 means 1:5

Result

Required margin—
Position value—
Margin rate—
Free balance after opening—
Margin used—
Largest position at this leverage—

Illustrative example. The calculator assumes the instrument is quoted in your account currency and that leverage applies equally to the whole position. Real brokers differ by instrument and account type.

The formula

  1. Position value = price × position size.
  2. Required margin = position value ÷ leverage.
  3. Free balance = account balance − required margin.

A 50-unit position at a price of 100 is worth 5,000. At 1:5 leverage the margin is 1,000, which is 20% of the position. At 1:20 the same position needs only 250, a 5% margin rate.

Leverage and the margin rate

Leverage and margin rate are two sides of one number: a margin rate of 5% equals 1:20 leverage, and 2% equals 1:50. The limits depend on your regulator, your client category and the instrument. For retail clients under ESMA rules, maximum leverage is lower for volatile instruments such as crypto than for major currency pairs. The regulation and safety guide explains who sets those limits.

Margin is not your maximum loss

Margin is the deposit, not the cap on risk. A leveraged position moves with its full value, so a loss can exceed the margin you posted. What protects you is a stop-loss and, where your broker offers it, negative balance protection. If the account falls too far, the broker may close positions automatically in a stop-out. Size the trade by risk first with the position size calculator, then check the margin here.

Using it with a signal

A signal gives an entry and a stop, not a size. Work out the size from your risk, then enter it here to confirm the margin fits your balance with room to spare. Then check the cost and net result in the CFD profit and margin calculator. All tools are on the calculators page.

Quick answers

How do I calculate margin for a CFD?

Divide the position value (price times size) by your leverage. A 5,000 position at 1:5 leverage needs 1,000 of margin.

What is the difference between margin and leverage?

Leverage is the ratio between position value and margin. Margin is the deposit the broker holds. 1:20 leverage equals a 5% margin rate.

Can I lose more than my margin?

A loss can exceed the margin on a leveraged position. Many regulated brokers offer negative balance protection to retail clients, so check your own terms.