QuantumAtlas

Interactive Calculator · Security and Networks

RSA and Elliptic Curve Break Resource Estimator

See how many qubits and how much time it takes to break RSA or an elliptic curve key, and how that changes with key size and hardware quality.

Advanced
Presets

Time the classical controller needs to decode and respond. It sets the runtime when the machine is reaction limited.

Logical qubits

6,189

Toffoli gates

2.62×10⁹

Code distance

29

Physical qubits

22,888,367

22,888× a 1,000-qubit chip

Runtime

7.29 hours

2.62×10⁹ Toffoli gates × 10 µs.

Compare with today

The best machines have hundreds to a few thousand physical qubits and dozens of logical qubits. The qubit gap to this estimate is a factor of about 22,888, and logical error rates also need to fall by several orders of magnitude.

Physical qubits versus key size

10⁵10⁶10⁷10⁸10⁹10¹⁰10001 million qubits2048 bitsKey size (bits)Physical qubits
RSA, 2021 methodRSA, 2025 methodElliptic curve

All curves use your physical error rate. They are illustrative scalings calibrated to the published headline figures, not exact reproductions of those papers.

Scale published resource estimates for Shor's algorithm to your key size and physical error rate, with logical qubits, Toffoli gates, code distance, physical qubits, and runtime for RSA and elliptic curve keys.

What this calculator does

Shor's algorithm threatens the public-key cryptography that secures the internet, but how big a quantum computer does it take, and how long would the attack run? The answer has changed enormously over the last decade, mostly because of better algorithms and error correction schemes. A 2012 estimate needed about a billion physical qubits to factor a 2,048-bit number. Gidney and Ekerå estimated 20 million noisy qubits and eight hours in 2019. Gidney estimated fewer than one million noisy qubits and under a week in 2025. Elliptic curve keys need fewer logical qubits than RSA keys of comparable security, which makes them an earlier target.

This calculator lets you explore those estimates. Choose one of three published methods, set the key size and the physical error rate, and it computes the number of logical qubits, the number of Toffoli gates, the surface code distance needed to keep the total failure probability at 10 percent, the resulting physical qubit count, and the runtime. A chart shows how physical qubits scale with key size for all three methods at your error rate.

How to use it

Start with the preset RSA-2048 (2021 method). At a physical error rate of 0.1 percent, the model gives about 6,200 logical qubits, 2.6 billion Toffoli gates, a code distance of 29, roughly 23 million physical qubits, and a runtime of about seven hours. These numbers sit close to the headline result of Gidney and Ekerå, who reported 20 million qubits and eight hours with a distance of 27; the small differences come from details of their layout that a simple model does not capture. Now switch to the 2025 method. The logical qubit count drops to about 1,400 because of approximate residue arithmetic, and the physical count to under 900,000 because of denser storage and cheaper magic states, while the runtime rises to about six days because the circuit uses more operations. This is the central trade-off of the new design: fewer qubits, more time.

Next, change the physical error rate. Moving from 0.1 percent to 0.01 percent cuts the code distance from 29 to 15 in the 2021 method and the physical qubit count from 23 million to about 6 million, a factor of nearly four. Raising the error rate to 0.3 percent pushes the distance to 57 and the qubit count to nearly 90 million. This sensitivity is why error rates, not just qubit counts, decide when cryptographically relevant machines arrive.

Then compare key sizes. Doubling an RSA key from 2,048 to 4,096 bits multiplies the Toffoli count by about eight and the qubit count by about two to three, a modest price for the defender, which is why longer RSA keys do not provide meaningful protection. Switch to the elliptic curve method and set 256 bits. Elliptic curve discrete logarithms need about 2,330 logical qubits but more than 10 to the 11 Toffoli gates in the 2017 design, so under this model the machine is smaller than for RSA-2048 but runs for weeks. Later papers cut the gate count by orders of magnitude, so treat the elliptic curve option as an older upper bound.

Reading the result

The logical qubit and Toffoli counts come from the algorithm: they depend on the key size and the arithmetic circuits used. The code distance, physical qubits, and runtime depend on the hardware model. The distance is the smallest odd value for which the surface code keeps the whole computation within a 10 percent failure budget, using the same empirical error formula as the surface code overhead calculator. Physical qubits include a multiplier for routing and magic state factories, calibrated so that the 2021 method reproduces the published 20 million figure. Runtime assumes the machine is limited by the time the classical controller needs to react to each Toffoli measurement, which is the regime assumed in the published estimates.

The gap panel compares the result with a chip of 1,000 physical qubits, roughly the scale of today's largest superconducting processors. A factor of tens of thousands in qubits, plus logical error rates several orders of magnitude lower than anything demonstrated at scale, is the distance still to travel. But the history of the estimates shows that software and architecture improvements have moved the target by factors of twenty or more in six years, which is why security planners treat any single number with caution.

Assumptions and limits

This is a scaling model calibrated to published headline figures, not a reimplementation of the papers. It uses a single empirical error formula, a fixed overhead multiplier, and rough scaling laws in key size, and the 2025 method is scaled linearly from one data point. It ignores decoder and control costs, correlated errors, the possibility of using qLDPC or cat-qubit architectures that would cut qubit counts further, and many algorithmic refinements. Elliptic curve estimates in the literature range over orders of magnitude depending on the design. Use the tool to see how the numbers scale and why migration deadlines matter, and consult the original papers for precise figures.

The formulas behind it

RSA logical qubits (2021)

L ≈ 3n + 0.002 n log₂ n

Gidney and Ekerå scaling for an n-bit modulus.

RSA Toffoli count (2021)

T ≈ 0.3 n³ + 0.0005 n³ log₂ n

About 2.6 × 10⁹ for n = 2,048.

RSA anchor (2025)

L ≈ 1,400, T ≈ 6.5 × 10⁹ at n = 2,048

Scaled as L ∝ n and T ∝ n³ in this calculator.

Elliptic curve logical qubits

L = 9n + 2⌈log₂ n⌉ + 10

Roetteler et al. 2017; 2,330 for a 256-bit curve.

Failure budget

0.1 · (p/p_th)^((d+1)/2) · L · T · d ≤ 0.1

Used to choose the smallest odd code distance d, with p_th = 1 percent.

Physical qubits

N = L · (2d² − 1) · 2.2

The multiplier 2.2 is calibrated to the published 20 million qubit figure.

Runtime

t = T × (reaction time)

Reaction-limited execution, with the 2025 method calibrated to under a week.

Worked examples

RSA-2048 with the 2021 method

  1. p = 0.1%, reaction time 10 µs.
  2. L = 3 × 2,048 + 0.002 × 2,048 × 11 = 6,189 and T = 2.6 × 10⁹.
  3. The failure budget gives d = 29, so N = 6,189 × 1,681 × 2.2 ≈ 2.3 × 10⁷ and t = 2.6 × 10⁹ × 10 µs ≈ 7.3 hours.

ResultAbout 23 million physical qubits and seven hours, within about 15 percent of the published figure.

RSA-2048 with the 2025 method

  1. L ≈ 1,399 and T = 6.5 × 10⁹ at p = 0.1%.
  2. N = 641 × 1,399 ≈ 897,000 and t = 6.5 × 10⁹ × 80 µs ≈ 6 days.

ResultUnder a million qubits but about six days, matching the headline of the 2025 paper.

Ten times better hardware

  1. Same 2021 method with p = 0.01%.
  2. The distance falls from 29 to 15, so N = 6,189 × 449 × 2.2 ≈ 6.1 × 10⁶.

ResultA tenfold improvement in physical error rate cuts the qubit count by a factor of about four.

Frequently asked questions

Does this mean RSA-2048 will be broken soon?

No. The estimates describe what a machine must have, and no machine near that scale exists. They are a reason to migrate on schedule.

Why do elliptic curves need fewer logical qubits?

Because the group elements are smaller for the same security level. Newer designs also cut the gate count sharply.

Why does the 2025 method take longer?

It trades qubits for time, using more operations on a smaller machine.

References

  1. Gidney, C., & Ekerå, M. (2021). How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits. Quantum, 5, 433.
  2. Gidney, C. (2025). How to factor 2048 bit RSA integers with less than a million noisy qubits. arXiv:2505.15917.
  3. Roetteler, M., Naehrig, M., Svore, K. M., & Lauter, K. (2017). Quantum resource estimates for computing elliptic curve discrete logarithms. ASIACRYPT 2017, LNCS 10625, 241-270.
  4. Litinski, D. (2023). How to compute a 256-bit elliptic curve private key with only 50 million Toffoli gates. arXiv:2306.08585.
  5. Fowler, A. G., Mariantoni, M., Martinis, J. M., & Cleland, A. N. (2012). Surface codes: Towards practical large-scale quantum computation. Physical Review A, 86, 032324.
  6. Webber, M., et al. (2022). The impact of hardware specifications on reaching quantum advantage in the fault tolerant regime. AVS Quantum Science, 4, 013801.

Keep exploring

These calculators use simplified, published models for education and planning. Real devices and systems differ, so treat results as estimates. They are not engineering, investment, legal, or security advice.