# P-value Calculator

> Get the exact p-value for a z, t, chi-square or F test statistic, one- or two-tailed, and see whether it is significant at your chosen α.

Category: Statistics & probability · Applies to: Worldwide · Last updated: 2026-10-29
Interactive calculator: https://calculators.geekmidst.com/calculators/p-value-calculator

The p-value is the probability, if the null hypothesis were true, of a test statistic at least as extreme as the one you observed. Enter the statistic, its distribution and degrees of freedom.

Also called: P-value from test statistic, Significance calculator.

## Inputs
- Distribution of the statistic (options: z (standard normal), Student’s t, Chi-square (χ²), F; default t)
- Test statistic (default 2.5)
- Degrees of freedom (default 20)
- Denominator degrees of freedom (default 10)
- Tail (options: Two-tailed, Right-tailed, Left-tailed; default two)
- Significance level (α) (unit %; default 5)

## Results
- p-value
- p-value (full precision)
- Decision
- Distribution used

## Formula

```
Right tail p = P(X ≥ x);  left tail p = P(X ≤ x);  two-tailed p = 2 × min(left, right)
```

Where:
- X: the test statistic’s distribution under the null hypothesis
- x: the observed statistic

## Worked example
1. Under the null hypothesis the statistic follows a t-distribution with 20 degrees of freedom.
2. P(T ≥ 2.5) = 0.010617.
3. Two-tailed: p = 2 × 0.010617 = 0.021234, which is below α = 0.05.

**Result:** A t statistic of 2.5 with 20 degrees of freedom gives a two-tailed p-value of 0.0212, significant at the 5% level.

## What the result means

A small p-value means the data would be surprising if the null hypothesis were true. It is not the probability that the null hypothesis is true, and it says nothing about how large or important the effect is, so report an effect size or confidence interval alongside it.

## Assumptions and limits
- The statistic really follows the chosen distribution under the null hypothesis (the test’s own assumptions hold).
- Two-tailed p for chi-square and F doubles the smaller tail; most chi-square and F tests are right-tailed.
- Does not compute the test statistic from raw data; use the matching test first.

## Questions

### One-tailed or two-tailed?

Use two-tailed unless you decided before seeing the data that only one direction matters. A one-tailed p is half the two-tailed p for symmetric tests, which is why switching after the fact is not legitimate.

### Which tail for chi-square and F tests?

Goodness-of-fit, independence and ANOVA tests are right-tailed: large values are evidence against the null.

## Related calculators
- [Z-score Calculator](https://calculators.geekmidst.com/calculators/z-score-calculator)
- [Confidence Interval Calculator](https://calculators.geekmidst.com/calculators/confidence-interval-calculator)
- [Standard Deviation Calculator](https://calculators.geekmidst.com/calculators/standard-deviation-calculator)

Source: GM¹X CalcVerse — https://calculators.geekmidst.com/calculators/p-value-calculator
