Skip to main content

Most p-value calculators return zero for p-values that are not zero

We entered the same Z-score into thirteen online calculators. Eleven printed a hard zero for a p-value of roughly 2.3 × 10⁻¹⁹. Two capped their display honestly. This page shows what each one returned, explains the arithmetic that causes it, and gives you everything you need to repeat the test yourself.

Tested 14 August 2026. We build one of the calculators in this table, so treat this as an interested party's account — and check it, which takes about ten seconds per tool.

The test

One input, chosen because every general-purpose p-value calculator accepts it: Z = 9, two-tailed.

The correct answer is 2.257177 × 10⁻¹⁹ (one-tailed: 1.128588 × 10⁻¹⁹). That number is small, but it is entirely ordinary as far as a computer is concerned — double-precision floating point handles values down to about 10⁻³⁰⁸, so this is nowhere near any hardware limit. Any tool that can represent 0.05 can represent this.

We verified it two independent ways: SciPy 1.17's norm.sf(), and a from-scratch recomputation at 50 decimal digits using mpmath's complementary error function. They agree to every digit shown.

What each calculator printed

CalculatorPrinted for z = 9
Social Science Statistics0.000000Zero
Stats Kingdom0Zero
Omni Calculator0Zero
CriticalValueCalculator.com
redirects to Omni Calculator
0Zero
GigaCalculator
reached via proportions; its own reported z = 19.80
0Zero
ezcalc.me
with precision set to 20 decimal places
0.000000000000000Zero
p-valuecalculator.com0.00000Zero
8gwifi.org0.000000Zero
Sogolytics0Zero
z-table.com
chi-square only; tested with χ² = 100, df = 2
0Zero
365 Data Science
at 9 decimal places, its maximum
0.000000000Zero
GraphPad QuickCalcsless than 0.0001Capped
statcalc.net< 0.000001Capped
This calculator2.257177e-19Exact

11 of the thirteen returned a hard zero. 2 capped their display.

Two notes on the table. CriticalValueCalculator.com redirected to Omni Calculator when we opened it and returned the identical result — we have listed both, but they appear to be one engine rather than two. And z-table.com's calculator only accepts chi-square, so it was tested with χ² = 100 at 2 degrees of freedom, where the correct answer is 1.928750 × 10⁻²².

Why it happens

Stats Kingdom deserves credit here, because it prints its own working — and the working contains the bug in full view:

P = P(Z < 9) = 1
1 - P = P(Z > 9) = 0
P-value = 2 * Min[P, 1-P]
P-value = 2 * Min[1, 0]
P-value = 2 * 0 = 0

Line one is already wrong. P(Z < 9) is not 1 — it is 0.99999999999999999989. But in 64-bit floating point there is no representable number between that value and 1.0, so it rounds to exactly 1. Line two then subtracts, and the entire tail disappears. Everything after that is arithmetic on a value that has already been destroyed.

This is not a Stats Kingdom problem. It is what almost every implementation does, and Stats Kingdom is simply the only one in our sample honest enough to show you. The fix is to compute the tail area directly — a survival function — rather than deriving it by subtracting from one. Our methodology page documents how each distribution here does that.

Capping is fine. Zeroing is not.

The most important line in the table is the one separating two behaviours that look similar and are not:

  • Capping — GraphPad QuickCalcs returns less than 0.0001; statcalc.net returns < 0.000001. Both statements are true. The tool is telling you it will not report beyond its resolution, and you can act on that accurately.
  • Zeroing — the other eleven print a specific number, 0, that cannot exist. A p-value is a probability of data at least this extreme under the null; under a continuous distribution that is always positive.

We want to be plain about this because it would be easy to write a version of this page where all thirteen competitors fail. That version would be wrong. GraphPad is the most recognised name here and it does not misreport anything — it declines to answer beyond a threshold, which is a legitimate and arguably conservative engineering choice. Where it does differ from this calculator is elsewhere — interpretation, effect sizes and intervals alongside every result — and our comparison with GraphPad sets that out, including the cases where GraphPad is the better tool.

The sharpest case in the other direction is ezcalc.me, which has a Precision: N decimal places field. We set it to 20 — explicitly asking for twenty digits — and it returned 0.000000000000000. That is not a display decision. The value was gone before formatting ever ran.

The bug is being handed out as sample code

The most consequential thing we found was not a wrong number. It was a wrong number being taught.

365 Data Science's calculator — a data science education company — generates a Python snippet alongside every result, labelled "The following Python code should provide p-value using the input data you entered." For z = 9 it produces this:

from scipy.stats import norm
# Calculate the p-value
z_score = 9
p_value = 2 * (1 - norm.cdf(abs(z_score)))
# Print the p-value
print("p-value:", p_value)

We ran it. It prints 0.0.

The painful detail is that the snippet already imports the library that solves the problem. SciPy ships norm.sf(), which computes the upper tail directly with a dedicated algorithm. Changing one line — p_value = 2 * norm.sf(abs(z_score)) — returns 2.2571768119076647e-19, the correct answer, from the same import.

A wrong calculator misleads someone once. A wrong snippet gets copied into their analysis and keeps being wrong long after they have closed the tab.

The failure starts before the zeros

Zeros are easy to spot. The more interesting problem is what happens just short of them.

z = 8, one-tailedValue
Correct6.220961e-16
Computed as 1 − CDF6.661338e-16

That is roughly a 7% error, in a result that looks entirely reasonable on screen. Nothing about it invites suspicion. The zeros at z = 9 are not a separate bug — they are the same loss of precision, continued two steps further until it becomes impossible to miss.

When this actually matters

Honestly: for most work, it does not change your decision. If a calculator tells you p = 0 and the truth is 2.3 × 10⁻¹⁹, you were going to reject the null either way, and no conclusion turns on the difference.

It matters when the magnitude is the finding:

  • Genome-wide association studies, where significance thresholds sit around 5 × 10⁻⁸ and effects are ranked by p-value across millions of tests.
  • Physics, where the five-sigma convention is a statement about a tail probability near 3 × 10⁻⁷ and "how far past it" is the result.
  • Anything you report rather than merely act on. Writing p < 0.0001 in a paper is fine. Writing p = 0 is not, and a reviewer who notices will reasonably wonder what else was taken on trust.

Method, so you can repeat it

  • Each calculator was opened in a normal browser and given z = 9, two-tailed, with default settings unless noted in the table.
  • The Printed column is verbatim — the exact string the tool displayed.
  • GigaCalculator takes two proportions rather than a Z-score, so it received n = 10,000 per group at 0.10 and 0.20. It reported its own z as 19.802951 and a p-value of 0. The correct two-tailed value there is 2.807551 × 10⁻⁸⁷.
  • z-table.com's calculator accepts chi-square only, so it was given χ² = 100 at df = 2 (correct answer 1.928750 × 10⁻²²).
  • Where a tool exposed a precision setting we set it to its maximum: 20 decimal places on ezcalc.me, 9 on 365 Data Science. Both still returned zero.
  • Reference values: SciPy 1.17 sf(), cross-checked against mpmath at 50 decimal digits.
  • Tested 14 August 2026. If a tool has since been fixed, we would like to know — the table should be updated, not defended.

What we did not test

One calculator is missing from the table: calculatequick.com, where a full-screen advert repeatedly prevented us from entering a value. We make no claim about it either way. If you can get an input into it, the reference values below are all you need.

Reference values, if you want to test more tools

InputCorrect p-value1 − CDF gives
z = 8, one-tailed6.220961e-166.661338e-16 (7% out)
z = 9, one-tailed1.128588e-190
z = 9, two-tailed2.257177e-190
z = 10, two-tailed1.523971e-230
t = 20, df = 100, two-tailed9.994268e-370
χ² = 100, df = 21.928750e-220
χ² = 300, df = 208.082850e-520
F = 200, df = (1, 50)4.192028e-190
r = 0.99, n = 50, two-tailed1.720759e-420

These are free to reproduce with attribution. If you run a calculator we have not covered and find a result worth adding — in either direction — send it and we will update the table with credit.

Frequently asked questions

Can a p-value ever be exactly zero?

No. A p-value is the probability of observing data at least as extreme as yours when the null hypothesis is true. Under a continuous distribution that probability is always positive, however small. It can be too small for a computer to store as a normal floating-point number, and it can be too small to matter in practice, but it is never zero. A calculator printing 0 is asserting something that cannot be true.

Why do so many calculators return zero for large test statistics?

Because they compute the upper tail as 1 − CDF. In 64-bit floating point there is no representable number between 0.9999999999999999 and 1, so once the CDF rounds up to exactly 1 the subtraction returns exactly 0 and the entire tail is lost. The fix is to compute the tail area directly with a survival function rather than deriving it by subtraction.

Is "p < 0.0001" a bug too?

No, and the distinction matters. Capping the display at a threshold is an honest engineering choice — the tool is telling you it will not report beyond its resolution, which is true and harmless. Printing 0 is different: it states a specific value that is false. GraphPad QuickCalcs and statcalc.net cap. The other eleven tools we tested zero.

Does this matter for ordinary p-values?

Rarely for the decision, but the imprecision starts well before the zeros appear. At z = 8 the naive method returns 6.661338e-16 where the correct value is 6.220961e-16 — about 7% out, with nothing on screen to suggest a problem. For most work that is irrelevant, because you rejected the null either way. It matters when the exact magnitude is the finding: genome-wide association studies, physics discovery thresholds, and any analysis where you report the p-value itself rather than a verdict.

How can I check these results myself?

Open any calculator in the table, enter a Z-score of 9, and read what it prints. The whole test takes about ten seconds per tool. For the reference values, scipy.stats.norm.sf(9) in Python returns 1.128588e-19 for the one-tailed case; we independently re-derived every figure at 50 decimal digits with mpmath and the two agree to every printed digit.