
WPA2 Password: How It Works, Length Rules and How to Make It Strong
Your WPA2 password is the single key that guards your Wi-Fi network. It decides who can join, who can see your traffic, and how hard it is for a stranger parked outside to break in. Yet most people set it once — often to something short and memorable — and never think about it again. That is exactly what attackers count on.
This guide explains what a WPA2 password is, how it works, the exact length rules, and how to create one that is genuinely strong. You will also learn how to change it, when to change it, and the mistakes that make even a long password weak.
What Is a WPA2 Password?
A WPA2 password — properly called a pre-shared key, or PSK — is the passphrase you enter to join a Wi-Fi network protected by WPA2 (Wi-Fi Protected Access 2). On a home or small-office network, the router and every device share the same passphrase. When a device connects, it uses that passphrase to prove it is allowed on the network and to derive the encryption keys that protect its traffic.
WPA2 replaced the broken WEP and the original WPA in 2004 and became the standard for Wi-Fi security for nearly two decades. It uses the AES encryption standard with CCMP (Counter Mode with Cipher Block Chaining Message Authentication Code Protocol), which is still considered secure when configured correctly. Its successor, WPA3, improves on it, but WPA2 remains the most widely used Wi-Fi security protocol in homes and offices — and the password is its weakest link.
How Does a WPA2 Password Work?
Your WPA2 password is never sent over the air. Instead, the router and your device use it in a four-way handshake to agree on fresh encryption keys for that session. Understanding the steps helps you see why length and randomness matter so much.
- Key derivation: When you type your passphrase, your device combines it with the network name (SSID) and runs it through PBKDF2 — a key-stretching function — 4,096 times, using SHA-1. The result is a 256-bit Pairwise Master Key (PMK). Because the SSID is part of the input, the same password produces a different PMK on every network.
- The four-way handshake: The device and the access point exchange random numbers (nonces) and use the PMK to derive a Pairwise Transient Key (PTK) — a set of session keys unique to that device and that connection.
- Message integrity: The handshake messages are signed with a Message Integrity Code, so each side can confirm the other really knows the passphrase — without the passphrase ever crossing the airwaves.
- Encrypted traffic: Once the handshake succeeds, all traffic is encrypted with AES-CCMP using the session keys. The keys are discarded when the device disconnects, and a fresh set is negotiated on the next connection.
Here is the crucial point for attackers: if someone captures the four-way handshake — which is broadcast in the clear — they can take it home and try password guesses offline, as fast as their hardware allows. There is no lockout, no rate limit, and no alert. A short or predictable password can be cracked in hours; a long random one would take centuries. That offline attack is why the length rules below are not academic.
WPA2 Password Length Rules
WPA2 passphrases follow the rules of the 802.11i standard, and they are strict. Get them wrong and the router will simply refuse the password.
| Rule | Passphrase (ASCII) | Hex key |
|---|---|---|
| Minimum length | 8 characters | 64 characters |
| Maximum length | 63 characters | 64 characters |
| Allowed characters | Printable ASCII (letters, numbers, symbols, spaces) | Hexadecimal only (0–9, a–f) |
| What it becomes | Fed through PBKDF2 to make a 256-bit key | Used directly as the 256-bit key |
In plain terms: a WPA2 password must be at least 8 characters and at most 63 characters if you use ordinary text, or exactly 64 hexadecimal characters if you use a raw hex key. An 8-character password is the legal minimum — it is not a recommendation. Every character you add multiplies the number of guesses an attacker must try, and the PBKDF2 stretching only slows them down; it does not save a weak password.
How Long Should a WPA2 Password Be?
Security guidance has converged on a simple answer: 20 characters or more, randomly generated or built from several unrelated words. A 12-character random password using upper- and lowercase letters, digits and symbols has roughly 9512 combinations — far beyond any offline attack. A 16-character password is stronger still, and a 20-character passphrase made of five random words is both strong and memorable.
By contrast, an 8-character password made of lowercase letters has only 268 — about 209 billion — combinations. A modern graphics card can test billions of WPA2 guesses per second against a captured handshake, so that password can fall in minutes to hours. The table below shows why length beats cleverness.
| Password type | Example pattern | Relative strength |
|---|---|---|
| 8 lowercase letters | abcdefgh | Weak — crackable in hours |
| 8 mixed characters | Tr7!kQ9z | Better, but short — crackable in days |
| 12 random mixed characters | 9f!Kq2#Xm8$Lp | Strong — centuries with current hardware |
| 16 random mixed characters | Random 16-character string | Very strong |
| 20+ characters, five random words | Five unrelated words with a number and symbol | Very strong and memorable |
| 64 hex characters | 64-character hexadecimal key | Maximum strength, but hard to type |
WPA2-Personal vs WPA2-Enterprise
Most homes use WPA2-Personal (WPA2-PSK): one shared passphrase for everyone. Businesses usually use WPA2-Enterprise (WPA2-EAP), where each user logs in with their own username and password or a certificate, checked against a RADIUS server. The difference matters for password policy.
| Feature | WPA2-Personal (PSK) | WPA2-Enterprise (EAP) |
|---|---|---|
| Who uses it | Homes and small offices | Businesses, schools, hospitals |
| Credentials | One shared passphrase | Individual username and password or certificate |
| If a password leaks | Everyone must change it | Only that user’s credentials are revoked |
| Password rules | 8–63 ASCII characters | Set by the organisation’s policy |
| Attack surface | Offline handshake cracking | Credential theft and rogue access points |
If you run a small business on a shared WPA2 password, consider the enterprise mode: when an employee leaves, you revoke one account instead of changing the Wi-Fi password on every device. Wireless intrusion prevention is also worth understanding — see our guide to WIPS: what a wireless intrusion prevention system does — and the Wi-Fi standard behind your router’s speed, explained in our guide to MU-MIMO: what it is and how it works.

How to Make a Strong WPA2 Password
Follow these rules and your WPA2 password will resist the offline attacks that defeat most home networks.
- Use at least 16 characters — 20 is better. Length is the single biggest factor. A 20-character passphrase is vastly stronger than an 8-character one with symbols.
- Make it random, not meaningful. Dictionary words, names, dates, sports teams and song lyrics are the first things cracking tools try. Use a password manager to generate a random string, or pick five genuinely unrelated words.
- Mix character types. Upper- and lowercase letters, numbers and symbols expand the search space. But do not substitute symbols for letters in a common word (“P@ssw0rd”) — cracking tools know every such trick.
- Never reuse a password. Your Wi-Fi password should be unique. If it matches a password leaked in a data breach, an attacker who finds it can walk onto your network.
- Avoid your network name and address. Do not use your SSID, street, family names or birthdays anywhere in the password.
- Store it in a password manager. You only type a Wi-Fi password when adding a new device, so there is no reason to memorise a short one. Generate a long random string and save it.
- Use a passphrase you can type. If family members must type it on a TV remote, five random words separated by hyphens are far more usable than 20 random characters — and still very strong.
A good test: if you can guess your password from a few facts about your life, so can an attacker. If it looks like keyboard noise or five words with no connection to each other, it is probably strong.
How to Change Your WPA2 Password
Changing the password is a five-minute job on most routers, though the menus vary by brand. The general steps are:
- Connect a computer to the router by cable or Wi-Fi.
- Open a browser and go to the router’s admin address — usually 192.168.1.1 or 192.168.0.1, printed on the router label.
- Log in with the router’s admin username and password (not the Wi-Fi password). If these are still the factory defaults, change them too.
- Open Wireless Settings or Wi-Fi Security, find the WPA2-Personal (PSK) passphrase field, and enter your new password.
- Save, let the router restart its wireless radio, and reconnect every device with the new password.
Change the password whenever someone who had it no longer needs it — a former tenant, an ex-employee, a guest whose visit is over — and immediately if you suspect someone unknown is on your network. After changing it, also check the list of connected devices in the router admin page: any device you do not recognise should be investigated. For the wider network picture, see our guide to what a network switch is and how it works.
Common WPA2 Password Mistakes
- Using the router’s default password. Default passwords are published online by model. Change them on day one.
- Leaving WPS enabled. Wi-Fi Protected Setup lets devices join with a PIN or a button press — and the PIN mode is vulnerable to brute force. Disable WPS in the router settings.
- Choosing WPA2 with TKIP. TKIP is the older, weaker encryption from WPA. Set your router to WPA2-AES (CCMP) only, or WPA2/WPA3 mixed mode if you have newer devices.
- Sharing the password by text or photo. A screenshot of the password lives forever in a chat history. Use your router’s guest network for visitors instead.
- Never changing it. A password shared with dozens of people over years is no longer a secret. Rotate it at least once a year, and whenever your household or team changes.
- Hiding the SSID for “security”. Hiding your network name does not stop attackers — the SSID is broadcast in probe requests anyway — and it makes connecting harder for your own devices.
WPA2 vs WPA3 Passwords
WPA3, the successor to WPA2, changes the handshake rather than the password rules. It replaces the four-way handshake’s pre-shared key exchange with SAE (Simultaneous Authentication of Equals), which makes offline dictionary attacks far harder: an attacker must interact with the access point for every guess, and the access point can rate-limit them. WPA3 also requires a minimum password strength on many devices and mandates 192-bit encryption in its enterprise mode.
The password length rules are the same — 8 to 63 characters — but a WPA3 password is harder to crack even if it is weak. If your router and devices support WPA3, use WPA2/WPA3 transitional mode so older devices can still connect while newer ones get WPA3 protection. If your router only supports WPA2, a long random password is your best defence.
Frequently Asked Questions
What is the minimum WPA2 password length?
Eight characters. A WPA2 passphrase must be between 8 and 63 ASCII characters, or exactly 64 hexadecimal characters. Anything shorter is rejected by the router.
Can a WPA2 password contain spaces?
Yes. Spaces are printable ASCII characters, so they count toward the length. A passphrase made of words separated by spaces is valid — and often easier to type than a string of symbols.
Is an 8-character WPA2 password safe?
No. Eight characters is the minimum the standard allows, not a safe choice. With a captured handshake, an 8-character password can be cracked in hours. Use at least 16 characters, and 20 or more if you can.
How do I find my WPA2 password?
On a Windows computer connected to the network, open the Wi-Fi properties and show the network security key. On a Mac, find it in Keychain Access. On the router, it is in the wireless security settings. If you cannot find it anywhere, reset the password and reconnect your devices.
Does changing my WPA2 password kick off intruders?
Yes — changing the password forces every device to re-authenticate, so anyone who only knew the old password is locked out. Also change the router admin password, check connected devices, and disable WPS.
Is WPA2 still safe in 2026?
Yes, when used correctly: WPA2-AES with a long random password is still secure for home and small-office use. Its known weakness, the KRACK attack, was patched years ago — keep your router firmware updated. For the strongest protection, use WPA3 where your devices support it.
Conclusion
A WPA2 password is only as strong as the passphrase behind it. The protocol itself — AES encryption, a 256-bit master key, a four-way handshake — is sound. The failures almost always come from short, predictable passwords that fall to offline guessing against a captured handshake. Set a passphrase of at least 16 characters, ideally 20 or more, make it random or built from unrelated words, store it in a password manager, disable WPS, and use WPA2-AES. Do that, and your Wi-Fi password stops being the weakest link in your network.



[…] Secure the router. Change the default admin password, update the firmware, and use a strong Wi-Fi password. For help with that last step, see our guide to how to make a strong WPA2 password. […]
[…] your Wi-Fi password too: a weak Wi-Fi password lets anyone nearby join your network. Our guide to how to make a strong WPA2 password explains how to choose a strong network password and when to update […]