Home / Crypto & Blockchain / Wallet, Security & Tax / Private Key Brute-Force Time Estimate

Formula & Calculator

Private Key Brute-Force Time Estimate

A private key is a huge number that controls your crypto. This formula estimates how long it would take to guess one by brute force: 2^(bits−1) divided by guesses per second. For a 256-bit key, even at a trillion guesses per second, it would take longer than the age of the universe. This is why properly generated keys are considered unbreakable by brute force. It highlights the importance of using secure key generation.

Crypto Security Cryptography
VORZEP · PRIVATE KEY SECURITY TOOLS

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.

T = 2(b−1) / g
Solve for
Expected Crack Time (T) The average time an attacker needs to find the key, assuming they search the space in random order and stop when they hit it. On average that is half the full space, which is where the 2(b−1) exponent comes from — the full space is 2b, half of it is 2(b−1). This is the mean, not the worst case. The worst case is twice as long, and a lucky attacker could finish in seconds. Entered here in years.
years
Crack time must be greater than zero.
Key Length (b) The effective number of bits of entropy in the key, not its encoded length. A 256-bit ECDSA private key has 128 bits of classical security, not 256, because the best known attack is Pollard's rho at roughly 2128 operations. A 256-bit symmetric key has the full 256 bits. A password's "bits" is log₂ of the size of the search space an attacker would realistically try, which for human-chosen passwords is far lower than the character count suggests.
bits
Key length must be greater than zero.
Attacker Rate (g) How many key guesses the attacker can test per second. A single modern GPU does roughly 10⁹–10¹⁰ symmetric ops/sec. A rack of FPGAs or a cluster of GPUs reaches 10¹²–10¹⁴. A nation-state with custom ASICs and dedicated hydro power can plausibly reach 10¹⁸–10²¹. For asymmetric keys the rate is far lower because each test requires an elliptic-curve or modular-exponentiation operation rather than a single hash.
guesses/s
Attacker rate must be greater than zero.
EXPECTED CRACK TIME (T)
1.00e14 years
—
STRONG — BEYOND ANY CONCEIVABLE ATTACK
T = 2^(b−1) / g
Step-by-step solution
Crack time vs. key length
Current rate g × 0.001 g × 1000
Crack time vs. attacker rate
Current key length b − 32 bits b + 32 bits
Sensitivity
Companion security metrics
Search space halving — live schematic
BRUTE-FORCE TIME · T = 2^(b−1) ÷ g KEY LENGTH 128 bits full space 2^128 ½ EXPECTED SEARCH 2^127 ≈ 1.70 × 10³⁸ keys ÷ ATTACKER RATE 10¹² /s guesses per second SEARCH SPACE COVERAGE half the full key space is searched on average STRONG — beyond any conceivable attack T = 2¹²⁷ ÷ 10¹² /s = 1.70 × 10²⁶ s ≈ 5.4 × 10¹⁸ years
Key length sets the size of the space Average attacker searches half of it Rate converts guesses into wall-clock time
What the brute-force time really measures
Texpected crack time
=
2(b−1)half the key space
÷
gguesses per second

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

seconds
years
× 13.8 Gyr
× 10 Gyr
× 10³⁴ yr
= 3.15e21 s = 1.00e14 yr = 7,246 universe ages

Energy-cost snapshot

Power draw (W)
W
Electricity price
USD/kWh
Machines in the farm
units

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.

SystemEncoded sizeEffective bitsAttackStatus
DES56-bit key56Brute forceBroken in 1998; 22 hours on custom hardware
3DES (2-key)112-bit key80–112Meet-in-the-middleDeprecated; NIST disallowed 2023
AES-128128-bit key128Brute forceSecure; no practical attack
AES-192192-bit key192Brute forceSecure; oversized for most uses
AES-256256-bit key256Brute forceSecure; recommended for long-lived secrets
RSA-10241024-bit modulus~80Number field sieveDeprecated; no longer acceptable
RSA-20482048-bit modulus~112Number field sieveAcceptable to ~2030; being phased out
RSA-30723072-bit modulus~128Number field sieveRecommended; matches AES-128
RSA-40964096-bit modulus~140Number field sieveMarginal gain over 3072; slower
ECC P-256 / secp256k1256-bit key~128Pollard's rhoStandard; used by Bitcoin and TLS
ECC P-384384-bit key~192Pollard's rhoHigh security; used in top-secret contexts
ECC P-521521-bit key~260Pollard's rhoMaximum practical ECC security
Bitcoin private key256-bit scalar~128Pollard's rhoSecure; 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.

AttackerRate (guesses/s)Power (kW)Cost per dayBreaks up to
Curious individual, one laptop10⁶0.1~$0.12~32 bits
Enthusiast, one GPU10⁹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

SymbolMeaningTypical rangeUnits
TExpected crack time10⁻⁶ – 10⁴⁰years
bEffective key length8 – 512bits
gAttacker guess rate10⁶ – 10²⁴guesses/s
2bFull key space2⁸ – 2⁵¹²keys
2b−1Expected search sizeHalf the full spacekeys
ELLandauer 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:

T = 2(b−1) ÷ g

Rearranged to solve for the other two unknowns:

b = log₂(T · g) + 1
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:

log₁₀(T) = (b − 1) · log₁₀(2) − log₁₀(g)

Brute-Force Variables

SymbolMeaningNotes
TExpected crack timeMean time to find the key; worst case is twice this
bEffective key lengthSecurity level in bits, not encoded key size
gAttacker guess rateKeys tested per second; bounded by hardware and physics
2bFull key spaceTotal number of distinct keys
2b−1Expected searchHalf 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

Given: b = 128 bits, g = 10¹² guesses/s — solve for crack time
Expected search = 2¹²⁷ ≈ 1.70 × 10³⁸ keys
T = 1.70 × 10³⁸ ÷ 10¹² = 1.70 × 10²⁶ seconds
= ≈ 5.39 × 10¹⁸ years
Given: b = 56 bits (DES), g = 10¹² guesses/s — solve for crack time
Expected search = 2⁵⁵ ≈ 3.60 × 10¹⁶ keys
T = 3.60 × 10¹⁶ ÷ 10¹² = 3.60 × 10⁴ seconds
= ≈ 10 hours
Given: b = 80 bits, g = 10¹² guesses/s — solve for crack time
Expected search = 2⁷⁹ ≈ 6.04 × 10²³ keys
T = 6.04 × 10²³ ÷ 10¹² = 6.04 × 10¹¹ seconds
= ≈ 19,150 years
Given: T = 100 years, g = 10¹² guesses/s — solve for required key length
T · g = 100 × 3.156 × 10⁷ × 10¹² = 3.156 × 10²¹
b = log₂(3.156 × 10²¹) + 1 = ≈ 72.4 bits
Given: b = 256 bits (AES-256), g = 10²¹ guesses/s (nation-state) — solve for crack time
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.

Calculating...

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
Scenario: A 256‑bit private key has 2^256 possible combinations. With a guessing speed of 10^18 guesses per second, the time to find a specific key is approximately 2^(256-1) / 10^18 = 1.8 × 10^59 years. This is astronomically long, making brute‑force attacks completely infeasible. The security of Bitcoin relies on this.
ParameterValue
Key Length (bits)256
Guesses/sec1e18
1Time ≈ 1.8 × 10^59 years
Result 1.8×10⁵⁹ years ✓ Infeasible
Scenario: Even with 10^12 guesses per second, the time is 1.8 × 10^65 years. This illustrates that the security is not dependent on hardware speed; the key space is simply too large. The user can be confident that their private key is safe from brute‑force attacks.
ParameterValue
Key Length256
Guesses/sec1e12
1Time ≈ 1.8 × 10^65 years
Result 1.8×10⁶⁵ years ✓ Ultra secure
Insight: The time to brute‑force a private key is astronomically large, even with the most powerful computers. This is why cryptographic security relies on the infeasibility of brute‑forcing the key space.

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

Suggest an improvement

Found a mistake? Have a better example? Let us know.
You may send up to 3 suggestions per 24 hours.

Page details

1,079

Views
  • Published July 15, 2026
  • Last updated October 14, 2026