Skip to content
ENExplore Calculators

Password Complexity Calculator

Turn a composition policy into the character set, combination count and entropy it actually produces.

About Password Complexity Calculator

A composition policy sets a floor, not a typical value: the weakest password it permits is one of minimum length drawn from the allowed characters. Allowing symbols lifts the charset from 62 to 95, worth 0.62 bits per character, while each extra required character is worth a full log2(charset) bits. Policies are usually argued about in terms of rules; converting them into an entropy floor shows which rules buy real strength and which only annoy users.

Formula

Password Complexity

combinations = charset size ^ minimum length, and the policy's entropy floor = minimum length × log2(charset size).

charset size
26 lowercase + 26 uppercase + 10 digits + 33 symbols, per the classes you allow
minimum length
Shortest password the policy accepts

Worked example

With the default values below, Password Complexity Calculator returns Policy Entropy Floor of 78.8. Change any input above and every figure here is recalculated in your browser.

Inputs used

Minimum length requiredaccepts 1–128 characters
12 characters
Lowercase allowed
Yes
Uppercase allowed
Yes
Digits allowed
Yes
Symbols allowed
Yes
Classes the policy forcesaccepts 0–4 classes
3 classes

Results

Policy Entropy Floor
78.8 bits
Character Set Size
95 characters
Possible Passwords
5.404 × 10²³
Classes Available
4 of 4
NIST SP 800-63B Verdict
Partly compliant — length is fine, but SP 800-63B advises dropping forced composition rules

Step by step

  1. 1Values used
  2. 2Password Complexity
  3. 3Policy Entropy Floor= 78.8 bits
  4. 4Character Set Size= 95 characters
  5. 5Possible Passwords= 540,360,087,662,637,000,000,000.000
  6. 6Classes Available= 4 of 4
  7. 7NIST SP 800-63B Verdict= Partly compliant — length is fine, but SP 800-63B advises dropping forced composition rules

Assumptions and limits

  • The result is derived only from the 6 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
  • Figures are rounded for display to 3 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

Frequently Asked Questions

How is Password Complexity calculated?

combinations = charset size ^ minimum length, and the policy's entropy floor = minimum length × log2(charset size). A composition policy sets a floor, not a typical value: the weakest password it permits is one of minimum length drawn from the allowed characters. Allowing symbols lifts the charset from 62 to 95, worth 0.62 bits per character, while each extra required character is worth a full log2(charset) bits.

Why does Password Complexity matter?

Policies are usually argued about in terms of rules; converting them into an entropy floor shows which rules buy real strength and which only annoy users.

What values do I need to enter?

This calculator takes 6 inputs: Minimum length required, Lowercase allowed, Uppercase allowed, Digits allowed, Symbols allowed, Classes the policy forces. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Why does NIST advise against forced composition rules?

SP 800-63B found that mandatory class rules push users toward predictable patterns — a capital at the front, a digit and an exclamation mark at the end — which mangled wordlists model directly. The guidance keeps the length minimum and the breach-list check, and drops the class requirements.

Does forcing classes lower the entropy?

Slightly, in theory: requiring at least one of each class removes some passwords from the keyspace. The effect is a fraction of a bit. The real cost is behavioural, not mathematical.

Password Complexity Calculator | Calcrivo