About the P-Value Calculator
Enter your test statistic, say whether it is a z or t value, give the degrees of freedom for t, and choose a one- or two-tailed test. The calculator returns the p-value and compares it with your significance level.
A small p-value is evidence against the null hypothesis, but it does not give the probability the null is true and it says nothing about the size or importance of an effect. The result uses exact distribution functions rather than table look-up, so it works for any statistic and degrees of freedom.
How to Use the P-Value Calculator
- Choose z or t and enter the statistic.
- Enter degrees of freedom for a t test.
- Choose the type of tail and significance level.
- Read the p-value and decision.
Formula and Method
Two-tailed
p = 2 × P(T ≥ |statistic|)
One-tailed
p = P(T ≥ statistic) or P(T ≤ statistic)
Worked Example
A z-test
Input: z = 2.1, two-tailed
- P(Z ≥ 2.1) = 0.01786
- p = 2 × 0.01786
Result: p = 0.0357.
Frequently Asked Questions
What is a significant p-value?
By convention p < 0.05, but the threshold should be set in advance and fit the context.
One-tailed or two-tailed?
Use two-tailed unless you had a directional hypothesis before seeing the data.
Does p = 0.04 mean a 4% chance the null is true?
No. It is the chance of data this extreme if the null were true.
Does it support chi-square or F tests?
No. This calculator covers z and t statistics.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.