Skip to content

Math

P-value Calculator

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

Fill in any one box to get the others. If you fill in more than one, the top-most is used.

Given Z = 2,

  • P(x<Z)0.97725
  • P(x>Z)0.02275
  • P(0<x<Z)0.47725
  • P(-Z<x<Z)0.9545
  • P(x<-Z or x>Z)0.0455
-3-2-101232
Standard normal curve with the area for P(x<Z) shaded. Z is 2.

How to use

  1. Choose the test statistic you have: a Z-score, a t statistic, a chi-square statistic or an F statistic.
  2. For a Z-score you can fill in any one box, a Z-score or any of the p-values, and the rest are worked out. For the other tests enter the statistic and its degrees of freedom.
  3. Pick one-tailed (left or right) or two-tailed, and your significance level (0.05 is common).
  4. Read the p-value and whether the result is significant at that level.

Formula

The p-value is the probability, if the null hypothesis were true, of a result at least as extreme as the one observed. For a Z-score it comes from the standard normal curve; for t, chi-square and F it comes from those distributions with the given degrees of freedom. Two-tailed p = 2 × the smaller tail (at most 1). A result is significant when p ≤ α.

Example

A Z-score of 2 gives a right-tail p-value of 0.02275 and a two-tailed p-value of 0.0455, which is below 0.05, so a two-tailed test at the 5% level rejects the null hypothesis. A t statistic of 2.228 with 10 degrees of freedom gives a two-tailed p-value of 0.05.

A small p-value says the data are unlikely under the null hypothesis; it does not give the probability that the null hypothesis is true or the size of an effect. Decide whether the test is one- or two-tailed before looking at the data. The chi-square and F distributions are not symmetric, so their two-tailed value is twice the smaller tail, the usual convention.