Academy · · 12 min · By Álvaro García
Stop Loss: What It Is, How to Calculate It, Where to Set It
What a stop loss is, where to set it and how to calculate position size: stock, forex and gold examples, gaps, and why at 1:2 a 33% win rate breaks even.

In short: a stop loss is an order that automatically closes your trade when the price hits a loss level you set in advance. You calculate it in two steps: first decide which price level would invalidate your trade idea (support, resistance or volatility), then size the position so that, if the stop is hit, you lose only the percentage of your account you are willing to risk, for example 1%.
What is a stop loss?
A stop loss is an instruction to your broker to close a position if the price moves against you to a specific level. If you buy, the stop sits below your entry price; if you sell short, it sits above.
Its job is not to be right, but to cap the cost of being wrong. Nobody wins every trade; what separates traders who survive the markets from those who blow up their accounts is that losses are small and known before they enter.
How does a stop-loss order work?
A standard stop loss is a conditional order: until the price touches your level, it does nothing. Once it does, it becomes a market order and is filled at the best price available at that moment.
That detail is crucial. The US Securities and Exchange Commission (SEC) explains it in its investor bulletin on stop orders: the stop price is a trigger, not a guaranteed price, and the fill can stray from it if liquidity is thin. In Spain, the CNMV guide to securities orders explains that a stop loss is not a standard market order type but an additional order offered by some firms, so how it works depends on each intermediary and it is worth checking how yours handles it.
Slippage
If you place your stop at €47.50 and the market falls fast, your order may be filled at €47.40 or €47.30. That difference is slippage. In quiet conditions it is usually tiny; around data releases such as US payrolls or interest-rate decisions it can be significant.
Price gaps
The extreme case is a gap: the market closes on Friday at one price and opens on Monday much lower, without trading at the levels in between. Your stop cannot be filled at a price that never existed, so it triggers at the open, at whatever price is there. The worked example further down shows how much that can cost.
Types of stop-loss orders
- Stop market order: the classic. Once the level is touched, the position is closed at the available price. It guarantees the exit, not the price.
- Stop-limit order: once the level is touched, an order with a limit price is sent. It avoids exiting at a very poor price, but if the market moves past the limit you can end up stuck in a trade that keeps falling. For protecting capital, it is the less advisable of the two.
- Trailing stop: it follows the trade in your favour at a fixed distance (in euros, pips or percentage) and never moves back. It protects profits without setting a fixed target.
- Guaranteed stop: some CFD brokers offer it, usually in exchange for a premium or a wider spread. It is filled at exactly your level even if there is a gap. Each broker sets when and how it charges that premium, so check the terms before using it.
Where to set a stop loss: the 4 most common methods
The right question is not "how much do I want to lose" but "at what price does my idea stop making sense". You choose the level first; the money at risk is adjusted afterwards through position size.
1. Market structure: support and resistance
If you buy because the price is bouncing off support, the stop goes slightly below that support, not right on it. If support breaks decisively, the reason for buying has gone. Leaving a buffer stops a brief spike from knocking you out of the trade.
2. Volatility: the ATR
The ATR (Average True Range) measures how much an asset moves on average per candle. Placing the stop 1.5 or 2 times the ATR away from your entry adapts the distance to the market's normal "noise": wider for jumpy assets such as bitcoin, tighter for a calm currency pair.
3. Fixed percentage
Exiting if a share falls 5% or 8% from your purchase price is simple and popular among investors, but it ignores chart structure and each stock's volatility. A 5% stop may be too tight for a volatile tech stock and too wide for a utility.
4. Time
Some traders exit if a trade has not moved within a set number of sessions. It does not replace a price stop, but it frees up capital from ideas that are not working.
How to calculate a stop loss and position size
The correct calculation combines three inputs: your capital, the percentage you risk per trade and the distance between entry and stop. The formula is:
Position size = (capital × % risk) ÷ distance to stop
A common risk-management rule is not to risk more than 0.5–2% of the account per trade. You can check your numbers with our position size calculator.
Why the risk percentage matters so much: our calculation
We calculated how many consecutive losses it takes for an account to drop more than 20%, if each stop costs a fixed percentage of the balance remaining at that point. The formula is (1 − risk)n < 0.80.
| Risk per trade | Consecutive losses to lose more than 20% | Balance after those losses (€10,000 account) |
|---|---|---|
| 0.5% | 45 | €7,981 |
| 1% | 23 | €7,936 |
| 2% | 12 | €7,847 |
| 5% | 5 | €7,738 |
| 10% | 3 | €7,290 |
The conclusion is clear: at 1% per trade you can survive a long losing streak and keep trading; at 10%, three mistakes in a row are enough. And recovering costs more than losing: after a 20% drawdown you need a 25% gain to get back to where you started.
Example 1: shares
- Capital: €10,000. Risk per trade: 1% = €100.
- You buy a share at €50.00 and support is at €47.80. You set your stop at €47.50.
- Distance to stop: 50.00 − 47.50 = €2.50 per share.
- Size: 100 ÷ 2.50 = 40 shares (a €2,000 position).
- If the stop is hit: 40 × 2.50 = €100 loss, 1% of the account.
Example 2: forex (EUR/USD)
- Capital: $10,000. Risk: 1% = $100.
- You buy EUR/USD at 1.1000 with a stop at 1.0950: a distance of 50 pips.
- On EUR/USD, a standard lot (100,000 units) is worth $10 per pip.
- Size: 100 ÷ (50 × 10) = 0.2 lots (20,000 units).
- Check: 20,000 × 0.0050 = $100.
If you trade other pairs, the pip value changes: calculate it before opening so that the risk in money is what you planned.
Example 3: ATR-based stop
- The same share at €50.00 has a 14-day ATR of €1.20.
- Stop at 1.5 × ATR: 1.5 × 1.20 = €1.80. Stop at €48.20.
- Size: 100 ÷ 1.80 = 55.5 → round down to 55 shares.
- Loss if hit: 55 × 1.80 = €99.
Example 4: short selling (the stop goes above)
- Capital: $10,000. Risk: 1% = $100.
- You sell EUR/USD at 1.1000 because the price is rejecting resistance at 1.1030. You place the stop above, at 1.1050: 50 pips.
- The calculation is identical: 100 ÷ (50 × 10) = 0.2 lots. Only the side of the stop changes.
Example 5: gold (XAU/USD)
- With most brokers, 1 lot of gold is 100 ounces: every dollar the price moves is worth $100 per lot. Check the contract size on your platform, as some use a different one.
- With a stop $15 from entry and $100 at risk: 100 ÷ (15 × 100) = 0.066 → round down to 0.06 lots.
- Loss if hit: 0.06 × 100 × 15 = $90.
Notice that the risk in money is practically the same in every case. What changes is the number of shares or lots: a wider stop forces a smaller position, not the other way round.
What happens if there is a gap
Go back to example 1: 40 shares bought at €50 with a stop at €47.50. If the company reports poor results after the close and the share opens the next day at €45.00, your stop is filled around €45. The real loss is 40 × 5.00 = €200: twice what you planned. That is why it pays to reduce size or avoid holding positions through events such as earnings or central bank decisions.
Stop loss and take profit: the risk-reward ratio
A take profit is the opposite order: it closes the trade when it reaches your profit target. Comparing the two distances gives you the risk-reward ratio. If you risk 50 pips to make 100, the ratio is 1:2.
That figure has a direct mathematical consequence: with a 1:2 ratio, you only need to win 1 trade in 3 (33.3%) to break even before costs, because 1 ÷ (1 + 2) = 0.333. At 1:1 you would need to win 50%. Work out your own numbers with our stop loss and take profit calculator.
| Risk:reward ratio | Minimum win rate to break even |
|---|---|
| 1:1 | 50.0% |
| 1:1.5 | 40.0% |
| 1:2 | 33.3% |
| 1:3 | 25.0% |
The table excludes spreads and commissions, which push the required win rate slightly higher.
How to use a trailing stop
You buy at €50 with a €3 trailing stop. The stop starts at €47. If the share rises to €56, the stop rises with it to €53. If the price then falls, the stop stays at €53 and, if touched, you exit with +€3 per share. It is useful in long trends, but in sideways markets a distance that is too tight will knock you out again and again.
Why a stop loss matters more in volatile markets
When volatility spikes, the same stop in money terms can be hit within minutes and price gaps become more frequent. That is why, in turbulent phases, the prudent approach is to widen the stop distance according to the ATR and reduce position size to keep the same risk, not the other way round. In crypto and in leveraged CFDs, trading without a stop can end in a forced liquidation: see how it works in our guide to the liquidation price.
In the European Union, measures from the European Securities and Markets Authority (ESMA) require CFD brokers to close positions when a retail client's margin falls below 50% of the required level and to provide negative balance protection. That margin close-out is not a stop loss: it comes late and at whatever price is available. You decide your stop yourself, before you enter.
How to set a stop loss in MT4, MT5 and with a stockbroker
In MetaTrader 4 and MetaTrader 5
- Open the new order window (F9 key).
- Enter your stop price in the "Stop Loss" field (and, if you wish, your target in "Take Profit") before clicking buy or sell.
- To change it on an open trade, double-click the trade in the "Trade" tab and choose "Modify", or drag the stop line on the chart.
- The trailing stop is enabled by right-clicking the position. Note: ordinary stop loss and take profit orders are stored on the broker's server and trigger even if you close the platform, but the trailing stop runs from your terminal: it only moves while MetaTrader is open and connected (for example, on a VPS).
With a stockbroker
- On the order screen, choose the "stop" or "stop loss" order type.
- Enter the trigger price and, for a stop-limit order, the limit price too.
- Check the validity: if it is a day order, it expires at the close and you will have to place it again; if it is "good till cancelled", it stays active.
Common stop-loss mistakes
- Not using one "because it will come back". This is the mistake that destroys the most accounts. A 50% loss needs a 100% gain to recover.
- Moving it further away as the price approaches. Moving the stop against you turns a small, planned loss into a large, unexpected one. You can move it closer to protect profits; never further away.
- Setting it too tight. A stop inside the price's normal noise gets hit by meaningless moves. Use structure or the ATR.
- Placing it on obvious round numbers. Many traders put their stops right on figures such as 1.1000 or €100, so those areas tend to be clusters of resting orders. As a rule of thumb, leave a small buffer beyond them.
- Setting the stop by money rather than by the chart. "I don't want to lose more than €50, so I'll put it €50 away" ignores the market. Technical level first; size second.
- Forgetting leverage. With high leverage, a small price distance is a lot of money. Check the margin required before opening.
Stop loss summary table
| Concept | What it is | In practice |
|---|---|---|
| Stop market order | Closes at the available price when the level is touched | Guarantees the exit, not the price |
| Stop-limit order | Closes only within a limit price | May not fill in fast sell-offs |
| Trailing stop | Follows the price at a fixed distance | Protects profits in a trend |
| Guaranteed stop | Filled at your exact level | Has a cost; not every broker offers it |
| Risk per trade | % of the account you accept losing | Typical: 0.5–2% |
| Position size | (Capital × % risk) ÷ distance to stop | Wider stop, smaller position |
Trading CFDs, currencies and cryptocurrencies with leverage carries a high risk of losing money rapidly. This article is educational and is not investment advice; read our risk warning.
Frequently asked questions
How much should I risk on each stop loss?
There is no mandatory figure, but a common rule is to limit the loss to 0.5–2% of the account per trade. What matters is that the percentage is fixed and that position size adjusts to the stop distance.
Does a stop loss guarantee I won't lose more?
No. A stop market order is filled at the first available price, which in sharp drops or gaps can be worse than your level. Only a guaranteed stop, which some brokers offer at a cost, ensures the exact price.
Where should I put my stop loss in forex?
The same as in any market: a few pips beyond the support or resistance that invalidates your idea, or 1.5–2 times the ATR away. Then calculate the lot size using the pair's pip value so the loss is the percentage of the account you accept.
What is a mental stop loss?
It means deciding on an exit level without entering the order on the platform and closing manually if it is reached. It requires being in front of the screen and total discipline, and it does not protect you if you lose your connection or the market moves while you are not watching.
Does a stop loss work outside market hours?
It depends on the broker and the asset. In stocks, most stops only work during the session, so an opening gap fills them at the opening price. In crypto, the market trades 24 hours a day and stops are usually always active, although each exchange has its own rules and slippage can also occur during maintenance outages or sharp moves.