Scatter Plot Correlation Coefficient Calculator (Pearson r)

Scatter Plot Correlation Coefficient Calculator

Paste your paired X and Y measurements to get the Pearson correlation coefficient r, the coefficient of determination r², the least-squares regression line, plus means, covariance, and a strength label.

📌Real Data Presets

📝Paired Data Input

Separate values by comma, space, or new line.

Must have the same count of numbers as X.

Type one X and one Y, then click Add Point to append them and recalculate.

Pearson r 0 correlation coefficient
r² (determination) 0 variance explained
Slope (b) 0 rise per unit X
Intercept (a) 0 Y when X = 0

🔢Formula Symbols

nNumber of pairs
ΣxySum of products
rPearson coefficient
Determination

📏Pearson r Strength Ranges

Absolute |r|Strength Labelr² ExplainedWhat It Means
0.00 – 0.19Very weak0% – 4%Almost no linear link
0.20 – 0.39Weak4% – 15%Slight linear trend
0.40 – 0.59Moderate16% – 35%Clear but scattered
0.60 – 0.79Strong36% – 62%Tight, predictable
0.80 – 1.00Very strong64% – 100%Nearly a straight line

🧮Worked Sums Example

PointXYX × Y
112214
2248416
33515925
444161616
555252525
Σ1520665586
NumeratornΣxy − ΣxΣy = 5×66 − 15×20 = 330 − 300 = 30.
Denominator√[(5×55 − 15²)(5×86 − 20²)] = √(50 × 30) = √1500 ≈ 38.7298.
Resultr = 30 / 38.7298 ≈ 0.7746, so r² ≈ 0.600 and the line is y = 2.2 + 0.6x.

🗂Dataset Comparison Grid

DatasetnrSlopeStrength
Study Hours vs Score10+0.940.88+5.79Very strong
Height vs Weight10+0.870.76+4.44Very strong
Temp vs Ice Cream10+0.960.92+10.47Very strong
Ad Spend vs Sales8+0.950.89+3.33Very strong
Age vs Reaction Time10+0.940.89+2.99Very strong
Sleep vs Mood10+0.830.68+0.96Very strong
Perfect Positive6+1.001.00+2.00Very strong
Perfect Negative6−1.001.00−3.00Very strong
No Correlation8+0.140.02+0.12Very weak
Textbook Set5+0.770.60+0.60Strong

Full Formula Breakdown

Pearson rr = [nΣxy − ΣxΣy] / √{[nΣx² − (Σx)²][nΣy² − (Σy)²]}. It ranges from −1 to +1.
Determinationr² is simply r multiplied by itself; it is the share of Y variance explained by X.
Slope bb = [nΣxy − ΣxΣy] / [nΣx² − (Σx)²]. It shares the sign of r.
Intercept aa = (Σy − bΣx) / n, so the fitted line is ŷ = a + bx.
Meansx̄ = Σx / n and ȳ = Σy / n mark the center the best-fit line passes through.
CovarianceSample cov = [Σxy − (ΣxΣy)/n] / (n − 1); r is covariance scaled by both standard deviations.

📋r versus r² Interpretation

Pearson rVariance ExplainedPlain Reading
±0.300.099%Weak, mostly scatter
±0.500.2525%Moderate signal
±0.700.4949%Strong, half explained
±0.7750.6060%Strong textbook fit
±0.900.8181%Very strong link
±1.001.00100%Points on one line

Correlation vs Causation Notes

SituationWhy r MisleadsBetter Check
Lurking variableA third factor drives both X and YControl or hold it constant
Reverse causeY may actually drive XTest direction with a design
Curved patternr near 0 hides a U or arc shapeAlways view the scatter plot
Outlier pullOne extreme point inflates rRe-run without the outlier
Small sampleFew pairs give unstable rGather more paired data

💡Reading Your Result

Correlation is not causation: A high r only shows X and Y move together. It never proves one causes the other; a hidden third variable or reverse direction can create the same pattern.
r near zero is not proof of independence: Pearson r only measures straight-line strength. A clear U-shape or arc can give r close to 0, so always plot the points before deciding there is no relationship.

Do you have some sort of data? You has two columns of numbers that you suspect is related somehow, but when you look at them, you see just rows of number and wonder if there’s anything to connect them. Maybe you recorded how many hours people studied for an exam and their resulting score. Or perhaps you recorded your ad spend and daily sales.

class='code-block code-block-4' style='margin: 8px auto; text-align: center; display: block; clear: both;'>

These numbers seem random. You go across one column and down another, but you don’t quite see the connection. Pearson’s r makes it visible. It turns visual noise into a simple number, ranging from -1 to 1. If it’s 0, then there’s no linear relationship here. If it’s 1, then there is a perfectly upwards sloping relationship. If it’s -1, then there’s a perfect downwards sloping relationship.

How to Use a Pearson’s r Calculator

The calculator does all of this math for you. It gives you the variance explained, the regression line and the coefficient itself. No need for you to do any work with square roots or summations. So what does Pearson’s r measure? Simply put, it measures degree to which your points fall on or close to a straight line.

class='code-block code-block-5' style='margin: 8px auto; text-align: center; display: block; clear: both;'>

If increasing X always lead to double Y, then there is a strong positive correlation between them. If higher X equals lower Y, then there is a strong negative correlation. If increasing X results in completely random increases/decreases in Y, then the r will be very close to zero. That’s where a lot of people gets confused. A score of zero doesn’t imply no relation at all between variables. It merely indicates there isn’t a linear relationship between them. There could be a U-shaped pattern that results in an r of zero (because the up-and-down motion cancel itself out).

First, you should of plot your points. This look allows you to avoid overlooking a curvy relationship that formula won’t account for. For instance, r-squared gives you a more useful picture. That’s because it is simply the square of the r value. (Note: The r value represent the percentage of the variance in Y that can be explained by the change in X.) So if I say my r is 0.8, that sounds realy good. But if I square it, I get.64. That means that only sixty-four percent of the variation are explained. That leaves thirty-six percent unexplained by your model.

class='code-block code-block-6' style='margin: 8px auto; text-align: center; display: block; clear: both;'>

Do you wish to understand degree of control you have on an outcome? If r-squared is low, then something else must be driving the results. The reference table on the page converts those decimals into words such as “very strong” or “weak.” It anchors numbers in reality so you can decide whether the trend is meaningful.

Outliers are dangerous: One rogue data point will boost or bust your correlation. Suppose you’re taking reaction times for 10 individual. One person has a seizure and logs an unreeslistic score. This will skew all your data. It’ll warp the best-fit line, the true relationship will get pulled towards that outlying value. Before crunching the numbers, check your input values for mistakes.

And remember: correlation doesn’t imply causation. In July, drowning rates goes up and so do ice cream sales. But ice cream isn’t causing anyone to drown. It’s just the heat. There are hidden variables everywhere. Use your background knowledge to understand why two things connect. Don’t just assume it’s because one causes the other.

Paste (or type) your X and Y values in the boxes. You may enter them on separate lines or separated by commas. That way, you can copy-and-paste from a spreadsheet. If you’re collecting data over time, simply paste each point individually. The graph will update immediately with the slope and y-intercept of the least-squares line.

From there, you’ll be able to predict what will happen next, at least within the range that you’ve observed. Beyond that, predictions are just wild guesses. You’d better stay within your range where the data backs up the prediction. For business metrics or scientific measurements, this gives a stark picture of linear association. Where there was only random dots, now there’s a story, of how strong and which direction things is headed.

But remember: your data tells the tale. Garbage in, garbage out. Clean up your data first; then let the math do its magic.

Scatter Plot Correlation Coefficient Calculator (Pearson r)