Skip to content
Password Generator
04 · Learn

How long should a password be? NIST, CISA and NCSC rules side by side

6 min read · 5 sections

Fifteen characters is the floor NIST sets for a password that stands alone, sixteen is what CISA asks for, and the UK NCSC says three random words will do. How long a password should be depends on those sources less than on one condition they all share: the characters or words must be random, and unique to the account.

When I set up a password policy for a small office, the first meeting is spent reading these three documents side by side and turning each into bits. The comparison below is that exercise, plus what to do when a website's own rules are stricter or sillier than the official guidance. This is general information, not compliance advice; check the current official text before you write a policy.

Three sources side by side

What each source asks for
SourceLength or wordsComposition rulesOther points
NIST SP 800-63B-4At least 15 characters when the password is the only factor; at least 8 when it is used only inside multi-factor login. Verifiers should allow 64 or more.None: no forced mix of character types. Accept all printing ASCII characters and the space.Check new passwords against a blocklist of common, expected or compromised values. No forced periodic change unless there is evidence of compromise.
CISAAt least 16 characters, random, or a passphrase of 5 to 7 unrelated words.Mix of upper and lower case, numbers and symbols for the random option.Unique for every account. See also CISA's consumer advice.
UK NCSCThree random words.Complexity rules push people into predictable patterns, so avoid them.A password manager is still the preferred option.

The three do not contradict each other as much as they appear to. NIST and CISA disagree on composition rules, but they land within one character of each other, and all three insist on randomness and uniqueness.

What those numbers are worth in bits

A length is a promise only if the content is random. Here is each minimum converted at random, with the time to try every combination against a slow hash (10⁴ guesses a second) and a fast hash (10¹⁰ a second). The method for these figures is in the entropy guide.

Minimums converted to bits, assuming random choice
SettingBitsSlow hash, 10⁴/sFast hash, 10¹⁰/s
3 EFF words (NCSC)38.771.5 years47 seconds
8 letters and digits, both required (NIST floor with MFA)47.18506 years4.4 hours
8 characters from the 88-character set51.6811,400 years4.2 days
5 EFF words (CISA low end)64.6290 million years90 years
15 random lowercase letters (NIST single factor)70.515.3 billion years5,300 years
7 EFF words (CISA high end)90.475.4 quadrillion years5.4 billion years
15 random characters, 88-set96.894.7 × 10¹⁷ years4.7 × 10¹¹ years
16 random characters, every type required (CISA)103.113.5 × 10¹⁹ years3.5 × 10¹³ years
Bar chart of bits for rule minimums: 3 words 38.8, 8 letters and digits 47.2, 5 words 64.6, 15 lowercase 70.5, 7 words 90.5, 16 mixed characters 103.1
The same "length" can be worth 38 or 103 bits, depending on what the characters are.

Three observations follow from this. A random lowercase password at the NIST single-factor length of 15 is worth 70.5 bits, solid but not extravagant; with the full character set the same length is worth 96.9. Three words are an excellent trade for memorability and a thin margin if a fast hash leaks. And the "8 characters when MFA is present" floor only holds up because a second factor covers the gap, since 47 bits is minutes to hours of work for a GPU rig.

My own recommendation is to treat three words as the minimum, use five for accounts I must type, and use six or seven for the passphrase that opens everything else. The reasoning is in the passphrase guide.

When the website has its own rules

Real sites cap length, forbid symbols or demand types that official guidance would drop. You do not need to give up strength to comply, but you must see what each restriction costs. The generator lets you set the allowed symbols, the maximum length and whether every selected type is required, and recalculates the entropy exactly for the rule.

What a site restriction costs a random password
RestrictionBits
12 characters, all four types, 26 symbols77.05
12 characters, only the symbols !@#$%, every type required71.81
16 characters, all four types103.11
16 characters, all four types, look-alike characters excluded (0 O o 1 l I |)101.12
15 characters, lowercase only70.51

Restricting symbols to five costs about five bits at 12 characters; excluding the look-alikes costs two bits at 16, which is cheap if you ever have to read the password aloud. Fit a picky site in this order:

  1. Set the maximum length first, at the most the site accepts. Length is the strongest lever.
  2. Enter the site's allowed symbols exactly as listed. Leave out any symbol it rejects, since a failed sign-up is not a security feature.
  3. Keep "require every type" on if the site insists; at 12 characters or more it costs under half a bit.
  4. Test the full password. If you suspect a site truncates long entries silently, sign out and sign in again right after creating the account.
  5. If the cap is under 12, treat the account as protected by the second factor, not by the password, and enable it.

NIST's text says verifiers should allow at least 64 characters, so a site that stops you at 16 is below that guidance. It is a reason to enable a second factor, not to shorten your password.

PINs are a different animal

A PIN has only ten symbols per position, so length helps slowly: a 4-digit PIN is 13.29 bits (10,000 possibilities), a 6-digit PIN is 19.93 bits (1,000,000). Against a login that allows 100 guesses an hour, a 6-digit PIN takes up to 10,000 hours, about 1.1 years. Against an offline attack at 10⁴ guesses a second it falls in 100 seconds. A PIN is safe only where something stops the guessing, such as a lockout after a few attempts or a hardware chip that counts failures. Never use one where an attacker could copy the data and guess offline.

A policy checklist for small offices

  • Allow long passwords and passphrases, at least 64 characters, and accept spaces and every printable character.
  • Set the minimum at the length that matches your factor: 15 on its own, shorter only where multi-factor login is enforced.
  • Drop forced mixes of character types and scheduled changes; keep a check against common and breached passwords.
  • Give staff a password manager and a rule of one password per account.
  • For temporary passwords, generate them in bulk with the tool, set them to expire at first login and never reuse them.

Before you publish a policy, read the official documents above in their current form; this page summarises them but does not replace them. To see where a particular password stands, check it locally or open the password generator and watch the bits change as you adjust the length.

Quick answers

How long should a password be?

NIST asks for at least 15 characters when the password is the only factor and 8 inside multi-factor login. CISA asks for at least 16 characters or a passphrase of 5 to 7 unrelated words. All of them assume random, unique passwords.

What does NIST say about password complexity?

NIST's current guidance for verifiers says not to impose composition rules, to allow at least 64 characters, to accept all printing ASCII characters and spaces, and to check new passwords against a blocklist. Read the current text for the exact wording.

What if a site limits password length or symbols?

Set the maximum length first, enter the site's allowed symbols, and keep the require-every-type option on if the site demands it. Enable a second factor when the cap is below 12 characters.

Is a six-digit PIN safe?

A six-digit PIN is 19.93 bits. It is safe only where a lockout limits guessing: at 100 guesses an hour it takes up to about 1.1 years, but offline at 10,000 guesses a second it takes about 100 seconds.

Run the password generator

More learn