Calcamaze

P-Value Calculator

Convert a z-score or t-statistic into a one- or two-tailed p-value and see whether it is significant at common levels.

Result

p-value
0.049996
At α = 0.10
Significant
At α = 0.05
Significant
At α = 0.01
Not significant

Turn a test statistic into a p-value. Choose a z-score or a t-statistic (with its degrees of freedom), pick a two-tailed or one-tailed test, and the calculator gives the p-value and whether the result is significant at the 10%, 5% and 1% levels.

What is a p-value?

In a hypothesis test, the p-value is the probability of seeing a test statistic at least as extreme as the one observed, assuming the null hypothesis is true. If that probability is very small, the data are hard to explain by chance alone, and the null hypothesis is rejected at the chosen significance level α — commonly 0.05.

The p-value is an area under a probability curve. For a z-test it comes from the standard normal distribution; for a t-test, from Student’s t distribution with the test’s degrees of freedom. A two-tailed test counts extreme results in both directions, so its p-value is twice the area in one tail.

How to use the p-value calculator

  1. Choose whether your test statistic is a z-score or a t-statistic.
  2. Enter the statistic, and the degrees of freedom for a t-test.
  3. Choose two-tailed unless you set a one-sided hypothesis in advance, and read the p-value.

Formula

Two-tailed p = 2 × P(Z > |z|) · Right-tailed p = P(Z > z) · Left-tailed p = P(Z < z)

For a t-statistic the same areas are taken from Student’s t distribution with the given degrees of freedom, which has heavier tails than the normal curve.

A result is called significant at level α when p < α.

Worked examples

A z-score of 1.96, two-tailed

Test statistic
z-score (normal)
Value of the statistic
1.96
Alternative hypothesis
Two-tailed (≠)
p-value
0.049996
At α = 0.10
Significant
At α = 0.05
Significant

The area above 1.96 is about 0.025, and the two tails together give p ≈ 0.05 — right at the 5% significance boundary.

A one-sample t-test with 11 observations

Test statistic
t-statistic (Student’s t)
Value of the statistic
2.5
Degrees of freedom
10
Alternative hypothesis
Two-tailed (≠)
p-value
0.031447
At α = 0.10
Significant
At α = 0.05
Significant

With df = 11 − 1 = 10, a t of 2.5 leaves 0.0157 in each tail, so p = 0.0314 — significant at 5% but not at 1%.

A right-tailed z-test

Test statistic
z-score (normal)
Value of the statistic
1.2
Alternative hypothesis
Right-tailed (>)
p-value
0.11507
At α = 0.10
Not significant
At α = 0.05
Not significant

Only the upper tail counts: P(Z > 1.2) = 0.1151, which is not significant at the usual levels.

Two-tailed p-values for common z-scores

|z|Two-tailed pOne-tailed p
10.31730.1587
1.280.20050.1003
1.6450.10.05
1.960.050.025
2.330.01980.0099
2.5760.010.005
30.00270.0013

What a p-value does not tell you

A p-value is not the probability that the null hypothesis is true, and 1 − p is not the probability that your hypothesis is right. It also says nothing about how big an effect is. With 100,000 observations, a difference too small to matter in practice can give p < 0.001, while a large, important effect in a small study can miss 0.05. Report the effect size and a confidence interval alongside the p-value.

Common mistakes

  • Reading the p-value as the probability that the null hypothesis is true.
  • Using the normal distribution for a t-statistic from a small sample, which understates the p-value.
  • Switching to a one-tailed test after seeing the data to get a significant result.

Frequently asked questions

What is a p-value?

The probability of getting a result at least as extreme as yours if the null hypothesis were true. A small p-value means the data would be surprising under the null hypothesis.

Is p = 0.05 significant?

Conventionally a result is significant when p is below the chosen α, so p = 0.05 exactly is a borderline case. Report the p-value itself rather than only “significant” or “not”.

When should I use a one-tailed test?

Only when you decided before seeing the data that you care about a difference in one direction. A one-tailed p-value is half the two-tailed one for the same statistic.

How do I find the degrees of freedom?

For a one-sample or paired t-test, df = n − 1. For a two-sample t-test with equal variances assumed, df = n₁ + n₂ − 2; the Welch test, which doesn’t assume equal variances, uses a formula that usually gives a non-whole number.

Sources

  1. Critical values and p-values (NIST/SEMATECH e-Handbook of Statistical Methods), National Institute of Standards and Technology (NIST)
  2. Introductory Statistics 2e, Chapter 9: Hypothesis Testing with One Sample, OpenStax, Rice University

Last updated · Calculations checked by automated tests· Editorial policy