5 min read

Updated:

Risk management

How to Calculate Leverage and Margin in Trading (With Real Examples)

Camila NascimentoEditorial character · Risk & Behavior Desk

Quick answer

Required margin is the position value divided by the leverage: a US$ 11,254 position with 1:30 leverage requires US$ 375.13. Available leverage only changes the locked-up margin; what defines the risk is the position size and the distance to the stop. That's why the number that matters is effective leverage, the position value divided by the account balance.

Leverage is the mechanism that lets you control a larger position than the money you deposited, using a fraction of that value as margin. It exists in forex, cryptocurrencies, CFDs, commodities, and indices, and in all these cases the core formula is the same.

The point that causes the most confusion is thinking that leverage, on its own, defines the trade's risk. It doesn't. It changes how much capital gets locked up to open the position; the position size and the distance to the stop are what define how much you gain or lose. In this guide, the examples use real quotes: EUR/USD and USD/BRL from October 7, 2026 (Yahoo Finance) and ETH/USDT from October and August 2026 (Binance).

What leverage is

A leverage of 1:30 means every 1 unit of margin controls 30 units of position. The broker requires the margin as collateral and returns that amount when the position closes, added to or deducted from the result.

There are two different kinds of leverage, and it's important not to mix them up:

  • Available leverage: the maximum the account allows, like 1:30 or 1:100. It sets the required margin.
  • Effective leverage: the total value of open positions divided by the account balance. It sets the real exposure.

How to calculate margin and effective leverage

  • Required margin = position value ÷ leverage
  • Effective leverage = position value ÷ account balance
  • Loss at the stop = position size × distance to the stop

Notice that available leverage only shows up in the first line. The loss at the stop doesn't depend on it.

Real forex example: EUR/USD

On October 7, 2026, EUR/USD closed at 1.1254 and the dollar at R$ 4.9814. A trader with a R$ 5,000 account opens a 0.10 lot of EUR/USD, that is, 10,000 euros, with a 30-pip stop.

  • Position value = 10,000 × 1.1254 = US$ 11,254, or 11,254 × 4.9814 = R$ 56,060.68
  • Effective leverage = 56,060.68 ÷ 5,000 = 11.21 times
  • Pip value = 10,000 × 0.0001 = US$ 1; 30-pip stop = US$ 30 = R$ 149.44, or 2.99% of the account

Now the required margin at three levels of available leverage:

  • 1:10 → US$ 1,125.40 (R$ 5,606.07): more than the account balance, the order wouldn't even be accepted.
  • 1:30 → US$ 375.13 (R$ 1,868.69).
  • 1:100 → US$ 112.54 (R$ 560.61).

The locked-up margin changes quite a bit. The risk at the stop stays R$ 149.44 in all three cases, and the effective leverage stays 11.21 times, because the position and the stop didn't change. For scale: over the 20 sessions through October 7, EUR/USD's average daily range was 54.7 pips, so a 30-pip stop fits comfortably within a normal day.

Real crypto example: ETH/USDT

On October 6, 2026, ether closed at US$ 2,697.49. A long position of 0.5 ETH is worth US$ 1,348.75. With 1:10 leverage, the margin is US$ 134.87.

The next day, October 7, ether closed at US$ 2,574.14, down 4.57%. The loss was 0.5 × (2,697.49 − 2,574.14) = US$ 61.68. Relative to the position, that's 4.57%; relative to the margin, 45.7%. Leverage didn't increase the loss in dollars, but it made an ordinary one-day drop eat up nearly half the money set aside for the trade.

When the move exceeds the margin

With 1:10 leverage, the margin covers a move of about 10% against the position, and brokers usually close it before that, through the maintenance margin. On August 18, 2026, ether closed at US$ 1,917.85. The next day, the high reached US$ 2,333.65, up 21.7%, and the close was US$ 2,252.80, up 17.5%. A short position of 0.5 ETH opened on August 18 with a margin of US$ 95.89 would show a loss of US$ 207.90 at the high, more than double the margin: in practice, it would have been liquidated along the way.

How to use the calculation in practice

Start with the risk, not the leverage

Decide how much you're willing to lose (1% of the account, for example), where the stop goes, and from that, the position size. The margin comes out as a consequence of the formula, not as the starting point.

Look at the effective leverage across all positions

Add up the value of every open position and divide by the balance. Two trades of 11 times each make an account exposed 22 times over.

Compare the stop with volatility

A stop smaller than the asset's average daily range will get hit by ordinary swings. Use the ATR or the average range to check.

Limitations

The calculations above ignore spread, commissions, and the cost of holding the position overnight. Gaps and fast markets can execute the stop worse than planned, and margin and liquidation rules vary by instrument: check the conditions on the platform before trading.

Common mistakes when calculating leverage

  • Thinking higher leverage means more risk on the same position: what changes the risk is the position size.
  • Using all the available leverage just because it's there.
  • Forgetting to convert the position value into the account's currency.
  • Calculating the loss relative to the position and forgetting to compare it with the margin and the balance.
  • Opening leveraged crypto positions without considering that 10%-or-bigger daily moves already happened in 2026.

To practice without risking money, run these numbers before every trade on a demo account: position value, margin, effective leverage, and loss at the stop. Log the numbers together with the result, and within a few weeks you'll have a concrete sense of how much risk you're really taking on. The examples above describe what happened, not what will happen.

Practice before you risk. Open your Duotide account and test your ideas on the demo account with US$10,000 in virtual funds.

Create free account

Updated:

Camila NascimentoEditorial character · Risk & Behavior Desk

Editorial character of the Duotide newsroom. Articles are written by the team with the help of artificial intelligence; prices and charts come from real market data. Writes about risk management, position sizing and the psychology behind traders' decisions.

Was this article helpful?

Be the first to rate it.

Comments

  1. No comments yet. Be the first to comment.

Leave a comment

Ready to put it into practice?

Open your account and practice on the demo account with US$10,000 in virtual funds, without risking money.

  • Secure platformProtected login and identity verification
  • Multilingual supportHelp available every day
  • Free demo accountUS$10,000 virtual to practice

Trading involves the risk of losing the capital invested.