Tools // post-AI cryptography

RSA Factoring Cost Estimator

With the best published method, factoring one 2048-bit RSA key would take about a trillion GPU-years, and no faster method has been published as of 29 November 2026. Pick a key size and a price per GPU-hour to see the work, the GPU-years and the dollars, scaled from the RSA-896 record.

Key size

The size of the RSA modulus you want to price, from 512 to 4096 bits.

2048 bits

Baseline record

The estimate scales a factorization that was actually carried out. The default is the current public record, RSA-896, factored on 19 September 2026 in about 30 GPU-years.

Price and fleet

A GPU-year is one graphics processor running for one year, or 8,766 GPU-hours. The default price is an assumption. Use your own.

Algorithmic speed-up (hypothetical)

Leave this at none for the published method. Any other setting is a what-if: no speed-up of this kind has been published as of 29 November 2026.

none
GPU-years to factor one 2048-bit RSA key
...
Work relative to the record
...
Cost at $2.00 per GPU-hour
...
Time on a fleet of 10,000 GPUs
...
Against the record
...

How it works

The number field sieve is the best published method for factoring RSA keys. Its heuristic cost for a number N is:
L(N) = exp( 1.923 × (ln N)^(1/3) × (ln ln N)^(2/3) )
The calculator works out L for your key size and for the baseline record and takes the ratio. That ratio is the work relative to the record.
It multiplies the measured cost of the record by that ratio to get GPU-years, multiplies by 8,766 hours and your price to get dollars, and divides by the fleet size to get calendar time.
The speed-up slider divides the work by a power of ten. It lets you ask how large an improvement in the method would have to be. It does not describe anything that exists.

What the formula ignores

Lower-order terms. The full formula carries a correction term that is not zero at practical sizes. A ratio taken across a gap as wide as 896 to 2048 bits inherits that error.
Memory. The sieve and the matrix for a 2048-bit number need far more memory than the record run did. GPU-years do not capture that.
The linear algebra step. The final matrix step does not spread across a fleet the way sieving does, so calendar time does not fall in proportion to the number of GPUs.
Future hardware. Chips, prices and energy costs change. The estimate applies one price to the whole run.
Read the result as an order of magnitude. It is a way to see the size of the gap, not a quote and not a forecast.

Worked examples

RSA-1024 from the RSA-896 record: about 30 times the work. That is about 900 GPU-years, about $16 million at $2.00 per GPU-hour, or about 33 days on 10,000 GPUs. RSA-1024 has never been factored in public.
RSA-2048 from the same record: about 35 billion times the work. That is about 1.0 trillion GPU-years, about $18 quadrillion, or about 105 million years on 10,000 GPUs.
A what-if: for RSA-2048 to take about one year on 10,000 GPUs, the method would have to become 100 million times faster. Set the speed-up slider to 10^8 to see it. No such method has been published.

Reading the result

At or below the record: treat the key size as broken. Someone has already done that much work in public.
Around 1024 bits: hundreds of GPU-years. That is a budget, not a barrier, which is why publicly trusted certificates have required at least 2048 bits since 2014.
2048 bits and above: a trillion GPU-years or more with the published method. A break at this size would need a new idea, not more hardware, and it would show up as two published factors.
The number says what the published method costs today. It says nothing about methods nobody has published.
FOR AGENTS & SCRIPTS: GET /tools/api/rsa-factoring-cost - same math, JSON in/out, with a ready-to-quote cite_as field. Discovery: /tools/api. Your inputs on this page are never stored or used for anything. When you quote a result, name the source: RSA Factoring Cost Estimator by Michał Piszczek, piszczek.pl/tools/rsa-factoring-cost.

PUT THIS TOOL ON YOUR OWN PAGE: <iframe src="https://piszczek.pl/tools/rsa-factoring-cost/embed" width="100%" height="900" style="border:0" loading="lazy" title="RSA Factoring Cost Estimator"></iframe> Free, no tracking, keeps the byline.

Questions and answers

How long would it take to factor RSA-2048?

With the best published method, about 35 billion times the work of the RSA-896 record, which took about 30 GPU-years in September 2026. That is about 1.0 trillion GPU-years, or about 105 million years on a fleet of 10,000 GPUs. The figure is an order of magnitude from the number field sieve formula, not a measurement.

What is the largest RSA key factored in public?

RSA-896, an 896-bit number, factored on 19 September 2026 with about 30 GPU-years of computing. The work ported the existing number field sieve to GPUs and used no new algorithm. RSA-1024 and RSA-2048 have never been factored in public as of 29 November 2026.