The Pearson correlation coefficient measures how tightly two variables move together along a straight line. It is computed from the centred values directly: r = Σ(x − x̄)(y − ȳ) / √( Σ(x − x̄)² × Σ(y − ȳ)² ). The result sits between −1 and +1 and is scale-free: multiply every X by a thousand, or add fifty to every Y, and r does not move, so it describes the shape of the association rather than its units. It also computes Spearman's ρ, the same calculation on ranks, and fits the least-squares line of Y on X.
Testing whether a correlation differs from zero uses a t statistic built from r and the sample size: t = |r| × √( df / (1 − r²) ) with df = n − 2. This is always a two-sided test here, so the p answers one question only: how compatible are these data with a population correlation of exactly zero? The dashed line on the scatter plot is the regression of Y on X, with slope = r × SD(y)/SD(x) and intercept = ȳ − slope × x̄. Because the fit is directional, the slope is in units of Y per unit of X — a different statement from r, so a steep slope with a weak r and a shallow slope with a strong r are both perfectly possible.
X is 2, 4, 5, 4, 6, 7, 8, 9, 10, 12 and Y is 38, 41, 44, 47, 50, 52, 55, 58, 61, 65, so n = 10 and df = 8. The calculator returns r = 0.981 with r² = 0.962, a t of 14.30 and p displayed as < 0.001. The regression line is ŷ = 2.791·x + 32.401 — each extra unit of X goes with about 2.8 more of Y — and Spearman's ρ is 0.979.
Two details repay attention. First, r² of 0.962 does not mean "96% of the way to a perfect correlation" — it means X accounts for 96% of the variance in Y, while r = 0.6 gives 36%, not 60%. Second, the X column contains the value 4 twice, and tied values receive the average of the ranks they span, which is why ρ lands at 0.979 rather than a rounder number. If every pair lay exactly on a line, r would reach 1 and the p-value would be undefined, so the tool shows a dash instead of a fabrication.
Use r when the relationship looks linear and no few points dominate it, and ρ when it is monotonic but curved, or when outliers distort it.
It answers the question people think r answers: 0.7 sounds like "70% related" but is 49%.
Look for one or two distant points, which can pull r toward 1 or −1 while the bulk shows little pattern.
Not the estimate, but it controls how much r wobbles between samples: with n = 10 a correlation near 0.63 is needed for p < 0.05, while n = 100 needs only about 0.20.