Pearson Correlation and P-Value Calculator — Free Online | EverydayCalcSkip to main content
everydaycalc.

Find calculators and file viewers

Press Esc to close · / or Ctrl+K to open

Home›Math & Scientific›Pearson Correlation and P-Value Calculator
Math & Scientific

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.

✦ INSTANT CALCULATION

Pearson Correlation and P-Value Calculator

YOUR RESULT
—

ⓘ 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.

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. 1. Start with the measurements
    X observations (paired order)1, 2, 3, 4, 5Y observations (paired order)2, 1, 4, 3, 5
  2. 2. Substitute into the formula

    X observations (paired order) = 1, 2, 3, 4, 5 ? Y observations (paired order) = 2, 1, 4, 3, 5

  3. 3. Check the computed answer

    Result for the sample inputs0.8

Worked example

For X = 1,2,3,4,5 and Y = 2,1,4,3,5, the Pearson coefficient is 0.8.

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.

Add this calculator to your website

Share a working calculator on your blog or website. Choose a fixed size or let the height fit the content.

Fixed height

Works on websites that accept iframe HTML.

Responsive height

Automatically adjusts the height. Your website must allow scripts.

Open calculator preview ↗

Powered by EverydayCalc