InputTestHub

Correlation Coefficient Calculator

Calculates Pearson r and Spearman rho for paired data, with r squared, the significance test and a confidence interval for the correlation.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Enter your figures and press Calculate.
In short Pearson's r measures how close two variables come to a straight-line relationship, on a scale from −1 to +1. The eight pairs loaded above give r = 0.9653 and r² = 0.9318, meaning 93.18% of the variation in y is accounted for by the straight-line relationship with x. The tool also gives Spearman's rho, which is Pearson's r computed on the ranks, and a confidence interval for r built through Fisher's z transform — a plain ± interval would run off the end of the scale near ±1, because the sampling distribution of r is skewed there. Two limits matter more than the number. Pearson's r measures STRAIGHT-LINE association only: a symmetric parabola has r of exactly zero while y is completely determined by x, so a small r rules out a linear relationship and nothing else. And r is not robust — a single far-out pair can move it from near zero to near one. That is the point of Anscombe's quartet, four data sets with identical correlations and completely different shapes, and it is why plotting the data is not optional. A large gap between Pearson and Spearman is the quickest tell that the relationship is curved or that one point is doing all the work. Finally, the significance test here is the same t-test the regression slope reports, because "r is not zero" and "the slope is not zero" are one hypothesis. And correlation still is not causation: x causing y, y causing x, and something else causing both all produce the same r.

How to use the Correlation Coefficient Calculator

  1. Enter your figures in the input fields.
  2. The result updates as you type, together with the full working.
  3. Check the breakdown table to see exactly how the number was reached.

About the Correlation Coefficient Calculator

Pearson and Spearman correlation for paired data, with significance and an interval for r.

What people use it for

  • Measuring how strongly two variables move together.
  • Checking whether an apparent relationship could be chance.
  • Comparing a linear correlation with a rank correlation to spot curvature.

Details

Range of r−1 to +1
r² isthe share of variation in y accounted for by x
A symmetric parabola givesr = 0 while y is fully determined by x
Spearman isPearson r computed on the ranks
Interval for r usesFisher's z transform, because r is skewed near ±1

The maths behind it

This tool uses r = Σ(x − x̄)(y − ȳ) ÷ √(Σ(x − x̄)² · Σ(y − ȳ)²), and its significance is t = r√(n − 2) ÷ √(1 − r²). Every intermediate value is shown on screen, so the result can be checked by hand.

The significance test reported here is identical to the one the linear regression page gives for the slope, on the same data. They are the same hypothesis stated two ways.

Where this tool stops

r measures linear association between two variables and nothing else. It is sensitive to outliers, it cannot detect curved relationships, and it says nothing about causation — a third variable driving both produces exactly the same number.

Frequently asked questions

What counts as a strong correlation?
It depends entirely on the field — 0.6 is strong in social research and weak in a calibration check. As a rough guide the page labels 0.9 and above very strong, 0.7 strong, 0.5 moderate and 0.3 weak, but the plot matters more than the label.
Pearson and Spearman disagree. Which is right?
Both, about different things. Pearson measures straight-line association and Spearman measures whether the relationship is consistently increasing. A large gap usually means the relationship is curved, or one outlier is driving Pearson.
Does r = 0 mean the variables are unrelated?
No. It means there is no LINEAR relationship. A perfect parabola has r of zero, so a plot is the only way to tell the two situations apart.
Why is the confidence interval not symmetric?
Because r is bounded at ±1 and its sampling distribution is skewed near those bounds. The interval is computed through Fisher's z transform, which is why it is asymmetric and why it never runs past ±1.
Are there any usage caps on the Correlation Coefficient Calculator?
No charge and no sign-up. There is no free tier to run out of because there is no paid tier — inputtesthub.com is funded by advertising rather than by metering the tool.
Is my data uploaded anywhere?
No. The Correlation Coefficient Calculator runs entirely in your browser using JavaScript. Because the work happens locally, the tool also keeps working if your connection drops, and closing the tab is all it takes to discard everything.
Can I check the maths myself?
It uses r = Σ(x − x̄)(y − ȳ) ÷ √(Σ(x − x̄)² · Σ(y − ȳ)²), and its significance is t = r√(n − 2) ÷ √(1 − r²). The full working is printed under the result, so you can follow every step rather than trusting a black box.
Can you show an example?
Enter 8 pairs, x = 1..8 and the Correlation Coefficient Calculator returns r = 0.9653, r² = 0.9318.
What is the Correlation Coefficient Calculator used for?
In practice it gets used for three things: measuring how strongly two variables move together. Checking whether an apparent relationship could be chance. Comparing a linear correlation with a rank correlation to spot curvature. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
When is the Correlation Coefficient Calculator not the right tool?
r measures linear association between two variables and nothing else. It is sensitive to outliers, it cannot detect curved relationships, and it says nothing about causation — a third variable driving both produces exactly the same number. Knowing where a tool stops being trustworthy matters more than the cases where it works.
Which values should I know?
Range of r is −1 to +1. r² is is the share of variation in y accounted for by x. A symmetric parabola gives is r = 0 while y is fully determined by x. These are printed on the page itself, so you do not have to take them on trust.
How precise is the result?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…