How Long Should a Password Be?

How many characters you need for email, banking, WiFi, and everything else, with the strength math shown so you can check it.

At least 16 random characters for most accounts. That meets NIST's 15-character minimum and CISA's 16-character recommendation and gives about 104 bits of strength. Use 20 characters, or a seven-word passphrase, for your email and password manager.

Quick password

    More options

    On this page

    The short answer by use

    Recommended length by use
    UseLengthNotes
    Most online accounts16 random charactersAbout 104 bits. Meets NIST's 15 and CISA's 16.
    Email and password manager20 random characters, or a 7-word passphraseThese protect everything else, so give them more margin.
    Passwords you type from memory6 to 7 random wordsAbout 77 to 90 bits and easier to type.
    WiFi network20 or more charactersWPA2 and WPA3 Personal allow 8 to 63.
    API keys and tokens256 bitsUse the API key generator; nobody needs to type these.

    Why length matters most

    Every character you add multiplies the number of possible passwords by the size of the character set. Going from 12 to 16 characters with all 94 printable characters multiplies the possibilities by 944, about 78 million. Adding symbols to a letters-and-digits password, by contrast, raises the per-character strength from about 5.95 bits to 6.55 bits.

    Strength in bits of a randomly generated password, by length and character set (bits = length × log2(set size))
    LengthLowercase only (26)Letters and digits (62)All printable ASCII (94)
    8384852
    10476066
    12567179
    14668392
    167595105
    2094119131
    24113143157
    32150191210

    How long it takes to guess

    The figures below assume the worst case: an attacker has stolen a database with a fast, unsalted hash and can try 10 billion guesses per second. Sites that use slow password hashing make real attacks far slower. Treat these as a floor, not a prediction.

    Average time to guess a random password from 94 characters at 10 billion guesses per second (half the possibilities tried)
    LengthBitsAverage time
    8524 days
    106685 years
    1279754,050 years
    14926,663 million years
    16105more than a trillion years
    20131more than a trillion years

    These times only apply to random passwords. A made-up password of the same length can fall in seconds if it follows a common pattern.

    What NIST and CISA recommend

    • NIST SP 800-63B-4: at least 15 characters for a password used on its own, at least 8 when it's one factor of multi-factor sign-in. Sites should accept at least 64 characters.
    • CISA: at least 16 characters, random, and unique to each account.
    • WPA2 and WPA3 Personal WiFi: 8 to 63 printable ASCII characters.

    If a site caps length below 15, use the maximum it allows and turn on two-factor authentication if it's offered.

    Is there such a thing as too long?

    For strength, no. In practice, some sites cut off or reject long passwords. If a site rejects a long password, try its stated maximum length, or use the password rules generator to match its rules exactly. Past about 128 bits (20 random characters from 94), extra length adds safety margin you're unlikely to need for an ordinary account.

    Frequently asked questions

    Is 8 characters long enough?

    Not for a password used on its own. Eight random characters from all 94 printable characters is about 52 bits, which can be guessed in a few days on average at 10 billion guesses per second. NIST allows 8 only when the password is one factor of multi-factor sign-in.

    Is a 12-character password secure?

    A random 12-character password from all four character types is about 79 bits, which is fair but below NIST's 15-character minimum for a password used alone. Sixteen characters is a better default.

    Is a longer password always better?

    For random passwords, yes, each character adds strength. The catch is that some sites reject long passwords, so check the site's maximum.

    Related guides and tools

    Sources

    1. NIST SP 800-63B-4: Authentication and Authenticator Management, National Institute of Standards and Technology
    2. Use Strong Passwords, Cybersecurity and Infrastructure Security Agency
    3. Wi-Fi Protected Access (glossary), FreeRADIUS