Math calculators

p Value Calculator

Updated Sep 28, 2026 By Infinity Calculator
Enter a valid number.

P-Value Results
Distribution Standard Normal (Z)
Test Statistic 1.96
Tail Type Two-tailed
P-Value 0.04999579
Significance (α = 0.05) Significant

Introduction

A p value tells you how likely it is to get results at least as extreme as yours if the null hypothesis is true.1 In statistics, p values help you judge how well your data fit that hypothesis.1 A small p value (usually less than 0.05) means your data would be unusual if the null hypothesis were true.1 A large p value means there isn't enough proof to say something meaningful happened.

This p value calculator makes it easy to find your p value without doing the hard math by hand. Just enter your test statistic, pick your test type, and the calculator does the rest. This tool checks whether your results are statistically significant for a z-test, t-test, or chi-square test.

How to Use Our p Value Calculator

Enter your test statistic and select your test type to quickly find the p value for your hypothesis test.

Test Statistic: Type in the test statistic (such as a z-score or t-value) that you got from your statistical test. This is a number that shows how far your result is from the null hypothesis.

Degrees of Freedom: Enter the degrees of freedom for your test. This number depends on your sample size and the type of test you are running. For a z-test, you can leave this blank. For a t-test, it is usually your sample size minus one.

Test Type: Choose whether you are running a one-tailed (left), one-tailed (right), or two-tailed test. A one-tailed test checks for an effect in only one direction, while a two-tailed test checks for an effect in both directions.

Distribution Type: Select the distribution your test uses. Common choices are the z-distribution (normal distribution) for large samples or the t-distribution for smaller samples.

Significance: The result is labelled significant when p is less than 0.05, the most common significance level.2 If you use a different level, such as 0.01, compare your p value with it yourself.

Once you hit calculate, the tool will return your p value and tell you whether it is below 0.05.

What Is a P-Value?

A p-value (probability value) is a number between 0 and 1 that tells you how likely it is to get your test results (or something more extreme) if the null hypothesis is true.1 The null hypothesis is the default assumption that there is no real effect or no real difference in your data. A small p-value means your results are unlikely under that assumption, which gives you a reason to reject it.

How Do You Interpret a P-Value?

In most fields, researchers compare the p-value to a threshold called the significance level (α), which is usually set at 0.05.2 Here is how to read the result:

  • p < 0.05: The result is statistically significant, and you reject the null hypothesis.
  • p ≥ 0.05: The result is not statistically significant. You do not have enough evidence to reject the null hypothesis.

Keep in mind that a p-value does not tell you the size of an effect or how important a finding is.1 It only tells you how unusual your data would be if the null hypothesis were true.1

Test Statistics and Distributions

To get a p-value, you first calculate a test statistic from your data. The type of test statistic depends on the kind of analysis you are doing. This calculator supports five common types:

  • Z-score: Used when you know the population standard deviation or have a large sample size. It follows the standard normal distribution.
  • t-statistic: Used when the sample size is small and the population standard deviation is unknown. It follows the Student's t-distribution, which requires degrees of freedom (df).3
  • Chi-square (χ²): Used in tests of independence or goodness-of-fit for categorical data. It follows the chi-square distribution and requires degrees of freedom.
  • F-statistic: Used in ANOVA and regression analysis to compare variances between groups. It follows the F-distribution and requires two degrees of freedom values: one for the numerator (df₁) and one for the denominator (df₂).
  • Pearson r: The correlation coefficient that measures the linear relationship between two variables. It ranges from −1 to 1. The calculator converts r into a t-statistic using the formula t = r × √(df / (1 − r²)), then finds the p-value from the t-distribution.4

Tail Types Explained

The tail type refers to the direction of your hypothesis test. It affects how the p-value is calculated from the test statistic:

  • Left-tailed: Tests whether the true value is less than the hypothesized value. The p-value is the area under the curve to the left of the test statistic.
  • Right-tailed: Tests whether the true value is greater than the hypothesized value. The p-value is the area under the curve to the right of the test statistic.
  • Two-tailed: Tests whether the true value is different from the hypothesized value in either direction. The p-value is the combined area in both tails beyond the test statistic.4 This is the most commonly used option.

What Are Degrees of Freedom?

Degrees of freedom (df) represent the number of independent values in your data that are free to vary. For a t-test, df is usually the sample size minus 1 (n − 1).3 For a Pearson r correlation, df equals n − 2.4 For a chi-square test, df depends on the number of categories. Degrees of freedom shape the probability distribution and directly affect the p-value. A smaller df means heavier tails and a larger p-value for the same test statistic.3


Formulas used

Left-tailed p-value
p = P(X \leq x) = F(x)
Right-tailed p-value
p = P(X \geq x) = 1 - F(x)
Two-tailed p-value
p = 2 \cdot \min\!\bigl(F(x),\; 1 - F(x)\bigr)
Standard Normal CDF
\Phi(z) = \frac{1}{2}\left[1 + \operatorname{erf}\!\left(\frac{z}{\sqrt{2}}\right)\right]
Pearson r to t conversion 4
t = r\,\sqrt{\frac{df}{1 - r^{2}}}, \quad df = n - 2
t-distribution CDF (via regularized incomplete beta)
F_t(t;\nu) = 1 - \tfrac{1}{2}\, I_{\frac{\nu}{\nu + t^2}}\!\left(\frac{\nu}{2},\, \frac{1}{2}\right), \quad t \geq 0

Frequently asked questions

What is a good p value?

No p value is good in itself. A p value less than 0.05 is the most common cut-off for calling a result statistically significant.2 Some studies use stricter cutoffs like 0.01 or 0.001 for stronger evidence. The smaller the p value, the stronger the evidence against the null hypothesis, but a p value near 0.05 is only weak evidence on its own.1

Can a p value be 0?

A p value can never truly be 0. It can get extremely small, like 0.0000001, but it never reaches exactly zero. When a calculator shows 0 or "< 0.00000001," it means the value is so tiny that the tool cannot display it precisely.

What does a p value of 0.01 mean?

A p value of 0.01 means there is only a 1% chance of getting your results (or more extreme results) if the null hypothesis were true. This is considered strong evidence against the null hypothesis. At a significance level of 0.05, a p value of 0.01 would be statistically significant.

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

A one-tailed p value tests for an effect in only one direction (greater than or less than). A two-tailed p value tests for an effect in both directions. The two-tailed p value is always double the one-tailed p value for the same test statistic. Use one-tailed when you have a specific direction in mind, and two-tailed when you just want to know if there is any difference.

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

Select the Z-score tab in the calculator, type in your z-score value, choose your tail type (left, right, or two-tailed), and click Calculate. The tool uses the standard normal distribution to find the exact p value. For example, a z-score of 1.96 with a two-tailed test gives a p value of about 0.05.6

Why do I need degrees of freedom for a t-test?

Degrees of freedom tell the calculator the shape of the t-distribution to use. With fewer degrees of freedom, the distribution has fatter tails, which means larger p values for the same test statistic.3 As degrees of freedom increase, the t-distribution gets closer to the normal (z) distribution.3 For a one-sample t-test, degrees of freedom equals your sample size minus 1.3

What if my p value is exactly 0.05?

If your p value is exactly 0.05, it sits right on the borderline. Conventions differ: statistical significance is often written as p ≤ 0.05, while this calculator labels a result significant only when p is less than 0.05.1 It is best to report the exact p value and let readers decide.

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

Click the Chi-square (χ²) tab, enter your chi-square test statistic and degrees of freedom, then click Calculate. Chi-square tests are typically right-tailed, so select that option.5 The calculator finds the area under the chi-square distribution curve to the right of your test statistic.

What does it mean when the result says not significant?

When the result says Not Significant, it means your p value is 0.05 or higher. This does not prove the null hypothesis is true.1 It simply means you do not have enough evidence to reject it. Your sample might be too small, or the effect might be too weak to detect with your current data.

Does a small p value mean the effect is large?

No. A small p value only means your data would be unusual if the null hypothesis were true.1 It does not tell you how big or important the effect is.1 A very large sample can produce a tiny p value even for a very small, practically meaningless effect.1 Always look at effect size measures alongside the p value.

What significance level should I use?

The most common significance level is 0.05 (5%).2 This means you accept a 5% risk of concluding there is an effect when there really is not. Some fields like medicine or physics use stricter levels like 0.01 or 0.001. Choose your significance level before running your test, not after seeing the results.2

Why is my p value different from what I calculated by hand?

Small differences can come from rounding during hand calculations or from using z-tables that only show a few decimal places. This calculator uses precise mathematical functions to compute p values to eight decimal places, so it is generally more accurate than table lookups or rounded formulas.


Sources

  1. Wasserstein RL, Lazar NA. The ASA Statement on p-Values: Context, Process, and Purpose. The American Statistician. 2016;70(2):129-133. doi:10.1080/00031305.2016.1154108. Accessed September 28, 2026.
  2. Illowsky B, Dean S. Introductory Statistics 2e, 9.5 Additional Information and Full Hypothesis Test Examples. OpenStax. 2023;§ 9.5. Accessed September 28, 2026.
  3. Illowsky B, Dean S. Introductory Statistics 2e, 8.2 A Single Population Mean using the Student t Distribution. OpenStax. 2023;§ 8.2. Accessed September 28, 2026.
  4. Illowsky B, Dean S. Introductory Statistics 2e, 12.4 Testing the Significance of the Correlation Coefficient. OpenStax. 2023;§ 12.4. Accessed September 28, 2026.
  5. Illowsky B, Dean S. Introductory Statistics 2e, 11.3 Test of Independence. OpenStax. 2023;§ 11.3. Accessed September 28, 2026.
  6. NIST/SEMATECH e-Handbook of Statistical Methods, 1.3.6.7.1 Cumulative Distribution Function of the Standard Normal Distribution. National Institute of Standards and Technology. § 1.3.6.7.1. Accessed September 28, 2026.