Brute Force Time Calculator

Calculate brute-force attack time for any keyspace. Compare online, offline, and GPU attack speeds to assess password and key security.

Total Combinations
6.63e+15
Sum of all values
Avg. Crack Time (custom)
3.8 days

Attack Scenario Comparison

ScenarioSpeedAvg. Time
Online (throttled)1e+3/s105,184.6 years
Online (fast)1e+5/s1,051.8 years
Offline (fast hash)1e+10/s3.8 days
GPU cluster1e+11/s9.2 hours
Planning notes, formulas, and examples

About the Brute Force Time Calculator

Brute-force attacks systematically try every possible combination until finding the correct one. The time required depends on two factors: the total number of possible combinations (keyspace) and the number of attempts an attacker can make per second. Online attacks are throttled by network latency and server rate limits, while offline attacks against stolen hashes can run billions of times faster.

This calculator lets you define a custom keyspace — either by specifying charset and length or entering total combinations directly — and compare attack times across multiple speed tiers. It covers online throttled attacks, standard offline cracking, modern GPU attacks, and theoretical nation-state capabilities. Use it to evaluate the real-world security of passwords, PINs, encryption keys, and any other secrets protected by finite keyspaces.

When This Page Helps

Different attack scenarios have vastly different speeds, and the same password that withstands online attacks may fall almost immediately to offline GPU cracking. This calculator helps you understand the full threat spectrum so you can design security controls that match your actual risk level. It's essential for setting minimum key lengths, choosing appropriate hash algorithms, and communicating risk to stakeholders.

How to Use the Inputs

  1. Enter the total number of combinations or specify charset size and length to compute it.
  2. Set the attack speed in attempts per second for each scenario.
  3. Review the estimated crack times for online, offline, and GPU attacks.
  4. Compare the results to decide if your keyspace is sufficient.
  5. Adjust parameters to find the minimum configuration that meets your security target.
Formula used
Combinations = Charset ^ Length. Time (seconds) = Combinations / Attempts_per_Second. Average time = Time / 2. Online: ~1,000/s. Offline (fast hash): ~10B/s. GPU cluster: ~100B/s.

Example Calculation

Result: Online: 3.5 years | Offline GPU: 10.9 seconds

An 8-character alphanumeric password has 62⁸ ≈ 218 trillion combinations. At online speeds (1,000/s), average crack time is 3.5 years. But against a stolen hash database at 10 billion/s, it falls in just 10.9 seconds on average. This demonstrates why short alphanumeric passwords are today inadequate for offline security.

Tips & Best Practices

  • Always consider the strongest threat model relevant to your data, not just online attacks.
  • Use rate limiting and account lockout to constrain online attack speeds.
  • Use slow hash functions (bcrypt, Argon2) to reduce offline attack throughput by 100,000×.
  • Add MFA to make brute-force attacks irrelevant for authentication.
  • For API keys and tokens, use at least 128 bits of randomness.
  • PINs and short codes should always have attempt limits and lockout after failures.

Online vs Offline Attacks

The most critical distinction in brute-force security is whether the attacker operates online (against a live system) or offline (against stolen data). Online attacks face rate limits, CAPTCHAs, and account lockouts. Offline attacks face no such constraints and are limited only by hardware speed.

Attack Speed Reference

Online login: 100–1,000/s. Offline MD5: 150B/s per GPU. Offline SHA-256: 10B/s per GPU. Offline bcrypt (cost 12): 50K/s per GPU. Offline Argon2id: 1K/s per GPU. A 4-GPU rig multiplies these by four.

Practical Keyspace Requirements

For online-only secrets with lockout: 4–6 digit PINs suffice. For offline fast-hash security: 14+ random mixed characters. For offline slow-hash security: 10+ random mixed characters. For encryption keys: 128+ bits of true randomness.

Defense in Depth

No single control provides complete protection. Combine strong keyspaces with slow hashing, rate limiting, account lockout, MFA, and breach monitoring for comprehensive security.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Online attacks try passwords against a live login system and are limited by network speed, rate limiting, and lockouts (typically 100–1,000 attempts/s). Offline attacks work against stolen hash databases with no external limits, running billions of attempts per second on GPUs.