P-value Calculator
Calculate the p-value from a Z-score, t-statistic, chi-square, or F-statistic. Supports all tail types with a live normal distribution curve and significance interpretation.
| Confidence | Ξ± (two-tailed) | Z critical | Ξ± (one-tailed) | Z critical |
|---|---|---|---|---|
| 90% | 0.10 | Β±1.645 | 0.10 | 1.282 |
| 95% | 0.05 | Β±1.960 | 0.05 | 1.645 |
| 99% | 0.01 | Β±2.576 | 0.01 | 2.326 |
| 99.9% | 0.001 | Β±3.291 | 0.001 | 3.090 |
What Is a P-value and How Is It Calculated?
A p-value (probability value) is the probability of obtaining test results at least as extreme as the observed results, assuming that the null hypothesis (Hβ) is true. In other words: if there really were no effect or difference in the population, how likely would it be to see data as extreme as what you observed just by chance? A small p-value means your observed data would be very unlikely under Hβ β suggesting that Hβ may be false, and that your result is statistically significant. For related statistics, see our Standard Deviation Calculator and Average Calculator.
The Standard Normal Distribution & Z-scores
Two-tailed: p = 2 Γ Ξ¦(β|Z|) where Ξ¦ is the standard normal CDF
Right-tailed: p = 1 β Ξ¦(Z)
Left-tailed: p = Ξ¦(Z)
Ξ¦(Z) = area under the standard normal curve to the left of Z. This calculator uses the error function (erf) approximation for high accuracy.
Supported Statistical Tests
Z-test
Used when population standard deviation is known, or sample size is large (n β₯ 30). Test statistic follows the standard normal distribution. Common for proportions and large samples.
T-test
Used when population std dev is unknown and estimated from the sample. Requires degrees of freedom (df = nβ1 for one-sample; df = nβ+nββ2 for two-sample). Follows t-distribution.
Chi-Square Test
Used for categorical data β goodness-of-fit tests and tests of independence in contingency tables. Always right-tailed. df = (rowsβ1)Γ(colsβ1) for contingency tables.
F-test (ANOVA)
Used to compare variances or in ANOVA to compare means across 3+ groups. Requires two degrees of freedom: dfβ (numerator) and dfβ (denominator). Always right-tailed.
Significance Levels (Ξ±) Explained
The significance level Ξ± is the threshold below which you reject the null hypothesis. It represents the probability of a Type I error β concluding there is an effect when there isn't one. Common choices:
| Ξ± Level | Confidence Level | Meaning | Common Use |
|---|---|---|---|
| 0.10 | 90% | 10% false positive rate | Exploratory research, weak evidence |
| 0.05 | 95% | 5% false positive rate | Standard threshold in most sciences |
| 0.01 | 99% | 1% false positive rate | Medical trials, high-stakes decisions |
| 0.001 | 99.9% | 0.1% false positive rate | Physics (e.g., Higgs boson detection) |
The most widely used Ξ± = 0.05 was originally proposed by Ronald Fisher in the 1920s. It means: if Hβ were true, you'd see results this extreme only 5% of the time by chance. Use our Standard Deviation Calculator to prepare your test statistic from raw data.
One-tailed vs Two-tailed Tests
Choose your tail type based on your research hypothesis before seeing the data: a two-tailed test is used when you're testing for any difference (Hβ: ΞΌ β ΞΌβ). It splits Ξ± between both tails (Ξ±/2 each). A right-tailed test is used when you hypothesize an increase (Hβ: ΞΌ > ΞΌβ). A left-tailed test is used when you hypothesize a decrease (Hβ: ΞΌ < ΞΌβ). One-tailed tests are more powerful when the direction is known but can be misleading if the direction is chosen after seeing the data β a practice called "p-hacking." Two-tailed tests are conservative and more commonly published.
Frequently Asked Questions
Common questions about p-values, hypothesis testing, and statistical significance
Z = (xΜ β ΞΌβ) / (Ο / βn) where xΜ is your sample mean, ΞΌβ is the hypothesised population mean, Ο is the population standard deviation, and n is the sample size. For a two-sample Z-test: Z = (xΜβ β xΜβ) / β(ΟβΒ²/nβ + ΟβΒ²/nβ). For a one-sample t-test (unknown Ο): t = (xΜ β ΞΌβ) / (s / βn) where s is the sample standard deviation. Use our Average Calculator to find xΜ and our Standard Deviation Calculator to find s, then plug into the formula and enter the result here.