Pearson Correlation Calculator

Calculate Pearson's r with step-by-step computation, Fisher z confidence intervals, t-test significance, covariance, and full deviation table.

Pearson Correlation Calculator

Comma-separated
Comma-separated
Pearson r
0.998268
Strong linear relationship
0.996540
99.65% shared variance
Confidence Interval
[0.9915, 0.9997]
95% CI via Fisher z-transform
t-statistic
44.9010
df = 7, critical = ±2.228
Significant?
Yes (p < 0.05)
Reject H₀: ρ = 0
Covariance
178.7500
Cov(X, Y)
Means
68.00, 160.00
SD: 5.477, 32.692
N
9
9 paired observations

Computation Steps

XYx−x̄y−ȳ(x−x̄)(y−ȳ)(x−x̄)²(y−ȳ)²
60.00115.00-8.00-45.00360.0064.002,025.00
62.00125.00-6.00-35.00210.0036.001,225.00
64.00135.00-4.00-25.00100.0016.00625.00
66.00145.00-2.00-15.0030.004.00225.00
68.00160.000.000.000.000.000.00
70.00170.002.0010.0020.004.00100.00
72.00185.004.0025.00100.0016.00625.00
74.00195.006.0035.00210.0036.001,225.00
76.00210.008.0050.00400.0064.002,500.00
Σ1,430.00240.008,550.00
r = Σ(x−x̄)(y−ȳ) / √[Σ(x−x̄)² · Σ(y−ȳ)²] = 1,430.00 / √(240.00 × 8,550.00) = 0.998268

Interpretation Guide

|r|StrengthExample
0.90–1.00Very StrongHeight–weight, voltage–current
0.70–0.89StrongSAT scores–GPA, dosage–response
0.50–0.69ModerateExercise–weight loss, ad spend–sales
0.30–0.49WeakMusic practice–test anxiety, sleep–mood
0.00–0.29Very WeakShoe size–IQ, birth month–income
Planning notes, formulas, and examples

About the Pearson Correlation Calculator

Pearson's r measures the strength and direction of a linear relationship between two variables. This calculator shows the full computation path instead of only the final coefficient, so you can inspect the deviations, cross-products, and sums of squares that build the result.

Alongside r, the page also reports R², a t-test for significance, covariance, and Fisher z confidence intervals. That makes it useful when you need both the coefficient and the uncertainty around it.

Preset datasets cover classic positive and negative relationships so the calculation steps are easy to compare against a known pattern.

When This Page Helps

Pearson correlation is often the first pass when you want to know whether a relationship is strong enough to matter and straight enough to model. Showing the arithmetic step by step makes it easier to audit the answer and explain where it came from.

The Fisher z interval and significance test add the uncertainty that a single r value cannot show on its own.

How to Use the Inputs

  1. Enter paired X and Y values (comma-separated, same count).
  2. Or click a preset to load example relationships.
  3. Select your significance level α (0.01, 0.05, or 0.10).
  4. Review Pearson r, R², and confidence interval.
  5. Check the t-statistic and significance result.
  6. Study the computation steps table to verify the math.
  7. Use the interpretation guide for your specific r value.
Formula used
r = Σ(xᵢ−x̄)(yᵢ−ȳ) / √[Σ(xᵢ−x̄)²·Σ(yᵢ−ȳ)²]. t = r√(n−2)/√(1−r²), df=n−2. Fisher z = ½·ln((1+r)/(1−r)), SE_z = 1/√(n−3).

Example Calculation

Result: r = 0.9972, R² = 0.9945, t = 35.58 (p < 0.001), 95% CI [0.9872, 0.9994]

Height and weight show a very strong positive linear correlation. 99.45% of weight variation is linearly associated with height. The Fisher z CI confirms the true population r is between 0.987 and 0.999.

Tips & Best Practices

  • The step-by-step table is perfect for statistics homework — you can trace every computation.
  • Always report the confidence interval alongside r, not just r alone.
  • With n < 10, even strong correlations may fail significance tests — collect more data.
  • Fisher z is undefined for r = ±1, so perfect correlations don't get CIs (they don't need them).
  • Compare Pearson and Spearman: if Spearman is much higher, your relationship is nonlinear.
  • A significant result with small r (like r = 0.15) means "real but tiny" — practical vs. statistical significance differ.

Deriving Pearson's r

Pearson's r is the ratio of covariance to the product of standard deviations: r = Cov(X,Y)/(SD_X · SD_Y). Expanding Cov(X,Y) = Σ(xᵢ−x̄)(yᵢ−ȳ)/(n−1), we get the familiar formula. The denominator normalizes the covariance to the [−1, +1] range regardless of variable scales.

If all points fall exactly on a line with positive slope, every (xᵢ−x̄)(yᵢ−ȳ) term is positive, and r = +1. If the line has negative slope, they're all negative, giving r = −1. Scattered points produce a mix of positive and negative terms that partially cancel, yielding |r| < 1.

Hypothesis Testing for ρ

The null hypothesis H₀: ρ = 0 is tested using t = r√(n−2)/√(1−r²) with n−2 degrees of freedom. Reject H₀ when |t| > t_critical. For testing H₀: ρ = ρ₀ (some non-zero value), convert to z-scores: z = (z_r − z_ρ₀) / SE_z, where z_r = Fisher transform of r and SE_z = 1/√(n−3).

Effect Size Interpretation

In psychology and social sciences, Cohen's guidelines classify r = 0.10 as small, 0.30 as medium, 0.50 as large. In medical research, r = 0.30 might be clinically meaningful. In physics, r < 0.99 might indicate measurement error. Always interpret r in context, not by universal cutoffs.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Pearson's r measures the strength and direction of linear association. It ranges from −1 (perfect negative) through 0 (no linear relationship) to +1 (perfect positive). Only linear relationships are captured — a perfect parabola gives r ≈ 0.