Stock Correlation Calculator

Diversification works when assets move differently. Add two or more price histories to build a correlation matrix, explore the heatmap and instantly spot your least-diversified pair.

No login Educational estimate Shareable URL

Correlation matrix

Pearson correlation for every pair of stocks in your list.

Interactive heatmap

Color-coded matrix that makes strong and weak relationships visible at a glance.

Least-diversified pair

Automatically flags the two stocks that move most in lockstep.

Example Calculation

Run through a typical scenario with the sample values below — hit See an example to load them instantly.

InputSample value
Stocks — name then pricesAAPL|178,182,176,185,190,188,192 MSFT|330,338,332,345,352,349,355 NVDA|450,462,448,470,480,476,490
📘

How to Use This Tool

Follow the steps below to get accurate results.

  1. Add your stocks One row per stock: a ticker/name, then its price history separated by commas — e.g. AAPL|178,182,176,185.
  2. Click Calculate The tool pairs every stock with every other stock and computes the Pearson correlation for each pair.
  3. Read the matrix & heatmap Red cells move together, blue cells move opposite. Click any cell to plot that pair as a scatter chart below.

Input Fields

  • Stocks — name then prices

Outputs You Will Get

  • Pairs analyzed
  • Average correlation
  • Least-diversified pair
  • Strongest pair (r)
  • Most diversified pair
The least-diversified pair (highest r) moves almost in lockstep — holding both gives you less protection than you think. Use at least 20-30 data points per stock for a meaningful result.
🧠

How This Calculator Works

Diversification works when assets move differently. Add two or more price histories to build a correlation matrix, explore the heatmap and instantly spot your least-diversified pair.

What you will get

Good to know

Stock Correlation Calculator is an interactive estimate built for quick planning. Always double-check the numbers that matter before acting on them, and reach out to a professional for personalized advice.

More finance calculators

Explore the rest of the investment toolkit.

?

Frequently Asked Questions

How does the Stock Correlation Calculator work?

Simply fill in the fields and press Calculate. Diversification works when assets move differently. Add two or more price histories to build a correlation matrix, explore the heatmap and instantly spot your least-diversified pair.

What information do I need to provide?

Just the basics — Stocks — name then prices, plus a few simple inputs. No account or signup is required; everything runs in your browser.

Is Stock Correlation Calculator really free to use?

Yes — completely free, with no login, no watermarks and no limits. Bookmark it and share the URL with anyone who needs it.

How accurate is the estimate?

The calculator uses current, standard formulas to produce an educational estimate. Real-world figures can vary based on your specific situation, so treat it as a planning aid rather than a final answer.

Can I use it on my phone?

Absolutely. The tool is fully responsive and works smoothly on mobile, tablet and desktop browsers.

What should I keep in mind?

The result is an estimate for educational purposes only and is not financial, legal or tax advice. Consult a qualified professional before making important decisions.

Disclaimer: The Stock Correlation Calculator is provided for educational and informational purposes only and does not constitute financial, investment, legal or tax advice. Results are estimates and may not reflect your complete financial situation. Always consult a qualified professional before making financial decisions.