Correlation Coefficient Calculator
Calculate Pearson correlation from paired data and inspect strength, direction and explained variation
Pearson r
How we calculated it
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
- Enter paired x and y observations in matching order.
- Calculate the correlation coefficient.
- Inspect a scatter plot when available to check for outliers or nonlinear patterns.
- 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.
| X | Y | r | R² |
|---|---|---|---|
| 1, 2, 3, 4, 5 | 2, 4, 5, 4, 5 | 0.7746 | 0.6000 |
| 1, 2, 3, 4, 5 | 2, 4, 6, 8, 10 | 1.0000 | 1.0000 |
| 1, 2, 3, 4, 5 | 10, 8, 6, 4, 2 | -1.0000 | 1.0000 |
| 1, 2, 3, 4, 5 | 3, 1, 4, 1, 5 | 0.3536 | 0.1250 |
| 2, 4, 6, 8, 10 | 1, 3, 4, 7, 9 | 0.9901 | 0.9804 |
| 1, 2, 3, 4, 5, 6 | 1, 4, 9, 16, 25, 36 | 0.9789 | 0.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.
Related calculations
Useful Calculations to Continue With
If you want the unstandardized joint variation behind correlation, use the Covariance Calculator.
If you want a fitted line as well as association strength, use the Linear Regression Calculator.
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.
