Lot Size Calculator

Forex Lot Size Formula: Calculate Position Size from Risk and Stop-Loss Pips

Forex Lot Size Formula: Calculate Position Size from Risk and Stop-Loss Pips | SG Group

JA / 日本語

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.

Reading timeAbout 13 min
Updated14 July 2026
LevelBeginner to verifying by hand
SeriesLot calculator LC03
  • 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.

1) loss budget [account ccy] = account base [account ccy] × risk fraction [%]
2) lots [lot] = loss budget [account ccy] ÷ ( stop pips [pips] × pip value per lot [account ccy/pip] )

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.

Lot size formula flow A left-to-right flow with arrows: from a loss budget of 20,000 JPY, using a pip value of 1,000 JPY per lot and a 30-pip stop, deriving a raw lot of 0.6667, then rounding down with a 0.01 lot step to 0.66 lots. All figures are fictional educational data. Loss budget 20,000 JPY = 1,000,000 × 2% Pip value/lot 1,000 JPY/pip = 100,000 × 0.01 Raw lot 0.6667 lot = 20,000 ÷ (30×1,000) Rounded down 0.66 lot round down, 0.01 step Loss budget → pip value → raw lot → round down to step (USDJPY, JPY account, fictional)
Fictional educational exampleFigure 1: The lot size formula flow. Fictional educational example, not live market or broker data; a single consistent dataset used for illustration.

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.

pip value per lot [P&L ccy] = contract size [units] × pip size [price]

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.

Check the unit: pip value is always in the P&L currency, JPY for USDJPY and USD for EURUSD or GBPUSD. If that currency matches your account currency, no conversion is needed; if it differs, conversion is required.

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.

pip value per lot [account ccy] = pip value [P&L ccy] × conversion rate ( 1 P&L unit = N account units )

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.

Conversion direction from P&L currency to account currency On the left, pip value of 10 USD in the P&L currency USD; on the right, pip value of 1,500 JPY in the account currency JPY; the central arrow multiplies by the conversion rate 150 (1 USD = 150 JPY). The arrow points from the P&L currency to the account currency. Figures are fictional educational data. P&L currency (USD) pip value 10 USD = 100,000 × 0.0001 Account currency (JPY) pip value 1,500 JPY = 10 USD × 150 × 150 1 USD = 150 JPY Fix the direction to “1 P&L unit = N account units” and it is always a multiply
Fictional educational exampleFigure 2: Conversion direction. USDJPY 150.00 is an illustrative fictional value; real rates fluctuate.
Note: the calculator in this article does not fetch live FX rates. You enter the conversion rate yourself. Because real rates move constantly, every result is an estimate at the moment of input.

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%.

Table 1: Substitution table for three currency pairs (all fictional educational data; shared assumptions: contract size 100,000 units, lot step 0.01)
Item Ex. 1 USDJPY (JPY account) Ex. 2 EURUSD (JPY account) Ex. 3 GBPUSD (USD account)
Account base1,000,000 JPY1,000,000 JPY10,000 USD
Risk fraction2%2%2%
Loss budget20,000 JPY20,000 JPY200 USD
Stop pips30 pips25 pips40 pips
Pip size0.010.00010.0001
Pip value (P&L ccy)1,000 JPY10 USD10 USD
Conversion rate1 (JPY = JPY)150 (1 USD = 150 JPY)1 (USD = USD)
Pip value (account ccy)1,000 JPY1,500 JPY10 USD
Raw lot0.66670.53330.5000
Rounded-down lot0.660.530.50
Estimated loss19,800 JPY19,875 JPY200 USD
Effective risk1.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.

Comparison of the risk gap by rounding method The raw lot 0.6667 compared three ways: before rounding, rounded to nearest 0.67, and rounded down 0.66. Estimated loss and effective risk are shown as horizontal bars; rounding to nearest exceeds the allowed 2.00% at 2.01%, while rounding down is 1.98%, within the allowance. Figures are fictional educational data. Allowed 2.00% (= 20,000 JPY) Before 0.6667 20,000 JPY / 2.00% (theoretical) Nearest 0.67 20,100 JPY / 2.01% ✕ exceeds Round down 0.66 19,800 JPY / 1.98% ✓ within
Fictional educational exampleFigure 3: Comparison of rounding methods. Rounding to nearest or up can exceed the loss budget, so round down toward not exceeding your risk as the default. Bar lengths are relative; refer to the numbers for exact values.

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.

Check the minimum lot: if the rounded-down result falls below the minimum lot (0.01 in the examples), a position may not be available at that stop distance and risk fraction. You then need to decide whether to tighten the stop or revisit the risk fraction.

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.

estimated loss [account ccy] = lots [lot] × stop pips [pips] × pip value per lot [account ccy/pip]
risk fraction [%] = estimated loss [account ccy] ÷ account base [account ccy] × 100

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.

Table 2: Static worked example (Example 1 USDJPY, fictional data; a reference for when the calculator does not run)
Input / resultValueFormula
Account base1,000,000 JPYinput
Risk fraction2%input
Stop pips30input
Contract size100,000input
Pip size0.01input
Conversion rate1input (JPY = JPY)
Loss budget20,000 JPY1,000,000 × 0.02
Pip value (account ccy)1,000 JPY100,000 × 0.01 × 1
Raw lot0.666720,000 ÷ (30 × 1,000)
Rounded-down lot0.66round down, 0.01 step
Estimated loss / risk19,800 JPY / 1.98%0.66 × 30 × 1,000

Forward: derive lots from your conditions

Fix balance or equity in advance.

Cap on one trade’s loss.

Distance from entry to stop.

Units in one lot; check your spec.

0.01 for yen pairs, often 0.0001.

1 when P&L ccy = account ccy.

Increment; 0 or less is read as 0.01.

Below this may not be tradable.

Loss budget20,000
Pip value/lot1,000
Raw lot0.6667
Rounded-down lot0.66
Estimated loss19,800
Effective risk1.98%

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

Used to back out the risk fraction.

The trade size you already chose.

Distance to the stop.

Contract size × pip size × rate.

Estimated loss19,800
Risk fraction1.98%
Share of account base1/50.5

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.

Calculations run entirely in the browser and do not transmit or store your inputs (no writing to URL parameters, cookies or local storage). Blank, zero, negative and non-numeric values are handled safely, and when pip value or the stop is zero and cannot divide, the result shows “—”. Spread, commissions, swap and slippage are not included. Because the handling of contract specifications may differ from the production tool, confirm your final trade size with the free Lot Size Calculator including the full contract spec.

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?
Lots = loss budget ÷ (stop pips × pip value per lot). First set the loss budget with loss budget = account base × risk fraction, then derive pip value per lot from contract size × pip size. If the P&L currency differs from your account currency, multiply pip value by the conversion rate to express it in the account currency before dividing. Finally round down to the volume step so the result does not exceed your risk.
How do I calculate the loss budget?
Loss budget = account base × risk fraction. For example, with an account base of 1,000,000 JPY and a 2% risk, 20,000 JPY is the maximum loss you accept on one trade. Decide up front whether the account base is balance or equity and apply it consistently rather than switching per trade. This is a fictional educational example; whether the risk level itself is appropriate is a separate question.
How is pip value calculated?
Pip value per lot = contract size × pip size. For example, with a contract size of 100,000 units and a pip size of 0.0001, one lot is worth 10 units of the P&L (quote) currency per pip. Because this value comes out in the P&L currency first, you must convert it when the account currency differs. Pip size and the unit amount behind a lot are covered in the lot and units primer.
How do I size EURUSD in a JPY account?
EURUSD profit and loss is denominated in USD, so calculate pip value in USD and then multiply by the USD to JPY conversion rate. With a contract size of 100,000 EUR and a pip size of 0.0001, one lot is 10 USD; if USDJPY is 150.00, then 10 USD × 150 = 1,500 JPY is the pip value per lot. Always express the rate as how many account-currency units equal one P&L-currency unit so you never wonder whether to multiply or divide. The figures are fictional educational examples.
Should lot size be rounded to the nearest step?
Round down toward not exceeding your risk. Rounding to the nearest step or rounding up can push the estimated loss above your loss budget and lift the effective risk slightly. Rounding down to the volume step, for example 0.01, keeps the actual lot within the loss budget. If the rounded-down result falls below the broker minimum lot, a tradable size may not be available under those conditions.
Should I use balance or equity?
Decide which base to use as a policy first, then apply it consistently. With no open positions, balance and equity are nearly identical, but equity moves with unrealized profit and loss. If the base moves with open P&L, the per-trade loss budget moves too, so keeping the base consistent leads to reproducible position sizing. Margin and effective leverage themselves are covered in a separate article.
Does the formula include spread and fees?
The basic formula does not include them. Lots = loss budget ÷ (stop pips × pip value) assumes an ideal fill exactly at the stated stop distance. In reality spread, commissions, swap, slippage and gaps push the loss higher, so it is practical to add a few pips of buffer to the stop distance or reserve part of the loss budget for costs. You can break down trade costs with the Trade Cost Calculator.
Can I reverse-calculate risk from a chosen lot?
Yes. Estimated loss = lots × stop pips × pip value per lot, and risk = estimated loss ÷ account base × 100. For example, with 0.66 lots, a 30-pip stop and a pip value of 1,000 JPY, the estimated loss is 19,800 JPY, which is 1.98% of a 1,000,000 JPY account base. Use this to check whether a lot you have already chosen fits your risk tolerance; the free calculator’s reverse-check mode performs the same calculation.

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.