FX & CFD Lot Size Calculation Guide: Risk, Stop Loss, Margin and Leverage
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
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
- The answer: what determines lot size
- Terms: lots, units, pips, points, contract size
- Sizing a position in seven steps
- The general formula and conversion
- Risk-constrained vs margin-constrained
- USDJPY, XAUUSD and index CFD compared
- Check it with the mini-calculator
- Using the free calculator
- Common mistakes to avoid
- Practical checklist
- Learning roadmap (10 guides)
- Frequently asked questions
- Summary and next step
- 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).
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.
- 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.
- 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.
- 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.
- Express the price gap in units: confirm whether it is pips or points, and how much price movement one unit represents.
- Apply the contract specification: work out the profit-and-loss value per lot per pip (¥1,000 in the example).
- 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.
- 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 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 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).
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.
Feed the loss budget, stop distance and margin you just worked out straight into the free calculator
The loss budget, stop distance, value per pip and leverage from the steps above go directly into SG Group’s free lot size calculator. A good flow is to check the estimated lot, estimated loss, margin usage and effective leverage in recommended-size mode, then reverse-check a lot you have in mind in lot-check mode. Everything is computed in the browser.
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).
| Aspect | USDJPY (FX) | XAUUSD (gold CFD) | Index CFD (example) |
|---|---|---|---|
| Contract size of one lot | 100,000 units | 100 ounces | 1 contract |
| Name of the minimum move | pip (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 currency | JPY | USD | USD |
| Conversion for a JPY account | not required | required (×150) | required (×150) |
| Main specialist guide | LC03 / LC05 | LC07 | LC08 |
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.
| Item | Value | Formula / meaning |
|---|---|---|
| Account base | ¥500,000 | foundation of the calculation |
| Risk % | 2% | loss share allowed on one trade |
| Stop distance | 20 pips | price gap to the stop |
| P&L value per lot per pip | ¥1,000 | in account currency, post-conversion |
| Loss budget | ¥10,000 | 500,000 × 2% |
| Lot before rounding | 0.50 | 10,000 ÷ (20 × 1,000) |
| Lot after rounding down | 0.50 | rounded down at lot step 0.01 |
| Estimated loss | ¥10,000 | 0.50 × (20 × 1,000) |
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.
- Enter the account base and risk %: these map to hand-calculation steps 1–2.
- Choose the instrument and stop distance: whether pips or points, the calculator handles the contract specification.
- See the estimate in recommended-size mode: check the estimated lot, estimated loss, margin usage and effective leverage at once.
- Reverse-check in lot-check mode: enter the lot you want to place and inspect whether its loss and risk percentage stay within budget.
- 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.
| Stage | What to confirm |
|---|---|
| Loss budget | Did you fix the loss budget first from the account base and risk %? |
| Stop | Did you place the stop with a rationale and express the price gap in the correct unit? |
| Contract spec | Did you confirm the contract size of one lot and the P&L value per pip/point? |
| Conversion | If the P&L currency differs from the account currency, is the conversion direction correct? |
| Dual gate | Did you take the smaller of the risk-constrained and margin-constrained lots? |
| Rounding | Did you round down to the lot step so as not to exceed budget? Is it still at or above the minimum lot? |
| Excluded factors | Did 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.
Lock in the basics and formula
Stops, margin and instruments
Combine multiple positions
FAQ
Frequently asked questions
How do you calculate lot size in forex?
Does account balance alone determine position size?
What happens to position size when the stop is wider?
What is the difference between risk-constrained and margin-constrained size?
How many units is 0.01 lot?
Does the same formula work for XAUUSD and index CFDs?
Does a stop guarantee the estimated loss?
What can the free SG Group calculator check?
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.
Disclaimer
- This article is descriptive, educational content that explains the procedure and reasoning of FX and CFD lot size calculation. It does not recommend, advise, solicit or guarantee the buying, holding, entry, exit, price forecast or investment decision for any specific financial instrument. “Recommended lot” refers to an input-derived estimated upper bound or calculated result, not investment advice.
- Every figure, diagram, table and mini-calculation shown is fictional educational data, not real performance, user counts, conversion rates, win rates or revenue, and not a real broker’s contract specifications. The same example data is used consistently across the prose, diagrams, tables and mini-calculator.
- Calculated results are estimates based on your inputs and exclude spread, commissions, swap, financing costs, tax, slippage at execution and liquidation. Lots, contract size, pips/points, minimum quantity, leverage, margin and currency conversion vary by broker, account, instrument and jurisdiction, so do not treat them as universal values and confirm the official contract specification before trading.
- A stop order does not guarantee execution at the specified price. Gaps, fast markets, thin liquidity and slippage may produce a larger loss than expected. Where domestic regulatory values are involved, check the official information current as of the date generated, and do not generalize to overseas accounts, corporate accounts or CFDs.
Sources and further reading
- SG Group FX & CFD Lot Size Calculator (https://sggroup.jp/en/lot-calculator/)
- SG Group Lot Size Calculator Plans (https://sggroup.jp/en/lot-calculator/plans/)
- CME Group — Trade and Risk Management (cmegroup.com)
- CFTC — Eight Things You Should Know Before Trading Forex (cftc.gov)

