Pearson correlation calculator
Measures the strength and direction of the linear relationship between two continuous variables. Returns r, r², and a t-based significance test.
Or skip the manual work
In the app, you chat with your data — the AI runs the analysis and writes it up.
Free accounts include AI chat, data analysis, and every tool on this site.
When to use this
Use Pearson’s r when two continuous variables are measured on the same cases and you want to quantify how strongly they move together in a straight-line fashion — study time and exam score, age and reaction time, temperature and sales. r ranges from −1 (perfect negative) through 0 (no linear relationship) to +1 (perfect positive), and r² tells you the share of variance the variables have in common. The accompanying t-test asks whether the correlation in your sample is distinguishable from zero in the population.
Key assumptions
- Each case contributes one X and one Y; pairs are independent across cases.
- Both variables are interval or ratio scaled.
- The relationship is approximately linear — always look at a scatterplot first.
- For the p-value: bivariate normality, and no extreme outliers (a single outlier can manufacture or destroy a correlation).
Common mistakes
- Inferring causation from correlation — r says nothing about direction or confounding.
- Using Pearson on a clearly curved relationship; r only captures linear association (a perfect U-shape can give r ≈ 0).
- Letting one outlier drive the result — inspect the scatterplot and consider Spearman’s ρ as a robustness check.
- Interpreting a significant but tiny r (e.g. .08 in a huge sample) as practically meaningful.
Frequently asked questions
How large does r have to be?
What is the difference between r and r²?
When should I use Spearman instead of Pearson?
Related free tools
Stop copying numbers between tools
Inside Kahubi, the AI agent runs this analysis directly on your uploaded dataset — then writes the results section in your own writing style, with the statistics reported correctly.