Correlation Coefficient Calculator

Pearson correlation

Check paired observations before interpreting Pearson r

Pearson's correlation coefficient measures the direction and strength of a linear relationship. It ranges from -1 to 1. The sign gives the direction; the absolute value gives the strength of the linear association in the entered pairs.

The calculation uses matched x-y observations. A row cannot combine an x value from one subject, date, or item with a y value from another. Constant x or y values make the denominator zero, so the coefficient is undefined rather than zero.

A high absolute correlation does not establish causation. Plot the pairs and investigate outliers, restricted ranges, curved relationships, repeated measurements, and confounding variables before drawing a conclusion.

ReferenceValue or meaning
r = 1Perfect positive linear relationship
r = 0No linear relationship; a nonlinear pattern may still exist
r = -1Perfect negative linear relationship
r squaredShare of linear variance described in a simple two-variable model

Checks before using the result

  • Keep each x value paired with the y value from the same observation.
  • Inspect a scatterplot for curvature and influential outliers.
  • Report the number of pairs together with r.
  • Use a statistical package for p-values, confidence intervals, missing-data rules, or large datasets.

Sources and related tools

Statistics guide

How to use the Correlation Coefficient Calculator

Calculate Pearson correlation from matched x-y pairs, inspect the complete working, and interpret positive, negative, weak, and undefined linear relationships. The page also explains the pearson correlation and shows a practical example: Five x-y pairs can show positive, negative, or weak linear association.

  1. 1

    Enter your details

    Enter matched x-y pairs, inspect the complete working, and interpret positive, negative, weak, and undefined linear relationships, then complete any other fields shown in the calculator.

  2. 2

    Check the calculation

    Review the result alongside the pearson correlation: r = sum((x - mean x)(y - mean y)) / sqrt(sum(x - mean x)^2 sum(y - mean y)^2).

  3. 3

    Compare scenarios

    Change one or more inputs to see how they affect the correlation Coefficient Calculator result before you use the estimate.