Currency Correlation Matrix for Forex: Calculate It From Your Own Data
A currency correlation matrix shows, for every pair of instruments, how closely their period-to-period returns have moved together, on a scale from −1 (opposite) through 0 (unrelated) to +1 (together). The tool above is not a live feed: you paste closing prices for 2 to 6 pairs exported from your own platform, and it calculates Pearson correlation on the returns, not the raw prices. That makes the result exactly as current, and as reliable, as the data you give it.
Key takeaways
- Correlation is calculated on returns (close ÷ previous close − 1), because trending prices can look correlated when they are not.
- +1 means the returns moved together, −1 opposite, 0 no linear relationship, in the sample you entered.
- Correlations shift over time; a 20-day and a 120-day window can give very different readings.
- The main practical use is spotting doubled-up risk, such as several trades that are all effectively short the US dollar.
- Correlation measures direction of co-movement, not size; two pairs can be highly correlated yet move by different amounts.
How the tool calculates correlation
For each column of closing prices, the tool first converts prices into returns: return = close ÷ previous close − 1. It then computes the Pearson correlation for each pair of return series:
r = Σ[(a − mean a)(b − mean b)] ÷ √(Σ(a − mean a)² × Σ(b − mean b)²)
The result fills a grid with 1.00 on the diagonal (each series against itself) and colour shading for the strength of each relationship. You can paste data separated by commas, semicolons, tabs or spaces, with an optional header row for pair names and an optional first column of dates. Rows should run oldest first. The tool requires at least 6 rows, but 20 or more give a more meaningful figure. A sample button loads synthetic prices generated in your browser so you can see how the output looks; those are not real market data.
Why the tool uses returns, not prices
Two unrelated series that both happen to trend upward over a month will show a high correlation if you compare price levels. Comparing returns asks the more useful question: on the days one moved up, did the other tend to move up too? This is the standard approach in finance and avoids most spurious readings.
A worked example by hand
Take two pairs with five daily returns each (six closes). To keep the arithmetic readable, the returns are in percent and both happen to average zero.
| Day | Pair A return | Pair B return | A × B |
|---|---|---|---|
| 1 | +0.20 | +0.15 | 0.0300 |
| 2 | −0.10 | −0.05 | 0.0050 |
| 3 | +0.30 | +0.20 | 0.0600 |
| 4 | 0.00 | +0.05 | 0.0000 |
| 5 | −0.40 | −0.35 | 0.1400 |
| Sum | Σa² = 0.30 | Σb² = 0.19 | 0.2350 |
r = 0.235 ÷ √(0.30 × 0.19) = 0.235 ÷ 0.2387 = +0.98. Over these five days the pairs moved almost in lockstep. Five observations is far too few to trust, which is exactly why the tool recommends 20 or more.
How to read the numbers
| Correlation | Common reading | Practical meaning |
|---|---|---|
| +0.70 to +1.00 | Strong positive | Same-direction trades largely duplicate each other's risk |
| +0.30 to +0.70 | Moderate positive | Partial overlap; diversification is limited |
| −0.30 to +0.30 | Weak or none | Little linear relationship in this sample |
| −0.70 to −0.30 | Moderate negative | Tend to move opposite; partial offset |
| −1.00 to −0.70 | Strong negative | Buying both largely cancels out; selling one and buying the other doubles exposure |
The boundaries are conventions, not rules. Structurally, pairs that share a currency in the same position often show positive readings (EUR/USD and GBP/USD are both quoted against the dollar), while pairs with the dollar on opposite sides, such as EUR/USD and USD/CHF, often read negative. Our lists of positively correlated pairs and negatively correlated pairs explain the common relationships, but check them against current data rather than assuming they hold.
How to use the result
Check for doubled-up exposure
Before adding a trade, paste recent closes for the pairs you already hold plus the new one. If you are long EUR/USD and about to buy GBP/USD with a strongly positive reading, you are close to doubling a single bet against the dollar. Add the position values together and check the combined exposure with the forex leverage calculator.
Compare windows
Run the tool on the last 20 days and the last 120 days. If the readings differ sharply, the relationship is unstable and you should not lean on it. Correlations often jump during market stress, when risk-on and risk-off flows push many pairs the same way at once, and the dollar's broad moves, tracked by the DXY index, can dominate.
Be wary of correlation hedges
Holding opposite positions in negatively correlated pairs looks like a hedge but usually leaves you paying two spreads and two swaps for a relationship that can break without warning. Our guide to forex hedging covers the limits.
Limit of the tool: correlation describes only the sample you entered. It shifts over time, can reverse during crises, and says nothing certain about future moves. Use it to understand the risk you are carrying, not to predict prices. Leverage magnifies losses on correlated positions just as it does on single ones, and most retail CFD and forex accounts lose money.
Common mistakes
- Mixing data from different cut-off times, so one column's "day" does not match another's.
- Reading a high correlation as equal movement: correlation ignores how far each pair moves.
- Drawing conclusions from very short samples.
- Leaving gaps: if one pair has a missing day and you delete only that cell, every later row shifts out of line. Remove the whole row instead so all columns stay aligned by date.
Frequently asked questions
Does this correlation matrix use live forex data?
No. It has no market feed and contains no stored prices. You paste closing prices exported from your own platform, and the tool calculates correlation from those numbers only. The optional sample data is synthetic, generated in your browser to show how the output looks, and is clearly labelled as not real prices.
How many data points do I need?
The tool needs at least six rows of closes, which gives five returns, but that is only enough to see how it works. Twenty or more periods give a more meaningful figure, and many traders compare a short window, around 20 days, with a longer one, around 100 to 120 days, to judge stability.
What is a strong correlation in forex?
Readings above about +0.70 or below about −0.70 are commonly described as strong. Between −0.30 and +0.30 the relationship is weak. These cut-offs are conventions. What matters more is whether the reading is stable across different windows and whether it is strong enough to affect how much combined risk you carry.
Why are EUR/USD and USD/CHF negatively correlated?
The US dollar is the quote currency in EUR/USD and the base currency in USD/CHF. When the dollar strengthens broadly, EUR/USD tends to fall and USD/CHF tends to rise. The euro and Swiss franc also often move in similar directions against the dollar. The relationship is common but not permanent, so check it against recent data.
Can I use daily, hourly or weekly closes?
Yes. The tool works with any period as long as every column uses the same timeframe and the same cut-off times. Hourly data captures short-term relationships useful for intraday trading; weekly data shows longer structural links. Correlations often differ between timeframes, so match the data to how long you hold trades.
This article is general information, not personal financial advice. Figures such as spreads, fees, leverage and rules change; confirm them with the provider and check the provider is authorised for your country of residence.