P-Value Calculator

Find the p-value from a z score, t score or chi-square statistic. Choose a one-tailed or two-tailed test, set your significance level alpha, and see right away whether the result is statistically significant. Everything runs in the browser.

  • Z-test
  • T-test
  • Chi-square
  • One- and two-tailed
  • Alpha check
  • Stays on your device

P-value from a z score, t score or chi-square

The p-value measures how surprising your test statistic is if the null hypothesis is true. Use the z-test when the population standard deviation is known or the sample is large, the t-test for small samples with an estimated standard deviation, and chi-square for goodness of fit, independence and variance tests.

One-tailed vs two-tailed p-values

Right-tailed: p = P(statistic ≥ observed). Left-tailed: p = P(statistic ≤ observed). Two-tailed for z and t: p = 2 × the smaller tail. Example: z = 1.96 gives a two-tailed p of 0.05 and a right-tailed p of 0.025.

Significance check against alpha

If p is less than alpha, reject the null hypothesis. The calculator also shows the critical value or values for your alpha, so you can compare the statistic directly. To get the z score or t score in the first place, you need the mean and spread of your data. Find them with the standard deviation calculator and the mean median mode calculator, estimate a range for a mean or proportion with the confidence interval calculator, or browse more tools in the Math hub.

How to use the p-value calculator

  1. Pick the test: Z-test, T-test or Chi-square.
  2. Choose two-tailed, right-tailed or left-tailed.
  3. Enter your test statistic and, for t and chi-square, the degrees of freedom.
  4. Set alpha (0.05 is common), then read the p-value and the significance decision.

Frequently asked questions

What is a p-value?

A p-value is the probability of getting a result at least as extreme as the one you observed, assuming the null hypothesis is true. A small p-value means your data would be unlikely if the null hypothesis were true, which is evidence against it. It is not the probability that the null hypothesis is true.

How do I calculate a p-value from a z score?

Pick the Z-test, enter your z score, choose a tail, and the p-value updates instantly. For a right-tailed test it is P(Z > z), for a left-tailed test P(Z < z), and for a two-tailed test it is 2 × P(Z > |z|). For z = 1.96 the two-tailed p-value is about 0.05.

How do I find the p-value from a t score?

Choose the T-test, enter the t score and the degrees of freedom (for a one-sample t-test, df = n − 1). The calculator uses the Student t distribution. For t = 2 with 20 degrees of freedom, the right-tailed p-value is about 0.0296 and the two-tailed p-value is about 0.0593.

How do I get a p-value from a chi-square statistic?

Choose Chi-square, enter the statistic and its degrees of freedom. Chi-square tests for goodness of fit and independence are almost always right-tailed, so the p-value is P(χ² > statistic). For χ² = 3.841 with 1 degree of freedom, p is about 0.05.

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

A one-tailed test checks for an effect in one direction only (greater than or less than), so all of alpha sits in one tail. A two-tailed test checks for a difference in either direction and splits alpha between both tails. For symmetric distributions like z and t, the two-tailed p-value is twice the one-tailed p-value.

How do I know if my p-value is statistically significant?

Compare it with your significance level alpha, usually 0.05. If p < alpha, reject the null hypothesis and call the result statistically significant. If p ≥ alpha, fail to reject it. The calculator does this check for you and shows the critical value or values for your alpha.

What does a p-value of 0.05 mean?

It means that if the null hypothesis were true, you would see a result this extreme or more extreme about 5% of the time. A result at exactly p = 0.05 is on the edge of the usual cutoff, so the decision depends on whether you require p < 0.05 or p ≤ 0.05. Always set alpha before you look at the data.

Is my information saved or uploaded?

No. The p-value calculator runs entirely in your browser. Numbers are not sent to a server or stored, and there is no account.