Skip to content
ToolUlkaa Tool
All tools

Statistics

Statistics CalculatorRandom Number GeneratorStandard Deviation CalculatorZ-Score CalculatorProbability CalculatorPermutation and Combination CalculatorP-Value CalculatorT-Test CalculatorConfidence Interval CalculatorSample Size CalculatorChi-Square CalculatorCorrelation Coefficient CalculatorLinear Regression CalculatorANOVA CalculatorProbability Distribution Calculator

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Statistics

Pearson Correlation Calculator

Paste x, y pairs to get Pearson r, r², a p-value and a confidence interval.

Try:
Data entry
One pair per line, separated by a comma, tab or space. Two columns copied from Excel work. A text first line is used as the axis names.
Headline coefficient
Confidence level

Pearson correlation

r = 0.8164

There is a very strong positive linear relationship: one variable tends to rise when the other rises. r² = 0.6665. The result is statistically significant at the 95% level (p = 0.00217).

MeasureValuepStrength
Pearson r0.81640.00217very strong positive
Spearman ρ0.81820.00208very strong positive
Kendall τ-b0.63640.00644strong positive
95% CI for r0.4244 to 0.9507
Sample11 pairs, 9 degrees of freedom

Pearson r, step by step

  1. 1Means
    xˉ=∑xn, yˉ=∑yn\bar{x}=\frac{\sum x}{n},\ \bar{y}=\frac{\sum y}{n}xˉ=n∑x​, yˉ​=n∑y​
    ↓
    xˉ=9, yˉ=7.5009 (n=11)\bar{x}=9,\ \bar{y}=7.5009\ (n=11)xˉ=9, yˉ​=7.5009 (n=11)
  2. 2Sums of squares
    Sxy=∑(x−xˉ)(y−yˉ), Sxx=∑(x−xˉ)2, Syy=∑(y−yˉ)2S_{xy}=\sum (x-\bar{x})(y-\bar{y}),\ S_{xx}=\sum (x-\bar{x})^2,\ S_{yy}=\sum (y-\bar{y})^2Sxy​=∑(x−xˉ)(y−yˉ​), Sxx​=∑(x−xˉ)2, Syy​=∑(y−yˉ​)2
    ↓
    Sxy=55.01, Sxx=110, Syy=41.273S_{xy}=55.01,\ S_{xx}=110,\ S_{yy}=41.273Sxy​=55.01, Sxx​=110, Syy​=41.273
  3. 3Pearson r
    r=SxySxxSyyr=\frac{S_{xy}}{\sqrt{S_{xx}S_{yy}}}r=Sxx​Syy​​Sxy​​
    ↓
    r=55.01110⋅41.273=0.81642r=\frac{55.01}{\sqrt{110\cdot 41.273}}=0.81642r=110⋅41.273​55.01​=0.81642

    r² = 0.6665, so about 66.7% of the variation in y is linearly related to x.

  4. 4Test statistic
    t=rn−21−r2t=\frac{r\sqrt{n-2}}{\sqrt{1-r^2}}t=1−r2​rn−2​​
    ↓
    t=4.2415, df=9t=4.2415,\ df=9t=4.2415, df=9

    Two-sided p = 0.00217 for H0: the true correlation is 0.

  5. 595% confidence interval
    z=artanh⁡(r), z±zα/2n−3z=\operatorname{artanh}(r),\ z\pm\frac{z_{\alpha/2}}{\sqrt{n-3}}z=artanh(r), z±n−3​zα/2​​
    ↓
    ρ∈[0.4244, 0.9507]\rho\in[0.4244,\ 0.9507]ρ∈[0.4244, 0.9507]

    The Fisher z interval is back-transformed with tanh.

Spearman is Pearson on the ranks, with tied values given their average rank. Kendall τ-b counts concordant and discordant pairs and corrects for ties. The p-values for Spearman and Kendall use normal or t approximations, which are best with more than about 10 pairs. Correlation does not show cause.

  1. Tools
  2. Statistics
  3. Correlation Coefficient Calculator
  4. Pearson Correlation Calculator

About Pearson Correlation Calculator

This Pearson correlation calculator measures the strength and direction of the straight-line relationship between two numeric variables. It opens on Anscombe set I and shows r, r², the t test and a Fisher z interval. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

Pearson r is the covariance of x and y divided by the product of their standard deviations. It is unchanged if you rescale or shift either variable, so r for heights in inches equals r for heights in centimetres.

It assumes the relationship is roughly linear and that there are no extreme outliers. For the p-value to be exact the pairs should be independent and roughly bivariate normal. If these fail, check the Spearman page.

How to use Pearson Correlation Calculator

  1. 1Paste your data as two columns from a spreadsheet, or type one x, y pair per line. Use the "Two columns" tab if your x and y values are in separate lists.
  2. 2Pick the headline coefficient: Pearson r, Spearman ρ or Kendall τ-b. All three are always shown in the table.
  3. 3Choose a confidence level for the interval of r. 95% is the usual choice.
  4. 4Read the strength and direction sentence, the p-value and the confidence interval. A small p-value means the correlation is unlikely to be zero in the population.
  5. 5Check the scatter plot for curves, clusters or outliers, because one number can hide them.
  6. 6Open the step-by-step panel to see the means, the sums of squares, r, the t statistic and the Fisher z interval.

Features

  • Pearson r with a t test for H0: ρ = 0 and a Fisher z confidence interval.
  • Spearman rank correlation with tied values given their average rank.
  • Kendall τ-b, corrected for ties, with a normal approximation for p.
  • Paste from Excel or Google Sheets: tab, comma, semicolon and space separated pairs all work, and decimal commas are understood.
  • Scatter plot with a least squares trend line, a values table for screen readers and a PNG download.
  • Strength and direction in plain words, plus r² for Pearson.
  • Worked Pearson steps in KaTeX that you can copy as LaTeX.
  • Four bundled examples, including Anscombe set I and a data set with an outlier.

Pearson r and its test

The test statistic follows a t distribution with n - 2 degrees of freedom when the true correlation is zero.

r = Σ(x − mean x)(y − mean y) / sqrt(Σ(x − mean x)² × Σ(y − mean y)²)
t = r × sqrt(n − 2) / sqrt(1 − r²)

Worked examples

  • Anscombe's quartet, set I (11 pairs) → gives r = 0.8164, r² = 0.6665

    p = 0.00217 and the 95% interval for r runs from 0.424 to 0.951.

Privacy: how it works

  • Everything is calculated by code running in your browser tab. Your data is not sent to Ulkaa or to any other server, and there is nothing to sign in to.

Tips

  • Always look at the scatter plot. A curve, two clusters or one outlier can make r misleading.
  • If r is near zero but the plot shows a clear curve, the relationship is real but not linear.
  • With many pairs, even a tiny r can be significant. Judge the size of r, not only the p-value.
  • Do not include totals or averages of the same variable twice. Repeated measures break the independence that the p-value assumes.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your pairs are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your pairs are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

What does r² mean?

r² is the share of the variation in y that a straight line on x accounts for. An r of 0.816 gives r² of 0.666, so about two thirds of the variation.

Does Pearson r need normal data?

The coefficient itself does not. The p-value and confidence interval work best when the pairs are roughly bivariate normal, especially for small samples.

Why is r undefined for my data?

If every x or every y is the same, there is no spread to compare and r is not defined. The calculator tells you which column is constant.

More Correlation Coefficient Calculator pages

  • Correlation Coefficient CalculatorPaste two columns or x, y pairs to get Pearson r, Spearman ρ and Kendall τ with a scatter plot and the working.
  • Spearman Rank Correlation CalculatorPaste x, y pairs to get Spearman ρ, which resists outliers and measures any steady rise or fall.
  • Kendall Tau Correlation CalculatorPaste x, y pairs to get Kendall τ-b, built from concordant and discordant pairs.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account
Table of values
Scatter plot of y against x with a trend line
PointDataTrend line
1(10, 8.04)(4, 5.000454545454547)
2(8, 6.95)(14, 10.001363636363639)
3(13, 7.58)
4(9, 8.81)
5(11, 8.33)
6(14, 9.96)
7(6, 7.24)
8(4, 4.26)
9(12, 10.84)
10(7, 4.82)
11(5, 5.68)