Convert a margin requirement to leverage, or leverage to margin, as a percent or decimal, with an optional position value to show the cash margin needed.
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Leverage from margin | Converts a margin requirement to a leverage ratio | Requires the margin requirement and its unit, percent or decimal fraction |
| Margin from leverage | Converts a leverage ratio to a margin requirement | Requires the leverage, entered as 20 for 20:1 |
Both functions accept an optional position value in dollars and then show the margin that position needs. Left blank, the result is the ratio alone.
Margin To Leverage Formulas
| L | Leverage ratio, written L:1 |
| M | Margin requirement as a decimal fraction of the position value (percent ÷ 100) |
Leverage from margin
A 5% margin is a fraction of 0.05, so leverage is 1 ÷ 0.05 = 20:1. The same result comes from 100 ÷ the margin percentage. A margin above 100% gives a ratio below 1:1, and the calculator notes it.
Two U.S. rules show the range. Retail forex dealers must collect at least 2% of the notional value for major currency pairs and 5% for all other pairs [1], which caps leverage at 50:1 and 20:1. Regulation T sets the margin for buying a margin equity security at 50% of its market value [2], which is 2:1. These figures are from the rule text as read in November 2026.
Margin from leverage
Leverage of 20:1 means a margin fraction of 1 ÷ 20 = 0.05, or 5%. With a position value entered, required margin = position value × M, so a $100,000 position at 50:1 needs $100,000 × 0.02 = $2,000.
Limits of This Estimate
- One flat margin rate is assumed. The regulatory figures are floors: the futures association and each broker can require more [1], and tiered requirements, financing costs and fees are left out.
- This is the margin to open a position. Stock accounts also carry a maintenance requirement, at least 25% of the market value of the securities, and many firms set 30% to 40% [3].
- Leverage magnifies losses as well as gains, and a margin account can lose more than the amount invested [3].
- Amounts are in U.S. dollars.
Sources
- Code of Federal Regulations, 17 CFR 5.9, Security deposits for retail forex transactions: minimum deposits of 2% and 5% of notional value
- Code of Federal Regulations, 12 CFR 220.12 (Regulation T), Supplement: margin requirements: 50% margin for a margin equity security
- U.S. Securities and Exchange Commission, Margin: Borrowing Money to Pay for Stocks: maintenance margin and the risk of losing more than the amount invested
