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.

Published resource estimates for RSA-2048, as summarised on this site's research pages.
EstimatePhysical qubitsRun time
Fowler et al. 2012about 1 billionabout a day
Gidney and Ekerå 2019about 20 millionabout 8 hours
Gidney 2025under 1 millionunder a week
Registers in the simplest textbook circuit, computed by the lab: t = ⌈log₂ N²⌉ counting qubits and a work register as wide as N.
NBitsCounting qubitsWork qubits
15484
1438158

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

Check the original sources for exact citations.