Skip to main content

P-value Calculator

Calculate the p-value from a test statistic for z-tests and t-tests with one-tailed or two-tailed options.

Advertisement

The calculated z-score or t-score from your test.

Choose z-test for large samples or known σ, t-test for small samples.

For t-tests: typically sample size minus 1 (n - 1).

One-tailed tests a specific direction; two-tailed tests both directions.

AI Math Assistant

Beta

Ask questions about your calculation results

I can help you understand your results and explore your options. Try asking:

3 free questions per session

AI provides general assistance. Always verify important calculations.

About This Calculator

The p-value represents the probability of observing your results if the null hypothesis were true, serving as the cornerstone of hypothesis testing across scientific disciplines. This calculator computes p-values from test statistics like z-scores or t-values, helping you decide whether to reject or fail to reject your null hypothesis. A p-value below your significance threshold suggests the observed effect is unlikely due to chance alone.

Quick Tips

  • 1 A p-value below 0.05 is conventional but not a universal truth threshold.
  • 2 Low p-value means the result is unlikely under the null, not that it's important.
  • 3 P-values don't measure effect size — a tiny effect can have a tiny p-value.

Example Calculation

Scenario

A two-tailed test with z-score 2.15 testing whether a new drug differs from placebo.

Result

P-value: 0.0316 | Significant at alpha = 0.05 | Reject the null hypothesis

What Is a P-value?

A p-value is the probability of obtaining results at least as extreme as the observed results, assuming the null hypothesis is true. It measures the strength of evidence against the null hypothesis. A smaller p-value indicates stronger evidence that the observed effect is real, not due to random chance.

How to Interpret P-values

Common significance thresholds: p < 0.05 (statistically significant), p < 0.01 (highly significant), p < 0.001 (very highly significant). If p < α (your chosen significance level), reject the null hypothesis. However, statistical significance does not necessarily mean practical significance — always consider effect size.

One-Tailed vs Two-Tailed Tests

A one-tailed test checks for an effect in a specific direction (e.g., "is A greater than B?"). A two-tailed test checks for any difference in either direction (e.g., "is A different from B?"). Two-tailed tests are more conservative and are the default in most research. One-tailed p-values are half of two-tailed p-values.

Common Misinterpretations

A p-value is NOT the probability that the null hypothesis is true. It is NOT the probability that your results occurred by chance. It IS the probability of seeing data this extreme if the null hypothesis were true. Also, "not significant" does not mean "no effect" — it means insufficient evidence to conclude an effect.

Frequently Asked Questions