What is leverage in forex?
Definition Leverage is the ratio between the size of a position and the margin needed to open it: at 30:1, $1,000 of margin opens a position worth $30,000.
Leverage in forex means opening a position larger than the money you put up for it: at 30:1, $1,000 of margin opens a $30,000 position. Leverage sets how much margin a trade needs. It does not set how much the trade can lose: that comes from the position size and the distance to the stop loss.
How leverage works
MT5 calculates the margin for a forex position as lots × contract size ÷ leverage (MT5 help). With the usual contract size, one lot of EURUSD is 100,000 euros, so at 1:100 it needs €1,000 of margin, converted into the account currency. MT5 writes leverage as 1:100; regulators write the same ratio as 100:1.
The broker sets the leverage per account. On a demo account you pick it in the account-opening dialog, where MT5 calls it the “ratio between borrowed and owned funds for trading” (MT5 help). An Expert Advisor reads it with AccountInfoInteger(ACCOUNT_LEVERAGE).
Leverage sets the margin, not the risk
Where leverage does matter is in how large a position the account allows. At 30:1, $5,000 of equity can hold up to about $150,000 of EURUSD. A 1% move against that position costs $1,500, 30% of the account. The margin calculator shows the margin and the distance to a stop-out for any size. The position size calculator works the other way, from the risk you accept to the lot size.
Leverage limits for retail traders
ESMA capped leverage for retail CFD clients in 2018 (ESMA), and rolling spot forex, a currency position that rolls over instead of settling, is in scope (ESMA Q&A). National regulators replaced ESMA’s temporary measures with their own between March 2019 and April 2020. Australia’s ASIC has applied the same ratios since 29 March 2021 (ASIC).
| Underlying | EU and Australia, retail |
|---|---|
| Major currency pairs | 30:1 |
| Other currency pairs, gold, major indices | 20:1 |
| Other commodities, minor indices | 10:1 |
| Shares and other underlyings | 5:1 |
| Crypto | 2:1 |
In the US, CFTC rules require a security deposit of at least 2% of the notional value of a retail forex trade in major currency pairs and 5% in others, which works out to 50:1 and 20:1 (17 CFR 5.9). In the EU and Australia, the caps come with a 50% margin close-out and negative balance protection.
A common mistake
Choosing the lot size from what the margin allows. The margin shows how large a position the broker lets you open, not what one losing trade costs. Many traders size the other way round: decide the risk per trade, measure the stop, and let the lot size follow. How to calculate lot size walks through it, and why most forex traders lose money explains why regulators focused on leverage.
Leverage and PipWarden
PipWarden does not size trades from leverage. Each lot size comes from your risk per trade (1% of equity by default) and the stop distance, capped by your maximum lot. Leverage only enters the margin check: before each order, the margin it needs is estimated from your broker’s figures, and by default the trade is skipped if it would leave free margin below 20% of equity. See the risk controls.
Frequently asked questions
Does higher leverage mean more risk?
What is the maximum leverage for retail forex traders?
Educational content, not financial advice. Forex and CFDs are traded on margin and are high risk: you can lose money, and more than your deposit with some brokers. Examples use made-up numbers and show no real results. Read the risk disclosure.