Skip to content
Menu

Currency Correlation Calculator

By Chad Smith · Updated

On this page
  1. How to use it
  2. The formula
  3. Worked example
  4. What the result means
  5. Using correlation in a risk plan
  6. Common mistakes
  7. Related lessons and tools

A currency correlation calculator measures how closely two pairs, or any two markets, have moved together over a chosen period. It shows a number from −1 to +1 for each pair of instruments, laid out as a matrix. Traders use it to avoid doubling up on the same risk without realizing it, and to understand how their open positions interact.

Currency correlation calculator

Oldest first, same dates for both.

Correlation (r)
0.94
Strength
Very strong positive
Returns compared
7

Calculated on period-to-period returns, not raw prices.

How to use it

  1. Choose the instruments to compare.
  2. Choose the timeframe of the data, such as hourly or daily.
  3. Choose the lookback period, such as 20, 50 or 100 periods.
  4. Read the matrix. Values near +1 move together, near −1 move opposite, near 0 have little relationship.

The formula

The calculator uses the Pearson correlation coefficient of the returns of each instrument:

Return_t = (Close_t − Close_t−1) ÷ Close_t−1

r = Σ (x − x̄)(y − ȳ) ÷ √( Σ (x − x̄)² × Σ (y − ȳ)² )

x, y = returns of the two instruments
x̄, ȳ = their average returns over the period

Correlation is calculated on returns, not prices, because two price series that both trend can look related even if their daily moves are not.

Worked example

This is an illustrative example with simple numbers.

Over five days, two pairs have these daily returns (in %):

Pair A: +0.4, −0.2, +0.6, −0.4, +0.1   mean = 0.10
Pair B: +0.3, −0.1, +0.5, −0.5, +0.3   mean = 0.10

Deviations A: 0.3, −0.3, 0.5, −0.5, 0.0
Deviations B: 0.2, −0.2, 0.4, −0.6, 0.2

Σ(dA × dB) = 0.06 + 0.06 + 0.20 + 0.30 + 0.00 = 0.62
Σ dA²      = 0.09 + 0.09 + 0.25 + 0.25 + 0.00 = 0.68
Σ dB²      = 0.04 + 0.04 + 0.16 + 0.36 + 0.04 = 0.64

r = 0.62 ÷ √(0.68 × 0.64) = 0.62 ÷ 0.660 ≈ 0.94

The two pairs moved closely together over this short sample.

What the result means

A strong positive correlation means that buying both pairs is close to buying one pair at double the size. A strong negative correlation means that buying one and selling the other is also a doubled position, because both trades profit or lose from the same move. Pairs that share a currency, such as EUR/USD and GBP/USD, often show high correlation because the US dollar side drives both.

Low or unstable correlations mean the instruments offer some diversification, though correlations tend to rise in sharp market stress, just when diversification is most needed.

Using correlation in a risk plan

Many risk plans include a rule for correlated trades: for example, treat positions with a correlation above a chosen level as a single trade, and keep their combined risk within the normal limit for one trade. The calculator makes that rule practical. Before opening a new position, check its correlation with what you already hold. If it is high and in the same direction, either skip the trade or reduce both positions so the total risk stays the same.

Common mistakes

  • Treating correlation as fixed. Recheck it regularly; relationships shift with market themes.
  • Using price instead of returns. Price-based correlation exaggerates relationships in trending markets.
  • Forgetting the direction of trades. A negative correlation plus opposite trades equals doubled exposure.
  • Reading correlation as cause. Two pairs can move together because of a shared driver, not because one moves the other.
  • Relying on one short window. A few days of data can produce extreme values by chance.

Frequently asked questions

What does a correlation of +1 or -1 mean?

A correlation of +1 means two pairs have moved in the same direction in perfect step over the period. A correlation of -1 means they have moved in perfect step in opposite directions. Zero means no linear relationship.

Why do correlations change?

Correlations reflect what is driving markets at the time, such as interest rate expectations or risk sentiment. When the drivers change, correlations can weaken or even reverse.

How does correlation affect my risk?

Holding two highly correlated positions in the same direction is close to holding one larger position. Your total risk is higher than each trade's risk suggests.

What period should I use?

Short periods react quickly but are noisy; long periods are steadier but slower to show change. Many traders check both a short and a long window.