ToolSphere

Correlation Matrix Calculator

Computer science

Compute Pearson correlation coefficients for all numeric columns in a CSV file. Visual color-coded matrix highlights positive and negative relationships.

Drag & drop your file here, or browse

Supports single file (.csv,text/csv)

Or paste CSV text directly

Upload or paste a CSV file to begin.

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

About Correlation Matrix Calculator

Correlation Matrix Calculator

Computes the Pearson correlation coefficient — a measure of linear relationship strength and direction, ranging from -1 (perfect inverse relationship) to +1 (perfect direct relationship) — between every pair of numeric columns in your dataset, displayed as a color-coded matrix.

Correlation measures a linear relationship specifically — two variables can have a strong non-linear relationship (like a U-shape) while still showing a near-zero Pearson correlation, since the metric doesn't capture non-linear patterns.

Reading the matrix

The diagonal is always 1: every column correlates perfectly with itself. The matrix is symmetric, so only half of it carries information — the top-right and bottom-left mirror each other.

Rough interpretation of the magnitude, ignoring sign: below 0.3 is weak, 0.3 to 0.7 is moderate, above 0.7 is strong. These are conventions rather than thresholds, and what counts as strong depends heavily on the field — 0.4 is a substantial effect in social science and noise in a physics experiment.

The uses that actually matter

Finding redundant columns. Two features correlating above about 0.9 carry nearly the same information. In a regression this is multicollinearity: the model still predicts well, but the individual coefficients become unstable and their interpretation unreliable. Dropping one is usually the right call.

Spotting leakage. A feature correlating almost perfectly with your target is often not a feature at all but a restatement of the answer — a "discount applied" column that only exists once a sale completed, for example. Catching this before training saves a model that looks impeccable in validation and fails in production.

Orienting yourself in unfamiliar data. The matrix shows, in one view, which measurements move together — which is the fastest way to form a hypothesis about what the dataset is describing.

What Pearson misses

Pearson's coefficient measures linear association only. A perfect parabola scores near zero. It is also sensitive to outliers, and a single extreme row can dominate the value in a small dataset. Where a relationship is monotonic but curved, Spearman's rank correlation is the better measure — and where it matters, look at the scatter plot before trusting any coefficient.

Guides and tutorials

Frequently asked questions

Does a correlation near zero mean two columns are unrelated?

Not necessarily — Pearson correlation only measures linear relationships. Two columns could have a strong non-linear relationship (like a U-shape) and still show a correlation near zero, since that pattern isn't linear.

Does correlation imply causation?

No — a strong correlation only shows the two variables tend to move together (or oppositely); it says nothing about whether one causes the other, or whether both are driven by a separate underlying factor.

What counts as a strong correlation?

As a convention: below 0.3 weak, 0.3 to 0.7 moderate, above 0.7 strong, ignoring the sign. But the threshold is field-dependent — 0.4 is a substantial effect in social science and noise in a physics experiment.

Two of my features correlate above 0.9. Does that matter?

For prediction, rarely. For interpretation, yes: that is multicollinearity, and it makes individual regression coefficients unstable and unreliable to read. Usually you drop one of the pair.

Can I trust a correlation matrix on a small dataset?

Treat it cautiously. With few rows a single outlier can dominate any coefficient, and a matrix over many columns produces many pairs — some will look strong by chance alone.

Have a suggestion for Correlation Matrix Calculator?Share your feedback ↗