Skip to content
FiftyCalc Free calculators for all 50 states

How Do You Calculate a P-Value?

To calculate a p-value, compute the test statistic, then find, under the null hypothesis, the probability of a result at least as extreme as the observed result, in the tail or tails your test uses. For a z statistic of 1.53, the table of the National Institute of Standards and Technology (NIST) gives a probability of 0.93699 of a value less than or equal to 1.53. The probability above 1.53 is therefore 1 - 0.93699 = 0.06301, the right-tailed p-value, which the calculator shows as 0.063.

Open the P-Value Calculator

How it is calculated

Choose the distribution of your statistic in the calculator: Z for the standard normal, Student's t, chi-square or F. NIST notes that the normal distribution is used to find significance levels in many hypothesis tests and confidence intervals. For t and chi-square statistics, enter the degrees of freedom as well, and for F the numerator and denominator degrees of freedom.

Then choose the tail of the test: a left-tailed test uses the probability below the statistic, a right-tailed test the probability above it. For a two-tailed z-test, double the smaller tail; for z = 1.53, the calculator shows a p-value of 0.126.

Last, compare the p-value with your significance level α: the calculator calls the result significant when the p-value is below α.

Worked example

Assumptions: a two-tailed z-test with a statistic of 2.5 and a significance level of 0.05. The calculator shows a right tail of 0.0062, a two-tailed p-value of 0.0124 and a significant result, since 0.0124 is below 0.05.

Distribution of the test statisticZ (standard normal)
Test statistic (z, t, χ² or F)2.5
TailTwo-tailed
Degrees of freedom (t and χ²; numerator df for F)10
Denominator degrees of freedom (F only)20
Significance level α0.05
Right-tail probability P(X ≥ statistic)0.0062
Left-tail probability P(X ≤ statistic)0.9938
p-value0.0124
Decision at αSignificant: p-value below α

Figures computed by this site's calculator from the inputs above. Run your own numbers: P-Value Calculator

Frequently asked questions

What is the p-value of a z-score of 1.96?

For a two-tailed test, the calculator shows a p-value of 0.05 for z = 1.96, rounded, with 0.025 in each tail.

How do you find the probability below a negative z-score?

Use the symmetry of the normal curve: NIST finds the probability below -1.53 as 1 - 0.93699 = 0.06301.

Sources

General information drawn from the official sources above, not tax or legal advice. Amounts change from year to year: check the source for your tax year.

Related

See all Statistics & Probability Calculators