Math calculator

p-value Calculator

The probability — and the four things it is routinely mistaken for.

The p-value, and what it does not measure

Enter a test statistic you already have.

Which alternative?

a difference in either direction.

t = 2.1000, df = 24

0.046422

Below α = 0.0500, so the null hypothesis is rejected at that level. That says the data would be unusual IF the null were true — it does not say the null is false, and it says nothing at all about how large the effect is.

p

0.046422

two-tailed

Decision at α

reject H₀

α = 0.0500

One-tailed p

0.023211

the same data, one side

Two-tailed p

0.046422

exactly twice the above

A two-tailed p is exactly double the one-tailed p. Choosing the tail after seeing which way the data went halves your p-value for free, and is the reason the direction has to be fixed in advance.

The same effect, at different sample sizes

The effect is held fixed at a fifth of a standard deviation — Cohen calls that small. Only n changes.

n = 30

Effect size d

0.20

unchanged, by construction

p at this n

0.28234

not significant

t at this n

1.095

grows with sqrt(n)

One fixed effect of d = 0.2, tested at eight sample sizes.
Sample sizetpVerdict at 0.05
n = 100.6320.54282not
n = 251.0000.32729not
n = 501.4140.16362not
n = 1002.0000.04824significant
n = 2503.1620.00176significant
n = 5004.4729.60e-6significant
n = 10006.3253.82e-10significant
n = 250010.0004.12e-23significant

Nothing about the effect changed down that column. Collect enough data and any effect that is not exactly zero becomes “statistically significant” — which is why a p-value on its own can never tell you whether a result matters.

What this tool shows

A p-value answers one narrow question and gets read as answering three others. The panel at the bottom holds an effect fixed and grows the sample: p falls from 0.53 to below 0.0001 while the effect never moves, which is the clearest possible demonstration that significance is not importance.

  • A p-value from a t or z statistic
  • One-tailed and two-tailed, side by side
  • The reject / do-not-reject decision at your α
  • The same effect tested at eight sample sizes
  • What a p-value is not — the ASA list
  • Why the tail must be chosen in advance
Effect held fixed Full double precision States what p is not ASA statement cited

A p-value is a statement about data, not about a hypothesis.

Updated 8 September 2026 · Works in any browser, no installation

A p-value is the probability of seeing data at least this extreme IF the null hypothesis were true. Every word of that matters. It is conditional on the null, so it cannot be the probability that the null is true; and it says nothing whatever about the size of an effect.

At a glance

Formula shown
For a two-tailed test, p = 2·P(T > |t|) under the null distribution — Student-t with the stated degrees of freedom, or the standard normal for a z statistic. A one-tailed p is the single-sided area, exactly half the two-tailed value.
Scenario support
Reporting the result of a t-test or z-test; checking a p-value quoted in a paper; converting a test statistic when only the statistic and df were published; understanding why a large study found significance where a pilot did not.
Educational estimate
Planning support from the values you enter — not professional advice.

What the number literally is

Read the definition slowly, because every clause is doing work.

The probability of observing data at least as extreme as yours, assuming the null hypothesis is true.

“Assuming the null is true” makes it a conditional probability, and the condition is the hypothesis you were hoping to reject. You have computed P(data | H₀). That is not P(H₀ | data), and the two can differ by orders of magnitude — confusing them is a formal fallacy with a name, the transposed conditional.

“At least as extreme” means the p-value includes outcomes you did not observe. It is a tail area, not the probability of your particular result, which for continuous data is zero.

So a p of 0.03 says: if there were genuinely no effect, data this striking would turn up about three times in a hundred. That is all it says. Whether there is an effect depends on that, on how plausible an effect was beforehand, on how the study was run, and on how many other things were tested.

The four things a p-value is not

These are misread so consistently that the American Statistical Association published a formal statement about it in 2016 — the first time in its history it had issued guidance on a specific statistical practice.

Not the probability the null hypothesis is true. p = 0.03 does not mean a 3% chance there is no effect. That number depends on how likely an effect was before you collected anything, which a p-value never sees.

Not the probability your result is a fluke. Same error, differently worded. A p-value assumes the null and asks about the data; it cannot turn round and give you a probability about the hypothesis.

Not a measure of effect size. This is the one the tool above demonstrates. A trivial effect measured on a large enough sample gives a tiny p. A large, important effect on a small sample gives a large one. p answers “could this be noise?” and never “is this big?”.

Not evidence of no effect when it is large. p = 0.4 means you did not find enough evidence, which is compatible with there being no effect and equally compatible with there being a real one you were underpowered to detect. Absence of evidence is not evidence of absence.

Why enough data makes anything significant

The table in the tool holds an effect at exactly a fifth of a standard deviation — what Cohen called small — and changes nothing but the sample size.

At n = 10 the p-value is 0.54: nothing to report. At n = 100 it is 0.048, and would be written up as significant. At n = 2500 it is about 4 × 10⁻²³ — a hundred million times past the five-sigma threshold particle physics uses to announce a discovery.

The effect was identical in all three. What changed was precision. The test statistic grows with the square root of n, so any effect that is not exactly zero will eventually cross any threshold you pick, given enough data.

Two consequences worth holding onto. In a very large study — a platform A/B test on millions of users, say — statistical significance is nearly free and tells you almost nothing; the question worth asking is whether the effect is large enough to act on. And in a small study, failing to reach significance is unsurprising and is not evidence that the effect is absent.

This is why effect sizes and confidence intervals are increasingly required alongside p-values, and why this page shows Cohen’s d beside p rather than in a footnote.

The tail choice, and the free significance it can buy

A two-tailed p is exactly twice the one-tailed p on the same side. The tool prints both so the factor of two is visible.

Two-tailed asks whether there is a difference in either direction. It is the default, and it is correct whenever a change in either direction would be interesting — which is most of the time.

One-tailed asks only about one direction, and puts the whole rejection region on that side. It is legitimate when a change the other way would be meaningless or impossible to act on, and when the direction was committed to before the data existed.

That last condition is the whole difficulty. Looking at the data, seeing which way it went, and then choosing the matching one-tailed test halves your p-value without collecting a single extra observation. A result at p = 0.08 two-tailed becomes p = 0.04 one-tailed, and crosses the line. Nothing about the evidence changed.

The practical rule: use two-tailed unless you can point to something written down beforehand that fixed the direction. A one-tailed test chosen after the fact is not a stricter analysis, it is a weaker one wearing a stricter label.

Where 0.05 came from, and what it costs

0.05 is a convention with an author and no derivation. Ronald Fisher suggested it in 1925 as a convenient round figure, explicitly as a rough guide rather than a standard, and it hardened into one.

What it means operationally: if the null is true, you will reject it 5% of the time anyway. That is the false positive rate you have agreed to accept, and it is a choice about the cost of being wrong in each direction rather than a fact about evidence.

The costs are visible in fields that need more certainty. Particle physics uses five sigma, about 0.0000003, because a false discovery is enormously expensive. Genome-wide association studies test hundreds of thousands of positions and correct accordingly, because at 0.05 they would report thousands of false hits by construction.

The multiple comparisons problem follows directly. Run twenty independent tests at 0.05 and there is a 64% chance at least one comes back significant with nothing there at all. Run a hundred and it is over 99%. This is why the number of tests performed — including the ones not reported — changes what a single p-value means, and why corrections such as Bonferroni exist.

It is also why a p just under the line deserves less confidence than it usually gets. p = 0.049 and p = 0.051 are the same evidence. Only one of them gets published.

How p-values get manufactured

Not by fraud, mostly. By ordinary, defensible-looking decisions taken after the data arrives.

Optional stopping. Checking the p-value as data comes in and stopping when it drops below 0.05. This inflates the false positive rate dramatically — with enough peeking you will eventually cross the line even when nothing is there, because the p-value wanders.

Choosing the analysis afterwards. Trying several outcome measures, or several ways of excluding outliers, and reporting the version that worked. Each attempt is a test; only one is reported.

Subgroup hunting. No overall effect, but an effect among women over 50 in the second cohort. With enough subgroups something always appears.

HARKing — hypothesising after the results are known — then presenting the finding as though it had been predicted. This converts an exploratory result into a confirmatory-looking one, and the p-value attached to it no longer means what it claims.

The defences are procedural rather than statistical: decide the analysis before seeing the data, pre-register it where you can, report every test you ran, and treat anything found by exploration as a hypothesis to test on new data rather than a result.

What to report alongside it

Nobody serious argues for abolishing p-values. The argument is that a p-value alone is not a result.

A confidence interval. It contains the p-value’s information — if the null value is outside the 95% interval, p is below 0.05 — and adds what p omits: the size of the effect and how precisely it was measured. “The difference was 3.2 points, 95% CI 0.4 to 6.0” says everything “p = 0.03” says and more.

An effect size. Cohen’s d, a risk ratio, a percentage change — something in units a reader can judge. This is the quantity that does not move with sample size.

The sample size and the power. A non-significant result from a study with 20% power is almost uninformative, and the reader cannot know that without being told.

How many tests were run. One p of 0.03 out of one test is not the same evidence as one p of 0.03 out of forty.

The honest short form: report the estimate, its interval, and the p-value — in that order of prominence.

Sources and methodology

The formal statements behind the cautions on this page.

Method. Tail areas come from this site’s higher-precision distribution engine rather than the one behind the Standard Deviation Calculator. That older engine uses the Abramowitz & Stegun 7.1.26 error function, whose maximum error is about 1.5 × 10⁻⁷ — fine for a confidence interval printed to two decimals, and four orders of magnitude too coarse for a page whose entire answer is a small tail probability. The replacement routes through the regularised incomplete gamma and beta functions, iterated to 1e-15, and is asserted against published table values and against the older implementation to prove the improvement is real rather than claimed. Tail areas are taken from survival functions evaluated directly, never as 1 − CDF: past about |t| = 8 that subtraction underflows to a hard zero, and the first version of this page duly reported p = 0 for the n = 2500 row rather than 4 × 10⁻²³. The sample-size table is computed live from the same engine, not hardcoded. That engine is verified on every change against 155 assertions, including the identity that a two-tailed p is exactly twice the one-tailed p on the same side. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

Confidence IntervalIntervals for a mean or a proportion using t at every sample size and Wilson rather than the textbook Wald formula — with both methods shown, because Wald returns [0,0] at zero successes.
Critical ValueCritical values for z, t, chi-square and F at any alpha and any degrees of freedom — with one- and two-tailed values shown together, because reading the wrong column of a printed table is the classic error.
t-testOne-sample, two-sample and paired t-tests defaulting to Welch, with Student's pooled version printed beside it — and a warning when the two disagree on the verdict.
z-testOne-proportion, two-proportion and known-sigma mean z-tests — with the t-test computed beside the mean case, because for a mean the z-test needs a σ almost nobody actually has.
Margin of ErrorMargin of error for a percentage or an average, shown across seven sample sizes so the square-root law is visible — every doubling buys exactly 29.3%, never more.
Z-ScoreA z-score from your data or from a known mean and SD — with the normal-table percentile checked against the share of your data that actually falls below it, and a warning when they disagree.

More in Math, or browse all calculators.

Educational use disclaimer

An educational tool. A p-value is a statement about data under an assumed null hypothesis, not about whether that hypothesis is true, and not about whether an effect is large enough to act on.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 8 September 2026

  1. Published a p-value calculator organised around the four things a p-value is not, following the ASA's 2016 statement — the only time it has issued guidance on a single statistical practice.
  2. The sample-size panel holds an effect fixed at d = 0.2 and grows n: p falls from 0.54 at n = 10 to 4e-23 at n = 2500 while the effect never moves. That is significance appearing from nothing but sample size, shown rather than described.
  3. Tail areas come from survival functions rather than 1 − CDF. The first version reported p = 0 for the n = 2500 row, because Φ rounds to 1.0 past about z = 8 and the subtraction has nothing left.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.