Correlation Coefficient Calculator

Calculate Pearson correlation from paired data and inspect strength, direction and explained variation

Enter the same number of values in each list, separated by commas, spaces or new lines.
Your result will appear here.

About the Correlation Coefficient Calculator

Correlation Coefficient Calculator measures the strength and direction of a linear relationship between two numerical variables. Pearson’s r ranges from -1 to +1.

A strong correlation does not prove that one variable causes the other. Outliers, nonlinear patterns and shared underlying factors can all produce misleading interpretations.

How to Use the Correlation Coefficient Calculator

  1. Enter paired x and y observations in matching order.
  2. Calculate the correlation coefficient.
  3. Inspect a scatter plot when available to check for outliers or nonlinear patterns.
  4. Interpret the magnitude and sign in the context of the data rather than using one universal cutoff for strength.

How the Calculation Works

Pearson correlation r = covariance(x,y) ÷ (sx sy), where sx and sy are the standard deviations of the two variables.

Equivalently, it standardizes the joint variation of paired observations so the resulting measure is dimensionless and bounded between -1 and +1.

Worked examples

Correlation Coefficient Calculator Worked Examples

Default

X = 1–5 and Y = 2, 4, 5, 4, 5 give r = 0.774597 and R² = 0.600000: a moderate-to-strong positive relationship.

Perfect

Y = 2X gives r = 1.

Curved

Y = X² for X = 1 to 6 still gives r = 0.9789, even though the relationship is not a straight line.

Pearson correlation examples

r runs from −1 to 1.

XYrR²
1, 2, 3, 4, 52, 4, 5, 4, 50.77460.6000
1, 2, 3, 4, 52, 4, 6, 8, 101.00001.0000
1, 2, 3, 4, 510, 8, 6, 4, 2-1.00001.0000
1, 2, 3, 4, 53, 1, 4, 1, 50.35360.1250
2, 4, 6, 8, 101, 3, 4, 7, 90.99010.9804
1, 2, 3, 4, 5, 61, 4, 9, 16, 25, 360.97890.9583

How the calculator works

Pearson's r is the covariance of X and Y divided by the product of their standard deviations. It ranges from −1 (a perfect downward straight line) through 0 (no straight-line relationship) to 1 (a perfect upward line). R² is the share of the variation in Y explained by a straight line in X. The calculator also shows the sample covariance and a plain-language description.

Interpreting r

Rough guides call |r| below 0.3 weak, 0.3 to 0.7 moderate and above 0.7 strong, but context matters. Correlation does not prove causation: ice cream sales and drowning both rise in summer. Pearson's r only measures straight-line relationships, so a strong curve can show a weak r, and a single outlier can change it a lot. Always look at a scatter plot as well.

Common Mistakes

  • Assuming causation. A third factor may drive both variables.
  • Ignoring outliers. One point can make r look strong or weak.
  • Using it for curves. Pearson's r measures straight-line patterns only.

Result guide

Understanding Your Correlation Coefficient Calculator Result

A positive r indicates that larger x values tend to accompany larger y values; a negative r indicates the opposite. Values near zero indicate weak linear association, not necessarily no relationship at all. Sample size also matters when judging whether an observed correlation is stable or statistically meaningful. A large r from only a few data points can be much less convincing than a similar r supported by a large, well-sampled data set.

Before you rely on the answer

Assumptions and Limitations

  • Observations are correctly paired.
  • Pearson correlation is appropriate for the relationship being studied.
  • Outliers and nonlinearity are examined rather than ignored.

Practical tip

Using This Result in Practice

Always inspect the data visually when possible. Two very different scatter plots can sometimes produce similar correlation coefficients.

Authoritative references

Useful Official Sources

For standards, definitions or real-world guidance related to this calculation, these primary sources may be useful:

Common questions

Correlation Coefficient Calculator FAQ

What is a correlation coefficient?

A measure of linear association between two variables.

What is a strong correlation?

Usually |r| above about 0.7.

What is R²?

The share of variation explained by the linear fit.

Can r be negative?

Yes. Y falls as X rises.

Does correlation mean causation?

No.

About the author

Adupa Derrick

Adupa Derrick designs every calculator on Numi Calculator, uses AI tools to help draft code and explanations and checks each formula against worked examples and published references before it goes live.

About Numi Calculator Our methodology