Correlation Calculator

Calculate Pearson correlation coefficient (r), R-squared, and linear regression. Analyze relationship between variables. Free online correlation calculator.

1.
2.
3.

Correlation Interpretation

r = 1: Perfect positive correlation
0.7 to 1: Strong positive correlation
0.3 to 0.7: Moderate positive correlation
0 to 0.3: Weak positive correlation
r = 0: No correlation
-0.3 to 0: Weak negative correlation
-0.7 to -0.3: Moderate negative correlation
-1 to -0.7: Strong negative correlation
r = -1: Perfect negative correlation

Pearson Correlation Formula

r = [nΣxy - (Σx)(Σy)] / √[(nΣx² - (Σx)²)(nΣy² - (Σy)²)]

🔒 Fast, free math calculators that run in your browser. No uploads, 100% private.

Last updated: January 2026

Related Calculators

Frequently Asked Questions

What does the correlation coefficient (r) tell me?
The Pearson correlation coefficient (r) measures the strength and direction of a linear relationship between two variables. It ranges from -1 to +1. Values close to +1 indicate a strong positive relationship (as X increases, Y increases), values close to -1 indicate a strong negative relationship (as X increases, Y decreases), and values near 0 indicate no linear relationship. Interpretation: |r| > 0.7 is strong, 0.5-0.7 is moderate, 0.3-0.5 is weak, and < 0.3 is very weak or no correlation.
What is R-squared and how do I interpret it?
R-squared (r²) is the coefficient of determination, calculated by squaring the correlation coefficient. It represents the percentage of variance in Y that is explained by X. For example, r² = 0.64 means that 64% of the variation in Y can be explained by its linear relationship with X. The remaining 36% is due to other factors or random variation. R-squared always ranges from 0 to 1, regardless of whether the correlation is positive or negative.
What's the difference between correlation and causation?
Correlation measures the statistical association between two variables—when one changes, the other tends to change. Causation means one variable directly causes the other to change. A high correlation does NOT prove causation. For example, ice cream sales and drowning deaths are correlated (both increase in summer), but ice cream doesn't cause drowning—hot weather is a confounding variable affecting both. To establish causation, you need controlled experiments or rigorous causal analysis methods.
When should I use Pearson correlation vs other correlation types?
Use Pearson correlation when: both variables are continuous and approximately normally distributed, the relationship is linear, and there are no extreme outliers. Use Spearman correlation for ordinal data, non-linear monotonic relationships, or when outliers are present (it's based on ranks, not raw values). Use Kendall's tau for small sample sizes or when there are many tied ranks. For categorical variables, use chi-square or Cramér's V instead of correlation.
What does the linear regression equation y = mx + b mean?
The linear regression equation y = mx + b describes the best-fit line through your data points. The slope (m) tells you how much Y changes for each one-unit increase in X. For example, m = 2.5 means Y increases by 2.5 for every 1-unit increase in X. The y-intercept (b) is the predicted value of Y when X = 0. You can use this equation to predict Y for any X value, but only within the range of your original data (extrapolation beyond this range is unreliable).