The Riemann Hypothesis
What is the Riemann hypothesis?
The Riemann hypothesis is the conjecture, made by Bernhard Riemann in 1859, that the Riemann zeta function's non-trivial zeros all have real part exactly 1/2. On the complex plane, every zero inside the critical strip would then lie on one vertical line, the critical line. It is unproven; if true, it pins down how evenly the prime numbers are spread.

Four views of the zeta function, all computed in the browser: Z(t) and its zeros, the zeta spiral through the origin, the primes rebuilt from zeros, and the gaps between zeros. Try the interactive version.
- The zeta function is zero at -2, -4, -6, … (the trivial zeros) and at infinitely many points in the strip 0 < Re s < 1. The hypothesis says those all have real part 1/2.
- On the critical line the zeros show up as sign changes of a real function, Hardy's Z(t). The first is at height 14.134725….
- Each zero adds one wave to Riemann's formula for the number of primes. Zeros on the line keep the errors in prime counts as small as they can be.
- More than 12 trillion zeros have been checked and all lie on the line. That is strong evidence, not a proof.
- The gaps between zeros follow the statistics of eigenvalues of large random matrices, not of random points.
The hypothesis is one of the seven Millennium Prize Problems of the Clay Mathematics Institute, with a prize of one million US dollars for a proof. It was also on David Hilbert's list of 23 problems in 1900. As of November 2026 the Clay Institute lists it as unsolved.
The Riemann zeta function
For a number with real part greater than 1, the zeta function is the sum
At the sum is . As falls towards 1 the sum grows without limit, and at it becomes the harmonic series, which diverges. Riemann used complex values , where is the real part and the imaginary part, or height.
Euler had already found the link with primes in 1737. Because every whole number is a product of primes in exactly one way, the sum can be rewritten as a product with one factor for each prime :
This Euler product is why a statement about the zeros of zeta turns into a statement about primes.
Analytic continuation and the functional equation
The sum only converges when the real part of is above 1, but the function itself extends to every complex number except , where it has a pole. This extension, the analytic continuation, is unique: there is only one smooth (complex-differentiable) function that agrees with the sum where the sum converges. Values such as come from the continued function, not from adding up .
Riemann showed that the continued function satisfies a functional equation linking and :
where is the gamma function. It reflects the plane in the line , which is why that line is special. A computer evaluates zeta inside the strip with a formula that converges there, such as Euler–Maclaurin summation.
Trivial and non-trivial zeros: the critical strip and the critical line
The zeta function has two kinds of zeros: trivial zeros at the negative even integers, and non-trivial zeros inside the critical strip, which the hypothesis places on the critical line.
The zeros of the zeta function come in two kinds.
- The trivial zeros are at . The sine factor in the functional equation forces them, and they tell us nothing about primes.
- The non-trivial zeros all lie in the critical strip, . There are infinitely many of them. They are written , and they come in mirror-image pairs: if is a zero, so is . The functional equation adds a second symmetry, about the line .
The critical line is , the centre of the strip. The Riemann hypothesis states that for every non-trivial zero. Because of the two symmetries, a zero off the line would always come with three partners, at and .
The first ten zeros above the real axis, at :
| Zero | Height | Zero | Height |
|---|---|---|---|
| 1 | 14.134725 | 6 | 37.586178 |
| 2 | 21.022040 | 7 | 40.918719 |
| 3 | 25.010858 | 8 | 43.327073 |
| 4 | 30.424876 | 9 | 48.005151 |
| 5 | 32.935062 | 10 | 49.773832 |
These match Andrew Odlyzko's published table and the LMFDB. Computed from scratch with the methods on this page, the first 5,163 zeros agree with Odlyzko's table to better than one part in a million.
How to see the zeros: Hardy's Z function
Zeta is complex-valued, so on the critical line it can't simply be drawn as one curve against . G. H. Hardy's trick is to rotate each value by a known angle so that the result is real:
The rotation doesn't change the size, so , and is a real number for every real . When the curve of crosses the axis, zeta is zero on the line. For example and , so a zero lies between them: the first one, at 14.134725.
A sign change proves a zero is on the line, which is how the numerical checks work. The opposite is not automatic: a zero off the line would show up as a place where dips towards the axis and turns back without crossing, combined with a count of zeros (next section) that comes out one pair short.
The Riemann–Siegel formula
For large , is computed with the Riemann–Siegel formula. With ,
where is a remainder of size about that is itself given by a series of correction terms . Only about terms are needed: 3 at and 28 at . Carl Ludwig Siegel found the formula in Riemann's unpublished notes and published it in 1932, so Riemann had computed the first few zeros himself.
The formula is an asymptotic series, accurate for large and poor for small . With five correction terms it agrees with direct evaluation to within about