Margin & Leverage Calculator
Estimate the margin required and understand how leverage affects your trades.
How it works
Leverage mode solves for leverage ratio. Margin requirement mode solves for required margin. Leverage profits mode computes notional size, profit, and return on margin.
Leverage mode: position size + margin requirement. Margin requirement mode: position size + leverage ratio. Leverage profits mode: margin requirement + leverage ratio.
Leverage profits also needs your entry and exit prices. Notional = Margin × Leverage. Profit = Notional × price change %.
Calculator
Formulas
Position Size ÷ Margin RequirementPosition Size ÷ Leverage RatioMargin Requirement × Leverage RatioNotional × (Exit − Entry) ÷ EntryProfit ÷ Margin Requirement × 100$100,000 position with $10,000 margin → leverage ratio 10:1. Profits mode: $1,000 margin at 10:1, entry $100, exit $110 → notional $10,000, profit $1,000.00, return on margin 100%.
Leverage reference by market
Frequently asked questions
Margin is the portion of capital your broker holds as collateral while a leveraged position is open. It is not a fee, it is your own capital locked temporarily. When the position closes, the margin is returned (adjusted for profit or loss).
Leverage is the ratio of your position size to the margin required to open it. A 10:1 leverage means a $100,000 position requires only $10,000 in margin. It amplifies both gains and losses proportionally, so a 1% move in the underlying becomes a 10% gain or loss on your margin.
Leverage Ratio = Position Size ÷ Margin Requirement. If you control a $100,000 position with $10,000 of margin, your leverage is 10:1. The calculator's Leverage mode solves for this: enter your position size and the margin your broker requires.
Margin Requirement = Position Size ÷ Leverage Ratio. With a $100,000 position and 50:1 leverage, you need $100,000 ÷ 50 = $2,000 of margin. The calculator's Margin requirement mode solves for this: enter position size and your broker's leverage ratio.
Return on margin = (Profit ÷ Margin) × 100. If a $100,000 notional position backed by $10,000 margin gains $5,000, the return on margin is 50%, not 5%. Leverage profits mode calculates this: enter your margin requirement, leverage ratio, entry price, and exit price.
Beginners should use 2:1 to 10:1 to limit risk. Many professionals keep effective leverage between 5:1 and 20:1 regardless of what their broker offers. Higher leverage does not increase your probability of being right, it only increases the speed at which you can lose capital.
Related calculators
Calculate the maximum dollar size for a position from account value and risk limit.
Evaluate whether a trade offers enough upside before you enter.
Derive the exact lot size to keep each trade within your risk budget.
Calculate the exact dollar value of one pip for any forex pair and account currency.
Understand your leverage, then trade with precision signals
Knowing your margin requirement is step one. GainzAlgo's algorithm identifies high-probability setups, giving your leverage something worth risking.