One Calculator Logo One Calculator
Mathematics & Statistics • Formulas shown

P-Value Calculator

Quick Answer

The p-value is the probability of seeing a result at least as extreme as yours if the null hypothesis were true. A z-score of 2.1 gives a two-tailed p-value of 0.0357, which is below α = 0.05, so you would reject the null hypothesis at that level.

Result

The p-value is 0.03573

Decision at α = 0.05Reject the null hypothesis
Testz, two-tailed
Step-by-step calculation
  1. p = 2 × P(T beyond |statistic|)
  2. p = 3.5729e-2

A small p-value means data this extreme would be unlikely if the null hypothesis were true. It is not the probability that the null hypothesis is true.

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

  1. Choose z or t and enter the statistic.
  2. Enter degrees of freedom for a t test.
  3. Choose the type of tail and significance level.
  4. 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

All Math & Statistics 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.