Forex Lot Size Formula: Calculate Position Size from Risk and Stop-Loss Pips
Lot calculator / Formula · LC03
Forex Lot Size Formula: Calculate Position Size from Risk and Stop-Loss Pips
The forex lot size formula is short: lots = loss budget ÷ (stop pips × pip value per lot). First set the loss budget with loss budget = account base × risk fraction, then build pip value per lot from contract size and pip size, and convert it into your account currency when the P&L currency differs before you divide. This guide walks each variable, unit, conversion direction and the volume-step rounding so you can size a position by hand with a consistent set of fictional examples.
- Understand the lot size formula and the exact meaning and unit of each variable
- Build pip value per lot from contract size × pip size and convert the P&L currency
- Follow three fictional examples in USDJPY, EURUSD and GBPUSD step by step
- Try volume-step rounding and the reverse check (lots to risk) in an educational mini calculator
Formula
The forex lot size formula is built in two stages
The forex lot size formula is easiest to remember as two equations. The first fixes how much you are willing to lose, a loss budget, and the second works backward from that budget to a trade size (lots) that stays within it.
This formula assumes the ideal case in which the stop order fills exactly at the stated distance. In reality spread and imperfect fills move the loss up or down, but the practical order of operations is to build the skeleton of the position with the ideal formula first, then add a buffer for costs. For the wider picture, including margin, the FX & CFD Lot Size Calculation Guide (pillar) gives the overview; this article concentrates on the manual formula and currency conversion within it.
The figure below shows the flow from the loss budget through pip value to a raw lot (before rounding), and finally the round-down to the volume step. The sections that follow unpack each step in turn.
Variables
Line up the definition and unit of every variable
The key to using the formula correctly is to fix the meaning and the unit of each variable first. When units get mixed, the classic error of being off by an order of magnitude creeps in. Here are the four variables, defined in turn.
Account base: fix balance or equity
The account base is the amount you multiply by the risk fraction. Whether you use balance or equity (balance plus unrealized profit and loss) is a policy you should decide up front and keep fixed. With no open positions the two are nearly identical, but equity moves moment to moment when there is open P&L. If the base moves, the per-trade loss budget moves too, so switching the base per trade destroys the reproducibility of the calculation. Equity and margin level themselves are covered in Required Margin, Margin Usage and Effective Leverage.
Risk fraction: the share you accept per trade
The risk fraction expresses what percentage of the account base you cap a single trade’s loss at. This article uses 2% in its examples, but that is a fictional setting chosen to show how the formula behaves, not a “safe” level. What percentage is appropriate depends on capital, strategy and tolerance for losing streaks; that reasoning is covered in How Much Should You Risk per Trade? The 1% and 2% Rules.
Stop-loss pips: where you accept the loss
Stop-loss pips is the distance from entry to the stop, measured in pips (or points for a CFD). How you set that distance, whether fixed pips, ATR or chart structure, is a design decision outside the sizing formula and is collected in How to Size a Position from Stop-Loss Distance. Here the stop pips are treated as a given and substituted into the formula.
Pip value per lot: the money in one pip
Pip value per lot is the profit or loss when the price of a one-lot position moves by one pip. Keep the unit as “account currency per pip”; the next section works through how to derive this value. The foundational terms of pips and the unit amount behind a lot are covered in What Do 0.01, 0.1 and 1.0 Lots Mean? Units, Pips and Pip Value.
Pip value
How to derive pip value per lot
Pip value is not something to memorize; you can rebuild it every time with the multiplication below. Derive it in the P&L (quote) currency first, then convert into the account currency.
Contract size is the unit amount that one lot represents. A standard lot is often treated as 100,000 units, but this varies by broker, account and instrument, so always confirm it against your own contract specification. Pip size is the price change of one pip: generally 0.01 for yen pairs and 0.0001 for many other pairs.
For example, with a contract size of 100,000 units and a pip size of 0.0001, pip value is 100,000 × 0.0001 = 10 (units of the P&L currency). For a yen pair with a contract size of 100,000 units and a pip size of 0.01, it is 100,000 × 0.01 = 1,000 (JPY). The fact that this value comes out in the P&L currency is exactly what leads into the conversion in the next section.
Conversion
Normalize conversion as “one unit = how many units”
The biggest cause of trouble in conversion is hesitating over whether to multiply or divide by the rate. The trick that avoids it is to always read the rate in the direction “one unit of the P&L currency equals how many units of the account currency” and then always multiply.
For example, trading EURUSD in a JPY account, pip value comes out in USD. If USDJPY is 150.00, then “1 USD = 150 JPY,” so 10 USD of pip value × 150 = 1,500 JPY. Conversely, trading GBPUSD in a USD account, the P&L currency is USD and matches the account currency, so the conversion rate is 1 (unchanged). Normalize to “one unit = how many units” and the procedure stays the same no matter which pair you trade.
Worked examples
Three worked currency examples (USDJPY, EURUSD, GBPUSD)
From here we use one consistent fictional educational dataset to work through three cases with different relationships between the account and P&L currencies. The shared assumptions are a contract size of 100,000 units, a lot step of 0.01 and a minimum lot of 0.01. We round down toward not exceeding the risk.
Example 1: USDJPY (JPY account, no conversion)
Account base 1,000,000 JPY, risk 2%, stop 30 pips. Loss budget = 1,000,000 × 2% = 20,000 JPY. Pip value = 100,000 × 0.01 = 1,000 JPY (the P&L currency is JPY, which matches the account currency, so no conversion). Raw lot = 20,000 ÷ (30 × 1,000) = 0.6667 lots. Rounding down with the 0.01 lot step gives 0.66 lots. Estimated loss = 0.66 × 30 × 1,000 = 19,800 JPY, an effective risk of 1.98%.
Example 2: EURUSD (JPY account, USD to JPY conversion)
Account base 1,000,000 JPY, risk 2%, stop 25 pips. Loss budget = 20,000 JPY. Pip value = 100,000 × 0.0001 = 10 USD. Converting at USDJPY 150.00 gives 10 × 150 = 1,500 JPY. Raw lot = 20,000 ÷ (25 × 1,500) = 0.5333 lots. Rounding down gives 0.53 lots. Estimated loss = 0.53 × 25 × 1,500 = 19,875 JPY, an effective risk of 1.99%.
Example 3: GBPUSD (USD account, no conversion)
Account base 10,000 USD, risk 2%, stop 40 pips. Loss budget = 10,000 × 2% = 200 USD. Pip value = 100,000 × 0.0001 = 10 USD (the P&L currency is USD, which matches the account currency, so no conversion). Raw lot = 200 ÷ (40 × 10) = 0.5000 lots. It lands exactly on the lot step, so 0.50 lots. Estimated loss = 0.50 × 40 × 10 = 200 USD, an effective risk of 2.00%.
| Item | Ex. 1 USDJPY (JPY account) | Ex. 2 EURUSD (JPY account) | Ex. 3 GBPUSD (USD account) |
|---|---|---|---|
| Account base | 1,000,000 JPY | 1,000,000 JPY | 10,000 USD |
| Risk fraction | 2% | 2% | 2% |
| Loss budget | 20,000 JPY | 20,000 JPY | 200 USD |
| Stop pips | 30 pips | 25 pips | 40 pips |
| Pip size | 0.01 | 0.0001 | 0.0001 |
| Pip value (P&L ccy) | 1,000 JPY | 10 USD | 10 USD |
| Conversion rate | 1 (JPY = JPY) | 150 (1 USD = 150 JPY) | 1 (USD = USD) |
| Pip value (account ccy) | 1,000 JPY | 1,500 JPY | 10 USD |
| Raw lot | 0.6667 | 0.5333 | 0.5000 |
| Rounded-down lot | 0.66 | 0.53 | 0.50 |
| Estimated loss | 19,800 JPY | 19,875 JPY | 200 USD |
| Effective risk | 1.98% | 1.99% | 2.00% |
What the three examples share is the step of expressing pip value in the account currency before dividing. Whether conversion is needed depends only on whether the P&L and account currencies match. For gold (XAUUSD) and index CFDs, the treatment of contract size and pip or point changes, so read the pillar guide’s coverage of CFDs and instruments alongside this.
You can recompute all three examples for your own account currency, contract specification and stop distance with the SG Group free Lot Size Calculator. Swap the conversion rate and lot step for your real values, and it verifies your manual work directly.
Rounding
The volume-step round-down and the risk gap from rounding
A raw lot rarely divides evenly and usually lands on a fraction like 0.6667. You have to align it to the lot step the broker accepts (0.01 in the examples), but note that the way you round changes the risk. Compare the raw lot 0.6667 from Example 1 three ways.
Rounding to the nearest step at 0.67 lots makes the estimated loss 20,100 JPY, slightly above the 20,000 JPY you allowed (an effective risk of 2.01%). Rounding down to 0.66 lots gives 19,800 JPY, within the allowance (1.98%). The gap is small, but keeping the rounding consistently in the direction that does not overshoot is what turns sizing into money-management discipline.
Reverse
Reverse: from a chosen lot to estimated loss and risk
If you have already decided on a lot, running the formula backward tells you whether that lot fits your risk tolerance.
Reversing the rounded-down 0.66 lots from Example 1 gives estimated loss = 0.66 × 30 × 1,000 = 19,800 JPY and risk = 19,800 ÷ 1,000,000 × 100 = 1.98%, matching the effective risk from the forward calculation. This reverse check is useful when you want a number to confirm that a lot you are holding is “larger or smaller than you thought.” The free calculator’s reverse-check mode runs the same calculation in the browser.
Mini calculator
Educational mini calculator (forward and reverse)
The mini calculator below is a teaching aid for confirming how the formula behaves. Every input is computed only in the browser, with nothing transmitted or saved. Confirm the equations with the static worked example (Table 2) first, then swap the numbers in the forward form beneath it. Even with JavaScript disabled, you can read the same inputs, formula and answers in Table 2 and the section examples.
| Input / result | Value | Formula |
|---|---|---|
| Account base | 1,000,000 JPY | input |
| Risk fraction | 2% | input |
| Stop pips | 30 | input |
| Contract size | 100,000 | input |
| Pip size | 0.01 | input |
| Conversion rate | 1 | input (JPY = JPY) |
| Loss budget | 20,000 JPY | 1,000,000 × 0.02 |
| Pip value (account ccy) | 1,000 JPY | 100,000 × 0.01 × 1 |
| Raw lot | 0.6667 | 20,000 ÷ (30 × 1,000) |
| Rounded-down lot | 0.66 | round down, 0.01 step |
| Estimated loss / risk | 19,800 JPY / 1.98% | 0.66 × 30 × 1,000 |
Forward: derive lots from your conditions
Loss budget = account base × risk fraction; raw lot = loss budget ÷ (stop pips × pip value). The rounded-down estimated loss stays within the loss budget.
Reverse: derive loss and risk from a lot
Estimated loss = lots × stop pips × pip value; risk fraction = estimated loss ÷ account base. Use it to check whether a chosen lot is within your allowance.
Costs & buffer
Buffer for spread, fees, slippage and gaps
The basic formula assumes an ideal fill exactly at the stop distance. In reality the following factors push the estimated loss higher.
- Spread: a round-trip cost at entry and exit widens the effective stop distance.
- Commissions and swap: added to profit and loss based on trade size and holding time.
- Slippage: the stop order can fill at a worse price than requested.
- Gaps and fast markets: prices can jump over a weekend or on news, producing a loss beyond the estimate.
There are two ways to respond. One is to add a few pips of buffer to the stop distance; the other is to reserve part of the loss budget for costs. Both bake in the fact that a stop does not guarantee a fill at the requested price. When you want to estimate the round-trip cost breakdown concretely, the Trade Cost Calculator for spread, commission and swap can help.
Spreadsheet
Designing the formula in a spreadsheet
The formula becomes reusable once it lives in a spreadsheet. But copying only the equation invites unit mix-ups, so design it to separate inputs, intermediates and results into columns and always keep a unit column.
- Input columns: account base, risk fraction, stop pips, contract size, pip size, conversion rate, lot step, minimum lot.
- Intermediate columns: loss budget (= base × risk fraction), pip value (= contract size × pip size × rate), raw lot.
- Result columns: rounded-down lot (a round-down function to the lot step), estimated loss, effective risk.
Add input validation to stay safe: is the risk fraction greater than zero and within a realistic ceiling, are stop pips and pip value non-zero (to prevent division by zero), and is the raw lot at least the minimum lot. For rounding, use a floor (round-down) function rather than a ceiling so you do not exceed the risk. This kind of verification connects with building the sizing step into a strategy in How to Size a Position from Stop-Loss Distance.
Pitfalls
Common mistakes
Here are the errors that most often occur when sizing a lot by hand, with their causes. Most stem from “units” and “the direction of conversion.”
- Multiplying and dividing the wrong way: if you have not normalized the rate to “1 P&L unit = N account units,” you divide where you should multiply. Fixing the direction prevents it.
- Forgetting to express pip value in the account currency: dividing while still in the P&L currency throws off the order of magnitude. Check whether the P&L and account currencies match every time.
- Exceeding risk by rounding to nearest or up: rounding a fraction up exceeds the loss budget. Make round-down the default.
- Mixing balance and equity for the base: the base changes per trade and the risk fraction drifts. Fix it as a policy.
- Ignoring costs: without accounting for spread or slippage, the real loss exceeds the estimate. Build a buffer into the design.
- Missing a sub-minimum lot: not noticing that the rounded-down result is below the minimum lot leaves you unable to place the order. Check in advance.
Individually each is a small slip, but they compound into a drift away from your intended risk. Reducing the complexity of hand calculation and input errors is exactly where a verification calculator earns its place.
Checklist
Practical checklist and summary
Finally, here is the sequence to confirm when you use the forex lot size formula in practice. Follow it in order and you avoid unit mismatches and conversion errors.
- Have you fixed whether the account base is balance or equity?
- Did you compute loss budget = account base × risk fraction in the account currency?
- Did you compute pip value = contract size × pip size in the P&L currency?
- If the P&L and account currencies differ, did you convert with “one unit = how many units”?
- Did you find the raw lot and round it down with the lot step so it does not exceed the risk?
- Is the rounded-down lot at least the minimum lot and within margin constraints?
- Have you built in a buffer for spread, fees, slippage and gaps?
- Did you use the reverse check to confirm the chosen lot’s risk is within the allowance?
A single position’s lot is found with this procedure. Once you start wanting to manage aggregate risk across multiple positions, currency concentration and the weighted average of averaging down or pyramiding, questions arise that a single-position calculation cannot solve. That territory belongs to multi-position analysis (Pro) and ongoing management (Premium); the practical starting point is a free single-position check.
FAQ
Frequently asked questions
What is the basic forex lot size formula?
How do I calculate the loss budget?
How is pip value calculated?
How do I size EURUSD in a JPY account?
Should lot size be rounded to the nearest step?
Should I use balance or equity?
Does the formula include spread and fees?
Can I reverse-calculate risk from a chosen lot?
Disclaimer
This article is intended for education and information about how to calculate a lot from input conditions. It does not recommend particular instruments, entries or exits, forecast prices, guarantee profit, or offer a “safe lot,” “ideal lot” or “always-correct lot,” and it is not investment advice. All figures and currency-pair examples are fictional educational data and do not represent real contract specifications, prices, performance or user counts. Results are estimates based on your inputs and do not include spread, commissions, swap, slippage or liquidation. A stop order does not guarantee a fill at the requested price, and gaps, fast markets, low liquidity and slippage can produce a loss larger than the estimate. Lots, contract sizes, pip or point conventions, minimum quantity, leverage, margin and currency conversion vary by broker, account, instrument and jurisdiction, so do not treat any value as universal and always verify the official contract specification before trading. SG Group features, scope and pricing can change; check each service page and the plan page for the latest details.

