How big a machine does Shor’s algorithm need?
From the lab’s 8-bit numbers to RSA-2048: the published estimates, and why they are so large.
9 min read · reviewed December 2026
Logical qubits versus physical qubits
The simplest circuit for an n-bit number needs about 2n counting qubits plus n work qubits, before any optimisation. For 2048 bits that is several thousand logical qubits. A logical qubit is an error-protected qubit built from many physical qubits, and the overhead from error correction is what turns thousands into millions.
| Estimate | Physical qubits | Run time |
|---|---|---|
| Fowler et al. 2012 | about 1 billion | about a day |
| Gidney and Ekerå 2019 | about 20 million | about 8 hours |
| Gidney 2025 | under 1 million | under a week |
| N | Bits | Counting qubits | Work qubits |
|---|---|---|---|
| 15 | 4 | 8 | 4 |
| 143 | 8 | 15 | 8 |
The published estimates
Gidney and Ekerå estimated in 2019 that RSA-2048 could be factored with about 20 million noisy physical qubits in about 8 hours, under stated assumptions about error rates and speed. Gidney’s 2025 paper brought the qubit figure under one million, with a run time under a week. The 2019 paper compares itself with an earlier estimate of about a billion qubits.
All of these are estimates for a hypothetical machine, not measurements. They depend on the assumed error rate, the error-correcting code and the clock speed.
Where hardware stands
Current devices are far below these counts and error rates. The Companies page of this site lists announced systems. Treat any single headline about a record number of qubits with care: what matters for Shor’s algorithm is the number of error-corrected logical qubits and how long they stay reliable.
What the lab can and cannot say
- It can show exactly what the algorithm does for N up to 143.
- It cannot tell you when a cryptographically relevant machine will exist.
- It does not simulate noise or error correction.
For planning, use the site’s RSA resource estimator and migration-risk calculator, which let you set your own assumptions.
Try it
Questions
Why did the estimates fall so much?
Better arithmetic circuits and better error-correction techniques, according to the papers. The algorithm itself did not change.
Will the numbers fall further?
Possibly. Resource estimates have kept dropping, but nobody can promise future improvements.
Is RSA-2048 the only target?
No. Elliptic-curve keys are smaller, and Shor-type algorithms for them can need fewer qubits. Check the original sources for specific figures.
Read next
Sources and further reading
- P. W. Shor, “Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer” (SIAM J. Comput. 1997, arXiv:quant-ph/9508027)
- M. Nielsen and I. Chuang, Quantum Computation and Quantum Information, chapter 5
- C. Gidney and M. Ekerå (2021), “How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits”
- C. Gidney (2025), “How to factor 2048 bit RSA integers with less than a million noisy qubits”
- Algorithm page: Shor’s algorithm
Check the original sources for exact citations.