Margin & Leverage Calculator
How much of your own capital a leveraged position ties up, the notional it controls, and the effective leverage you are really running, the number that decides how hard a price move lands.
By Joey van Diest, founder and editor Updated
- Notional value
- …
- Required margin
- …
- Effective leverage
- …
- Margin / equity
- …
What margin is
Margin is the amount of money a brokerage holds in trust while an opened levered position exists. Margin does not represent fees nor represents your maximum loss. What allows a modest initial investment to have a greater impact on the market (in terms of dollars) is the leverage that occurs when $30 of exposure is backed by $1 of margin. The required margin is calculated as follows: the exposure and the leverage used to achieve the exposure are divided by each other. A brokerage will release required margin once a trader closes their trade. While the majority of investors seek out information about how many percent of a trading account is being utilized by a single position and what price they are getting for that percent, that's exactly what this tool provides based upon the instrument entered, the lot size of the entry, and the level of leverage used to get into the position.
The formula
notional = contract size × lots × price
required margin = notional ÷ leverage
effective leverage = notional ÷ account equity
The notional represents the total amount of money that you are responsible for. In terms of a single trade (1 standard lot) of EUR/USD at an exchange rate of 1.09, this means 100,000 x 1.09 = $109,000 of exposure. For example, if you enter into a trade with a broker using 1:30 leverage and they require you to put up margin of 109,000 / 30 = $3,633 when entering into the position, when the position is closed the margin will be returned by the broker.
It's the leverage that truly counts. Put that $3,633 margin in front of a $10,000 account and your effective leverage is approximately 11x (from 109,000 / 10,000) - although the account has an upper limit to leverage of 30x. For example an 11x position would lose 11% of your capital for each 1% move against you. The headline leverage is just the cap on how much you can be exposed; the amount you are truly risking is completely up to you as long as you don't go over the cap.
The same maths across forex, crypto, CFDs and futures
The process for required margin works similarly in all leveraged markets; however, contract size and the leverage cap will vary. Standard Forex lots are 100,000 units of the base currency so margin requirements increase as you buy/sell pairs that have larger prices. In Crypto positions, the notional value is simply quantity multiplied by price. Exchange leverage in Crypto can be much higher than the maximum allowed in Forex and therefore liquidation occurs quickly so always refer to the current level on the liquidation price calculator. CFDs of shares and indexes typically use a contract size set by the brokerage firm. As such they also usually express a flat percentage margin requirement (5% is 1:20) versus a round leverage figure. Commodities and Futures require an initial margin per contract set by the exchange and not a simple division. Select the instrument above and the contract size will be populated. Edit to represent your own brokerage firms trading schedule.
Using it to stay solvent
Margin represents the point at which the leverage becomes less of an abstract concept. Your margin as well as your effective leverage will determine how much space exists for the price of the instrument in the trade to move against your position before there is enough money lost that would trigger a margin call. A trader does not typically "blow" up due to their analysis of a trade being incorrect one time; a trader blows up when his or her effective leverage is so large that normal trading volatility (noise) results in liquidation before the trader's theory can be proven. Use this page to size a trade using the position size calculator, to perform the pip math on the size selected using the pip value calculator, and to determine if your resulting effective leverage provides a survivable cushion.
The honest limits
The arithmetic is exact, but your broker's margin schedule is the final word. Regulated retail brokers cap leverage (commonly 1:30 on major forex, less on volatile pairs), while offshore and crypto venues go much higher. Many use tiered margin, where larger positions require a higher margin percentage, so a big trade can tie up proportionally more than a flat divide suggests. Required margin is also not the same as maintenance margin, the lower level your equity must stay above to avoid liquidation, and some brokers raise margin overnight or over the weekend. Treat the figure here as the baseline your broker builds on, and read effective leverage, not the headline cap, as your real risk.
Frequently asked questions
- Is margin a cost or a deposit?
- A deposit, not a fee. Margin is the slice of your own capital the broker sets aside as collateral while a leveraged position is open; you get it back when you close. It is not money paid to anyone. What leverage does is let a small margin control a much larger notional position, which magnifies both gains and losses on your actual capital.
- What is the difference between leverage and effective leverage?
- Leverage (like 1:30) is the maximum the broker allows and sets the minimum margin. Effective leverage is what you are actually using: total position notional divided by your account equity. You can trade at 1:2 effective leverage inside a 1:30 account by using only a fraction of the available margin. Effective leverage, not the headline number, is what determines how a price move hits your account.
- Why do regulated brokers cap leverage at 1:30?
- Retail Forex Leverage is capped by regulators in Europe, United Kingdom and Australia to prevent the most common reason that retail Forex Accounts Blow Up (which is High Effective Leverage). The math for a Margin Call will arrive much quicker with an offshore broker advertising 1:500 or higher than it would with a regulated account providing 1:30 leverage on Major Currency Pairs, which are typically less volatile. This tool allows you to calculate the margin based upon what ever leverage you select so you may see the direct Trade-Off.
- How does a margin call happen?
- As a position moves against you, your equity falls while the required margin stays roughly fixed, so your margin level (equity divided by used margin) drops. Cross a broker threshold (often 100% for a warning, 50% for liquidation) and positions are force-closed. Lower effective leverage leaves more buffer before that happens; this tool shows how much notional a given margin controls so you can plan that buffer.
- How do I calculate required margin?
- Required margin = position notional ÷ leverage, where notional = contract size × lots × price. One standard lot of EUR/USD at 1.09 is a $109,000 notional; at 1:30 that needs 109,000 ÷ 30 ≈ $3,633 of margin. If your account is funded in a different currency, convert the result at the current rate. Enter the instrument, lot size, price and leverage above and the calculator does both steps, and the currency conversion, for you.
- Is this a gross or profit margin calculator?
- The margin for a leveraged FOREX, CRYPTO, CFD or Futures trade is the amount of money in your account which will be tied up by the trade. This has absolutely no relation to the "business profit margin" (revenue - cost) / revenue calculation that an online store or merchant would use when setting prices for products. If you're trying to calculate how much markup you need on a product as opposed to determining how many units to purchase at what price for a particular trade, then you'll need a Gross-Margin calculator, not this one.
- How much margin do I need for crypto or a CFD?
- Take the position notional (quantity × price for crypto, contract size × lots × price for a CFD) and divide by the leverage the venue gives you. Crypto exchanges often allow very high leverage, which shrinks the margin but pulls the liquidation price close to your entry; a share CFD at 5% margin is running 1:20. Select the instrument here to pre-fill a typical contract size, then set the leverage your broker actually offers.
Method and limitations
Pure arithmetic on your inputs; margin is converted to your account currency using daily ECB reference rates baked into the site. Nothing is fetched during your visit and nothing you type leaves your browser. Contract sizes are pre-filled with common conventions and editable, and some brokers compute margin on tiered or instrument-specific rules rather than a flat divide, your broker's margin schedule is the authority. This is an information tool, not trading advice.
Data sources
- European Central Bank reference rates via Frankfurter · used only to convert results into your account currency; published free by the ECB
This tool runs entirely in your browser. Nothing you enter is sent to us or stored.
For general information and education only. This is not financial advice and not a recommendation to buy or sell anything. This tool is provided as is, with no warranty of accuracy: like any software it can contain errors, so always verify figures against your broker or the original source before acting on them. Trading and investing carry risk, including the risk of losing more than your initial outlay.
Spotted an error? Email [email protected] and it will be corrected. Maintained by Joey van Diest.