What is a Pearson’s Correlation Test Calculator?
A Pearson’s correlation test calculator tells you whether the linear correlation between two variables is statistically significant, that is, whether the population correlation ρ differs from zero. Enter paired (x, y) data or just r and n. It converts r into t = r√(n − 2) / √(1 − r²) with n − 2 degrees of freedom and returns the p-value, the critical r, a 95% Fisher-z confidence interval for ρ and an APA-style result.
What the Pearson’s Correlation Test Calculator does
This Pearson’s correlation calculator (also called a correlation significance calculator or a Pearson r p-value calculator) runs the full significance test. From raw data or from r and n it returns r, r², t, df, the p-value, the critical values of t and r, and the reject or retain decision. It also gives a 95% Fisher-z confidence interval for ρ, a rule-of-thumb strength label, a ready-to-paste APA-style result and, for raw data, a scatter plot with the trend line and the deviation and cross-product table used to compute r.
Use it to decide whether an observed association, such as study hours and exam score or temperature and energy use, is more than sampling noise. The Correlation Coefficient Calculator focuses on computing and interpreting r itself, and the Pearson r to P-Value Calculator is a quick r-to-p lookup; this page runs the whole hypothesis test with every step shown. For ranked data, or a curved relationship that only ever rises or only ever falls, use the Spearman Correlation Calculator.
How to use the Pearson’s Correlation Test Calculator
- Choose the alternative hypothesis: two-tailed for any correlation, right-tailed for a positive one, left-tailed for a negative one. Decide this before looking at the data.
- Set the significance level α (0.05 unless you have a reason to use another).
- Choose Raw data (x, y) and enter one row per subject, or paste two columns from a spreadsheet. If a paper or your software already gives the correlation, choose r and n instead.
- Look at the scatter plot of your data for a straight-line pattern and outliers, then read r, the p-value and the decision. Check the confidence interval to see how precisely ρ is estimated, and copy the APA-style line from the results or the last step.
How to calculate Pearson’s correlation and test it by hand
These are the steps the calculator shows in its step-by-step solution, using the built-in example: hours of study (x) and exam score (y) for n = 12 students.
- Find the means: x̄ = 59 / 12 = 4.9167 and ȳ = 851 / 12 = 70.9167.
- For every pair, subtract the means and multiply the deviations. Sum the squares and products: Sxx = Σ(x − x̄)² = 64.9167, Syy = Σ(y − ȳ)² = 608.9167, Sxy = Σ(x − x̄)(y − ȳ) = 159.9167.
- Compute Pearson’s r: r = Sxy / √(Sxx × Syy) = 159.9167 / √(64.9167 × 608.9167) = 0.8043.
- Convert r into a t statistic: t = 0.8043 × √10 / √(1 − 0.8043²) = 4.2808, with df = n − 2 = 10.
- Find the p-value from the t distribution with 10 df: two-tailed p = 0.0016. Equivalently, compare |r| with the critical r for n = 12 at α = 0.05, which is 0.5760.
- Decide and report: p ≤ 0.05, so reject H₀. In APA style, r(10) = .80, p = .002, 95% CI [.43, .94].
How to find Pearson’s r on a calculator, in Excel or in SPSS
Most tools give you r but not the significance test, so you can compute r wherever is convenient and then enter r and n above to get t, the p-value and the confidence interval.
| Tool | How to get r | Does it test significance? |
|---|---|---|
| TI-83 / TI-84 | Turn on DiagnosticOn, enter x in L1 and y in L2, then run STAT → CALC → LinReg(ax+b). For the test, use STAT → TESTS → LinRegTTest. | Yes, with LinRegTTest (t, p, df and r) |
| Casio scientific | Choose the two-variable regression mode (y = a + bx), enter the pairs, then read r from the regression results. | No, enter r and n here |
| Excel / Google Sheets | =CORREL(A2:A13, B2:B13) or =PEARSON(...) returns r. | No built-in p-value for r; enter r and n here |
| SPSS | Analyze → Correlate → Bivariate, tick Pearson. | Yes, “Sig. (2-tailed)” is the p-value |
| R / Python | cor.test(x, y) in R; scipy.stats.pearsonr(x, y) in Python. | Yes, both return t or r, p and a Fisher-z CI |
Pearson’s r formula and the correlation t-test
| Symbol | Meaning |
|---|---|
| r | sample correlation coefficient |
| ρ | population correlation; H₀ says ρ = 0 |
| n | number of (x, y) pairs |
| t*, z* | critical values of t (df = n − 2) and of the standard normal |
Pearson’s r is the covariance of x and y divided by the product of their standard deviations, so it has no units and always lies between −1 and 1. The t-test is exact for ρ = 0 under bivariate normality. The Fisher-z interval is approximate and is the method used by R’s cor.test and SciPy. Critical values of r are tabulated in the r critical value table.
Worked example
Worked example: testing a reported correlation
Problem. A study of n = 30 employees reports r = 0.42 between weekly training hours and a productivity score. Is the correlation significant at α = 0.05 (two-tailed)?
- 01Hypotheses: H₀: ρ = 0 against H₁: ρ ≠ 0.
- 02t = 0.42 × √28 / √(1 − 0.42²) = 2.2224 / 0.9075 = 2.4489 with df = 28.
- 03Two-tailed p-value = 2 · P(T₂₈ ≥ 2.4489) ≈ 0.0208.
- 04Critical t = ±2.0484, so the critical r is 2.0484 / √(2.0484² + 28) = ±0.3610; r = 0.42 exceeds it.
- 05Fisher z = atanh(0.42) = 0.4477, SE = 1 / √27 = 0.1925.
- 0695% CI for ρ: tanh(0.4477 ± 1.96 × 0.1925) = (0.0704, 0.6777).
Answer. Reject H₀ (p ≈ 0.021): the positive correlation is statistically significant, r(28) = .42, p = .021, 95% CI [.07, .68]. The interval is wide, from almost no relationship (0.07) to a strong one (0.68), so the size of the effect is still uncertain with 30 people.
How to interpret r, the p-value and the confidence interval
The sign of r gives the direction: positive when y tends to rise with x, negative when it tends to fall. The size of |r| gives the strength of the straight-line relationship, and r² is the share of the variation in y that a straight line in x accounts for. The labels below are a common rule of thumb, used in the results panel; what counts as strong depends on the field.
The p-value is the probability of a correlation at least this far from zero if ρ were really 0. It is not the probability that the correlation is real, and a small p-value says nothing about strength; see what a p-value means. The 95% confidence interval shows the range of plausible values for ρ. It is asymmetric because it is built on the Fisher z scale, and with small samples it is often wide even when the test is significant.
| |r| | Rule-of-thumb label | r² (variance explained) |
|---|---|---|
| under 0.1 | Negligible | under 1% |
| 0.1 to 0.3 | Weak | 1% to 9% |
| 0.3 to 0.5 | Moderate | 9% to 25% |
| 0.5 to 0.7 | Fairly strong | 25% to 49% |
| 0.7 and above | Strong | 49% and above |
Critical values of r for common sample sizes
A correlation is significant at the 5% level (two-tailed) when |r| is at least the critical value for your n. The critical r falls as the sample grows, which is why large samples make even weak correlations significant. The full set, with other α levels, is in the r critical value table, and the Pearson r Critical Value Calculator gives any n.
| Pairs, n | df = n − 2 | Critical r (α = 0.05, two-tailed) |
|---|---|---|
| 5 | 3 | 0.8783 |
| 10 | 8 | 0.6319 |
| 12 | 10 | 0.5760 |
| 20 | 18 | 0.4438 |
| 30 | 28 | 0.3610 |
| 50 | 48 | 0.2787 |
| 100 | 98 | 0.1966 |
How to report a Pearson correlation in APA style
APA style reports the correlation with its degrees of freedom in brackets, then the p-value: r(df) = .80, p = .002. Because r cannot exceed 1, it is written without a leading zero, rounded to two decimals; p is given to three decimals, and very small values as p < .001. Adding the confidence interval for ρ, as the calculator does, tells readers how precise the estimate is.
A full sentence might read: “Hours of study were strongly and positively correlated with exam score, r(10) = .80, p = .002, 95% CI [.43, .94].” State a one-tailed test if you used one.
Sources and how the results were checked
The worked example, the hand calculation above and the three built-in examples were checked against SciPy’s pearsonr (which uses the same t-test and Fisher-z interval as R’s cor.test); r, t, p and the confidence limits agree to the four decimals shown.
- Fisher, R. A. (1915). Frequency distribution of the values of the correlation coefficient in samples from an indefinitely large population. Biometrika, 10(4), 507–521. doi:10.2307/2331838
- Penn State STAT 462, 2.6 (Pearson) Correlation Coefficient r.
- R documentation, cor.test: Test for Association/Correlation Between Paired Samples.
- SciPy documentation, scipy.stats.pearsonr.
- Microsoft Support, CORREL function.
Common use cases
- Checking whether a correlation found in a sample is likely to exist in the population.
- Testing a correlation reported in a paper, or from Excel’s CORREL, when only r and n are given.
- Writing up a correlation for a thesis, lab report or psychology assignment in APA format.
- Screening candidate predictors before building a regression model.
- Validating a measurement by its correlation with an established instrument.
Assumptions and limitations
- Linearity: Pearson’s r measures straight-line association only. A strong curved relationship can give r near 0. Always look at a scatter plot.
- Outliers: one extreme point can create or hide a correlation, especially with small n.
- Normality and independence: the p-value assumes independent pairs from a roughly bivariate-normal population; for ordinal data or outliers, Spearman’s rank correlation is more robust.
- H₀ is ρ = 0 only. This page does not test whether ρ equals some other value or whether two correlations differ; those need the Fisher-z method directly.
- Correlation is not causation, and significance is not strength: with large n, even r = 0.1 is significant. Report r and its confidence interval.
Frequently asked questions
How do you calculate Pearson’s correlation?
What is Pearson’s r formula?
How do you find Pearson’s r on a calculator?
How do you test if a correlation is significant?
What are the null and alternative hypotheses for a Pearson correlation test?
What is the critical value of r?
What are the degrees of freedom for a correlation test?
Why use the Fisher z transformation?
Can a weak correlation be statistically significant?
Should I use Pearson or Spearman correlation?
Cite this page
Statculator. (2026, November 14). Pearson’s Correlation Test Calculator. Retrieved November 14, 2026, from https://statculator.com/hypothesis-tests/pearsons-correlation-test-calculator/