Skip to main content
Math

Password Strength (Entropy) Calculator

Type any password and instantly see its entropy in bits (log₂(pool^length)), which character classes it uses, and how long it would take to crack on average under four attacker models — throttled online, unthrottled online, offline bcrypt and an offline GPU rig. Everything runs locally in your browser; your password is never sent anywhere.

Entropy

bits

Strength scale

Very weak
< 28
Weak
28–36
Reasonable
36–60
Strong
60–128
Very strong
≥ 128

Length

Character pool

Classes detected

Online, throttled (10/s)

Online, unthrottled (1k/s)

Offline bcrypt (10k/s)

Offline GPU MD5/SHA-1 (10 billion/s)

Upper-bound estimate — ignores dictionary patterns. Use a password manager for truly random passwords.

Formula

entropy_bits = length × log₂(poolSize) poolSize = lowercase(26) + uppercase(26) + digits(10) + symbols(32) + space(1) + other(100) average crack time = 2^(entropy − 1) ÷ guesses_per_second

Frequently asked

How many bits of entropy is "enough"?

For everyday online accounts, 60 bits is comfortably above what offline attackers can crack — at 10¹⁰ guesses/s it averages ~600 years. For high-value accounts (online banking, crypto wallets, enterprise admin) aim for 80–100 bits, with 128 bits matching AES-128 strength as a target. Bear in mind that entropy is just one dimension of safety: a phished or logged plaintext password is broken regardless of bit count, so pair strong entropy with 2FA and unique-per-site passwords.

Why does "P@ssw0rd1" show 58 bits but is still considered weak?

"P@ssw0rd1" looks like 58 bits under the pool-size formula because it has 9 mixed-class characters. But this assumes uniform random selection — and "P@ssw0rd1" is obviously "Password" with stock leetspeak. Hashcat's rule-based attacks try those substitutions first, so the effective entropy is more like 13–20 bits and a GPU breaks it in seconds. Genuine 58-bit strength needs 9 truly random ASCII characters such as "K7$mP!2qZ".

Is a long passphrase or a complex password better?

Length beats complexity. A 20-character random all-lowercase passphrase has ~94 bits (20 × log₂(26)) — stronger than 8 mixed-class characters (~52 bits) and far easier to remember. The EFF Diceware list gives ~12.92 bits per word (log₂(7776)); 5 words ≈ 64.6 bits, 6 words ≈ 77.5 bits. That is the math behind XKCD #936's "correct horse battery staple". Try both "correct horse battery staple" and "K7$mP!" in this tool to compare.

Does this tool send my password anywhere?

No. The entire calculation is bundled into front-end JavaScript (src/lib/math/password-entropy.ts) and runs entirely offline once the page loads — no network requests are made when you type. We also deliberately avoid writing the password to the URL search params, so it never enters browser history or the Referer header. Copying the share link gives you a clean URL.

Related tools

Percentage Calculator

Percent of, percent change, and percent add/subtract in one.

GCD & LCM Calculator

Enter 2–6 positive integers to get the greatest common divisor (HCF / GCD) and least common multiple (LCM), with the Euclidean step chain shown.

Average Calculator (Mean / Median / Mode)

Enter a list of numbers to get the mean, median, mode, range plus standard deviation, variance and total.

Quadratic Equation Solver

Enter the coefficients of ax² + bx + c = 0 to find the real or complex roots, discriminant and vertex.

Scientific Notation Converter

Convert between standard decimal numbers and scientific notation, with significant figures and order of magnitude.

Permutations & Combinations (nPr / nCr) Calculator

Compute permutations P(n,r), combinations C(n,r) and factorial n! — useful for probability problems, lottery odds and combinatorics homework.

Standard Deviation Calculator

Paste a list of numbers to compute mean, median, sample and population variance and standard deviation — with the working shown.

Triangle Calculator (SSS / SAS / ASA)

Solve a triangle from 3 sides, 2 sides + 1 angle, or 2 angles + 1 side — area, perimeter and remaining parts via the law of sines / cosines.

Pythagorean Theorem Calculator

Given any two sides of a right triangle (two legs, or one leg plus the hypotenuse), instantly find the third side, area, perimeter and the two non-right angles.

Circle Calculator (radius / diameter / circumference / area)

Enter any one of radius, diameter, circumference or area to get the other three — useful for design, engineering and DIY.

Roman Numeral Converter

Two-way conversion between Arabic numbers (1–3999) and Roman numerals (I, V, X, L, C, D, M) — handy for typesetting, chapter titles and homework.

Slope & Line Equation Calculator (y = mx + b from Two Points)

Enter two points (x₁, y₁) and (x₂, y₂) to instantly get the slope, y-intercept, line equation y = mx + b, distance, and midpoint — a classroom staple for algebra and coordinate geometry.

Birthday Paradox Calculator

Enter group size n to see the probability that at least two people share a birthday — the classic birthday problem.

Logarithm Calculator (log / ln / log₂ / any base)

Compute logₐ(x) for any base — natural log (ln), common log (log₁₀), binary log (log₂) and a custom base, with the change-of-base steps shown.

Z-Score (Standard Score) Calculator

Enter a value, the mean and the standard deviation to compute the z-score and the corresponding normal-distribution percentile and probabilities.

Screen Pixel Density (PPI) Calculator

Enter the screen resolution and diagonal size to get pixel density (PPI), real width/height, dot pitch and total pixel count.

Hong Kong Mark Six Odds Calculator

Enter the number of tickets / selections and see the actual probability of hitting first, second … prizes in a Mark Six (6-of-49) draw.

Decimal to Fraction Converter

Convert any decimal (including repeating decimals) to a simplified fraction and a mixed number.

Sphere Volume & Surface Area Calculator

Give a sphere any one of radius, diameter, surface area or volume and instantly get the other three — plus the great-circle circumference and area.

Cylinder Volume & Surface Area Calculator

Enter the radius and height of a cylinder to get volume (π r²h), lateral surface, base area and total surface area.

Prime Factorization Calculator

Factor any integer from 2 up to 10¹² into primes, see the canonical exponent form, count and list all divisors.

Geometric Mean Calculator

Compute the n-th root of the product of n positive numbers — the right average for growth rates, returns and ratios — alongside the arithmetic mean for comparison.

Fibonacci Sequence Calculator

Enter any integer n from 0 to 1500 to instantly compute F(n) and F(n−1) with BigInt precision, the consecutive-term ratio (converging to the golden ratio φ) and the first 30 terms of the sequence.