On the line of symmetry zeta becomes a real function you can plot, and every sign change is a zero. Find the first ones yourself, then compute thousands the way Riemann secretly did
On the line Re s = ½, one twist of phase turns ζ into an ordinary real function of a real variable: a curve you can plot. Wherever the curve crosses the axis there is a zero of ζ, exactly on the line. So zeros on the critical line can be hunted with nothing more than a change of sign.
Press Play and watch the path on the left pass through the origin each time the curve on the right crosses the axis. Then tap the curve once above the axis and once below, and step the bracket shut on a zero.
Tap the right-hand plot at a point where the curve is above the axis and at a point where it is below, or press the first button.
Left: ζ(½ + it) as t rises, with the last five mean spacings of its path; the dashed arc is the turn through θ(t), shown on the dial, that carries it to the real number Z(t). Right: Z(t) against t. Drag that plot sideways to pan (up to t = 10,000) and tap it to place the ends of a bracket. Every value in the hunt and in the readouts is an Euler–Maclaurin sum of about t terms in double precision; above t = 200 the curve itself is drawn with the Riemann–Siegel formula of the third demo, which agrees with it to better than a hundred-millionth. A bracket is finished when it is 10−9 wide.
The functional equation ζ(s) = χ(s) ζ(1 − s) reflects s through the point ½. On the critical line the reflection of s = ½ + it is its own complex conjugate, and ζ takes conjugate values at conjugate points, so there the equation reads
ζ(½ + it) = χ(½ + it) · (the conjugate of ζ(½ + it)), with |χ(½ + it)| = 1.
A number of size 1 is a pure rotation. Write it as χ(½ + it) = e−2iθ(t), which defines the Riemann–Siegel angle θ(t) = arg Γ(¼ + it/2) − (t/2) ln π, close to (t/2) ln(t/2π) − t/2 − π/8 once t is large. Then Z(t) = eiθ(t) ζ(½ + it) is equal to its own conjugate: it is real. Half of the rotation that the functional equation applies is exactly what is needed to turn ζ onto the real axis. The function carries G. H. Hardy’s name, although Riemann used it first. See also: The Mirror at One Half.
Z is continuous, and |Z(t)| = |ζ(½ + it)|. If Z is positive at one height and negative at another, the intermediate value theorem puts a zero of Z between them, and that is a zero of ζ with real part exactly ½, not approximately ½. This is what makes numerical work on the line possible at all: a computation only has to get two signs right, and it has shown that a zero lies on the line. Finding a zero by searching the plane could never show that its real part is ½ rather than ½ + 10−30.
What a sign change cannot do is say that there are no other zeros. A zero off the line would not appear on this curve at all, and two zeros very close together on the line can be stepped over by a grid. To rule both out, the zeros found have to be counted against an independent count of all the zeros in the strip up to that height. See also: Proving There Are No Others.
The zeros crowd together as t grows: near height t their mean spacing is 2π/ln(t/2π), which is the ruler drawn on the plot. That infinitely many zeros lie on the line is a theorem of Hardy (1914). Atle Selberg proved in 1942 that a positive proportion of all the non-trivial zeros are on it, Norman Levinson in 1974 that more than a third are, and Brian Conrey in 1989 that more than two fifths are. The Riemann hypothesis says all of them are. That is where human methods stood when the hypothesis was proved in November 2026, by a machine-checked proof (See also: What Is Actually Known).
Slide back to the start and scroll forward: green lines and pink zeros take turns. Then press “First failure” and “Next failure” to see the rule break, and watch the counts underneath.
The same test run over the first 5,000 Gram points, a few blocks per frame.
At a Gram point ζ is real. Its values are spread widely, but they average to 2, so most are positive.
Gram points are the heights gn where θ(gn) = nπ; there Z(gn) equals (−1)n ζ(½ + ign), so at good points the dots alternate above and below the axis and Z must cross between them. The numbers along the top count the zeros in each interval. Below t = 200 the values are Euler–Maclaurin sums and above it Riemann–Siegel sums, in double precision. Zeros are found from sign changes on a grid of six points per interval, refined whenever a block comes up short. The cap is n = 5,000, about t = 5,449.
Jørgen Gram published the first table of zeros in 1903: fifteen of them, computed by Euler–Maclaurin summation. He noticed that they alternate with the heights now called Gram points, where θ(gn) = nπ. At a Gram point the twist eiθ is ±1, so ζ(½ + ign) = (−1)n Z(gn) is real. If it is positive at two consecutive Gram points, Z has opposite signs at them and there is a zero in between. John Hutchinson pushed the computation to 138 zeros in 1925, met the first exceptions and gave the rule its name: Gram’s law.
The reason it works is in the formula of the next demo. At a Gram point the main sum of the Riemann–Siegel formula becomes
ζ(½ + ign) ≈ 2 + 2 ∑2 ≤ k ≤ N k−½ cos(gn ln k).
The first term is 2 at every Gram point. The others oscillate, with no relation between their phases from one Gram point to the next, and on average they cancel. Edward Titchmarsh proved in the 1930s that the mean of ζ(½ + ign) over the first M Gram points does tend to 2. But the other terms are not small. Their sizes add up to about 2√N, which grows without limit, and every so often enough of them line up to drag the total below zero. Titchmarsh proved that Gram’s law fails infinitely often, and Timothy Trudgian proved in 2011 that it fails for a positive proportion of Gram intervals. So the share of intervals that obey the law does not tend to 100%. Models built on random matrices predict that in the long run about 66% of Gram intervals hold exactly one zero, 17% none and 17% two; that is a heuristic prediction, not a theorem. The share measured in the demo is higher only because 5,000 is not far up the line.
The repair is to group intervals. A Gram block runs from one good Gram point to the next, with only bad ones in between. Rosser’s rule, stated by Barkley Rosser, J. M. Yohe and Lowell Schoenfeld in their computation of the first 3,500,000 zeros, says that a block of k intervals holds exactly k zeros. It survives every case in the demo. It is false as well: the first Gram block that breaks it begins at Gram point number 13,999,525, recorded in Richard Brent’s computation of 1979, and Sherman Lehman had proved in 1970 that it fails infinitely often.
Gram’s law is a small specimen of something this module returns to: a pattern that holds in each of the first 126 cases and is false in general. The quantities that decide such things for ζ grow like ln ln t, so slowly that no computation has reached the heights where typical behaviour sets in. See also: When Evidence Misleads.
Slide the height up and compare the two term counts, then add the corrections one at a time and watch the error column fall. Further down, compute twenty zeros a billion units up the line.
Riemann’s 1859 paper states his hypothesis in one sentence and offers no calculation in support. His unpublished papers, kept in the library at Göttingen, tell a different story. Carl Ludwig Siegel worked through them and in 1932 published what he found, in Über Riemanns Nachlass zur analytischen Zahlentheorie: a formula for Z(t), far better than anything in print, together with numerical work locating the first zeros. The formula is
Z(t) = 2 ∑n ≤ N n−½ cos(θ(t) − t ln n) + (−1)N−1 a−½ (C0(p) + C1(p) a−1 + C2(p) a−2 + …),
with a = √(t/2π), N the whole part of a and p its fractional part. Here C0(p) = Ψ(p) = cos 2π(p² − p − 1/16) / cos 2πp, and each later Ck is a fixed combination of derivatives of Ψ. The series in powers of 1/a is asymptotic: it does not converge, but stopping after Ck leaves an error of the size of the next term. Hardy and Littlewood had published the main sum, as their approximate functional equation, in the early 1920s. Riemann had it, with the remainder, about sixty years earlier.
Where it comes from, in one sentence: Riemann wrote ζ as a contour integral, moved the contour to pass through the point where the integrand is stationary, collected the poles it crossed (they give the main sum, one term each) and expanded the integral near the stationary point (that gives the remainder). The jumps in the main sum happen when the moving contour crosses another pole, and the remainder, being the other half of the same integral, jumps by the opposite amount.
One value of Z by this formula costs about √t operations, against about t for Euler–Maclaurin summation. In 1988 Andrew Odlyzko and Arnold Schönhage found how to compute many values at once: all the values on a grid in a stretch of length about √T near height T, for not much more than one value costs by Riemann–Siegel. Checking the first M zeros then takes about M operations in all, up to small powers, where Riemann–Siegel alone takes about M3/2 and Euler–Maclaurin M². Odlyzko used it for his studies of zeros near the 1020th and 1022nd, and Xavier Gourdon for the first 1013.
None of what this page computes is a proof, because double-precision arithmetic rounds at every step and the dropped terms of the formula are estimated, not bounded. A rigorous verification needs three things. The remainder must have a proved bound, not an estimate: Titchmarsh gave the first in 1935, and Wolfgang Gabcke proved much better ones in 1979. Every arithmetic step must carry its rounding error with it, which is what interval arithmetic does: each number is stored as an interval certain to contain the true value, and a sign counts only if the whole interval lies on one side of zero. And the zeros found must be shown to be all of them. David Platt and Timothy Trudgian did this up to height 3 × 1012, about 1.2 × 1013 zeros, in a paper published in 2021. That is as far as rigorous verification had reached. The hypothesis says something about every height, which no computation could ever reach, and the proof of 2026 did not come from computing further.
Spot a mistake or have an idea?