P-Value Calculator

The p-value is the probability of a result at least as extreme as yours if the null hypothesis were true. A two-tailed z-test with z = 1.96 has p ≈ 0.05, and a two-tailed t-test with t = 2.228 and 10 degrees of freedom also has p = 0.05. If p is smaller than your significance level α, reject the null hypothesis.

Inputs

Result
–

Results are calculated in your browser for convenience. Double-check important figures before relying on them.

What a p-value means

Hypothesis tests start by assuming the null hypothesis (no effect, no difference). The p-value measures how surprising your data would be under that assumption. A small p (below α, often 0.05) means the data would be unusual if the null were true, so you reject it. A large p means the data are compatible with the null, so you do not reject it, which is not the same as proving it true.

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

One-tailed and two-tailed tests

TestUse when your hypothesis is
Two-tailedThe value is different (higher or lower)
Right-tailedThe value is greater
Left-tailedThe value is smaller

Decide the direction before looking at the data. For z = 1.645 the right-tailed p is 0.05, but the two-tailed p is 0.10. The p-value from t uses the heavier-tailed t distribution with the degrees of freedom you give, so small samples need a larger statistic for the same p.

Cautions

  • A p-value is not the probability that the null hypothesis is true.
  • A tiny p-value does not mean a large or important effect; with huge samples, trivial effects become significant.
  • p = 0.049 and p = 0.051 are practically the same evidence. The 0.05 threshold is a convention.
  • Running many tests inflates false positives, so adjust for multiple comparisons.

Find the statistic with the z-score calculator, and build intervals with the confidence interval calculator.

Complete guide to the P-Value Calculator

How to use the P-Value Calculator, step by step

  1. Choose z or t.
  2. Enter the statistic and degrees of freedom.
  3. Choose the type of test and α.
  4. Read the p-value and decision.

Common mistakes to avoid

  • Treating 0.05 as a magic line.
  • Choosing the tail after seeing the data.
  • Confusing significance with importance.

Key terms explained

Null hypothesis
The claim of no effect.
Significance level
The threshold for rejecting the null.
Tail
The extreme end of a distribution.
Test statistic
The value computed from the sample.

Frequently asked questions

What is a p-value?

It is the probability, assuming the null hypothesis is true, of getting a result at least as extreme as the one you observed.

What p-value is significant?

The usual threshold is 0.05, but it is a convention. Some fields use 0.01 or stricter, and others report the p-value itself.

What is the difference between one-tailed and two-tailed?

A one-tailed test looks for a difference in one direction only. A two-tailed test looks for a difference in either direction and doubles the tail probability.

How do I get a p-value from a t-score?

You need the degrees of freedom. The p-value is the area in the tail or tails of the t distribution beyond your t value; this calculator computes it.

What does it mean if p is greater than 0.05?

The data do not provide strong enough evidence against the null hypothesis. That is not proof that the null is true.

Can the p-value be zero?

In theory no. Calculators may display tiny values as 0 or in scientific notation. A very small p means strong evidence against the null.

What is a significance level alpha?

It is the threshold chosen before the test for rejecting the null hypothesis. It equals the chance of a false positive when the null is true.

Related calculators

Guides worth reading