What is Grover's algorithm?
Grover's algorithm is a quantum algorithm, published by Lov Grover in 1996, that in idealised terms searches an unsorted set of possibilities in roughly the square root of the number of steps an ordinary computer would need. Where a classical search might take a million guesses, Grover's takes about a thousand. In security, its main effect is to weaken symmetric encryption such as AES modestly, which is why the guidance is about key length, not new algorithms.
A square-root speed-up, not magic
A square-root speed-up sounds dramatic, but it's far smaller than what Shor's algorithm does to RSA. Shor's algorithm gives, in principle, an efficient way to factor large numbers, but attacking real RSA keys would require a large, reliable quantum computer that has not been publicly demonstrated. Grover's only reduces the effort, and the reduction shrinks in practice: each quantum step is much slower and more expensive than an ordinary one, error correction adds large overheads, and the algorithm is hard to split across many machines running in parallel.
| Rounds | Chance of the prize |
|---|---|
| 0 | 1.6% |
| 1 | 13.5% |
| 2 | 34.4% |
| 3 | 59.1% |
| 4 | 81.6% |
| 5 | 96.4% |
| 6 | 99.7% |
| 7 | 90.7% |
| 8 | 71.8% |
| 9 | 47.5% |
| 10 | 23.8% |
| 11 | 6.6% |
| 12 | 0.0% |
What it means for encryption
| Cryptography | Effect of Grover's algorithm | What to do |
|---|---|---|
| AES-256 | Keeps a very comfortable margin | Nothing; the most margin at little extra cost |
| AES-128 | Weakened on paper; a real attack must also pay for circuit depth, error correction and running time | Follow the guidance that applies to you; CNSA 2.0 requires 256-bit keys for US national security systems |
| Hash functions such as SHA-256 | Depends on the property: resisting reversal and resisting collisions are affected differently | Check each use, such as signatures, passwords or integrity checks, against current guidance |
| RSA and elliptic curve | Not the relevant threat | These fall to Shor's algorithm instead |
Guidance on 128-bit keys differs, partly because it covers different systems. The NSA's CNSA 2.0, which applies to US national security systems, requires 256-bit AES. NIST's transition report, IR 8547 (final, October 2026), says NIST doesn't expect to need to move away from its approved symmetric algorithms that offer at least 128 bits of classical security as part of the post-quantum migration. Follow whichever applies to your organisation.
Beyond cryptography
Grover's algorithm is often cited for search, optimisation and finance. In practice, once the costs of error correction and loading data are counted, the gain for many real problems shrinks or disappears. The what quantum is good at lesson puts it alongside the stronger cases.
For a bank, Grover's algorithm is mostly a reason to check key and hash sizes. The urgent migration work is about public-key cryptography.
Common confusions
- "Grover halves the security of everything." On paper it roughly halves the effective key length for brute-force search. Real-world attack costs are much higher than that rule of thumb suggests.
- "AES needs replacing." No. NIST and the UK NCSC accept AES-128, and AES-256 adds margin; follow the key-length rule that applies to you.
- "Grover makes quantum computers fast at search." Only in a narrow sense, and often not once overheads are counted.
Where this comes up
- LessonWhat quantum computers are good at (and what they aren't)Foundations · 9 min
- LessonHow a quantum algorithm works, in plain EnglishHow quantum computers work · 13 min
- GuideChapter 1 · What quantum threatens in a bank, and what it doesn'tProfessionals · Banking guide
Sources and further reading
Tags show the kind of source (how sources are chosen and checked). Checked against these sources on 19 October 2026.
- Peer-reviewed paperA fast quantum mechanical algorithm for database searchLov Grover, STOC, 1996
- Government guidanceNSA releases future quantum-resistant algorithm requirements for national security systems (CNSA 2.0)US National Security Agency, 2022
- Government guidanceNIST IR 8547: Transition to Post-Quantum Cryptography StandardsNIST, 2026
Written by Muhammad Atif · Reviewed 26 November 2026 · Report a correction