Worked example: P-value Calculator
Normal two-sided. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.
View the example inputs
- Find
- P-value from test statistic
- Reference distribution
- Standard normal z
- Test statistic
- 1.96
- Alternative hypothesis
- Two-sided
| Calculated quantity | Example result |
|---|---|
| Two-sided p-value | 0.04999579 |
| Test statistic | 1.96 |
Match a p-value to the statistic, distribution and alternative
Which tail matches the alternative hypothesis?
For a greater-than alternative, use the right tail. For a less-than alternative, use the left tail. For a two-sided alternative under these symmetric models, count results at least as far from zero in either direction.
With z = 2, the right-tail p-value is about 0.0227501 and the two-sided value is about 0.0455003. The left tail includes almost the whole curve.
How do z and Student t differ?
Choose the distribution used to compute your test statistic. Student t needs degrees of freedom and has heavier tails at small df. With t = 2 and 10 degrees of freedom, the two-sided probability is about 0.073388.
For a one-sample t-test the usual df is n − 1. Other tests can use a different formula. Match the df to your test.
Find the critical statistic for a target probability
For a two-sided normal probability of 0.05, the cutoff magnitude is about 1.95996. The rejection boundaries for that rule are ±1.95996. A left-tailed probability of 0.025 instead gives the single negative cutoff.
The inverse uses the same selected distribution as the forward calculation. Check the displayed tail probability when using an inverted result in a worked example.
Read the shaded area and tail table together
Shading shows the selected region within a bounded view of the density curve. The number uses the full theoretical region. A small tail can be too thin to see clearly, so read the numeric result for extreme statistics.
The comparison table reports all three tail calculations for the same statistic. In a two-sided test, doubling the smaller tail accounts for both directions.
Interpret evidence in the context of the test
A p-value measures tail probability under the specified null model. Report it alongside the effect estimate, its uncertainty and the study design. A small probability can occur with a small effect measured precisely, especially in a large sample.
Choose the alternative and any decision threshold as part of the analysis plan. Repeated testing and selective reporting affect how the evidence should be read.
Formula and calculation method
Right-tail p = P(T ≥ observed). Left-tail p = P(T ≤ observed). Two-sided p = 2P(T ≥ |observed|) for a symmetric null distribution.
Interpret p in the context of the test assumptions, effect estimate and study design.
Scope and Limitations
- Standard normal and Student t null distributions. These calculations use a supplied statistic and do not estimate effects or correct for multiple comparisons.
Reference Sources
- American Statistical Association: interpreting p-values
- NIST: normal distribution
- NIST: Student t distribution
Frequently asked questions
Does a p-value give the probability that the null is true?
No. It gives an area under the null distribution, conditional on the test model.
Can two-sided p be greater than one?
No. It doubles the smaller tail, whose area is at most one half.
Why can the same numerical statistic give different p-values?
The null distribution, degrees of freedom and chosen tail determine the probability.
Can the calculator derive t from raw measurements?
This tool uses a supplied statistic. Compute the test statistic and degrees of freedom for your study first.