🧪 P-Value Calculator
P-Value Calculator is a free statistics tool that computes the p-value from a Z-score for hypothesis testing. Enter your test statistic and select the tail type to get the p-value, along with significance conclusions at the 0.05 and 0.01 levels. All calculations run locally in your browser using the standard normal cumulative distribution function. Researchers, students, and analysts use it to determine whether to reject the null hypothesis.
Calculate the p-value from a Z-score (test statistic) for hypothesis testing. Supports left-tailed, right-tailed, and two-tailed tests with significance conclusions at alpha 0.05 and 0.01.
What is this tool?
A p-value is the probability of obtaining a test statistic at least as extreme as the one observed, assuming the null hypothesis (H₀) is true. In hypothesis testing you start with two competing statements: the null hypothesis H₀ (typically "no effect" or "no difference") and the alternative hypothesis H₁ ("there is an effect"). You compute a Z-score from your data, then convert it to a p-value using the standard normal distribution. A small p-value means the observed result would be unlikely under H₀, which is evidence against the null hypothesis. For example, if you are testing whether a new drug works, H₀ says the drug has no effect. If your study produces p = 0.03, it means there is only a 3% chance of seeing a result this extreme if the drug truly had no effect. By convention, when p is less than the significance level alpha (α), typically 0.05, you reject H₀ and declare the result "statistically significant." The p-value depends on both the magnitude of the effect and the sample size, so it should always be interpreted alongside confidence intervals and effect sizes. The diagram below shows the rejection regions (shaded red) in the tails of the standard normal distribution for a two-tailed test at α = 0.05. How it works
The calculator converts a Z-score into a p-value using the cumulative distribution function (CDF) of the standard normal distribution. The CDF, denoted Φ(Z), gives the probability that a standard normal random variable is less than or equal to Z. It is computed via the error function: Φ(Z) = 0.5 × (1 + erf(Z / √2)). The calculator uses the Abramowitz-Stegun approximation for erf, which is accurate to within 1.5 × 10⁻⁷. Depending on the test type selected, three formulas apply. For a left-tailed test (H₁: parameter < value), p = Φ(Z), which is the area under the curve to the left of Z. For a right-tailed test (H₁: parameter > value), p = 1 − Φ(Z), the area to the right of Z. For a two-tailed test (H₁: parameter ≠ value), p = 2 × (1 − Φ(|Z|)), which accounts for both tails simultaneously. The distinction between one-tailed and two-tailed is critical: a two-tailed test splits the rejection region alpha between both tails, making it harder to achieve significance for the same Z-score. For instance, Z = 1.96 gives p = 0.05 in a two-tailed test but p = 0.025 in a one-tailed test. After computing the p-value, the calculator compares it to the conventional thresholds α = 0.05 and α = 0.01 and reports whether the result is statistically significant at each level.Common Z-Scores to P-Value Reference Table
Quick lookup for the most frequently used Z-scores and their corresponding p-values for one-tailed and two-tailed tests.
| Z-score | One-tailed p | Two-tailed p | Significance |
|---|---|---|---|
| 1.00 | 0.1587 | 0.3173 | Not significant |
| 1.282 | 0.10 | 0.20 | Not significant |
| 1.645 | 0.05 | 0.10 | Significant (one-tailed α=0.05) |
| 1.96 | 0.025 | 0.05 | Significant (two-tailed α=0.05) |
| 2.00 | 0.0228 | 0.0455 | Significant |
| 2.326 | 0.01 | 0.02 | Significant (one-tailed α=0.01) |
| 2.576 | 0.005 | 0.01 | Significant (two-tailed α=0.01) |
| 3.00 | 0.00135 | 0.0027 | Highly significant |
| 3.291 | 0.0005 | 0.001 | Highly significant (α=0.001) |
Significance Thresholds and Critical Values
Standard significance levels (α) and their corresponding Z critical values and confidence levels.
| α (significance) | Confidence level | Z (two-tailed) | Z (one-tailed) |
|---|---|---|---|
| 0.10 (10%) | 90% | ±1.645 | ±1.282 |
| 0.05 (5%) | 95% | ±1.96 | ±1.645 |
| 0.01 (1%) | 99% | ±2.576 | ±2.326 |
| 0.005 (0.5%) | 99.5% | ±2.807 | ±2.576 |
| 0.001 (0.1%) | 99.9% | ±3.291 | ±3.090 |
If your |Z| exceeds the critical value for your chosen α, you reject H₀.
How to use
- Enter the Z-score (test statistic) you obtained from your analysis. For example, 1.96 is a common critical value.
- Select the test type: two-tailed (H₁: ≠), left-tailed (H₁: <), or right-tailed (H₁: >). This must match your alternative hypothesis.
- Click Calculate to compute the p-value using the standard normal CDF.
- Review the p-value and the significance conclusions at α = 0.05 and α = 0.01.
- Use the p-value to decide whether to reject or fail to reject the null hypothesis H₀, and report it alongside effect sizes and confidence intervals.
Frequently Asked Questions
What is a p-value?
A p-value is the probability of observing a test statistic at least as extreme as the one you got, assuming the null hypothesis is true. It quantifies how surprising your data is if there were truly no effect. A smaller p-value means stronger evidence against H₀.
What is the difference between one-tailed and two-tailed tests?
A one-tailed test checks for an effect in one direction only (either greater than or less than), putting all of alpha in a single tail. A two-tailed test checks for an effect in either direction, splitting alpha equally between both tails. For the same Z-score, a one-tailed test yields a p-value half as large as a two-tailed test.
Is p < 0.05 always significant?
By convention, p < 0.05 is called "statistically significant," but this threshold is arbitrary. It means there is less than a 5% chance of seeing your result if H₀ were true. Some disciplines use stricter thresholds like 0.01 or 0.001. Always report the exact p-value rather than just "significant" or "not significant."
Can a p-value be zero?
In theory, the p-value from a continuous distribution is never exactly zero, but it can be so small that it rounds to zero (e.g., p < 0.0001). In that case you can report it as p < 0.001. Extremely small p-values indicate overwhelmingly strong evidence against H₀.
What does it mean if my p-value is large?
A large p-value (e.g., 0.40) means your data is quite compatible with the null hypothesis — there is not enough evidence to reject it. However, this does not prove H₀ is true. It could be that your sample size is too small to detect a real effect (a lack of statistical power).
Why does Z = 1.96 give p = 0.05?
In the standard normal distribution, the area beyond ±1.96 totals exactly 5% (2.5% in each tail). So for a two-tailed test, Z = 1.96 is the critical value at α = 0.05. This is why 1.96 is one of the most frequently cited numbers in statistics.
Tips & Advice
Always decide on your significance level α before collecting data — changing it afterward introduces bias. A p-value below 0.05 is conventionally called "significant," but this threshold is arbitrary; many fields now require p < 0.01 or report exact p-values instead. Remember that statistical significance does not imply practical importance: a large sample can produce a tiny p-value for a trivially small effect. Always pair p-values with effect sizes and confidence intervals for a complete picture. Never use a two-tailed test when your hypothesis is directional (one-tailed), and vice versa. The p-value is not the probability that H₀ is true — it is the probability of the data given H₀. This tool performs Z-tests only; for t-tests use a t-distribution calculator when the sample size is small or the population standard deviation is unknown.
Related Tools
Z-Score Calculator
Calculate z-scores from raw data, mean, and standard deviation. Convert between
Normal Distribution Calculator
Calculate normal distribution probabilities instantly. Find P(X≤x), P(X≥x), P(a≤
Confidence Interval Calculator
Calculate confidence intervals for a population mean using Z or t-distribution.
Standard Deviation Calculator
Calculate standard deviation, variance, mean, and range from any data set. Free
Statistics Calculator
Free online statistics calculator. Compute mean, median, mode, range, variance,
Sources & References
- Wasserstein, R. L. & Lazar, N. A. (2016). "The ASA Statement on p-Values: Context, Process, and Purpose." The American Statistician, 70(2), 129-133. tandfonline.com.
- NIST/SEMATECH. "e-Handbook of Statistical Methods." itl.nist.gov.
- Abramowitz, M. & Stegun, I. A. (1964). Handbook of Mathematical Functions, Formula 7.1.26 (error function approximation).
Last reviewed: August 2026.
Limitations
This tool computes p-values from Z-scores for the standard normal distribution only. It does not perform t-tests, chi-square tests, F-tests, or ANOVA.
What this tool does not account for:
- Small sample sizes: when n < 30 or the population standard deviation is unknown, a t-test using the t-distribution is more appropriate than a Z-test.
- Multiple comparisons: running many tests inflates the false-positive rate. This tool does not apply Bonferroni or other corrections.
- Effect size: a small p-value does not mean the effect is large or practically important. Always consider effect sizes and confidence intervals alongside p-values.
- Assumptions: the Z-test assumes normally distributed data (or large enough sample for the CLT), independence of observations, and known population variance.
P-values should never be the sole basis for a scientific or business decision.