Skip to content

P-Value Calculator

Convert a test statistic into a p-value for z, t, chi-square and F tests, with a significance check at α = 0.1, 0.05, 0.01 and 0.001.

MathUpdated Free · No sign-up

How to use the P-Value Calculator

  1. Pick what you want to work out using the tabs: z-score, t-score, Chi-square or F-statistic.
  2. Enter z-score.
  3. Choose Test type.
  4. Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
  5. Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.

What a p-value is

A p-value is the probability of getting a test statistic at least as extreme as the one you observed, assuming the null hypothesis is true. A small p-value means your data would be surprising if there were really no effect, which counts as evidence against the null hypothesis.

It is not the probability that the null hypothesis is true, and it says nothing about how large or important an effect is. A tiny, unimportant difference can produce a very small p-value in a huge sample.

One-tailed or two-tailed?

  • Two-tailed: you are testing for a difference in either direction (“is the mean different from 100?”). The p-value counts both tails, so it is twice the smaller tail area. This is the usual default.
  • Right-tailed: you only care whether the statistic is larger (“is the new drug better?”).
  • Left-tailed: you only care whether it is smaller.

Choose the direction before looking at the data. Switching to a one-tailed test after seeing the result halves the p-value and is not legitimate.

Which distribution?

Statistic Typical use Inputs
z Large samples, proportions, known σ z-score
t Means with estimated SD, regression coefficients t-score, degrees of freedom
χ² (chi-square) Goodness of fit, independence in contingency tables χ², degrees of freedom
F ANOVA, comparing variances, overall regression fit F, df₁ and df₂

Chi-square and F tests are almost always right-tailed, because larger values mean a worse fit or bigger differences between groups, so the calculator uses the right tail for those two.

Worked examples

  • z = 1.96, two-tailed: each tail holds 0.025, so p ≈ 0.0500.
  • t = 2.086 with 20 degrees of freedom, two-tailed: p ≈ 0.05. This is the familiar critical value from t-tables.
  • χ² = 3.841 with 1 degree of freedom: p ≈ 0.05.
  • F = 3.49 with (2, 20) degrees of freedom: p ≈ 0.05.

Interpreting the result

Compare p with the significance level α you chose in advance, often 0.05. If p < α, reject the null hypothesis; otherwise you do not have enough evidence to reject it, which is not the same as proving it true. Report the exact p-value rather than just “significant”, and pair it with an effect size or confidence interval. When you run many tests, some will fall below 0.05 by chance alone, so consider a correction such as Bonferroni.

Frequently asked questions

What does p < 0.05 mean?

If the null hypothesis were true, results at least this extreme would occur less than 5% of the time. By the common convention the result is called statistically significant.

Should I use a one-tailed or two-tailed test?

Use two-tailed unless you decided before collecting data that only one direction matters. A two-tailed p-value is twice the one-tailed value for symmetric tests.

How do I get a p-value from a t-score?

You need the t-score and the degrees of freedom (often n − 1). The calculator finds the tail area of the t distribution for you.

Is a smaller p-value a bigger effect?

Not necessarily. P-values depend on sample size as well as effect size, so a tiny effect can be highly significant in a very large sample.