How closely do two lists move together in a straight line? Get Pearson's r with its p-value and confidence interval, a Spearman check beside it and a warning when one pair drives the result.
Is a correlation of 0.4 strong? Cohen's size and significance with 30 pairs
How closely do two lists move together in a straight line? Get Pearson's r with its p-value and confidence interval, a Spearman check beside it and a warning when one pair drives the result.
The calculator below is set to interpret a Pearson correlation of 0.4 computed from 30 pairs, tested two-sided at alpha 0.05. Press Calculate for its size on Cohen's benchmarks, the p-value, the 95% confidence interval, r squared and the fewest pairs at which the same r would be significant. Change r or the number of pairs to match your own study.
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
Pearson correlation coefficient with p-value, interval and a rank check
A correlation of 0.571 sounds like a solid relationship, yet on nine pairs it gives p = 0.1082 and a 95% interval running from -0.150 to 0.896. That gap between how big r looks and what the data can actually support is what this calculator is built to show. Paste two lists of paired numbers, or two columns straight from a spreadsheet, and it returns Pearson's r, the t statistic, the p-value for a two-sided or one-sided test, a confidence interval by Fisher's z, r squared, the Spearman rank correlation and the critical r for your sample size. Already have r from a paper or a spreadsheet? Switch to the second option, type r and the number of pairs, and get the same test and interval without the raw data.
The form, box by box
- What do you have - paired data, or a correlation r that is already computed. The boxes below change with the choice.
- X values - the first variable, separated by spaces, commas or new lines. To paste two spreadsheet columns at once, put them here, one pair per line, and leave the Y box empty; a header row such as "Hours Score" becomes the axis names.
- Y values - the second variable in the same order, so the third Y belongs to the third X. Use a dot for decimals and no thousands separators.
- Correlation r and number of pairs - only for the second option: r between -1 and 1, and the n it was computed from.
- Significance level - 0.05 is the usual choice, 0.01 when a false alarm is costly, 0.10 for a first look. It also sets the confidence level of the interval.
- Alternative hypothesis - two-sided asks whether there is any linear relationship. Positive or negative is a one-sided test, and only honest when the direction was fixed before you saw the data.
- Read the result: r in the main tile, then p, t, the interval, r squared, Spearman's rho, the critical r and any warning about a single pair or a small sample.
Problem: one pair turns nothing into r = 0.940
Pearson's r is built from products of distances to the mean, so one point far out on both axes can dominate the sum. The Spearman coefficient on the same ten pairs is only 0.295, because ranks cap how far any one point can pull. A plain correlation tool prints 0.940 and stops.
Three checks a plain correlation tool skips
Pearson, Spearman or Kendall: which coefficient to report
The shaded row is the case this calculator is designed for. The Spearman figure is always in the result, so the second row costs nothing extra.
| Your data | Report | Why |
|---|---|---|
| Two measurements, a roughly straight cloud of points, no extreme pair | Pearson's r | uses the actual distances, so it has the most power |
| Pearson and Spearman differ by 0.2 or more | Spearman's rho, and plot the points | ranks are not pulled by one extreme value |
| Rising or falling, but along a curve | Spearman's rho | it measures any steady ordering, not only a straight line |
| Ratings or ranks with many ties, small sample | Kendall's tau | counts agreeing and disagreeing pairs directly |
Data sets to paste in, and what comes back
Result: r = 0.571, t = 1.841 with 7 df, p = 0.1082, interval -0.150 to 0.896, Spearman 0.600, the same figures R prints. The calculator adds that without pair 9 (60.1, 3.8) r would be 0.852 and the result would become significant.
Result: r = 0.000 and p = 1.0000, although Y is completely determined by X. Zero correlation means no straight-line trend, not no relationship.
Result: the axes are named Hours and Score, r = 0.974, t = 12.224, 95% interval 0.891 to 0.994, r squared 0.949.
Result: r = -0.975, p above 0.9999, not significant. Switched to negative, the same data give p below 0.0001 and a bound from -1 to -0.895.
Critical values of r: a table to keep
An r counts as significant in a two-sided test once its absolute value reaches the figure in the table. The calculator prints the exact value for your n, from the t distribution with n - 2 degrees of freedom.
| Pairs (n) | alpha 0.10 | alpha 0.05 | alpha 0.01 |
|---|---|---|---|
| 5 | 0.805 | 0.878 | 0.959 |
| 8 | 0.621 | 0.707 | 0.834 |
| 10 | 0.549 | 0.632 | 0.765 |
| 15 | 0.441 | 0.514 | 0.641 |
| 20 | 0.378 | 0.444 | 0.561 |
| 30 | 0.306 | 0.361 | 0.463 |
| 50 | 0.235 | 0.279 | 0.361 |
| 100 | 0.165 | 0.197 | 0.256 |
Read it both ways. With 100 pairs an r of 0.2 already passes at 0.05, which is why large samples make weak relationships significant. With 8 pairs you need 0.707, and the R example above falls short at 0.571 with nine.
Is a correlation of 0.3 or 0.5 strong? It depends on n
With r and n alone the calculator gives the same test and interval as from the data, plus the fewest pairs at which that r would pass at 0.05.
| r and pairs | p, two-sided | 95% interval | Fewest pairs |
|---|---|---|---|
| 0.3, 30 | 0.1072 | -0.068 to 0.596 | 44 |
| 0.3, 100 | 0.0024 | 0.110 to 0.469 | 44 |
| 0.5, 30 | 0.0049 | 0.170 to 0.729 | 16 |
| 0.7, 10 | 0.0242 | 0.126 to 0.923 | 9 |
| 0.2, 1,000 | below 0.0001 | 0.140 to 0.259 | 97 |
Questions people bring to a correlation
Related tools
Skewness Calculator
Check each list for a long tail before trusting r: G1, g1 and a D'Agostino p-value - See calculator
Kurtosis Calculator
Tail weight of each list, the reason one far pair can move r so much - See calculator
Standard Deviation Calculator
The spread of each variable, the two numbers r divides by - See calculator
Interquartile Range Calculator
Outlier fences for each list before you correlate them - See calculator
Wilcoxon Test Calculator
A rank test for paired data when the question is a difference, not a relationship - See calculator
Coefficient of Variation Calculator
Relative spread, for comparing variables measured on different scales - See calculator
Percentile Calculator
Where one value sits within a list, by several textbook definitions - See calculator
Average Calculator
Mean, median and mode of a single list - See calculator
See also
Calculator verified by the LiczGrupa.pl team
Content, formulas and results have been reviewed for accuracy and relevance by our team of specialists.

Reviewed by: Natalia Skrzek