P-Value Calculator
Convert z, t, F, and chi-square statistics to p-values with full step-by-step working — free, instant, no paywall.
Calculating...
Select a distribution, enter the test statistic (and degrees of freedom if needed), then click Calculate P-Value.
What Is a P-Value?
A p-value is the probability of observing a test statistic at least as extreme as the one computed from your sample data, assuming the null hypothesis is true. It does not tell you the probability that the null hypothesis is true or false — it is purely a measure of how surprising your data would be if nothing were happening.
When you run a hypothesis test, you collect data and calculate a single number — the test statistic — that summarises how far your sample is from what the null hypothesis predicts. The p-value then answers: if the null hypothesis were correct, how often would random chance produce a result this extreme or more extreme? A small p-value means your data would rarely arise by chance alone, which is taken as evidence against the null.
The conventional threshold is p < 0.05, often called the α (alpha) level or significance level. If your p-value falls below this threshold, the result is labelled statistically significant. However, this threshold is a social convention, not a physical law. A p-value of 0.049 and 0.051 are functionally identical in practice — the difference is noise in your sample, not a categorical change in what the data mean.
How to Find a P-Value from a Z-Score
A z-score arises when you know the population standard deviation (or have a large enough sample that the standard error is estimated precisely). The test statistic follows the standard normal distribution N(0, 1).
The p-value is computed from the cumulative distribution function Φ(z). for a right-tailed test you want P(Z ≥ z) = 1 − Φ(z). for a left-tailed test you want P(Z ≤ z) = Φ(z). for a two-tailed test you want P(|Z| ≥ |z|) = 2 × min(Φ(z), 1 − Φ(z)).
Φ(z) is computed via the complementary error function: Φ(z) = ½ × erfc(−z / √2). As an example: z = 1.96 gives Φ(1.96) ≈ 0.9750 and a two-tailed p-value of 2 × (1 − 0.9750) = 0.0500. This is why z = 1.96 is the classic critical value at the 5% level.
How to Find a P-Value from a t-Statistic
The Student's t-distribution is used when the population standard deviation is unknown and must be estimated from the sample. The shape of the distribution depends on the degrees of freedom (df), which equals n − 1 for a one-sample test or n₁ + n₂ − 2 for an independent two-sample test.
The two-tailed p-value for a t-statistic uses the regularised incomplete beta function:
x = df / (df + t²)
p (two-tailed) = I(x; df/2, 1/2)
As an example: t = 2.064 with df = 24 gives a two-tailed p-value of approximately 0.0500. The critical t-value at 5% with 24 df is exactly t₀.₀₅ = 2.064. With more degrees of freedom the t-distribution approaches the normal, so the critical value approaches z = 1.96.
How to Find a P-Value from an F-Statistic
The F-distribution arises in ANOVA and regression analysis when comparing variance ratios. It has two degrees of freedom parameters: df₁ (numerator) and df₂ (denominator). Because the F-statistic is always non-negative and the distribution is right-skewed, hypothesis tests on F are always right-tailed.
The p-value uses the regularised incomplete beta function with the transformation:
x = (df₁ × F) / (df₁ × F + df₂)
CDF = I(x; df₁/2, df₂/2)
p (right-tail) = 1 − CDF
As an example: F = 3.89 with df₁ = 2 and df₂ = 27 gives a right-tail p-value of approximately 0.033, indicating the between-group variance is significantly larger than within-group variance at the 5% level.
How to Find a P-Value from a Chi-Square Statistic
The chi-square (χ²) distribution is used in goodness-of-fit tests, tests of independence in contingency tables, and tests on variance. Like F, the statistic is always non-negative, so the p-value is typically taken from the right tail.
The chi-square CDF equals the lower regularised incomplete gamma function P(a, y), where a = df/2 and y = χ²/2:
a = df / 2
y = χ² / 2
CDF = P(a, y) [lower regularised incomplete gamma]
p (right-tail) = 1 − P(a, y)
As an example: χ² = 7.815 with df = 3 gives a right-tail p-value of approximately 0.050, which is the critical value for a goodness-of-fit or independence test at the 5% level with 3 degrees of freedom.
Common Critical Values and P-Values
Quick reference for common significance thresholds across all four distributions. Click any row's values into the calculator using the Quick Load presets above.
| Distribution | Statistic | DF(s) | Tail | p ≈ |
|---|---|---|---|---|
| Z | 1.645 | — | Right | 0.05 |
| Z | 1.96 | — | Two | 0.05 |
| Z | 2.576 | — | Two | 0.01 |
| t | 2.064 | 24 | Two | 0.05 |
| t | 2.797 | 24 | Two | 0.01 |
| F | 3.89 | 2, 27 | Right | 0.033 |
| χ² | 3.841 | 1 | Right | 0.05 |
| χ² | 7.815 | 3 | Right | 0.05 |
P-Value Calculator FAQ
What does a p-value tell you?
A p-value tells you how often random chance would produce data as extreme as yours, assuming the null hypothesis is true. A small p-value (typically below 0.05) is taken as evidence against the null, not proof that the alternative is correct. A large p-value simply means your data are consistent with the null — it does not confirm the null is true.
How do I convert a z-score to a p-value?
For a right-tailed test, the p-value is 1 − Φ(z), where Φ is the standard normal CDF. For a two-tailed test it is 2 × (1 − Φ(|z|)). This calculator uses the error function internally: Φ(z) = ½ × erfc(−z / √2). For z = 1.96, the two-tailed p-value is approximately 0.0500.
What is the difference between a one-tailed and two-tailed p-value?
A one-tailed (left or right) p-value tests a directional hypothesis — for example, that a treatment increases a response. A two-tailed p-value tests the non-directional hypothesis that the statistic differs from the null in either direction. The two-tailed value is always exactly twice the smaller of the two one-tailed values for symmetric distributions like Z and t.
What does p < 0.05 mean?
It means that, under the null hypothesis, the probability of observing a result as extreme or more extreme than yours is less than 5%. By convention, researchers treat this as sufficient evidence to reject the null. The threshold of 0.05 was proposed by Ronald Fisher in the 1920s and has persisted, though many fields now prefer 0.01 or report the exact p-value rather than comparing to a fixed threshold.
Can a p-value be greater than 1?
No. A p-value is a probability and must lie between 0 and 1 inclusive. A p-value of exactly 0 would mean the result is impossible under the null, while a p-value of 1 would mean the result is as expected as possible. In practice, p-values near 0 arise for very large test statistics and p-values near 1 arise when the observed statistic is exactly at the null expectation.
Why are two-tailed p-values not used for F and chi-square tests?
The F and chi-square distributions are inherently right-skewed and only take non-negative values. Their test statistics measure magnitudes (variance ratios, goodness-of-fit discrepancies) rather than signed differences, so the concept of a symmetric two-tailed rejection region does not apply. The right-tail probability is used instead: a large F or χ² value indicates a surprising deviation from the null.
What degrees of freedom should I use for a t-test?
For a one-sample t-test or paired t-test: df = n − 1, where n is the number of observations (or pairs). For an independent two-sample t-test with equal variances (pooled): df = n₁ + n₂ − 2. For Welch's t-test (unequal variances): df is estimated from the Welch–Satterthwaite equation, which our t-test calculator computes automatically.
Related Calculators
Z-Score Calculator
Standardise any value using mean and standard deviation
t-Test Calculator
One-sample, two-sample and paired t-tests with full output
Normal Distribution Calculator
CDF, PDF and area under the curve for any normal distribution
Standard Deviation Calculator
Population and sample standard deviation with variance
Confidence Interval Calculator
95% and 99% confidence intervals for means and proportions
Sample Size Calculator
Required n for a given power, alpha, and effect size