Pearson correlation calculator
Linear relationship of two variables. Enter X and Y — get r, r², p-value
Enter survey data
Assumptions and limitations
- Linear relationship; preferably normal distribution or large sample. Outliers strongly affect r.
- Pairs (X, Y) must correspond to one object. Lengths of X and Y must match; extra values are dropped.
In SurveyNinja, NPS, CSAT and more are calculated automatically. Create a survey in 5 minutes and get real-time analytics.
Start freeData is not stored — calculation runs in your browser.
Pearson correlation
What r measures
Strength and direction of linear relationship. r = 1 — straight line up, r = −1 — straight line down, r = 0 — no linear relationship (nonlinear may exist).
r²
Squared coefficient: share of variance in Y "explained" by X. r = 0.7 → r² = 0.49 — about 49% of Y variation is associated with X.
p-value
Significance of r differing from zero. At p < 0.05 the correlation is considered statistically significant (assuming assumptions hold).
Limitations
Correlation does not imply cause. Outliers distort r. For nonlinear relationships or ordinal variables other methods (Spearman, Kendall) may be better.
Pearson correlation calculation examples
1 Perfect positive relationship
2 NPS and average order (5 customers)
3 Perfect negative relationship
4 Weak relationship (almost none)
5 Survey length and completion time
6 CES and NPS by customer
Strength of relationship by |r|
Thresholds are conventional and field-dependent. Check significance via p-value (at p < 0.05 correlation is considered significant).
Frequently asked questions about Pearson correlation
What is Pearson correlation?
How to interpret strength of relationship?
Correlation and causation
When to use Spearman instead of Pearson?
How many pairs are needed for the calculation?
Automate your metrics
In SurveyNinja, NPS, CSAT and more are calculated automatically. Create a survey in 5 minutes and get real-time analytics.
Start free