Ask what gold is linked to and the usual answer is a list: the dollar, yields, silver, fear. The list is fair, but it hides the part that matters. Each of those links has a reason behind it, and each reason can weaken, strengthen or reverse depending on what is driving the market at the time.
This article explains what correlation measures, walks through the main relationships of XAU/USD and the logic behind them, and shows how to calculate a rolling figure yourself. It also covers what happens in a crisis, and how correlation helps with risk without predicting anything.
What correlation measures, and what it does not
A correlation coefficient runs from -1 to +1. At +1 two series move in step, at -1 they move in opposite directions, and near 0 there is no consistent linear relationship. It says nothing about cause, and nothing about size. Gold can have a correlation of -0.6 with the dollar and still rise on a day the dollar rises.
The more important limit is that the coefficient belongs to a window. Calculate gold against the US Dollar Index over the last 30 days and you may get -0.7. Over the last year it may be -0.3, and over a different year it may be close to zero. Neither figure is wrong. They describe different stretches of market behaviour.
Treat the number as a description of the recent past. It is a useful summary of how two markets have been behaving together, and a poor promise of how they will behave tomorrow.
The US dollar and real yields
Gold is priced in US dollars, so a stronger dollar makes it dearer for holders of other currencies, which tends to dampen demand. A weaker dollar does the opposite. That is the mechanical reason for the negative link with the US Dollar Index. The index is a basket weighted heavily towards the euro, so it also reflects what is happening in EUR/USD.
The link with real yields is the more economic one. Gold pays no interest, so holding it has an opportunity cost: the return you could earn on an inflation-protected US Treasury (TIPS). When real yields rise, that cost rises and gold has often come under pressure. When real yields fall, holding gold costs less. Federal Reserve expectations feed straight into this, which is why rate-decision days move gold so sharply.
Both relationships are negative on average, but neither is fixed. Central-bank buying and exchange-traded fund flows can lift gold while yields are high, and the pattern since 2022 has been a reminder of that. The wider list of forces is covered in what moves XAU/USD.
Silver, and the yen and franc pairs
Silver is the closest relative. It is also a precious metal, it responds to the same dollar and yield pressures, and traders often rotate between the two. The correlation is usually strongly positive, though silver has a larger industrial component and tends to move by bigger percentages. The gold/silver ratio shows how far the pair has drifted apart, and the Ratio Tracker puts the current reading against its long history. Details of the other metal are in the XAG/USD guide.
USD/JPY and USD/CHF are mixed. The yen and the Swiss franc are both seen as defensive currencies, so in a risk-off episode they can strengthen alongside gold, which pushes both pairs down while gold rises. But USD/JPY is also strongly driven by US yields, and those pull gold the other way. The sign therefore changes with which force dominates. The USD/JPY guide explains the yield side of that pair.
Equities: a relationship that depends on the regime
There is no standing rule that gold rises when shares fall. In a calm, growth-led market the two can drift up together, helped by easy liquidity and a softer dollar. In a sharp sell-off driven by fear, gold may rise as a refuge. In a liquidity squeeze, both can fall at once as investors sell what they can sell.
That is why the equity correlation is best called regime-dependent. A figure measured across a calm year and a figure measured across a stressed quarter can differ in sign. If you want a quick view of how gold and the main equity indices moved today, the Market Heatmap shows them in one grid.
What happens in a crisis, and when links break
In stress, correlations between many assets tend to move towards one, because forced selling hits everything. Gold's usual role as a diversifier can fail in the first phase, when traders sell winning positions to cover losses or meet margin calls elsewhere. Later, once the panic settles, the safe-haven bid has sometimes returned.
Relationships also break when a new driver takes over. Heavy central-bank buying, for example, can hold gold up against rising real yields. A geopolitical shock can overpower the dollar link in a single session. When a long-standing correlation stops holding, the sensible response is to ask what has changed, not to assume the market is wrong.
A correlation that has held for years can fail within days, so never size a position on the assumption that it will continue.
How to measure a rolling correlation
A rolling correlation recalculates the coefficient over a moving window, so you can see how the relationship changes. The steps are simple enough for a spreadsheet or an indicator.
- Pick the two series and use the same timestamps, for example daily closes of XAUUSD and the dollar index.
- Convert prices to returns (the percentage change from one close to the next). Correlating raw prices can give misleading, inflated results.
- Choose a window, such as 20, 60 or 120 days, and calculate the correlation of returns inside it.
- Move the window forward one bar at a time and plot the result.
- Record the window and the data frequency alongside every figure.
Short windows react quickly but are noisy. Long windows are steadier but slow to notice a change. Looking at two windows together, say 30 and 120 days, shows whether a relationship is recent or established. A figure with no stated period is close to meaningless, so write it as, for example, "-0.45 over 60 daily returns to a given date".
Using correlation for risk and for sense-checks
The most practical use is avoiding a doubled bet. Suppose you are long gold and long silver, or long gold and short the dollar index. Those can be close to one position expressed twice, so a single adverse move in the dollar could hurt both at the same moment. Counting them as one exposure when setting size is more honest than treating them as separate ideas.
The second use is a sense-check. If you expect gold to rise while real yields and the dollar are both climbing, ask what is supplying the offset. It might be safe-haven demand or official buying, or your view may be missing something. Correlation raises the question without answering it.
Gold's large daily range in dollar terms means position size matters on its own. The volatility and costs article covers that, and the Currency Strength Meter gives a quick read on the dollar side.
Correlation is best used as a map of what else you are exposed to, redrawn regularly, with the period always written on it. It tells you where the neighbouring risks are, not where price is going next.
Frequently asked questions
Is gold always negatively correlated with the dollar?
No. The negative link is common on average, but it varies by period. Gold and the dollar have risen together during stress or heavy official buying. Measure it over a stated window, compare short and long windows, and treat the sign as something that can change rather than a rule.
Does gold rise when stock markets fall?
Sometimes, but not reliably. In fear-driven sell-offs gold has often attracted safe-haven demand. In liquidity squeezes it can fall with equities as positions are sold to raise cash. The relationship depends on the regime, so check recent behaviour instead of assuming.
Which window should I use for a rolling correlation?
There is no correct answer. Twenty to 30 daily returns show recent behaviour but are noisy, while 120 or more are steadier but slower to react. Using two windows together is a sensible compromise, and you should always state both the window and the data frequency.
Can correlation help me predict gold's next move?
No. It describes how markets have moved together in the past and helps you spot overlapping risk or test the logic of a view. It does not forecast direction, and relationships can shift without warning. See the risk disclosure for the wider caveats.
This article is educational. It does not recommend any trade or product, and nothing here is a promise of results. Information only, not advice. Trading leveraged products carries a high level of risk and you can lose more than you deposit. Past behaviour does not predict future results. Read the risk disclosure.