An in-depth guide
Forex position size and margin: two separate calculations
With 5,000 USD capital, a hypothetical 1% risk budget and a 20-pip EUR/USD stop, the example gives 0.25 lot before costs or 0.22 lot with commission and a reserve. Margin is calculated separately from exposure and leverage.

Trade size and margin answer different questions
Risk-based position size comes from the planned loss to the stop. Required margin comes from exposure and account terms. A trade can pass one calculation and fail the other: a position within the risk budget may need more available margin, while high leverage can permit a position whose loss is too large.
We will use a hypothetical USD 5,000 account and a 1% risk budget, or USD 50. That percentage is an arithmetic assumption, not a recommendation. First calculate size from estimated entry and exit prices, then add costs, and finally check margin. An ordinary stop does not guarantee that the actual loss will end at exactly the calculated amount.
Convert pips and lots into money
Under the convention that one EUR/USD lot is 100,000 euros, a pip of USD 0.0001 per euro is worth USD 10 per lot. At a tenth of a lot, it is worth one dollar. Units matter: a quantity of euros multiplied by a price change quoted in dollars per euro produces a dollar profit or loss.
Check the symbol specification for contract size, volume step and price increment. A pip is not always the last displayed digit; a more precise quote can include a fractional pip. For metals, indices or accounts displaying other units, do not automatically copy the 100,000 multiplier. Similar product names do not guarantee identical specifications at two brokers.
In desktop MT5, Market Watch → right-click the symbol → Specification shows Contract size and Volume step. For example, an EUR/USD price increment of 0.00001 is one tenth of a 0.0001 pip; 20 pips equal 200 such increments. Use the specification to distinguish a tick, a price point and a pip before entering the stop distance.
EUR/USD example: size the position to the stop
Assume a buy filled at 1.1000 and an estimated stop exit at 1.0980. The distance is USD 0.0020 per euro, or 20 pips. For this exercise, these are execution prices on the two sides of the trade, not two mid-prices. Do not add another spread to that distance.
The price loss per lot is 20 × 10 = USD 200. A USD 50 budget divided by USD 200 gives 0.25 lots, representing 25,000 euros. This is before commission, financing and slippage. Doubling the stop distance to 40 pips gives 0.125 lots. With a 0.01-lot trading step, round down to 0.12 lots to stay within the price-loss budget.
Allow for commission and slippage without promising a loss cap
Add a hypothetical USD 7 per-lot round-trip commission and a hypothetical 2-pip slippage allowance. At 0.25 lots, the USD 50 price loss plus USD 1.75 commission already exceeds the budget before the allowance. The arithmetic response is to recalculate volume.
Per lot, the calculation becomes USD 200 to the stop + USD 7 commission + USD 20 allowance = USD 227. Dividing 50 by 227 gives about 0.2203 lots. Rounding down to a 0.01-lot step gives 0.22 lots: USD 44 of price loss, USD 1.54 commission and USD 4.40 allowance, totalling USD 49.94. Actual slippage can exceed the allowance; this is a planning estimate, not a maximum-loss guarantee.
Now calculate margin for the same exposure
Return to the original 0.25-lot size to isolate the effect of leverage. At the hypothetical rate of 1.1000, 25,000 euros represent USD 27,500 of exposure. In a simple margin model, divide exposure by the permitted leverage ratio for that symbol after aligning currencies.
Scroll the table horizontally to read every column.
| Hypothetical leverage | Required margin | Price loss over 20 pips |
|---|---|---|
| 1:30 | About USD 916.67 | USD 50 |
| 1:100 | USD 275 | USD 50 |
Leverage changes margin, but not the pip value of the same position. These ratios are not promises of availability from any provider. Exposure tiers, other positions and product terms may alter actual margin requirements.
For the 0.22-lot quantity calculated after costs, exposure at the same rate is 22,000 × 1.1000 = 24,200 USD. Under the simple model, margin is about 806.67 USD at 1:30 or 242 USD at 1:100. Return to the final quantity rather than checking margin for the 0.25-lot position already reduced.
When quote currency differs from account currency
For a yen-quoted pair, the usual pip size is JPY 0.01. At 100,000 units of base currency, that is JPY 1,000. In a USD account, assuming a hypothetical USD/JPY conversion rate of 150, divide 1,000 by 150 to obtain about USD 6.67 per pip. Automatically using USD 10 would distort the sizing calculation.
The conversion rate can move before closing, so pip value in the account currency is not always constant. Also check whether the platform already displays it in account currency. Converting it twice introduces another error. In a general calculator, make sure price distance, multiplier and risk budget produce the same money unit before relying on the displayed size.
Free margin is not a loss budget
Balance includes recorded amounts; equity adds open-position P/L. In a hypothetical account with a 5,000 USD balance, a 200 USD open loss and 800 USD of used margin, equity is 4,800 USD and free margin is 4,000 USD. An additional trade requiring 806.67 USD of margin would leave about 3,193.33 USD free in the simple model, before market changes and charges. That free amount is not the trade’s loss budget.
The account terms determine when forced closure occurs, potentially before the planned stop. Several trades depending on the same dollar direction can lose together. If the 200 USD loss on existing positions already exceeds the intended account budget, available margin does not resolve the excess. Position size and the account’s capacity to carry it require separate calculations.
Use the calculator without mixing units
In the position-size calculator, choose USD as the currency label and enter the basic scenario in these fields:
Scroll the table horizontally to read every column.
| Calculator field | Example value |
|---|---|
| Capital for this calculation | 5,000 |
| Risk percentage for this calculation | 1 |
| Entry price | 1.1000 |
| Stop price | 1.0980 |
| Value multiplier per unit | 100,000 |
| Allowed quantity increment | 0.01 |
The basic quantity is 0.25 lot, with a calculated price loss of 50 USD and exposure of 27,500 USD. Here the multiplier matches EUR/USD lots and a USD account; it is not universal across instruments. The calculator does not add commission or a slippage reserve, or calculate conversion or margin. Including the article’s cost assumptions manually gives 0.22 lot and a 49.94 USD budget for price loss, commission and reserve; margin for that quantity is checked separately.
Raw versus Standard explains round-trip commission. For futures, see ticks and margin, where the contract units differ. These are educational scenarios; a stop price does not guarantee a maximum loss, and interface language does not establish account eligibility.




