Correlation Coefficient P Value Calculator (r and n)

Correlation Coefficient P Value Calculator

Enter a Pearson correlation r and the sample size n to get the t-statistic, degrees of freedom, and the two-tailed or one-tailed p-value for the hypothesis test that the true correlation ρ equals zero.

🎯Real r and n Presets

📝Test Inputs

Pearson r between the two variables.

Number of paired observations; df = n – 2.

P-value 0 test of ρ = 0
t-statistic 0 r × sqrt(df / (1 – r²))
Degrees of freedom 0 df = n – 2
Significant? vs chosen alpha

🔢Formula Snapshot

rCorrelation
n – 2Degrees of freedom
tTest statistic
2×tailTwo-tailed p

How The P-Value Is Built

Step 1 – dfDegrees of freedom df = n – 2. With n = 20 pairs, df = 18.
Step 2 – t-statt = r × sqrt(df / (1 – r²)). For r = 0.5 and df = 18: t = 0.5 × sqrt(18 / 0.75) = 2.449.
Step 3 – beta xSet x = df / (df + t²), a = df / 2, b = 0.5 for the regularized incomplete beta function Iₓ(a, b).
Step 4 – tailOne-tailed tail = 0.5 × Iₓ(df/2, 0.5), computed with the Numerical Recipes continued-fraction betai.
Step 5 – pTwo-tailed p = 2 × tail. One-tailed p = tail when the sign of r matches the tested direction.
Step 6 – decideReject ρ = 0 when p < alpha. Equivalently, when |r| exceeds the critical r for that n and alpha.

📊Critical r by Sample Size (Two-Tailed)

n (pairs)df = n – 2Critical r at 0.05Critical r at 0.01Meaning
530.8780.959Need very strong r
1080.6320.765Strong r required
15130.5140.641Moderate to strong
20180.4440.561Moderate r works
25230.3960.505Moderate r works
30280.3610.463Smaller r counts
50480.2790.361Weak r can pass
100980.1970.256Very weak r passes
2001980.1390.182Tiny r significant

📉Critical t by Degrees of Freedom

dft at 0.10t at 0.05t at 0.01t at 0.001
32.3533.1825.84112.924
61.9432.4473.7075.959
81.8602.3063.3555.041
131.7712.1603.0124.221
181.7342.1012.8783.922
231.7142.0692.8073.768
281.7012.0482.7633.674
601.6712.0002.6603.460
1981.6531.9722.6013.340

Two-tailed critical values. One-tailed tests use the alpha column for the matching one-sided level.

🗂Comparison Grid: r and n vs t, df, p

rndft-statisticTwo-tailed pSignificant at 0.05
0.5020182.4490.0248Yes
0.8015134.8070.0003Yes
0.2030281.0800.2893No
0.301080.8890.3997No
0.102001981.4140.1589No
0.95867.4520.0003Yes
0.4525232.4170.0240Yes
-0.601816-3.0000.0085Yes
0.3630282.0430.0505No (just over)
0.70531.6990.1878No

📋P-Value and Effect Size Guide

RangeP-Value Reading|r| Effect SizePractical Meaning
p < 0.001Very strong evidence0.50 to 1.00Large correlation
0.001 to 0.01Strong evidence0.30 to 0.50Moderate correlation
0.01 to 0.05Moderate evidence0.10 to 0.30Small correlation
0.05 to 0.10Weak or borderline0.05 to 0.10Very small effect
p ≥ 0.10Little evidence0.00 to 0.05Negligible effect

Effect-size bands follow Cohen. A small p can pair with a small r when n is large, so report both.

💡Reading The Result

Sample size tip: A bigger n makes even a small r significant. At n = 200 an r near 0.14 already clears the 0.05 line, while at n = 10 you need r above roughly 0.63 for the same p.
Decision tip: When the p-value is below your alpha, reject the null that ρ = 0 and call the correlation statistically significant. A significant p shows the relationship is unlikely by chance, not that r itself is large.

Take your correlation coefficient, which shows a correlation of 0.5 between two variables. That’s pretty impressive, unless you consider it came from a mere sample size of ten. With such a small group, even moderate relationship appears as just noise pretending to be signal.

Here’s where statistical significance comes in: Does the observed relationship have a plausible probability of occurring at random? The purpose of this calculator is to answer that question. Feed it your Pearson r, along with your sample size n, and it will spit out a p-value, degrees of freedom, and t-statistic, all useful for assessing whether your observed relationship is likely to be real or if there is a reasonable likelihood that the true correlation in the population are zero (i.e., the null hypothesis).

How to Use This Calculator

But take away the jargon, and it’s pretty simple. Give it two values, the number of observations you’ve paired together, and the strength of their connection (the correlation). And let the machine do its thing.

How does it work? First, it determines the degrees of freedom. Here’s how many: Take your sample size and subtract two. Why? Because when you estimate the correlation, you’re using up two degrees of freedom within your dataset. Next, it takes r and converts it into a t-statistic. In other words, it uses an equation that considers the strength of the relationship AND how much uncertainty still remains in your dataset. That’s the math that provides the connection between our t-statistic and a table of standard distributions, which we can use to determine statistical significance.

In statistics, sample size is the great equalizer. With enough data points, even a tiny correlation is highly significant. But with too few observation, even a massive correlation fails to reach significance. Thankfully, the calculator handles those trade-offs on your behalf. There’s no more manually looking up tables or fiddling with complex spreadsheet formulas.

Simply choose between a one-tailed and a two-tailed test. Two-tailed tests check both positive and negative deviations from zero, this is the safer default for most exploratory research. One-tailed tests assume a direction ahead of time; it doubles your statistical power but also requires stronger justification.

But what does p mean? To understand the output, we need to know what p actualy means. It’s not the probability that your hypothesis is true. Rather, it’s the probability of seeing such an outcome in your data if there was really no relationship in the population. If p is lower than your selected alpha threshold (typically 0.05), then you’ll reject the null hypothesis. You’ll conclude that the correlation are statistically significant.

But here is where many researchers fall into a trap: just because something is statistically significant doesn’t mean it’s important. With a large enough sample size, even a trivial correlation can be made statistically significant. Researchers ends up overconfident about a weak relationship. Numbers without context are meaningless.

Take this example: A researcher discovers a high positive correlation between shark attack and ice cream sales, which holds up to all statistical significance tests. This means you have found a very unlikely pattern to occur through random chance. Does this mean eating ice cream makes you more likely to get attacked by sharks? No one with any common sense will tell you so. There’s a third factor at play here: Summer heat! The statistical test doesn’t prove causation, it simply indicates that there’s an unlikely-to-be-random-pattern. It can’t discount possible confounders either. That part of interpretation requires you to know something about the problem domain yourself.

The tool also includes a few other highlights, such as handy reference tables that show which correlations is significant at different sample sizes. For instance, if you have just 20 pairs, then your correlation needs to be about 0.44 to jump over the 0.05 hurdle. If you have two hundred pairs? You can squeak past with a correlation as low as 0.14. This underscores how much easier it is to identify smaller effects with bigger samples, and why replication matters so much in science. A seeming groundbreaking result in a small pilot study may simply dissapears with a bigger-scale test with more rigorous criteria.

The complete story requires reporting both the p-value AND the effect size. How strong’s the link? This is the correlation coefficient. Can I believe in the existence of this link or not? Combined, they protect against misunderstanding. You get a significant result, great! But the r value barely exceeds 0. What good is it? It’s statistically real but perhaps practically useless.

Then there is the large r paired with a borderline p-value. It would of been time to collect some more data instead of throwing up our hands.

The bottom line: The test’s not the point. To me, understanding something about how things relate in the real world is the point. Judgment gives numbers their meaning; the structure comes from the numbers. Whether you’re looking at the results of an experiment, a survey, or observational records, keep in mind that significant just begins the conversation. Yes, it tells you the pattern exists. Now go work to determine what it realy means. And that’s where the difference between being a good analyst and a wise one lies. It converts raw output into useful information you can use.

Correlation Coefficient P Value Calculator (r and n)