Lot Size Calculator

How to Size a Position from Stop-Loss Distance: Pips, ATR and Market Structure

How to Size a Position from Stop-Loss Distance: Pips, ATR and Market Structure | SG Group

JA / 日本語

Lot sizing · LC05

How to Size a Position from Stop-Loss Distance: Pips, ATR and Market Structure

The disciplined way to translate a stop-loss into a lot is to choose the stop first and then reduce position size to fit that price distance. Measure the gap between your entry and the stop level you set from structure or volatility, convert it into pips or points, and pick a size that keeps loss per trade inside the same budget. Reverse the habit of squeezing the stop toward a lot you already want, and each trade risks a consistent amount. This guide walks from measuring distance to the inverse relationship between distance and size, and finally to a free-calculator check.

Reading timeAbout 13 min
Updated14 July 2026
LevelBeginner to intermediate
SeriesLot sizing LC05
  • Convert entry and stop prices into a pip/point distance using the absolute difference
  • See numerically why stop distance and lot size are inversely related under one loss budget
  • Decide between market-structure, ATR and fixed-distance stops with clear criteria
  • Estimate distance, raw lot, rounded lot and loss in the mini calculator

Answer

The answer: fix the stop first, then size down to the distance

Sizing a position from a stop-loss takes three steps. First, lock in the stop price from the strategy’s invalidation logic or from volatility. Second, take the absolute difference between the stop and the entry and divide it by the pip/point size to get the stop distance. Third, divide your loss budget by that distance to get a lot, then round down to the lot step. Reverse the order — squeezing the stop toward a lot you already want — and the stop is set by preference rather than by market structure, and control over the loss amount breaks down.

If you want the whole picture of lot sizing first, start with the pillar, the FX & CFD Lot Size Calculation Guide (risk, stop loss, margin and leverage), to see where this lesson fits. How to set the per-trade loss budget itself is covered in the 1% and 2% rules and drawdown article. This piece concentrates on the stretch that comes after the stop is chosen: turning it into a lot.

Basics

Terms and assumptions: pip, point, contract size and distance

Before the arithmetic, here are the terms and the fictional assumptions used throughout the article. Every number below is a fictional educational example, not a live market or a specific broker’s contract specification. Real pip definitions, contract sizes, minimum quantities and lot steps differ by broker, account, instrument and jurisdiction, so always verify your own official contract specification.

  • Pip / point: the name for the smallest increment a price moves in. For yen pairs such as USD/JPY, 1 pip = 0.01 is a common convention. Change instrument and the point size changes too (for the units in detail, see the article on lots, units and pip value).
  • Contract size (one lot): a common example for a standard forex lot is 100,000 units of the base currency. For gold (XAUUSD) or index CFDs, one lot means something different, so verify those separately in the XAUUSD lot-size guide and the CFD point-value guide.
  • Value of one pip/point per lot: how much profit or loss changes when the price moves one pip while you hold one lot. In this article’s fictional example, one standard lot is assumed to be worth 1,000 JPY per pip.
  • Distance: stop distance is always the absolute value of the price difference. Long or short, risk is calculated from the unsigned distance.

The worked examples reuse one consistent fictional dataset. Account balance 500,000 JPY, a per-trade loss budget of 1% of the balance = 5,000 JPY, the instrument USD/JPY (1 pip = 0.01, one lot worth 1,000 JPY per pip), and a lot step of 0.01. Every table, figure and mini-calculator default below matches these assumptions.

Formula

Finding stop distance in pips from entry and stop prices

The starting point is converting the gap between two prices into pips. The formula is the same regardless of direction: divide the absolute price difference by the pip/point size.

Stop distance (pips) = |entry price − stop price| ÷ pip/point size

Substituting the fictional example: for a long (buy) with entry 150.200, stop 149.700 and a pip size of 0.01, the price difference is 150.200 − 149.700 = 0.500. Dividing by 0.01 gives 50 pips.

150.200 − 149.700 = 0.500 / 0.500 ÷ 0.01 = 50 pips

A long stop sits below entry and a short stop sits above it. For a short with entry 149.700 and stop 150.200, the signed difference is −0.500, but the distance is the absolute value 0.500 = 50 pips, exactly the same. If the direction is inconsistent (for example, a long with the stop above entry) the level is not a valid stop, so the mini calculator below treats it as an input error.

Once distance is known, the lot is the loss budget divided by (distance × per-pip value). The full formula that derives a lot from account balance, loss budget and stop pips is broken down in the forex lot-size formula article. Here the weight is on turning a stop level into a distance.

Raw lot = loss budget ÷ (stop distance pips × per-lot pip value)

In the fictional example, 5,000 ÷ (50 pips × 1,000 JPY) = 0.10 lot. Because that is already a multiple of the 0.01 lot step, the rounded lot is also 0.10. The estimated loss is then 0.10 × 50 × 1,000 = 5,000 JPY, landing exactly inside the loss budget.

Schematic of entry, stop, price difference and stop pips A fictional vertical-axis diagram for a long position, showing that the 0.500 price difference from entry 150.200 to stop 149.700 equals 50 pips. Not a live market or a trade recommendation. Price Entry 150.200 (long) Stop 149.700 Difference 0.500 = 50 pips Fictional educational example. Not a real contract spec or price.
Fictional educational dataFigure 1: dividing the 0.500 price difference between entry 150.200 and stop 149.700 by the pip size 0.01 gives a 50-pip stop distance. That distance becomes the input for the lot.

Structure

Placing a stop from market structure: measure distance from the invalidation point

One leading way to fix the stop price first is to place it from market structure. Put the stop just beyond a recent high or low, a swing point, support or resistance, or the strategy’s invalidation point — the level where “if price breaks here, the idea is wrong.” The entry-to-stop price difference then follows naturally from that invalidation point, which gives it clearer justification than an arbitrary pip count.

For instance, on a long you might treat 149.700, just below the recent swing low, as the invalidation point and place entry at 150.200, making the price difference 0.500 = 50 pips. The key is the order: market structure decides the stop level, and the lot is adjusted afterward to keep the loss amount constant. When the invalidation point is far away the distance widens, and the lot shrinks accordingly.

Note that this article does not recommend any particular trade setup. Which structure counts as the invalidation point varies by strategy, and even on the same chart different traders place stops differently. What is shown here is the order for converting a chosen stop into distance and size, not an entry or exit signal.

Volatility

Setting stop distance from ATR (volatility)

The volatility approach matches stop distance to how much price is moving. ATR (Average True Range) shows the average range over a chosen period; multiply it by a factor to gauge stop distance. Because ATR is expressed in price units, the crucial step is to convert it into pips/points before using it as a distance.

Stop distance (price) = ATR × multiplier / Stop distance (pips) = stop distance (price) ÷ pip size

In the fictional example, with ATR(14) = 0.300 (= 30 pips) and a multiplier of 1.5, the stop distance is 0.300 × 1.5 = 0.450 = 45 pips. With a 5,000 JPY loss budget, the raw lot is 5,000 ÷ (45 × 1,000) = 0.111…, which rounds down at the 0.01 lot step to 0.11 lot. The estimated loss is 0.11 × 45 × 1,000 = 4,950 JPY, rounded in the direction that does not exceed the loss budget.

There is no universally optimal multiplier or period. A factor of 1.5 is not a correct answer; it needs adjusting by instrument, timeframe and volatility regime. Even with ATR, it is only material for choosing the stop level, and the steps from there to a lot are the same as in the structure and fixed-distance methods.

Compare

Fixed distance, strengths and weaknesses: comparing three methods

The fixed-distance method commits to “always stop at N pips.” It is fast to decide and easy to record and test. The weakness is that mechanically copying the same pip count across changing volatility or instruments tends to get you stopped out on noise in fast conditions and leaves a needlessly wide stop in quiet ones. Here are the three methods side by side.

Method A

Market structure

Placed beyond swings, support/resistance or the invalidation point. Well justified and the distance carries meaning, but the placement involves judgment.

Method B

ATR (volatility)

Stop distance stretches and contracts with the market’s range. Strong at adapting to conditions, but there is no universal answer for the multiplier or period.

Method C

Fixed distance

Always a set number of pips, so decisions are fast and testing is easy. Harder to fit to differences in instrument and volatility.

What every method shares is the order: stop level first, lot second. Only the way the distance is chosen changes; the formula from distance to lot is identical. Rather than fixing on one method, choose how you set the distance according to the instrument and volatility, then adjust the lot to the resulting distance.

Every worked example above can be replaced with your own account balance, loss budget and pip value. Enter your entry and stop prices to get the approximate distance and lot, and re-check the article’s numbers against your own verified conditions.

Inverse

Stop distance and lot size are inversely related

The least intuitive part of sizing from a stop is this inverse relationship. As long as the loss budget is held constant, a wider stop means a smaller lot and a tighter stop allows a larger one. Double the stop distance and the lot roughly halves — that is the heart of stop-based sizing. Confirm it with the fictional example (5,000 JPY budget, 1,000 JPY per pip).

Table 1: for the same 5,000 JPY loss budget, the approximate lot by stop distance (fictional educational data)
Stop distanceLoss per lotRaw lotRounded lotEstimated loss
25 pips (tight)25,000 JPY0.200.205,000 JPY
50 pips (standard)50,000 JPY0.100.105,000 JPY
100 pips (wide)100,000 JPY0.050.055,000 JPY
Inverse chart: doubling stop distance halves the lot A fictional bar chart where, for stop distances of 25, 50 and 100 pips, the approximate lot halves each time to 0.20, 0.10 and 0.05. The estimated loss stays constant at 5,000 JPY. Lot 0.20 25 pips 0.10 50 pips 0.05 100 pips Fictional example. Distance x2 → lot halved. Estimated loss stays 5,000 JPY.
Fictional educational dataFigure 2: as the stop distance widens, the lot shrinks inversely. Each bar (quantity) halves while the estimated loss is held constant.

What this relationship shows is that a tight stop is not the same as safe. Pairing a tight stop with a large lot makes price noise, spread and slippage weigh more heavily, and you get stopped out sooner than expected. A wide stop keeps the loss amount down by trimming the lot, but it has to be weighed against win rate and profit-taking. You can check the relative impact of costs in the trade cost calculator (spread, commission and swap).

Risk

Gaps, fast markets, slippage and buffers

A point you cannot overlook when sizing from a stop is that a stop order does not guarantee execution at the requested price. On a gap, a spike around an economic release or in thin liquidity, the fill can jump past the stop price and exceed the estimated loss. So do not assume “50 pips = exactly 5,000 JPY, guaranteed.”

In practice, decide a rule for adding a buffer to the estimated loss in advance. For example, cut the lot one step further for positions held over a release, or add the assumed slippage (a few pips in the fictional example) to the distance before computing the lot. What matters is treating the estimated loss as a normal-conditions guide rather than a hard ceiling, and keeping the quantity conservative on the assumption it can be exceeded in adverse conditions.

Note: the mini calculator and tables in this article exclude spread, commission, swap, execution slippage and forced liquidation. The actual loss and required margin including those depend on the broker’s contract specification and market conditions. For margin and effective leverage, see the required-margin, margin-usage and effective-leverage article.

Mini calculator

Mini calculator: estimate distance and lot

Enter direction, entry, stop, pip/point size, loss budget, per-lot pip value and lot step to estimate the stop distance, raw lot, rounded lot and loss for educational purposes. Inputs are computed in the browser only and are never sent or stored anywhere. First check how the formula behaves in the static example (Table 2), then swap in your own numbers in the tool below.

Table 2: static worked example (fictional data, for reference if the tool does not run)
Input / resultValueFormula
DirectionBuyInput
Entry price150.200Input
Stop price149.700Input
Pip size0.01Input
Loss budget5,000 JPYInput
Per-lot pip value1,000 JPYInput
Stop distance50 pips|150.200−149.700| ÷ 0.01
Raw lot0.105,000 ÷ (50 × 1,000)
Rounded (step 0.01)0.100.10 floored to 0.01 steps
Estimated loss5,000 JPY0.10 × 50 × 1,000

A long stop sits below entry; a short stop sits above.

Your open price.

The invalidation level. Wrong direction errors out.

0.01 is one example for yen pairs; it varies by instrument.

Loss allowed on one trade.

Profit/loss for a 1-pip move on one lot.

Smallest quantity increment; used for rounding down.

Stop distance50.0 pips
Raw lot0.100
Rounded lot0.10
Est. loss5,000

Formula: distance = |entry − stop| ÷ pip size; raw lot = loss budget ÷ (distance × per-pip value). Rounded lot = floored to the lot step. The estimated loss excludes spread, commission and slippage.

This is a simplified general model and its output can differ from the production tool. Spread, commission, swap, execution slippage and forced liquidation are not considered, and rounding is done to the lot step in the direction that does not exceed risk. If the result falls below the broker minimum, a tradable size may not be available. For a check that includes contract specifications, use the free lot calculator.

Workflow

Workflow in the free calculator: the order of inputs

SG Group’s free lot calculator lets you switch between price inputs and a direct pips input. If the stop level is set on the chart, enter prices; if you fix the distance in pips, enter it directly. The input order is these four steps, so you can reproduce the article’s examples under your own account conditions.

STEP 01

Choose the stop

Fix the stop price first from structure, ATR or fixed distance.

STEP 02

Measure the distance

Convert the gap from entry into pips or points.

STEP 03

Compute the lot

Divide the loss budget by the distance and round down to the step.

STEP 04

Check the margin

Confirm required margin, usage and effective leverage are reasonable.

On the free plan, for a single position, you get the approximate lot derived from your inputs, the estimated loss and risk percentage at the stop, required margin and margin usage, effective leverage, a reverse check for a chosen lot, estimates for FX/CFD/XAUUSD/index/crypto CFDs, and result sharing, copy and save. In reverse-check mode you enter the lot you intend to hold and re-confirm the risk at the stop. When you need to manage aggregate risk and correlation across multiple positions, or the weighted average and total risk of averaging and pyramiding, that is where the Pro features start to help (you can confirm the learning order of each article in the pillar guide).

Pitfalls

Common mistakes

  • Choosing the lot first: squeezing the stop toward a lot you already want lets preference, not the market, set the stop, so you get stopped out on noise. Reverse the order.
  • Skipping the pip conversion: feeding ATR or a price difference into the lot formula “as a price.” Always convert to pips/points first.
  • Reusing the same pips across instruments: mechanically applying a fixed distance to a symbol with different volatility and contract size distorts what the distance means.
  • Rounding up instead of down: rounding the lot up to the step pushes the estimated loss above the budget. Rounding down is the default.
  • Trusting the fill price: assuming a stop fixes the loss and taking no buffer for releases or gaps. The estimated loss is a normal-conditions guide.

Every one of these is avoided by keeping the order stop first, lot second and by handling distance in pips. How to revisit the loss budget itself during a losing streak is covered in the article on how much to risk per trade.

Checklist

Practical checklist

Here is the practical stop-based sizing routine as a checklist you can run before placing an order.

  • Did you fix the stop price first from a structure, ATR or fixed-distance rationale?
  • Did you convert the gap from entry into pips/points as an absolute value?
  • Is the stop’s direction correct — below for long, above for short?
  • Did you compute the raw lot as loss budget ÷ (distance × per-pip value)?
  • Did you round down to the lot step in the direction that does not exceed risk?
  • Is the result at or above the broker minimum (or possibly not settable)?
  • Did you allow a buffer for gaps, slippage and news releases?
  • Are required margin, usage and effective leverage reasonable for the account?

Once you have confirmed the single-position steps under your own conditions, the next step is the actual input. When you need aggregate risk and correlation across multiple positions, or ongoing management in the Vault, consider the Pro and Premium features. Other articles are available from the English article library.

FAQ

Frequently asked questions

How do I calculate position size from a stop-loss distance?
Divide your loss budget by (stop distance in pips × the value of one pip/point for one lot), then round down to the lot step. For example, with a 5,000 JPY loss budget, a 50-pip stop and a per-lot pip value of 1,000 JPY, 5,000 ÷ (50 × 1,000) = 0.10 lot is the approximate upper bound. Spread, commission and execution differences are excluded, so the real loss can be larger.
Should the stop or the position size be chosen first?
Choose the stop first. Place it from the strategy’s invalidation point or from volatility, then reduce the lot to fit that price distance. If you squeeze the stop toward a lot you already want, the stop distance is set by preference rather than by the market.
How do I convert entry and stop prices into pips?
Take the absolute difference between the two prices and divide by the instrument’s pip/point size. On USD/JPY with 1 pip = 0.01, the 0.500 difference between 150.200 and 149.700 divided by 0.01 is 50 pips. Long and short reverse the sign, but distance is always taken as an absolute value.
How can ATR be used to set stop distance?
Multiply ATR (the average range over a chosen period) by a multiplier to gauge stop distance. ATR is quoted in price units, so convert it to pips/points before using it. There is no universally optimal period or multiplier; they must be adjusted by instrument and timeframe.
What happens to size when the stop is widened?
For the same loss budget, a wider stop means a smaller lot. Stop distance and lot size are inversely related, so doubling the distance roughly halves the lot. That is exactly why you fix the stop first and use size to keep the loss amount constant.
Does a tighter stop justify a much larger position?
A tighter stop lets you hold a larger lot within the same loss budget, but tight stops carry their own risk. Price noise, spread and slippage weigh more heavily and can stop you out sooner than expected. Check that the stop level is strategically valid, not only that the quantity fits the budget.
Does a stop order cap the loss exactly?
No. A stop does not guarantee execution at the requested price; gaps, fast markets and thin liquidity can fill it beyond that level. Around news releases in particular, assume the loss can exceed the estimate and keep the lot conservative.
Does the calculation differ for long and short trades?
The risk formula is the same and uses the absolute price distance. What differs is the stop’s direction: a long stop sits below entry and a short stop sits above. If the direction is reversed the level is not a valid stop, so it is treated as an input error.

Disclaimer

This article is for education and information about approximate calculations based on the inputs you provide. It does not recommend trading a particular instrument, an entry or exit, a price forecast, a guaranteed profit, a “safe lot” or an “ideal lot,” and it is not investment advice. Every number, price and stop example shown is fictional educational data and does not represent a real market, performance, user counts or a specific broker’s contract specification. Lots, contract sizes, pip/point conventions, minimum quantities, leverage, margin, liquidation and currency conversion differ by broker, account, instrument and jurisdiction. The mini-calculator result is an approximation from a simplified general formula and excludes spread, commission, swap, execution slippage and forced liquidation. A stop order does not guarantee execution at the requested price, and gaps, fast markets, thin liquidity and slippage can produce a loss larger than the estimate. Because actual loss, required margin and fill price vary with market conditions and broker specifications, always verify the official contract specification before trading. SG Group’s features, scope and pricing can change; check each service page and the plan page for the latest details.