P-value Calculator

Compute one-tailed or two-tailed p-values for Z, t, χ², and F test statistics.
Inputs
Type of p-value
Results
p-value
CDF value F(x)
Decision (vs α)
Distribution used
Step-by-step derivation
  1. Select distribution Z (Normal) and tail two-tailed.
  2. Evaluate the cumulative probability at score , giving .
  3. Apply the selected tail rule: p = 2 × min(F, 1 − F).
  4. Compare p with α = 0.05 to determine statistical significance.
References
  • Normal CDF: Φ(z) = 0.5 × [1 + erf(z / √2)]
  • t CDF via the regularized incomplete beta function
  • χ² CDF via the regularized lower incomplete gamma function
  • F CDF via the regularized incomplete beta function

Use this P-Value Calculator to convert an already-calculated Z, t, chi-square, or F test statistic into a left-tailed, right-tailed, or supported two-tailed p-value.

Calculation Method

The calculator first evaluates the cumulative distribution function for the selected distribution.

For a cumulative probability F(x):

Left-tailed p-value = F(x)

Right-tailed p-value = 1 − F(x)

For symmetric Z and t distributions, a two-tailed p-value can be calculated as:

p = 2 × min[F(x), 1 − F(x)]

Example

For a z-score of 2.00 with a two-tailed alternative:

The upper-tail probability is approximately:

0.02275

Therefore:

p ≈ 2 × 0.02275 = 0.0455

At α = 0.05, this result would be statistically significant because 0.0455 < 0.05.

Important Note

A p-value is calculated assuming the null hypothesis and statistical model are correct. It is not the probability that the null hypothesis is true and does not measure effect size or practical importance.

Select the distribution, degrees of freedom, and tail direction that match the original statistical test. Two-tailed interpretation for chi-square and F distributions is test-specific and may not follow the same convention as symmetric Z or t tests.

Sources

More of our calculators...

t-statistic Calculator

Use our t-Statistic Calculator to compute the t value, degrees of freedom, and standard error for one-sample, two-sample, Welch, pooled, or paired t-tests.

Z-score Calculator

Use our Z-Score Calculator to standardize a value or sample mean, convert percentile to z, convert z to percentile, and view left-tail and right-tail probabilities.

Outlier Calculator (Tukey Fences)

Use our Outlier Calculator to find low and high outliers with Tukey fences and the IQR method. Get Q1, Q3, IQR, fences, counts, and sorted data fast.

Margin of Error Calculator

Use our Margin of Error Calculator to find margin of error for a mean or proportion from sample size, confidence level, and z value.

Power Analysis Calculator

Use our Power Analysis Calculator to estimate sample size per group, statistical power, and minimum detectable effect for a two-sample mean test with alpha and standard deviation.

t-test Calculator

Use our T-Test Calculator to compute t statistic, p-value, confidence interval, and conclusion for one-sample, Welch, pooled, or paired t-tests.

Variance Calculator

Use our Variance Calculator to find sample or population variance from a data set. Get mean, variance, standard deviation, SSE, range, and sorted values fast.

Percentile Calculator

Use our Percentile Calculator to find percentile values from a data set with nearest rank or linear interpolation. Supports raw numbers and value:count input.

Confidence Interval Calculator

Use our Confidence Interval Calculator to find confidence intervals for a mean or proportion with standard error, critical value, margin of error, and lower and upper bounds.