Decide how much money you are willing to lose and gain on a gold trade. This calculator turns those amounts into exact stop loss and take profit prices you can type straight into MT4 or MT5.

It works for XAUUSD by default and also supports major forex pairs. You can also run it in reverse: enter your SL and TP prices and see how much you stand to lose or win.

Used to convert results into your account currency.
Needed to convert the pip value of JPY cross pairs.

Result

What are stop loss and take profit?

A stop loss (SL) is a price where your platform closes a losing trade for you. It caps how much one trade can take from your account.

A take profit (TP) is the opposite: a price where the platform closes a winning trade and locks in the gain. You don’t have to watch the chart for the position to close at your target.

Where the two levels sit depends on three things:

  • Direction. On a buy, SL goes below entry and TP above it. On a sell, it’s the other way round.
  • Lot size. The bigger the position, the more each price move is worth. Bigger lots need a tighter SL for the same dollar risk.
  • Your risk and reward amounts. These set how far from entry each level goes.

Gold moves in larger dollar steps than most forex pairs. A $10 move in XAUUSD is an ordinary day. That’s why sizing SL and TP from a fixed dollar amount, rather than a fixed number of pips, keeps gold trading under control.

How to use the calculator

The calculator has two modes. Use SL/TP Levels before you open a trade, and Profit/Loss to check a trade you have already planned.

Mode 1: SL/TP Levels (from money to price)

  1. Pick the instrument. XAUUSD is selected by default.
  2. Choose Buy or Sell.
  3. Enter your entry price and lot size.
  4. Enter your risk in dollars, or as a percentage of your account balance.
  5. Enter your profit target in dollars, or tap 1:1, 1:2 or 1:3 to set it from your risk.
  6. Press Calculate. Copy the SL and TP prices into your MT4 or MT5 order window.

Mode 2: Profit/Loss (from price to money)

Enter your entry, SL price, TP price and lot size. The calculator shows how much you lose if SL is hit, how much you make if TP is hit, and the risk-to-reward ratio.

Worked example: buying gold

You want to buy 0.10 lot of XAUUSD at 4,000.00. You’re willing to lose $100 and want to make $200.

ResultValue
Stop loss price3,990.00
Take profit price4,020.00
SL distance$10.00 in price = 100 pips
TP distance$20.00 in price = 200 pips
Pip value at 0.10 lot$1.00 per pip
Risk-to-reward1:2

The example uses an illustrative gold price and the common convention of 1 pip = 0.10 for XAUUSD. If your broker counts 1 pip as 0.01, switch the pip setting in the calculator: the prices stay the same, only the pip counts change (1,000 and 2,000).

Stop loss and take profit formulas

Gold (XAUUSD)

One standard lot of gold is 100 troy ounces. Every $1 move in the gold price changes the value of 1 lot by $100. So the price distance for a given dollar amount is:

SL distance = Risk amount (USD) ÷ (Lot size × 100)
TP distance = Profit target (USD) ÷ (Lot size × 100)

Then place the levels around your entry:

  • Buy: SL = Entry − SL distance, TP = Entry + TP distance
  • Sell: SL = Entry + SL distance, TP = Entry − TP distance

To convert the distance into pips, divide by the pip size: 0.10 under the common convention, 0.01 if your broker uses points.

Forex pairs

A standard forex lot is 100,000 units of the base currency. For pairs quoted in USD (EURUSD, GBPUSD, AUDUSD, NZDUSD) with a USD account:

SL distance = Risk amount (USD) ÷ (Lot size × 100,000)

For other pairs, first convert your risk into the quote currency. For USDJPY, multiply your USD risk by the USDJPY rate. For EURJPY or GBPJPY, multiply it by the USDJPY rate as well. The calculator does this conversion for you when you enter the current rate.

Pip size is 0.0001 for most pairs and 0.01 for JPY pairs.

Risk as a percentage of your account

If you prefer to think in percent, convert it to dollars first: Risk amount = Account balance × Risk %. A $5,000 account risking 1% per trade gives a $50 risk amount.

Quick reference: gold stop loss distance by lot size

Find your lot size on the left and your risk amount across the top. Each cell shows how far your stop loss sits from entry, in dollars of gold price and in pips (1 pip = 0.10).

Lot sizeRisk $10Risk $25Risk $50Risk $100Risk $250
0.01$10.00 (100 pips)$25.00 (250 pips)$50.00 (500 pips)$100.00 (1,000 pips)$250.00 (2,500 pips)
0.05$2.00 (20 pips)$5.00 (50 pips)$10.00 (100 pips)$20.00 (200 pips)$50.00 (500 pips)
0.10$1.00 (10 pips)$2.50 (25 pips)$5.00 (50 pips)$10.00 (100 pips)$25.00 (250 pips)
0.50$0.20 (2 pips)$0.50 (5 pips)$1.00 (10 pips)$2.00 (20 pips)$5.00 (50 pips)
1.00$0.10 (1 pip)$0.25 (2.5 pips)$0.50 (5 pips)$1.00 (10 pips)$2.50 (25 pips)

Read the table both ways. With $50 of risk, 0.10 lot gives you a $5 stop. If gold usually swings more than that during your trade, the stop is too tight: drop to 0.05 lot for a $10 stop, or accept a larger risk amount.

The same logic works for take profit. A 1:2 target on a $5 stop is $10 above entry on a buy.

Setting stop loss and take profit for EAs and trading robots

With an Expert Advisor, you don’t type SL and TP into each order. The robot sets them from its own inputs. Your job is to make sure those inputs match the risk you can afford, before the EA starts trading.

1. Find out how the EA places its stop. Open the EA’s input settings and look for a fixed SL in pips or points. Some robots use a hidden or virtual stop that never appears on the chart. That stop only works while the terminal is running, so a VPS matters more.

2. Size the lot to the stop, not the other way round. If a gold EA uses a fixed 300-point stop ($3.00 of price), use Mode 2 of the calculator to see what that stop costs at your lot size. Lower the lot until the loss fits your risk limit.

3. Be careful with EAs that have no stop loss. Grid and martingale robots often close a whole basket of trades together instead of using a per-trade stop. One calculator result won’t show your real risk. Check the robot’s maximum drawdown on a verified track record instead. Our guide to forex robots that avoid martingale explains what to look for.

4. Compare the EA’s stop with its track record. A robot that claims a tight stop but shows deep drawdowns is not using the stop it advertises. Our guide on how to read a Myfxbook statement shows where to check this.

Looking for a gold robot that trades with a real stop loss? See our tested picks for the best gold forex robot and the best forex robot for MT5.

More gold trading calculators

This calculator answers one question: where should my stop and target go? These tools answer the ones that come before and after it.

ToolUse it to
Pip Value CalculatorSee what one pip of XAUUSD or a forex pair is worth at your lot size
Position Size CalculatorAlready know your stop in pips? Find the lot size that matches your risk
Currency ConverterConvert profits and losses into your account currency