← All tools

Correlation matrix

See which number columns move together, with p-values and scatter plots. Free, private and browser-based.

Read-only viewer
Open files
0 / 5

Free workspace supports five open files. Each file can be up to 100 MB.

Enjoying Correlation matrix?Your review and ideas shape what we build next.

Review Correlation matrix

Please don't include file contents or passwords.

About the Correlation matrix

Open a CSV or Excel file and see how every pair of number columns moves together. The colour-coded matrix shows Pearson's r (straight-line relationships) or Spearman's rho (any steady rise or fall) for every pair, stars mark the ones that are statistically significant, and clicking a cell shows its scatter plot with the best-fit line. The strongest relationships are explained in plain words, and the matrix and a list of pairs with p-values can be downloaded.

How to use it

  1. Open a CSV, XLS or XLSX file with at least two number columns.
  2. Choose Pearson or Spearman, and click the column chips to leave columns out or add them back.
  3. Read the matrix: blue cells rise together, red cells move in opposite directions, darker means stronger.
  4. Click a cell to see the scatter plot, and download the matrix or the pairs with p-values.

Tip: Always look at the scatter plot. A single extreme point can create a strong correlation on its own, and a perfect U-shaped curve can show r near 0. The plot shows what the number can't.

What the correlation coefficient means

r² (r squared) is the share of the variation in one column that a straight line through the other explains: r = 0.7 means r² = 0.49, so about half.

+1
Perfectly together: when one goes up, the other always goes up by a steady amount.
0.8 to 1 (or −0.8 to −1)
Very strong.
0.6 to 0.8
Strong.
0.4 to 0.6
Moderate.
0.2 to 0.4
Weak.
0 to 0.2
Very weak or no relationship.
Negative values
One goes up as the other goes down, like price and quantity sold.

Pearson or Spearman?

Pearson's r measures how well a straight line fits the points. It is the standard choice for measurements such as height, temperature or revenue, and is what Excel's =CORREL and =PEARSON calculate.

Spearman's rho correlates the ranks instead of the values, so it catches any relationship that steadily rises or falls, even curved ones, and is much less affected by outliers. Use it for ratings and rankings (1 to 5 stars, survey scales), skewed data like incomes, or when the scatter plot curves. Tied values share the average rank.

Significance and p-values

The p-value is the chance of seeing a correlation at least this strong in your sample if there were really no relationship at all. Below 0.05 (one star) is the usual line for “statistically significant”, ** is below 0.01 and *** below 0.001. With lots of rows, even a tiny r becomes significant; with 10 rows, even r = 0.5 can be chance. So read both: the size of r says how strong, the p-value says how sure. The p-value uses the t-test with n − 2 degrees of freedom, the same as most statistics packages.

Correlation is not causation

Ice cream sales and drownings rise together, but ice cream doesn't cause drowning: hot weather drives both. Two columns can also move together because both grow over time, or by pure chance when many pairs are compared (with 20 columns there are 190 pairs, so a few will look significant by luck). Treat strong correlations as ideas to investigate, not as proof.

Common uses

Marketing
Which channels' spending moves with sales; whether discount size relates to order value.
Feature selection
Before building a model, find columns that duplicate each other (|r| above 0.9) and keep only one.
Surveys
Which questions are answered alike, with Spearman for rating scales.
Finance
How closely different assets or costs move together.
Operations
Whether delivery time rises with distance, order size or staff numbers.

Example

A shop exports 200 orders with columns Order ID, Items, Discount % and Total. The matrix leaves Order ID out, then shows Items and Total at r = 0.82 (very strong, p < 0.001): bigger baskets cost more, as expected. Discount % and Total show r = 0.31 with p = 0.01, a weak but probably real link worth a closer look in the scatter plot. Discount % and Items show r = 0.05 with p = 0.48, which could easily be chance.

Tips and tricks

IDs are left out

Columns named ID, code, ZIP or phone are skipped automatically, because their numbers are labels, not amounts.

Watch for missing values

Each pair uses the rows where both columns have a number; the tooltip and pair list show how many.

Check for groups

Two groups (say, two shops) can each show no correlation but a strong one when mixed; split the data and compare.

Excel check

=CORREL(B2:B100, C2:C100) gives the same Pearson r for one pair.

Questions

What is a correlation matrix?

A table showing the correlation between every pair of columns. The diagonal is always 1, because every column matches itself, and the table is mirrored across it.

What is a good correlation?

It depends on the field: 0.3 can be meaningful in social research, while lab measurements are expected to exceed 0.9. Look at r, the p-value and the plot together.

How many rows do I need?

At least 3 to calculate anything, but 30 or more for a reliable answer; with few rows, the p-value tells you how much to trust it.

Can I correlate text columns?

No. Correlation needs numbers. Convert categories to numbers first (for example Yes = 1, No = 0), or use the Frequency Table to compare groups.

Does it work with Excel files?

Yes, .xls and .xlsx files are read in your browser, as well as CSV.

What does a negative correlation mean?

As one column goes up, the other tends to go down, like price and the number of units sold. −0.8 is as strong as +0.8, just in the opposite direction.

Why is a cell shown as —?

There were fewer than 3 rows where both columns had a number, or one column has the same value in every row, so no correlation can be calculated.

Is my file uploaded?

No. The file is opened and analysed in your browser; it never leaves your device, so you can use it with customer, sales or HR data.

Related tools

Updated