Correlation Calculator

Calculate the Pearson correlation and the least-squares regression line from two lists of paired values.

Separate values with commas, spaces or new lines.
Separate values with commas, spaces or new lines.
Paired observations used 8
Pearson correlation r 0.99941947
r = Σ(x−x̄)(y−ȳ) ÷ √(Σ(x−x̄)²Σ(y−ȳ)²)
R squared 0.99883929
r = Σ(x−x̄)(y−ȳ) ÷ √(Σ(x−x̄)²Σ(y−ȳ)²)
Regression slope 1.99761905
r = Σ(x−x̄)(y−ȳ) ÷ √(Σ(x−x̄)²Σ(y−ȳ)²)
Regression intercept 0.03571429
Regression equation y = 1.99762x + 0.03571
r = Σ(x−x̄)(y−ȳ) ÷ √(Σ(x−x̄)²Σ(y−ȳ)²)
Strength of the relationship Very strong
Sample covariance 11.98571429
Spearman rank correlation 1
t statistic 71.855652
p value, two-tailed 4.8889e-10
Significance p < 0.001 — significant at the 5% level with 8 pairs, so a correlation this strong is unlikely to be chance alone.

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Correlation Calculator does

Use this correlation calculator to calculate the Pearson correlation and the least-squares regression line from two lists of paired values. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for measuring the association between two measured variables. We run a second free tools site as well — FreeToolStation.org.

How to use it

  1. Enter the X values, separated by commas, spaces or new lines.
  2. Enter the matching Y values in the same order.
  3. Read the correlation, R squared and the regression equation.

How it works

Pearson r measures linear association only, and it runs from −1 to 1. A perfect parabola has an r near zero over a symmetric range, because there is no linear trend even though the relationship is exact. Always plot the data before trusting a correlation coefficient.

R squared is the share of variance in y explained by the linear fit. An r of 0.7 gives an R squared of 0.49, meaning about half the variation is accounted for — which sounds much less impressive than "0.7 correlation" and is the more honest way to report it.

Correlation does not establish causation, and the reason is worth stating concretely: a correlation between two variables is equally consistent with the first causing the second, the second causing the first, a third variable causing both, and a selection effect in how the data was gathered. Distinguishing those requires design, not arithmetic.

The verbal strength labels are a convention and nothing more. What counts as a strong correlation differs enormously between fields — 0.3 is a substantial effect in much of psychology and would be alarming in a calibration experiment.

When to use it

  • Measuring the association between two measured variables.
  • Fitting a trend line to paired data.
  • Checking a reported correlation.
  • Working through a statistics exercise.

Common mistakes to avoid

  • Reading a correlation as evidence of causation.
  • Trusting r on data with a non-linear relationship or strong outliers.
  • Mismatching the two lists, so pairs are misaligned.

Frequently asked questions

What does a correlation of 0.8 mean?

A strong positive linear association. The R squared is 0.64, so about 64% of the variance in y is explained by the linear relationship with x.

Can correlation be zero when there is a relationship?

Yes. Pearson r detects linear association only. A perfect U-shaped relationship can have a correlation near zero.

What is R squared?

The square of the correlation, interpreted as the proportion of variance explained by the linear fit. It is usually the more informative figure to report.

Related tools

See all math & statistics calculators →