how to calculate leverage
leverage calculator
leverage formula
margin
position size
forex leverage
crypto leverage
trading leverage

How to Calculate Leverage: Formulas, Examples & Risk

Learn how to calculate leverage with simple formulas and worked examples across forex, stocks and crypto, plus how it links to margin and position size.

Artem Gasparyan
June 10, 2026
18 min read

Leverage is the multiplier that lets a small amount of your own money control a much larger position. Used carefully, it improves capital efficiency. Used carelessly, it is the fastest way to blow up an account. Either way, you need to know exactly how to calculate it before you place a trade.

This guide gives you the core formula, worked examples across forex, stocks and crypto, and the relationship between leverage, margin and position size — so the number on your platform is never a mystery. If you just want the answer for a specific trade, run it through the leverage calculator; if you want to understand what that number means, read on.

The Core Leverage Formula

Leverage is simply the ratio of the position you control to the capital you put up. The formula is:

Leverage = Position Size ÷ Margin

  • Position size (also called notional or exposure) is the full value of the trade.
  • Margin is the cash from your own account set aside to open and hold it.

Leverage is expressed as a ratio (100:1), a multiple (100x), or a percentage of margin required (1%). They all describe the same thing from different angles. A 100:1 ratio means $1 of your money controls $100 of position, which is the same as saying the margin requirement is 1% (1 ÷ 100).

That single equation rearranges into the two questions traders actually ask:

  • How much leverage am I using? → Leverage = Position ÷ Margin
  • How much margin do I need? → Margin = Position ÷ Leverage

Both come from the same relationship. If you can compute one, you can compute the other.

A Quick Numeric Check

Numbers make the formula concrete. Say you put up $1,000 of margin and your broker lets you open a $100,000 position on EUR/USD:

Leverage = Position ÷ Margin Leverage = $100,000 ÷ $1,000 = 100

That is 100:1 leverage, or 100x. Now run it backwards to confirm the margin:

Margin = Position ÷ Leverage Margin = $100,000 ÷ 100 = $1,000

The $1,000 matches what you started with, so the math is internally consistent. This is the same check the leverage calculator runs — Leverage = Position Size ÷ Margin — just done by hand.

Calculating Leverage Across Markets

The formula never changes, but the typical position sizes and available leverage differ enormously by market. Here is the same calculation applied to forex, stocks and crypto, using illustrative figures.

MarketYour marginPosition controlledLeverage (Position ÷ Margin)Margin as % of position
Forex (EUR/USD)$1,000$100,000100:11%
Stocks (cash equity, US reg.)$5,000$10,0002:150%
Crypto (perpetual futures)$500$5,00010:110%

Reading the table:

  • Forex is where the highest leverage lives. $1,000 ÷ controlling $100,000 is 100:1. A standard lot is 100,000 units of the base currency, so one lot at this margin is exactly 100x.
  • Stocks are the most conservative. Under standard US regulation, a cash-or-margin equity account is typically capped around 2:1 for overnight positions, so $5,000 of margin controls roughly $10,000 of stock. Here the margin requirement is 50%.
  • Crypto sits in between in this example. $500 of margin controlling a $5,000 perpetual position is 10:1. Exchanges may offer far higher, but higher is not better — it just means a smaller move wipes out your margin.

Every row uses the identical equation. Only the inputs change. That is the entire point: once you internalize Leverage = Position ÷ Margin, you can read any market.

Leverage vs Margin vs Position Size

These three terms get used interchangeably, and that confusion costs people money. They are not the same thing — they are three views of one trade.

TermWhat it isExample value
Position sizeThe full notional value you control$100,000
MarginThe cash you lock up to hold that position$1,000
LeveragePosition ÷ Margin — the multiplier100:1

Think of it this way. Position size is how big the trade is. Margin is your deposit against it. Leverage is the relationship between the two. Change any one and the others follow:

  • Keep position size fixed and post more margin → leverage falls (safer).
  • Keep margin fixed and open a bigger position → leverage rises (riskier).

Most disciplined traders do not actually pick a leverage number first. They decide how much of the account to risk on a trade, derive the position size from their stop distance, and let the leverage fall out of that. To size a trade from risk rather than from a leverage slider, use the position size calculator — it works backwards from your account risk to the exact position, and the leverage is whatever that implies.

The Real Risk of Leverage

Here is the part the marketing leaves out. Leverage multiplies your exposure, which means it multiplies your gains and your losses equally. The position moves with the full notional, but your margin is the small slice protecting you. When the position moves against you, the loss is measured against that thin slice.

Worked example: how fast leverage erases margin

Say you open a $100,000 EUR/USD position with $1,000 of margin — 100:1 leverage. The market moves 1% against you:

Loss = Position × adverse move Loss = $100,000 × 1% = $1,000

That $1,000 loss is 100% of your margin. A single 1% move — routine in forex — has wiped out the entire deposit backing the trade. That is what triggers a margin call or liquidation.

Now compare the same $100,000 exposure at lower leverage. Suppose you instead controlled a $10,000 position with $1,000 of margin — 10:1 leverage — and it moved 1% against you:

Loss = $10,000 × 1% = $100

That $100 is just 10% of your margin. Same percentage move, same formula, but the leverage decides whether 1% is a scratch or a knockout.

LeveragePosition on $1,000 marginLoss on a 1% adverse move% of margin gone
10:1$10,000$10010%
50:1$50,000$50050%
100:1$100,000$1,000100%

Margin call and liquidation

When losses eat into your margin past the broker's maintenance level, you get a margin call — a demand to add funds or close positions. If you do not, the broker liquidates the position automatically to stop the loss from going further. At 100:1, the buffer between "open" and "liquidated" can be a fraction of a percent. The higher the leverage, the smaller the move that triggers it.

This is why "amplified drawdown" is the honest way to describe high leverage. It does not just amplify the good days. It shortens the distance between you and a forced exit, and it makes ordinary volatility feel like an emergency.

How Much Leverage Should You Use?

There is no single correct number, but the principle is consistent: use the least leverage that lets you take the position your risk plan calls for. Leverage should be a consequence of your position sizing, not the input you start with.

A practical workflow:

  1. Decide the fixed percentage of your account you will risk on the trade (commonly 1–2%).
  2. Set your stop based on the chart, not on how much margin you have.
  3. Derive the position size from that risk and stop distance.
  4. Check what leverage that position implies. If it is uncomfortably high, the trade is too big — not the other way around.

Pairing the right position size with a sensible reward target is what keeps any single loss survivable. Before committing, it is worth confirming the trade is worth taking at all with the risk-reward ratio calculator — leverage only pays off when your winners are larger than your losers over a sample of trades.

Tracking Leverage in Your Journal

The calculation is the easy part. The discipline is using a consistent, sane leverage level trade after trade, and most traders only discover their real habits when they measure them. Logging the leverage and margin on every trade in a trading journal surfaces the pattern you cannot feel in the moment: whether your blow-up trades cluster at higher leverage, whether you quietly creep up your size after a winning streak, and which markets you over-leverage without realizing it.

Over 50–100 logged trades, that data turns "I should use less leverage" into a measured rule you can actually hold yourself to.

FAQ

What is the formula to calculate leverage?

Leverage = Position Size ÷ Margin. If you control a $50,000 position with $2,500 of your own money, your leverage is 50,000 ÷ 2,500 = 20, or 20:1. To find the margin a given leverage requires, rearrange it: Margin = Position ÷ Leverage. You can run either calculation instantly in the leverage calculator.

How do I convert leverage to a margin percentage?

Divide 1 by the leverage ratio and express it as a percent. 100:1 leverage is 1 ÷ 100 = 1% margin. 20:1 is 1 ÷ 20 = 5%. 2:1 is 1 ÷ 2 = 50%. The margin percentage and the leverage ratio are two ways of stating the same requirement — high leverage always means a low margin percentage, and vice versa.

Is higher leverage better?

No. Higher leverage lets you control a larger position with less capital, but it amplifies losses exactly as much as gains, and it shrinks the adverse move needed to trigger a margin call or liquidation. At 100:1, a 1% move against you can erase your entire margin. Most disciplined traders use modest leverage and let it fall out of proper position sizing rather than chasing a high multiple.

Is leverage the same in forex, stocks and crypto?

The formula is identical — Position ÷ Margin — but the available leverage differs a lot. Forex commonly offers the highest (often up to 100:1 or more), regulated US stock accounts are usually capped near 2:1 for overnight positions, and crypto venues vary widely. The market changes the typical inputs, not the math.

About the author. Artem Gasparyan is the founder of GASPNTRADER, a free trading journal built to help traders track their trades — including leverage and margin — and turn them into a measured edge. The formulas and examples above are educational, not financial advice.

Published on June 10, 2026

Start Your Free Trading Journal Today

Take control of your trades and improve your results by tracking them in a clear, easy-to-use trading journal built to show what works.

Try GASPNTRADER

Free to start. Upgrade for advanced insights.

Free Trading Tools