BY: Statistics Fundamentals Team
Reviewed By: Minsa A (Senior Statistics Editor)

P Value Visualizer: Understand Statistical Significance Visually

See exactly what a p-value means — no formulas required to start. Drag the test statistic, adjust the alpha level, and watch the rejection region update live. Switch between z and t distributions, toggle one-tailed and two-tailed modes, and read an automatic interpretation of your result. Download the graph as SVG for your reports.

P Value Visualizer

Decision rule p < α → reject H₀ Tail Two-tailed
p-value
Alpha (α)
Critical value
Decision
📊 Adjust the controls above to see an interpretation.

P-value visualization

Test Statistics

Test statistic
p-value (calculated)
Alpha level (α)
Critical value
Test type

Decision

Null hypothesis (H₀)
Significance
Reject H₀?
Confidence level
p < α?
Mode Pre-built real-world p-value scenarios

Click any scenario to load it into the visualizer. Each example uses realistic data from education, medicine, business, and research.

Mode Side-by-side one-tailed vs two-tailed comparison

Two-tailed

p-value
Critical values
Decision

One-tailed (right)

p-value
Critical value
Decision

Key Difference

The one-tailed p-value is exactly half the two-tailed p-value for the same test statistic and symmetric distribution.

P-Value Examples by Field

Real scenarios across medicine, education, business, and psychology — click any card to load it

View:

What Is a P-Value?

A p-value is the probability of obtaining a test statistic at least as extreme as the one observed in your sample, assuming the null hypothesis is true. It is a conditional probability — it tells you how surprising your data would be if there were actually no effect. The p-value does not tell you the probability that your hypothesis is correct, nor does it measure the size or importance of an effect.

Formally: given a test statistic T computed from your data, the p-value is P(|T| ≥ |t_observed| | H₀ is true). When this probability is small (below your chosen α), you have evidence against the null hypothesis. When it is large, your data are consistent with H₀ — but that does not prove H₀ is true.

How the Visualization Works

The visualizer draws the sampling distribution of your test statistic (normal or t). The shaded region in red represents the p-value: the area under the curve that is as extreme or more extreme than your observed test statistic. The vertical dashed line shows your test statistic, and the dotted lines show the critical values determined by your alpha level. When the test statistic falls inside the rejection region (past the critical value), the result is statistically significant at your chosen α.

P-value formula (two-tailed z-test) p = 2 × P(Z ≥ |z_observed|) = 2 × (1 − Φ(|z|))
P-value formula (one-tailed, right) p = P(Z ≥ z_observed) = 1 − Φ(z)
Decision rule Reject H₀ if p < α  |  Fail to reject H₀ if p ≥ α

What Does the Shaded Area Represent?

In the graph, the shaded area is the p-value itself expressed as a proportion of the total area under the curve. Because the curve represents a probability distribution, its total area equals 1. The red shaded tail (or tails, in a two-tailed test) represents all the outcomes that would be at least as extreme as what you observed. If you ran the experiment many times under H₀, this shaded proportion is how often you would see results this extreme just by chance.

One-Tailed vs Two-Tailed Tests

FeatureTwo-TailedOne-Tailed (Right)One-Tailed (Left)
HypothesisH₁: μ ≠ μ₀H₁: μ > μ₀H₁: μ < μ₀
Shaded regionBoth tailsRight tail onlyLeft tail only
p-value calculation2 × P(Z ≥ |z|)P(Z ≥ z)P(Z ≤ z)
Critical value (α=0.05)±1.961.645−1.645
When to useNo prior direction assumedExpect positive effectExpect negative effect
Conservative?Yes (standard default)No — easier to reject H₀No — easier to reject H₀

How to Interpret P-Values: A Decision Guide

p < 0.001
Very Strong Evidence
Highly statistically significant. Used in physics (5-sigma threshold ≈ p < 0.0000003) and stringent clinical trials.
p < 0.01
Strong Evidence
Strong evidence against H₀. Common threshold in clinical research, pharmaceutical trials, and genomics.
p < 0.05
Significant
The conventional threshold in most scientific fields, introduced by Ronald Fisher. Reject H₀ at α = 0.05.
0.05 ≤ p < 0.10
Marginal
Borderline — sometimes called "trending toward significance." Inconclusive without larger samples.
p ≥ 0.10
Not Significant
Fail to reject H₀. The data are consistent with the null hypothesis. This does not prove H₀ is true.
Context matters
Always report effect size
A tiny p-value with a negligible effect size is not practically meaningful. Report Cohen's d or η² alongside p.

Z Distribution vs t Distribution

Use the z distribution when the population standard deviation is known, or when your sample size is large (n > 30 is a common rule of thumb). Use the t distribution when the population standard deviation is unknown and you are estimating it from your sample. The t distribution has heavier tails than the normal distribution, which accounts for the extra uncertainty from estimating σ. As degrees of freedom increase, the t distribution approaches the standard normal.

Z-test: Use when σ is known. Test statistic: z = (x̄ − μ₀) / (σ / √n). The z-value follows a standard normal distribution under H₀.
One-sample t-test: Use when σ is unknown. Test statistic: t = (x̄ − μ₀) / (s / √n), where s is the sample standard deviation. Follows a t distribution with df = n − 1.
Two-sample t-test: Compares means of two independent groups. df is approximately n₁ + n₂ − 2 (equal variance assumed). See our two-sample t-test guide for full worked examples.

Common Misconceptions About P-Values

  • Misconception: "p = 0.04 means there is a 4% chance the null hypothesis is true." The p-value is not the probability that H₀ is true. It is the probability of your data (or more extreme data) given that H₀ is true.
  • Misconception: "A non-significant result proves there is no effect." Failing to reject H₀ only means you lack enough evidence — not that the effect is zero. Absence of evidence is not evidence of absence.
  • Misconception: "A smaller p-value means a bigger effect." p-values are sensitive to sample size. A tiny effect can produce p < 0.001 with a very large sample.
  • Misconception: "p = 0.049 and p = 0.051 represent fundamentally different results." These two values are nearly identical statistically. The 0.05 threshold is a convention, not a natural law.
  • Misconception: "A p-value can be greater than 1." It cannot — p-values are probabilities bounded between 0 and 1.

The SHADE Framework: Reading P-Value Graphs Step by Step

S — Select the test: Identify whether you are running a z-test (σ known), t-test (σ unknown), or another test. Choose the right distribution in the visualizer above.
H — Highlight the test statistic: Locate your computed test statistic on the x-axis. Drag the slider to match it. The vertical dashed line marks this position.
A — Adjust the alpha level: Set your significance threshold α. The critical value markers (dotted vertical lines) will move accordingly. The rejection region beyond them is shaded in red/orange.
D — Display the rejection region: The area shaded in the tail(s) is your p-value. If your test statistic falls inside the shaded rejection region, p < α.
E — Explain the conclusion: Read the interpretation panel below the graph. State your conclusion clearly: either reject H₀ with evidence of [direction], or fail to reject H₀ — the data do not provide sufficient evidence against it.

Entity & Glossary Reference

TermSymbolDefinition
P-valuepProbability of observing a test statistic as extreme or more extreme than calculated, given H₀ is true. Range: [0, 1].
Alpha levelαThe significance threshold set before the study. Typical values: 0.10, 0.05, 0.01. Represents acceptable Type I error rate.
Null hypothesisH₀The default claim of no effect or no difference. The hypothesis you are testing against.
Alternative hypothesisH₁ or HₐThe research hypothesis — the effect or difference you are trying to detect.
Test statisticz or tA standardized score computed from sample data, measuring how far the sample estimate is from the null hypothesis value.
Critical valuez* or t*The boundary of the rejection region. Determined by α and the distribution. For α=0.05 two-tailed: z* = ±1.96.
Rejection regionThe set of test statistic values that lead to rejecting H₀. Corresponds to the shaded tail area in the visualizer.
Type I errorαRejecting H₀ when it is actually true (false positive). Probability equals α.
Type II errorβFailing to reject H₀ when it is actually false (false negative).
Statistical power1 − βProbability of correctly rejecting a false H₀. Increases with sample size and effect size.
Confidence level1 − αThe proportion of confidence intervals that would contain the true parameter across repeated samples.
Effect sized, η², rA standardized measure of how large the effect is, independent of sample size. Cohen's d is common for means.

Related Topics

Sources & further reading:

Frequently Asked Questions

A p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated from your data, assuming the null hypothesis is true. It measures how surprising your sample result would be under H₀. A p-value of 0.03 means: if H₀ were true, you would only see data this extreme about 3% of the time by chance alone.

The curve drawn in the visualizer is the probability density function of your test statistic under H₀. Area under the curve equals probability. The shaded tail represents all outcomes as extreme or more extreme than your observed statistic — which is precisely what the p-value measures. A larger shaded area means a less surprising result; a smaller shaded area means your data would be unusual if H₀ were true.

A two-tailed test shades both tails of the distribution and tests whether the effect goes in either direction. A one-tailed test shades only one tail and tests for an effect in a specific direction. For a given test statistic, the one-tailed p-value is exactly half the two-tailed p-value in a symmetric distribution. Most scientific publications default to two-tailed tests because they are more conservative and do not require prior directional assumptions.

Use a z-test when the population standard deviation (σ) is known, or when your sample size is large enough (generally n > 30) that the sample SD reliably estimates σ. Use a t-test when σ is unknown and you are estimating it from your sample — which is the common situation in practice. The t-distribution has heavier tails to account for this extra uncertainty; as df increases, it converges to the standard normal. This visualizer supports both.

No. Rejecting H₀ only means your data are inconsistent with the null hypothesis at your chosen significance level. It does not prove H₁. You could still have a Type I error (falsely rejecting a true H₀), which happens with probability α. Statistical significance also does not mean practical significance — always report effect sizes and confidence intervals alongside p-values to give a complete picture of your results.

A smaller alpha (e.g. 0.01) sets a stricter threshold — the critical value moves further into the tails, so the rejection region becomes narrower. Your test statistic needs to be more extreme to achieve significance. A larger alpha (e.g. 0.10) makes it easier to reject H₀ but increases the risk of a Type I error. Use the alpha slider in the visualizer above to see exactly how the critical value lines shift as you adjust α.

No. A p-value is a probability, and probabilities are always between 0 and 1. A p-value of exactly 0 would mean the observed result is impossible under H₀; a p-value of 1 would mean every possible result is at least as extreme as what you observed. In practice, p-values reported as "0.000" in software output are not exactly zero — they are simply smaller than the software's display precision.

They are mathematically equivalent: if a 95% confidence interval does not include the null hypothesis value, then p < 0.05 for a two-tailed test. Both use α as their threshold. Confidence intervals are generally preferred in reporting because they convey both the direction and magnitude of an effect, not just a binary significant/non-significant verdict. See our Confidence Interval Visualizer for a side-by-side comparison.