Brute-Force Time Calculator
Work out how long an attacker needs to exhaust half a key space. Solve T = 2(b−1) ÷ g for any of its three unknowns — expected crack time, key length in bits, or attacker guess rate — with step-by-step math, a live search-space schematic, and crack-time comparisons against the age of the universe.
One bit doubles the work
Every extra bit of key length doubles the size of the search space and therefore doubles the expected crack time. That sounds modest until you compound it: adding 10 bits multiplies the time by about a thousand; adding 20 bits multiplies it by a million; adding 40 bits multiplies it by a trillion. This is why the difference between 56-bit DES and 128-bit AES is not "about twice as hard" but "unfathomably harder." It is also why key-length recommendations jump in large steps — small increments buy almost nothing, large ones buy everything.
Why half, not all, of the space?
The formula uses 2(b−1) rather than 2b because an attacker searching in random order finds the key after about half the space on average. If the target is uniformly distributed across 2b possibilities and the attacker tries keys in random order without replacement, the expected number of trials is 2b−1. The worst case is the full 2b, and a lucky attacker could finish in a single guess. Using the mean is the standard convention in cryptographic strength estimates because it captures the typical effort rather than the maximum.
The rate is the practical ceiling
Attacker rate is bounded by physics as well as economics. A modern GPU cluster might test 10¹² symmetric keys per second; a nation-state with custom silicon and cheap power might reach 10¹⁸ or 10²¹. But no attacker can do better than the Landauer limit, which sets a hard thermodynamic floor on the energy per irreversible bit operation. At 10²¹ guesses per second, 128 bits still takes about 5 × 10¹⁷ years — hundreds of millions of times the age of the universe. Rate matters enormously in the 40–80 bit range and becomes almost irrelevant above 100 bits, where the exponential dominates everything.
Effective bits ≠ encoded bits
The b in this formula is the effective security level, not the size of the key file. A 256-bit ECDSA private key is 256 bits long but offers only about 128 bits of classical security, because the best known attack — Pollard's rho for discrete logs — takes roughly 2128 operations rather than 2256. A 3072-bit RSA key offers about 128 bits of security for the same reason. Symmetric ciphers are the exception: AES-256 genuinely has 256 bits of security against brute force. When you plug a number into this calculator, use the effective security level, not the encoded key size.
How to Use This Calculator
The brute-force relation links three quantities: the expected time to crack, the effective key length in bits, and the attacker's guess rate. Choose which one you want the tool to solve, then fill in the other two.
1. Choose what to solve for
Pick crack time, key length, or attacker rate. The calculator rearranges T = 2(b−1) ÷ g automatically for whichever variable you select.
2. Enter effective bits, not encoded bits
Use the security level, not the key file size. A 256-bit ECC key is 128 effective bits; a 3,072-bit RSA key is about 128 bits; AES-256 is a genuine 256 bits. Presets cover 40, 56, 80, 128, 192 and 256 bits.
3. Pick a realistic attacker rate
Presets run from a single laptop at 10⁶ guesses/s through one GPU at 10⁹, a GPU farm at 10¹², an FPGA cluster at 10¹⁵, a nation-state at 10¹⁸, and a theoretical maximum of 10²¹. The result is extremely sensitive to this figure below about 90 bits.
4. Read the result and verdict
The result card shows the crack time in years plus seconds, days, and multiples of the age of the universe. A colour-coded verdict classifies the key from critical through very weak, weak, marginal, adequate, strong, very strong and beyond-reach.
5. Check the schematic and charts
The schematic shows key length becoming a full search space, halved for the average case, divided by the attacker rate. The chart shows how crack time explodes exponentially with key length at three different rates.
6. Switch to Advanced for depth
Advanced mode adds a crack-time-vs-rate chart, a sensitivity check on a ±1-bit change, and companion metrics including the energy cost at the Landauer limit, the equivalent symmetric key length, and the bits needed to survive a chosen time horizon.
What This Tool Offers
Built around the classic brute-force relation T = 2(b−1) ÷ g — the estimate that decides whether a key is worth attacking.
Three-way solving
Solve for crack time, key length, or attacker rate. The calculator rearranges the formula for whichever variable you choose.
Astronomical-number handling
Logarithmic arithmetic throughout, so you can work with 2⁵¹² without the display falling apart — results are shown in scientific and superscript notation.
Security-class verdict
Each result is classified from critical through very weak, weak, marginal, adequate, strong, very strong, extreme, and beyond-reach, with a coloured badge.
Search-space schematic
A live diagram that turns key length into a full space, halves it for the average case, divides by the rate, and shows the coverage bar with thresholds at 80, 128 and 256 bits.
Dual comparison charts
Crack time vs. key length at three attacker rates, plus an advanced crack-time-vs-rate chart for three key lengths.
Reference tables & snapshots
A time-unit converter, a full crack-time lookup grid, a table of real-world key strengths, an attacker-budget table, and a variable reference.
Reference Tables & Conversions
A time-unit converter, an energy-cost snapshot, a crack-time lookup grid, and reference tables for key strengths and attacker budgets.
Crack time unit converter
Energy-cost snapshot
Crack-Time Lookup Grid
Computed from T = 2(b−1) ÷ g. Rows are key lengths in bits, columns are attacker rates in guesses per second. Values are expected crack times in years.
Real-World Key Strengths
Effective security levels, not encoded key sizes. The gap between the two is what trips most people up.
| System | Encoded size | Effective bits | Attack | Status |
|---|---|---|---|---|
| DES | 56-bit key | 56 | Brute force | Broken in 1998; 22 hours on custom hardware |
| 3DES (2-key) | 112-bit key | 80–112 | Meet-in-the-middle | Deprecated; NIST disallowed 2023 |
| AES-128 | 128-bit key | 128 | Brute force | Secure; no practical attack |
| AES-192 | 192-bit key | 192 | Brute force | Secure; oversized for most uses |
| AES-256 | 256-bit key | 256 | Brute force | Secure; recommended for long-lived secrets |
| RSA-1024 | 1024-bit modulus | ~80 | Number field sieve | Deprecated; no longer acceptable |
| RSA-2048 | 2048-bit modulus | ~112 | Number field sieve | Acceptable to ~2030; being phased out |
| RSA-3072 | 3072-bit modulus | ~128 | Number field sieve | Recommended; matches AES-128 |
| RSA-4096 | 4096-bit modulus | ~140 | Number field sieve | Marginal gain over 3072; slower |
| ECC P-256 / secp256k1 | 256-bit key | ~128 | Pollard's rho | Standard; used by Bitcoin and TLS |
| ECC P-384 | 384-bit key | ~192 | Pollard's rho | High security; used in top-secret contexts |
| ECC P-521 | 521-bit key | ~260 | Pollard's rho | Maximum practical ECC security |
| Bitcoin private key | 256-bit scalar | ~128 | Pollard's rho | Secure; the 128-bit floor is the whole design |
Attacker Budget Reference
What different adversaries can realistically sustain. Rates are symmetric-key guesses per second; asymmetric attacks run orders of magnitude slower.
| Attacker | Rate (guesses/s) | Power (kW) | Cost per day | Breaks up to |
|---|---|---|---|---|
| Curious individual, one laptop | 10⁶ | 0.1 | ~$0.12 | ~32 bits |
| Enthusiast, one GPU | 10⁹ | 0.4 | ~$0.50 | ~40 bits |
| Small GPU farm (100 cards) | 10¹¹ | 40 | ~$50 | ~45 bits |
| Professional rig (1,000 cards) | 10¹² | 400 | ~$500 | ~50 bits |
| Well-funded group (FPGA cluster) | 10¹⁵ | 4,000 | ~$5,000 | ~60 bits |
| Large corporation (custom ASICs) | 10¹⁸ | 40,000 | ~$50,000 | ~70 bits |
| Nation-state (dedicated fab + hydro) | 10²¹ | 400,000 | ~$500,000 | ~80 bits |
| Theoretical maximum (Landauer limit) | 10²⁴ | ~10⁷ | ~$10⁷ | ~90 bits |
Variable Reference
| Symbol | Meaning | Typical range | Units |
|---|---|---|---|
| T | Expected crack time | 10⁻⁶ – 10⁴⁰ | years |
| b | Effective key length | 8 – 512 | bits |
| g | Attacker guess rate | 10⁶ – 10²⁴ | guesses/s |
| 2b | Full key space | 2⁸ – 2⁵¹² | keys |
| 2b−1 | Expected search size | Half the full space | keys |
| EL | Landauer limit per bit op | ≈ 2.8 × 10⁻²¹ | J at 300 K |
What Does T = 2(b−1) ÷ g Measure?
This formula estimates how long an attacker needs to recover a secret by trying keys one at a time. The numerator is the size of the space they must search — half the full key space, on average — and the denominator is how fast they can search it. The result is a wall-clock time, usually expressed in years because the numbers are otherwise unreadable. It is the most fundamental calculation in cryptography, and it is the reason key lengths are chosen the way they are: not because a longer key is harder to store, but because each additional bit doubles the work an attacker must do.
The Brute-Force Time Formula
The defining relationship is:
Rearranged to solve for the other two unknowns:
g = 2(b−1) ÷ T
An equivalent form uses logarithms directly, which is how the calculator works internally to avoid floating-point overflow at large key lengths:
Brute-Force Variables
| Symbol | Meaning | Notes |
|---|---|---|
| T | Expected crack time | Mean time to find the key; worst case is twice this |
| b | Effective key length | Security level in bits, not encoded key size |
| g | Attacker guess rate | Keys tested per second; bounded by hardware and physics |
| 2b | Full key space | Total number of distinct keys |
| 2b−1 | Expected search | Half the full space, assuming random order |
How Each Variable Affects the Result
Key length is by far the dominant term. Each additional bit doubles T, so the relationship is exponential in b and only linear in g. Adding 32 bits to a key multiplies the crack time by about 4 billion; multiplying the attacker's rate by 4 billion only brings it back to where it started. This asymmetry is why cryptographic strength is quoted in bits rather than in hardware terms: bits are the invariant quantity, and hardware is the thing that keeps changing underneath.
Attacker rate matters enormously at short key lengths and barely at all at long ones. Going from 40 to 50 bits at a fixed rate increases the time by a factor of a thousand; going from 118 to 128 bits increases it by the same factor. But at 40 bits a rate increase of 1,000× can be the difference between "not worth it" and "done before lunch," while at 128 bits no plausible rate increase changes the conclusion. The formula makes this visible: at 40 bits the exponent and the log-rate are comparable in size, so both matter; at 128 bits the exponent is so much larger that the rate is a rounding error.
It is also worth being clear about what the formula does not capture. It assumes the attacker knows the algorithm, has a way to test candidate keys quickly, and can verify a correct guess. It assumes the keys are uniformly distributed across the space. It assumes there is no shortcut — no algebraic weakness, no side channel, no implementation flaw. Real-world breaks almost always exploit one of those assumptions rather than brute-forcing the space, which is why a 128-bit key can still be compromised if it was generated by a buggy random number generator or leaked by a compromised device.
Brute-Force Calculation Examples
Expected search = 2¹²⁷ ≈ 1.70 × 10³⁸ keys
T = 1.70 × 10³⁸ ÷ 10¹² = 1.70 × 10²⁶ seconds
= ≈ 5.39 × 10¹⁸ years
Expected search = 2⁵⁵ ≈ 3.60 × 10¹⁶ keys
T = 3.60 × 10¹⁶ ÷ 10¹² = 3.60 × 10⁴ seconds
= ≈ 10 hours
Expected search = 2⁷⁹ ≈ 6.04 × 10²³ keys
T = 6.04 × 10²³ ÷ 10¹² = 6.04 × 10¹¹ seconds
= ≈ 19,150 years
T · g = 100 × 3.156 × 10⁷ × 10¹² = 3.156 × 10²¹
b = log₂(3.156 × 10²¹) + 1 = ≈ 72.4 bits
Expected search = 2²⁵⁵ ≈ 5.79 × 10⁷⁶ keys
T = 5.79 × 10⁷⁶ ÷ 10²¹ = 5.79 × 10⁵⁵ seconds
= ≈ 1.83 × 10⁴⁸ years — far beyond any physical limit
Frequently Asked Questions
Because an attacker searching in random order expects to find the key about halfway through the space. If the target key is uniformly distributed across 2b possibilities and you test keys in random order without replacement, the expected number of trials to hit the right one is 2b ÷ 2 = 2b−1. This is the mean of a uniform distribution over the search space: sometimes you get lucky and find it in a handful of tries, sometimes you find it on the very last one, and on average it takes half the space. The worst case is the full 2b, and if you are estimating the effort needed for certainty rather than the expected effort, you should double the answer. Cryptographic strength estimates conventionally use the mean because it reflects the typical cost, and because the difference between the mean and the maximum is a single bit — negligible against a 128-bit space.
Because brute force is not the best attack against elliptic-curve cryptography. A Bitcoin private key is a 256-bit scalar, but recovering it from the corresponding public key — the discrete logarithm problem on the secp256k1 curve — can be solved by Pollard's rho algorithm in roughly 2128 operations rather than 2256. That square-root speedup is a generic property of the discrete-log and factoring problems, and it means the effective security of every ECC and RSA key is about half its nominal size. A 256-bit ECC key gives 128 bits; a 384-bit key gives 192 bits; a 521-bit key gives about 260 bits. Symmetric ciphers are the exception: AES-256 really does have 256 bits of security against brute force, because there is no known attack that beats exhaustive search by a meaningful margin.
It depends on what is being attacked and by whom. For a leaked password hash, a single modern GPU does 10⁹–10¹⁰ guesses per second against fast hashes like MD5 or SHA-1, and 10⁴–10⁶ per second against a deliberately slow hash like bcrypt or Argon2. A professional GPU farm reaches 10¹², and a well-funded adversary with FPGAs or custom ASICs can plausibly reach 10¹⁵–10¹⁸. A nation-state with a dedicated fab and cheap power might hit 10²¹. For asymmetric keys the rates are far lower — each test requires an elliptic-curve or modular-exponentiation operation, which is thousands of times slower than a hash — so the effective rate against a 128-bit ECC key is more like 10⁹–10¹² operations per second at best. The practical rule is to assume the highest rate your adversary could plausibly reach, because the cost of overestimating their capability is trivial compared to underestimating it.
Yes, and it is surprisingly restrictive. The Landauer limit says that erasing a single bit of information at room temperature costs at least kBT ln 2 ≈ 2.8 × 10⁻²¹ joules, where kB is Boltzmann's constant and T is the temperature. Any irreversible computation — which includes any key test that discards intermediate state — must dissipate at least this much energy per bit operation. A 1 GW power plant running at the Landauer limit could therefore perform at most about 3.6 × 10²⁹ bit operations per second, and a practical machine is perhaps 10⁸ times less efficient, giving 10²¹–10²² guesses per second as the realistic ceiling for a planetary-scale effort. Beyond that you would need to convert the entire energy output of a star, and even then 128-bit keys remain safe by enormous margins.
Differently for symmetric and asymmetric keys. Grover's algorithm gives a quadratic speedup against symmetric ciphers: it can search an N-element space in √N operations instead of N. Applied to AES-128, that means an effective security of about 64 bits, which is why post-quantum guidance recommends AES-256 for anything long-lived — Grover reduces it to 128 bits, which is still comfortable. For asymmetric cryptography the picture is worse: Shor's algorithm solves both integer factorisation and discrete logarithms in polynomial time, which means RSA, Diffie-Hellman, and elliptic-curve cryptography all fall completely once a sufficiently large quantum computer exists. There is no partial credit — a cryptographically relevant quantum computer breaks ECC and RSA outright. This is why the transition to post-quantum algorithms like ML-KEM and ML-DSA is underway. Current estimates for the hardware needed vary widely, from ten to thirty years out, but the migration timelines are already shorter than the risk window.
For anything you expect to remain secure for the next twenty years, 128 bits is the modern floor and 256 bits is the comfortable ceiling. Below 112 bits you are in territory that serious standards bodies have already deprecated — NIST moved away from 3DES and RSA-1024 for exactly this reason. Between 112 and 128 bits is the transitional zone: RSA-2048 and similar are still acceptable for legacy systems but should not be chosen for new designs. At 128 bits and above, the exponential makes further increases almost pointless for classical attackers: going from 128 to 256 bits multiplies the crack time by 2¹²⁸, which is astronomically larger than any hardware improvement could compensate for. The reason to go higher anyway is quantum resistance — 256-bit symmetric keys survive Grover with 128 bits of margin — and defence against the possibility that a subtle implementation weakness shaves off some of the theoretical entropy.
No — it means brute force is infeasible, which is only one of many ways a key can be compromised. A 256-bit key generated by a random number generator that only had 32 bits of internal state is a 32-bit key wearing a 256-bit costume, and no amount of arithmetic changes that. Real-world key compromises overwhelmingly come from other directions: the key was logged by malware, extracted through a side channel such as timing or power analysis, guessed because it was derived from a weak passphrase, intercepted during generation, or recovered from an improperly wiped device. The brute-force calculation tells you the key is safe against exhaustive search, and that is genuinely valuable — it eliminates the simplest attack. It says nothing about whether the key was generated properly, stored properly, or used in an implementation free of flaws.
A password's effective bits are log₂ of the size of the space an attacker would realistically search, which is almost never the full character-alphabet space. An eight-character random alphanumeric password has about 47 bits if the attacker searches the full 62-character alphabet, but a human-chosen eight-character password has perhaps 20–30 bits because attacker dictionaries exploit the way people pick passwords. A four-word Diceware passphrase drawn from a 7,776-word list has 4 × 12.9 ≈ 52 bits. A six-word Diceware phrase has about 77 bits. To reach 128 bits you need either 10 Diceware words, or a 20-character truly random string from a 94-character alphabet. The practical translation is that a well-generated six-word passphrase is roughly equivalent to a 77-bit key, which is comfortably above what a GPU farm can reach but below the modern 128-bit recommendation.
Variables
| Symbol | Quantity | Unit |
|---|---|---|
| Time | Estimated average time to crack | years |
| bits | Private key length | bits |
| Guesses per Second | Attacker's guessing rate | guesses/s |
What it means
The security of a private key depends on its bit length. A 128‑bit key is considered secure against brute‑force. This formula estimates the time to guess a key. It is used to demonstrate why private keys must be long and random. Understanding this helps in choosing secure key lengths.
Worked example
Private Key Brute‑Force Time – Two Detailed Examples
Real‑World| Parameter | Value |
|---|---|
| Key Length (bits) | 256 |
| Guesses/sec | 1e18 |
| Parameter | Value |
|---|---|
| Key Length | 256 |
| Guesses/sec | 1e12 |
Common mistakes
- Private key brute‑force time: 2^(bits−1) / guesses per second.
- Bits: The length of the private key (e.g., 256 for Bitcoin).
- Guesses per second: Depends on hardware and algorithm.
- Result: In seconds – extremely large for 256‑bit keys.
Applications
Private key brute‑force time estimate calculates the time required to guess a private key by brute force, based on the key length and guesses per second. This highlights the security of cryptographic keys. Understanding this estimate reinforces the importance of key security and the absurdity of brute‑forcing modern keys.
- Assessing the security of private keys
- Educating users on the importance of key protection
- Understanding cryptographic strength
- Security awareness in crypto
- Educational understanding of key space
Related calculators · Wallet, Security & Tax
Recently updated formulas
Suggest an improvement
Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.