Lot Size Calculator

FX & CFD Lot Size Calculation Guide: Risk, Stop Loss, Margin and Leverage

FX & CFD Lot Size Calculation Guide: Risk, Stop Loss, Margin and Leverage | SG Group

Lot Calculator — Risk Management Series 01

FX & CFD Lot Size Calculation Guide: Risk, Stop Loss, Margin and Leverage

Position sizing does not start with “how much do I want to trade.” You first set a loss budget, divide it by the loss per lot at your stop, then layer on the margin ceiling and the lot step to finalize the trade size. This guide organizes the relationship between account equity, risk percentage, stop distance, contract specification and currency conversion into seven steps, and serves as the pillar page you can reuse across FX, gold, index and crypto CFDs.

  • Derive the lot from the loss budget; never fit the stop to a desired lot
  • Use the smaller of the risk-constrained and margin-constrained size
  • Keep pips, points, contract size and conversion straight per instrument
  • Round the result down to the lot step; below the minimum, no trade
Reading timeAbout 13 min
UpdatedJuly 14, 2026
ForBeginners to traders reviewing risk management
TypeEducational, descriptive explainer

Key takeaways

  • Lot size is not chosen first: derive it as loss budget ÷ loss per lot at the stop, then finalize it with the margin ceiling and lot step.
  • The risk-constrained lot (loss side) and the margin-constrained lot (funding side) are different; the size you use is always the smaller one.
  • Pips, points, ticks and contract size mean different things per instrument, and a conversion step is added when the P&L currency differs from the account currency.
  • Round the result down to the lot step so it never exceeds your budget; below the minimum lot, a tradable size may not be available.
  • Every figure in the prose, tables, diagrams and mini-calculator is fictional educational data. Recompute with your own inputs in the free calculator.
Open contents
  1. The answer: what determines lot size
  2. Terms: lots, units, pips, points, contract size
  3. Sizing a position in seven steps
  4. The general formula and conversion
  5. Risk-constrained vs margin-constrained
  6. USDJPY, XAUUSD and index CFD compared
  7. Check it with the mini-calculator
  8. Using the free calculator
  9. Common mistakes to avoid
  10. Practical checklist
  11. Learning roadmap (10 guides)
  12. Frequently asked questions
  13. Summary and next step
  14. Related reading

The answer

The answer: size the position from your loss budget

The first principle of FX and CFD lot size calculation is to not choose the lot first. The basic method is to take a loss budget you decide in advance and divide it by the loss you would take if one lot were stopped out; that gives the number of lots. You then layer on the ceiling that your margin can support and the lot step, and round down in the direction that does not exceed your budget. Choosing a desired position size first and then fitting the stop distance to it reverses the logic that sound risk management requires.

Put another way, lot size is fixed at the single point where several conditions meet: account balance, risk percentage, stop distance, contract specification and margin. A large balance still produces a small lot if the stop is wide, and low leverage can make margin the binding limit even when the loss is within budget. If you want to build the foundation from what a lot actually contains, start with the guide that breaks down what 0.01, 0.1 and 1.0 lots mean in units.

This article is the pillar page for ten specialist guides. It states the conclusion and entry point for each theme while linking the detailed calculations to their own articles. Every number, diagram and mini-calculation shown here is fictional educational data, not a recommendation for any instrument or a forecast of future results. Because lots and contract specifications vary by broker, account, instrument and jurisdiction, confirm the official contract specification before you trade.

Terminology

Terms: lots, currency units, pips, points and contract size

Before the arithmetic, it helps to separate words that are easy to confuse. A lot is the unit of trade size, and what one lot means is set by the instrument and the broker’s contract specification. In forex, treating one lot as 100,000 units of currency is a common example, but even that is not universal. Contract size is the contents of one lot — the amount of currency, the number of ounces, the number of contracts — and it drives both the notional value and the size of your profit and loss.

A pip is the common name for the smallest price move in forex; in USDJPY, for instance, a move of 0.01 yen counts as one pip. In CFDs the same role is often called a point or a tick, and in index CFDs a move of 1.0 is treated as one point in some examples. Not only does the name differ, the profit-and-loss value of one pip or one point also differs by instrument, so carrying a forex intuition straight into CFDs is how traders misplace a decimal. This distinction is worked through concretely in the guide on lots, currency units, pips and pip value.

One more pair to keep apart: trade size and notional value. Trade size is expressed in lots, but the money you are actually exposing to the market — the notional value — is the contract size multiplied by the price. Even at 0.5 lots, a higher-priced instrument produces a larger notional value and therefore a larger required margin. Not judging risk from the lot number alone is the first mindset to adopt.

The big picture

Sizing a position in seven steps

Lot size calculation runs one way: it starts at the account base and ends by rounding down to the lot step. The SVG below shows that flow as six boxes (it scrolls horizontally).

A six-stage flow from account base through loss budget, stop, contract spec and conversion to the final lot A conceptual diagram connecting six stages left to right with arrows: account base, loss budget, stop distance, contract specification, currency conversion and finalized lot. It contains no numbers. STEP 1 Account base Balance / equity STEP 2 Loss budget Risk % → amount STEP 3 Stop distance Price gap and unit STEP 4 Contract spec Value per pip/point STEP 5 Conversion P&L → account ccy STEP 6-7 Finalize lot Round down to step Start at the account base, pass through contract spec and conversion, and finish by rounding down to the lot step
Concept diagramThe six-stage lot calculation flow. This is a conceptual overview with no numbers; each stage links to the body text and the specialist guides. Fictional educational example; not live market or broker data.

In words, that is the following seven steps. The worked examples below carry all of them through with one consistent set of fictional educational data.

  1. Set the account base: the amount used as the foundation of the calculation. Here we use a balance of ¥500,000 (JPY) as the example.
  2. Turn the risk percentage into a loss budget: at 2%, the loss budget is ¥10,000. How to think about the risk percentage is covered in the guide on how much to risk per trade.
  3. Decide the stop placement: here a stop distance of 20 pips. How to set stop distance is detailed in the guide on sizing from stop-loss distance.
  4. Express the price gap in units: confirm whether it is pips or points, and how much price movement one unit represents.
  5. Apply the contract specification: work out the profit-and-loss value per lot per pip (¥1,000 in the example).
  6. Convert the P&L currency to the account currency: only when the P&L currency differs from the account currency, multiply by the conversion rate.
  7. Round down to the lot step: round the computed value at the minimum increment, in the direction that does not exceed your budget.

The point of this order is to fix the loss budget first in step 2, and to round down rather than round to nearest in step 7. Rounding up would exceed the loss budget, so the rounding always falls to the safe side.

General formula

The general formula, units and currency conversion

Written with units, the skeleton of lot size calculation is the general formula below. Attaching units, not just variable names, makes a misplaced decimal easier to catch.

Loss budget (JPY) = Account base (JPY) × Risk %
Loss per lot (JPY) = Stop distance (pips) × Value per lot per pip (JPY/pip)
Risk-constrained lot = Loss budget (JPY) ÷ Loss per lot (JPY)
Adopted lot = floor( Risk-constrained lot ÷ lot step ) × lot step

Now substitute the fictional educational data. When the P&L currency (JPY for USDJPY) is the same as the account currency (JPY), this is the example where the conversion step is not needed.

Loss budget = ¥500,000 × 2% = ¥10,000
Loss per lot = 20 pips × ¥1,000/pip = ¥20,000
Risk-constrained lot = ¥10,000 ÷ ¥20,000 = 0.50 lot
Adopted lot = floor( 0.50 ÷ 0.01 ) × 0.01 = 0.50 lot
Estimated loss (0.50 lot, 20 pips) = 0.50 × ¥20,000 = ¥10,000 (equals the budget)

When the P&L currency differs from the account currency, you insert a separate step to convert the value per lot per pip into the account currency. For example, if P&L arises in USD and the account is in JPY, then “value per pip in USD × USDJPY rate = value per pip in JPY,” and the important thing is not to reverse this direction. Whether you multiply or divide by the rate depends on which currency is the base, so always confirm the direction in words as “convert the P&L currency into the account currency.” The full formula treatment for forex is covered in the guide on the forex lot size formula from risk and stop-loss pips.

Note that this formula addresses the lot ceiling based on the loss at the stop. It does not include spread, commissions, swap, tax or slippage at execution. Because these are handled differently by each broker, treat them as excluded and account for them separately.

Dual gate

Risk-constrained vs margin-constrained: take the smaller

The 0.50 lot from the previous section is only the ceiling seen from the loss side. Whether you can actually place it is also limited from the funding side — that is, by required margin. The two do not move together, and you always adopt the smaller one. The diagram below shows this dual gate (values are fictional educational data).

A dual-gate diagram where the smaller of the risk-constrained and margin-constrained lots becomes the final ceiling The risk-constrained lot is 0.50 lot and the margin-constrained lot is 0.83 lot; the diagram shows that the smaller 0.50 lot becomes the adopted ceiling. Fictional educational data. Dual gate: the smaller of the loss side and funding side is the ceiling (fictional data) Risk-constrained lot 0.50 lot ¥10,000 budget ÷ ¥20,000/lot Margin-constrained lot 0.83 lot ¥500,000 equity, 25x leverage Adopted lot = min() 0.50 lot Smaller side, rounded down Loss side and funding side are separate. A stop-out does not guarantee enough margin, and vice versa.
Fictional educational dataDual-gate diagram. The smaller of the risk-constrained 0.50 lot and the margin-constrained 0.83 lot, i.e. 0.50 lot, is the final ceiling. The numbers are illustrative; actual margin rates and leverage depend on the broker specification.

The margin-constrained lot is worked back from equity and leverage. In the example, with equity of ¥500,000 and leverage of 25x, the maximum notional value you can hold is ¥12,500,000. Taking USDJPY at 150.00, that is about 83,333 units, or roughly 0.83 lot at 100,000 units per lot — the funding-side ceiling. Because it is larger than the 0.50 lot from the loss side, the loss side binds first in this example and the adopted size is 0.50 lot. Conversely, when the stop distance is very tight, the risk-constrained lot grows and the margin-constrained lot can become the binding limit first.

For the 0.50 lot adopted here, it is worth also checking the required margin, margin usage and effective leverage. The notional value is 50,000 units × ¥150 = ¥7,500,000; the required margin is ¥7,500,000 ÷ 25 = ¥300,000; the margin usage is ¥300,000 ÷ ¥500,000 = 60%; and the effective leverage is ¥7,500,000 ÷ ¥500,000 = 15x. The higher the margin usage, the smaller your cushion before liquidation on an adverse move. Required margin, margin usage and effective leverage are an important theme on a separate axis from lot sizing, covered in detail in the guide on required margin, margin usage and effective leverage.

Instrument differences

USDJPY, XAUUSD and index CFD compared: same formula, different inputs

The skeleton of lot size calculation is the same for every instrument, but the contract specification you substitute is entirely different. The table below places FX (USDJPY), a gold CFD (XAUUSD) and an index CFD side by side on the same points, as fictional educational data (it scrolls horizontally).

Table 1: Contract specifications and P&L elements compared by instrument (fictional educational example; not a real broker’s specifications, converted at USD→JPY 150)
AspectUSDJPY (FX)XAUUSD (gold CFD)Index CFD (example)
Contract size of one lot100,000 units100 ounces1 contract
Name of the minimum movepip (0.01)price increment (0.01 USD)point (1.0)
P&L per lot per minimum move¥1,000 / pip$1 / 0.01$10 / point
P&L currencyJPYUSDUSD
Conversion for a JPY accountnot requiredrequired (×150)required (×150)
Main specialist guideLC03 / LC05LC07LC08

There are three points. First, the contents of one lot (the contract size) differ fundamentally — units of currency, ounces, contracts. Second, what the minimum price move is called (pip / increment / point) and its profit-and-loss value per unit differ. Third, whenever the P&L currency differs from the account currency, a conversion step always enters. USDJPY produces P&L in JPY, so a JPY account needs no conversion; XAUUSD and the index CFD produce P&L in USD, so a JPY account requires conversion.

The gold (XAUUSD) price increment, P&L per lot and stop risk are shown with concrete numbers in the guide on XAUUSD lot size calculation, and the point values and contract sizes of instruments such as index and crypto CFDs are covered in the guide on CFD position sizing for indices and crypto, each with instrument-specific figures. What to hold onto here is the principle: the formula is shared, but the contract specification is per instrument.

Hands on

Check it with the educational mini-calculator

The mini-calculator below is an educational aid for getting a feel for the article’s formula. It holds no instrument presets or live rates and estimates only from the values you enter. Do your real lot size calculation, including contract specifications and margin, in the free lot size calculator. First, so it can still be read with JavaScript disabled, here is a static calculation table using the same example inputs.

Table 2: Mini-calculator defaults and the matching hand calculation (static fallback, fictional educational data)
ItemValueFormula / meaning
Account base¥500,000foundation of the calculation
Risk %2%loss share allowed on one trade
Stop distance20 pipsprice gap to the stop
P&L value per lot per pip¥1,000in account currency, post-conversion
Loss budget¥10,000500,000 × 2%
Lot before rounding0.5010,000 ÷ (20 × 1,000)
Lot after rounding down0.50rounded down at lot step 0.01
Estimated loss¥10,0000.50 × (20 × 1,000)

Inputs are computed in the browser and never sent or stored (fictional educational tool)

JPY
Balance or equity used as the foundation.
%
Share of the account you allow to lose on one trade.
pips etc.
Price gap to the stop. Match its unit to the value below.
JPY
In account currency. If the P&L currency differs, enter the already-converted value.
lots
Smallest increment. Rounding down happens at this step.
lots
Smallest tradable lot. Below it, a trade may not be possible.
Loss budget
¥10,000
Loss per lot at the stop
¥20,000
Lot before rounding
0.50 lot
Lot after rounding down
0.50 lot
Estimated loss (adopted lot)
¥10,000

Formula: loss budget (account base × risk %) ÷ (stop distance × value per unit) = lots. The result is rounded down to the lot step. Spread, commissions, swap, slippage and tax are excluded.

This mini-calculator is a single-position estimate and includes simplifications that can differ from the production tool’s results. It does not reflect the direction of P&L-currency conversion, the margin constraint, or each broker’s lot step and minimum lot. For a check against your actual conditions, including contract specifications, use the free lot size calculator.

Check it free

Using the free lot size calculator

Once you understand the flow by hand, enter your own conditions in SG Group’s free lot size calculator and check. For a single position, the free version can check the input-derived estimated lot, the estimated loss and risk percentage at the stop, the required margin and margin usage, the effective leverage, and a reverse check of a lot you enter, with estimates for FX, gold, index and crypto CFDs. The order of use is as follows.

  1. Enter the account base and risk %: these map to hand-calculation steps 1–2.
  2. Choose the instrument and stop distance: whether pips or points, the calculator handles the contract specification.
  3. See the estimate in recommended-size mode: check the estimated lot, estimated loss, margin usage and effective leverage at once.
  4. Reverse-check in lot-check mode: enter the lot you want to place and inspect whether its loss and risk percentage stay within budget.
  5. Share, copy or save the result: keep a record of the conditions so you can review them later.

The “recommended lot” shown here means an input-derived estimated upper bound or calculated result, not investment advice. The figures are estimates based on your inputs, and whether spread, commissions, swap, slippage and liquidation handling are included depends on the implementation.

Once you move beyond a single position and want to see aggregate risk across multiple positions, concentration in the same currency or index, or correlation, that is the territory of the guide on aggregate risk across multiple positions, which the Pro aggregate-risk features address. If you then need ongoing management with the encrypted Vault or stress testing, that is the scope of Premium. Treat the plans page as the single source of truth for the current features and pricing.

Avoid

Common mistakes and how to avoid them

Most lot size mistakes collapse into the same few patterns. If any of them feel familiar, that is your entry point into the next guide to read.

  • Working the stop back from a desired lot: deciding the lot you want first and fitting the stop afterward. The order is reversed and it easily exceeds the loss budget.
  • Confusing pips and points: handling CFD points with a forex intuition and misreading the profit-and-loss value per unit.
  • Reversing the conversion direction: dividing where you should multiply (or vice versa) when converting the P&L currency into the account currency.
  • Rounding the lot step to nearest: rounding up so the estimated loss slightly exceeds the budget. Always round down.
  • Over-trusting stop execution: assuming a stop fixes the loss. Gaps and fast markets can exceed the estimate.
  • Judging multiple positions by single-position math alone: each may be sized correctly, yet concentration in the same currency swells the aggregate risk.

Checklist

Practical checklist

Before you set your trade size, checking the following items top to bottom prevents gaps in the calculation.

Table 3: A practical checklist for lot size calculation (an educational verification sequence)
StageWhat to confirm
Loss budgetDid you fix the loss budget first from the account base and risk %?
StopDid you place the stop with a rationale and express the price gap in the correct unit?
Contract specDid you confirm the contract size of one lot and the P&L value per pip/point?
ConversionIf the P&L currency differs from the account currency, is the conversion direction correct?
Dual gateDid you take the smaller of the risk-constrained and margin-constrained lots?
RoundingDid you round down to the lot step so as not to exceed budget? Is it still at or above the minimum lot?
Excluded factorsDid you separately account for spread, commissions, swap, slippage and tax?

Learning roadmap

Learning roadmap (10 guides)

Starting from this pillar guide and reading the cluster in beginner, intermediate and advanced order builds a full picture of lot sizing and risk management. You can also browse the full list from the English article library.

FAQ

Frequently asked questions

How do you calculate lot size in forex?
The core idea is to divide your loss budget by the loss per lot at the stop. First multiply your account base by your risk percentage to get the loss budget; then multiply the stop distance by the profit-and-loss value of one lot per one pip to get the loss if one lot is stopped out; finally divide the former by the latter to get the number of lots. Round the result down to the lot step, and if it falls below the minimum lot you may not be able to place the trade. When the profit-and-loss currency differs from the account currency, add a separate conversion step.
Does account balance alone determine position size?
Balance alone does not determine it. Position size must satisfy both the risk-constrained limit set by your loss budget and stop distance, and the margin-constrained limit set by required margin; the size you actually use is the smaller of the two. With the same balance, a wider stop makes the risk-constrained lot smaller, and lower leverage can make the margin-constrained lot the binding limit first. Treat loss risk and required margin as separate constraints.
What happens to position size when the stop is wider?
The wider the stop, the smaller the lot needed to stay within the same loss budget. The loss per lot rises in proportion to the stop distance, so the denominator of the division grows and the resulting lot falls. Doubling the stop distance roughly halves the risk-constrained lot. Conversely, tightening the stop to trade a larger lot makes it easier to be stopped out on a small adverse move.
What is the difference between risk-constrained and margin-constrained size?
The risk-constrained lot is the upper limit that keeps the loss at the stop within your budget. The margin-constrained lot is the upper limit set by how large a position your equity and leverage can support. The former depends on the stop distance; the latter on price, leverage and margin rate, and they do not move together. The final position size is the smaller of the two. Being stopped out does not guarantee sufficient margin, and sufficient margin does not guarantee an acceptable loss.
How many units is 0.01 lot?
The amount depends on how the lot is defined and on the instrument. In forex, if one lot is 100,000 units of currency, then 0.01 lot is 1,000 units. The same 0.01 lot equals one ounce if a gold CFD lot is 100 ounces, or 0.01 contract if an index CFD lot is one contract, so the notional value and the profit-and-loss per pip or per point also differ. Because the contents of a lot vary by broker, instrument and account, always confirm what one lot represents in the contract specification.
Does the same formula work for XAUUSD and index CFDs?
The skeleton — dividing the loss budget by the loss per lot at the stop — is the same, but the meaning of the values you substitute changes. Forex uses pips, a gold CFD uses the price increment, and an index CFD uses points, so both the name of the minimum price move and the profit-and-loss value per unit differ by instrument. When the profit-and-loss currency differs from the account currency, a conversion step is added. The formula is shared but contract specifications must always be checked, so instrument-specific detail is covered in the dedicated gold and CFD guides.
Does a stop guarantee the estimated loss?
Not necessarily. A stop order does not guarantee execution at the specified price; gaps, fast markets and thin liquidity can fill it at a worse price and produce a larger loss than expected. The calculated loss is only an estimate assuming a fill at the specified price. Because slippage and liquidation handling vary by broker, size with a margin of safety and confirm the official contract specification.
What can the free SG Group calculator check?
The free SG Group lot size calculator lets you check, for a single position, the input-derived estimated lot, the estimated loss and risk percentage at the stop, the required margin and margin usage, the effective leverage, and a reverse check of a lot you enter. It supports estimates for FX, gold, index and crypto CFDs, and results are computed in the browser. When you need aggregate risk across multiple positions or ongoing management, the flow moves to a higher plan. Confirm the current scope on the plans page.

Summary

Summary: the answer to the main question and your next step

What “lot size calculation” really decides is not the amount you want to trade, but the amount that stays within the loss you can accept. Divide the loss budget by the loss per lot at the stop, take the smaller of that and the margin constraint, and round down to the lot step — this sequence is the skeleton. Pips, points, contract size and currency conversion change shape by instrument, but the formula itself is shared.

In practice, five points keep you from going far wrong: (1) fix the loss budget first, (2) align the stop and contract specification in the correct units, (3) insert a conversion step when needed, (4) take the smaller of the risk-constrained and margin-constrained sizes, and (5) round down and check the minimum lot. After that, all that remains is to recompute with your own conditions.

Read next

LC02: What do 0.01, 0.1 and 1.0 lots mean? Units, pips and pip value explained — start by locking in what a lot contains and the value of one pip.