Home · Statistics · Correlation & Regression · Correlation Coefficient Calculator

Correlation Coefficient Calculator

Pearson's correlation coefficient r between paired x and y values: the strength and direction of the linear relationship, on a scale from −1 to +1.

Your figures

Example result — edit the figures to make it yours

0.9465

Slope1.535714
Intercept1.285714
Correlation r0.946485
R-squared0.895833
Pairs (n)7

What this calculator does

Pearson's correlation coefficient r between paired x and y values: the strength and direction of the linear relationship, on a scale from −1 to +1. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

r = Σ(x−x̄)(y−ȳ) / √(Σ(x−x̄)² · Σ(y−ȳ)²)

Pairs are matched by position: the first x goes with the first y, and both lists must have the same length.

r measures linear association only; a strong curved relationship can still return an r near zero.

The value is unit-free and unchanged by rescaling either variable.

Worked example

With the example inputs this page opens with, the result is 0.9465. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — the worked example in full
FigureValue
Result0.9465
Slope1.535714
Intercept1.285714
Correlation r0.946485
R-squared0.895833
Pairs (n)7

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

What does r = 0.95 mean?

A very strong positive linear relationship: as x grows, y grows almost in lockstep. It does not by itself prove that x causes y — a lurking third variable or reverse causation can produce the same number.

Can r be misleading?

Yes. Outliers can inflate or destroy it, and it is blind to curvature — a perfect parabola symmetric about its vertex gives r ≈ 0. Always plot the pairs before trusting the coefficient.

How does the Correlation Coefficient Calculator work?

Pearson's correlation coefficient r between paired x and y values: the strength and direction of the linear relationship, on a scale from −1 to +1. X values · y values → Pearson correlation coefficient r. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Correlation Coefficient Calculator need?

X values · y values → Pearson correlation coefficient r. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.