Pearson Correlation and P-Value Calculator
Calculate Pearson’s r, R² and a two-sided p-value from paired numeric X/Y observations using centered cross-products.
YOUR SHORTCUTS
Continue where you left off
Recently used
Your favorites
These shortcuts remember only calculator names on this device, not the values you enter.
Pearson Correlation and P-Value Calculator
View complete schedule
ⓘ Calculated locally in your browser. Results depend on the values and units you enter.
Explore the calculation visually
The chart follows the current valid inputs and the original calculation engine. It is an illustration, not a separate estimate.
Read the exact figures in the original calculator above. Chart coordinates are rounded for display.
How this calculator works
Enter paired X and Y measurements, in the same order, with 3–1000 pairs. Pearson’s r is Sxy / √(Sxx×Syy), using deviations from each sample mean rather than unstable raw sums. The reported two-sided p-value tests zero population correlation using a Student t reference with df=n−2, assuming independent bivariate-normal pairs for its exact small-sample interpretation. A constant X or Y variable has undefined correlation. Association alone does not establish causation.
Formula and reasoning
r = Σ[(xᵢ−x̄)(yᵢ−ȳ)] / √(Σ(xᵢ−x̄)² × Σ(yᵢ−ȳ)²)
- 1. Start with the measurementsX observations (paired order)1, 2, 3, 4, 5Y observations (paired order)2, 1, 4, 3, 5
- 2. Substitute into the formula
X observations (paired order) = 1, 2, 3, 4, 5 ? Y observations (paired order) = 2, 1, 4, 3, 5
- 3. Check the computed answer
Result for the sample inputs
Worked example
Frequently asked questions
Are unequal list lengths allowed?
No. Every X must have one paired Y observation.
Does a strong correlation prove cause and effect?
No. Outliers, confounding and time trends can produce misleading associations.
Results are informational and assume the stated inputs and formulas. Double-check critical financial or engineering decisions with a qualified professional.
Was this calculator helpful?
Your feedback helps you keep track of useful tools on this device.
Your selection stays in this browser. No public vote count is shown.
Prefer EverydayCalc on Google
Opens Google source preferences. Availability and placement are determined by Google; this does not guarantee higher rankings.