r Correlation Calculator
Calculate Pearson correlation r between two datasets, with strength interpretation and scatter context.
Pearson r — Strength of Linear Co-Movement, Not Causation
BrainyCalculators editorial insight — unique to this tool
Pearson correlation (r) runs from −1 to +1 and measures linear co-movement — ice cream sales and drowning deaths correlate positively in summer because both rise with temperature, not because one causes the other. Marketing teams check r between ad spend and revenue; r = 0.85 suggests strong linear linkage worth modeling. Correlation is symmetric and unitless; it does not tell you slope or predicted values.
When to use this calculator
Use correlation to screen whether a linear relationship is worth modeling. When you need the prediction equation (y = mx + b), use Regression instead.
| Reference | Value | Context |
|---|---|---|
| |r| 0.0–0.3 | Weak | May be noise |
| |r| 0.3–0.7 | Moderate | Explore further |
| |r| 0.7–1.0 | Strong | Regression candidate |
| r² | Variance explained | From regression output |
Not what you need? Correlation ≠ causation. For predicting y from x with an equation, use Regression. For single-variable spread, use Standard Deviation.
Need a prediction line, not just r?
This page reports correlation. For slope, intercept, and predicted y from a dataset, use the Regression Calculator →
| # | x | y | x² | y² | xy |
|---|
What is Correlation?
Correlation measures how two numeric variables move together, typically Pearson r from −1 to +1. It describes association strength and direction, not causation.
Use this page when you want r and interpretation across paired lists. It does not output a prediction equation; for that, use Linear Regression.
For slope between two fixed points on a line, use the Slope Calculator. For probability of events, use the Probability Calculator.
Pearson Correlation Formula
Where n is the number of pairs, Σxy is the sum of products, Σx and Σy are the sums of each variable. The result r ranges from −1 (perfect negative) to +1 (perfect positive).
How to Calculate Pearson r
-
1Enter Paired DataEach X value corresponds to a Y value at the same position. Both lists must be the same length.
-
2Compute SumsCalculate Σx, Σy, Σx², Σy², and Σxy from your data pairs.
-
3Apply the FormulaSubstitute sums into the Pearson r formula to get a value between −1 and +1.
-
4Interpret r and R²r tells the direction and strength of the linear relationship. R² tells what proportion of variance in Y is explained by X.
Worked Example
X = 1, 2, 3, 4, 5 — Y = 2, 4, 5, 4, 5
How the Correlation Calculator Works
Formula, assumptions, and calculation steps for this statistics tool.
Formula Used
r = covariance(x, y) / (standard deviation x * standard deviation y)
Methodology
Statistics calculators organize sample data, apply the selected descriptive or inferential formula, and report the statistic with interpretation.
Calculation Steps
- Enter raw values or summary statistics.
- Clean separators and count the sample size.
- Apply the relevant statistic, probability, or confidence formula.
- Display the result with context such as degrees of freedom, percentile, or strength.
Assumptions and Limits
- Samples should be representative of the population being studied.
- Normality or independence assumptions apply only where the selected method requires them.
- Rounded results may differ slightly from spreadsheet software.
Frequently Asked Questions
Correlation measures the strength and direction of a linear relationship between two variables. The Pearson r coefficient ranges from −1 (perfect negative) to +1 (perfect positive), with 0 indicating no linear relationship.
An r of 0.8 indicates a strong positive correlation — as X increases, Y tends to increase substantially. About 64% of the variance in Y is explained by X (R² = 0.64).
Correlation shows that two variables move together, but does not prove one causes the other. A third hidden variable (confound) may drive both. Always be cautious about drawing causal conclusions from correlation alone.
R² is the square of the Pearson r and represents the proportion of variance in one variable explained by the other. An R² of 0.7 means 70% of the variation in Y is accounted for by its linear relationship with X.
Real-World Applications
Common Mistakes
Pearson r Interpretation Guide
| r Value | Strength | R² (Variance Explained) | Example Application |
|---|---|---|---|
| 0.90–1.00 | Very strong positive | 81–100% | Measuring the same construct with two methods |
| 0.70–0.89 | Strong positive | 49–79% | Height vs weight across a population |
| 0.50–0.69 | Moderate positive | 25–48% | Advertising spend vs sales revenue |
| 0.30–0.49 | Weak positive | 9–24% | IQ vs job performance (typical) |
| 0.00–0.29 | Negligible | 0–8% | Shoe size vs academic ability |
| Negative | Inverse | Varies | Exercise frequency vs resting heart rate |
References
- Pearson, K. Notes on Regression and Inheritance in the Case of Two Parents. Proceedings of the Royal Society, 1895.
- Cohen, J. Statistical Power Analysis for the Behavioral Sciences, 2nd ed. Lawrence Erlbaum, 1988.
- Anscombe, F. J. Graphs in Statistical Analysis. The American Statistician, 1973.
- Mukaka, M. M. A Guide to Appropriate Use of Correlation Coefficient in Medical Research. Malawi Medical Journal, 2012.
- Vigen, T. Spurious Correlations. Hachette Books, 2015.
Related Calculators
Browse all Statistics calculators →Regression Calculator
Calculate linear regression equation, slope, and intercept for any data set.
Standard Deviation Calculator
Calculate mean, variance, and standard deviation for any data set.
Variance Calculator
Calculate population and sample variance for any data set.