Back

Portfolio Correlation Matrix Builder

Compute pairwise asset correlations, visualize as a color-coded heatmap, and score your portfolio's true diversification.

Feb 23, 2026, Eric

The Core Idea

Diversification only works when your assets are not correlated. Two assets with a correlation above 0.8 are essentially the same position — holding both increases your exposure without reducing your risk. This tool computes pairwise Pearson correlations for any set of assets and quantifies how much genuine diversification your portfolio actually contains.

Data

Toggle assets on/off to explore subsets:

CSV: first row = ticker headers, each column = one asset's daily returns

Correlation Heatmap

Red = highly positive correlation. Blue = negative. Amber border = |corr| > 0.8. Hover for details.

SPYQQQIWMGLDTLTBTCOILINTL
SPY0.920.840.06-0.380.240.460.68
QQQ0.920.790.03-0.310.230.350.65
IWM0.840.790.03-0.320.230.470.68
GLD0.060.030.030.220.110.140.07
TLT-0.38-0.31-0.320.22-0.09-0.19-0.25
BTC0.240.230.230.11-0.090.130.23
OIL0.460.350.470.14-0.190.130.45
INTL0.680.650.680.07-0.250.230.45

Diversification Score

77

Moderately diversified

Avg Pairwise Correlation

0.231

High-Corr Pairs (|r| > 0.8)

2

Worst (Highest) Correlated Pair

SPYQQQ: 0.915

What This Means

SPY and QQQ (0.92): You are effectively running one position. A shock to one will hit the other with 92% efficiency.
SPY and IWM (0.84): You are effectively running one position. A shock to one will hit the other with 84% efficiency.
Diversification score: 77/100 (Moderately diversified). Average pairwise correlation is 0.231. Combining these assets provides meaningful risk reduction relative to holding any single asset.
TLT hedge: TLT shows a negative correlation with SPY (-0.38). Long bonds historically reduce portfolio drawdowns during equity selloffs — though this relationship weakened during the 2022 inflationary regime.
GLD as diversifier: Gold's near-zero correlation with equities makes it a genuine diversifier in a mean-variance framework — it adds return variation that is mostly independent of equity moves.