The fastest way depends on your operating system
Your lock screen password is the first barrier between someone at your computer and your files. Changing it regularly, or whenever you suspect someone knows it, takes about five minutes on any major operating system — but the steps are different for Windows, Mac, and Linux.
On Windows 11 or 10, you go through Settings. On macOS, you use System Settings and your Apple ID. On Linux, the method varies by distribution, but most use a terminal command or the user management tool in your system settings. This guide walks through each one in order.
Key Takeaways
- Windows users open Settings, select Accounts, then Password, and click Change to enter a new password.
- Mac users go to System Settings, select General, then Login Items & Extensions, and change the password through their Apple ID settings.
- Linux users typically open a terminal and run passwd, or use the Users tool in system settings depending on their distribution.
- You will need to know your current password to change it on any system, unless you have already forgotten it.
- After you change your password, you will need to use the new one the next time you lock or restart your computer.
Changing your password on Windows 11 or Windows 10
Open the Start menu and type "Settings" into the search box, then click Settings. In the left sidebar, select Accounts. On the left side again, click Password. You will see a button that says Change — click it.
Windows will ask you to enter your current password first. Type it in and click Next. Then enter your new password twice — once in the "New password" field and once in the "Reenter password" field. Windows will show you a strength indicator as you type. Click Next, then Finish. Your new password takes effect the next time you lock your screen or restart your computer.
If you use a PIN or Windows Hello (fingerprint or face recognition) instead of a password, you can change those from the same Password page. Look for the PIN or Biometric section and follow the same process.
Changing your password on macOS
Click the Apple menu in the top-left corner and select System Settings. In the sidebar, click General. Scroll down and select Login Items & Extensions. You will not change your password here — instead, look for a section labeled Password or Change Password in the main area, or click the lock icon at the bottom of the window.
If you do not see a password option there, go back to System Settings and look for General again, then scroll to find Users & Groups or Accounts (the name varies by macOS version). Select your user account, click the lock icon to unlock it, then look for Change Password. You will need to enter your current password, then your new password twice.
On newer Macs, your lock screen password is tied to your Apple ID. If you change your password through System Settings, it updates both your login password and your Apple ID password. If you only want to change one, you may need to do it through your Apple ID account settings online instead.
Changing your password on Linux
The method depends on which Linux distribution you use. The most common approach is to open a terminal and type passwd, then press Enter. The system will ask you to enter your current password, then your new password twice. You will not see characters appear as you type — this is normal and a security feature.
If you prefer a graphical tool, most distributions include a Users or Accounts tool in their system settings. Open your system settings, look for Users or Accounts, select your user account, and look for a Change Password button. The exact location varies — Ubuntu, Fedora, and other distributions arrange these menus differently.
If you are using a desktop environment like GNOME or KDE, you can also right-click on your user account in the system menu and look for password options. If none of these work, check your distribution's documentation, as some use different tools.
What to do if you have forgotten your current password
On Windows, you can use a password reset disk if you created one before you forgot your password. If you did not, you will need to use another administrator account on the same computer, or reset your password through your Microsoft account online. Go to account.microsoft.com, select Security, and follow the password reset process. You will then be able to log back in and change your lock screen password using the steps above.
On Mac, restart your computer and hold Command + S to enter Single-User Mode. You can then reset your password from the command line. Alternatively, restart and hold Command + R to enter Recovery Mode, then use the Utilities menu to reset your password. Both methods require some technical knowledge — if you are not comfortable with either, contact Apple Support or take your Mac to an Apple Store.
On Linux, if you have access to another user account with administrator privileges, you can use the terminal command sudo passwd username (replacing "username" with your account name) to reset that user's password. If you do not have another account, you will need to boot into recovery mode or single-user mode, which varies by distribution.
Why you should change your password regularly
Changing your lock screen password every few months makes it harder for someone who has seen you type it, or who has guessed it, to access your computer later. If you share your computer with others, changing it periodically ensures that people who no longer use the computer cannot log in. If you suspect someone knows your password — because you typed it in front of them, or you used the same password elsewhere and that password was leaked — change it immediately.
A strong password is at least 12 characters long and includes uppercase letters, lowercase letters, numbers, and symbols. Avoid passwords based on your name, birthday, or common words. If you use the same password across multiple accounts, change all of them, not just your lock screen.
Frequently Asked Questions
Do I need to restart my computer after changing my password?
No, but the new password does not take effect until you lock your screen or restart. If you change your password and immediately try to log in again without locking, you can still use the old one. Lock your screen (Windows: Windows key + L, Mac: Control + Command + Q, Linux: depends on your desktop environment) to test the new password.
Can I change my password if I do not remember the old one?
Not through the normal password change process — you will need to use a password reset option instead. On Windows, use your Microsoft account reset. On Mac, use Recovery Mode. On Linux, use another administrator account or boot into recovery mode. See the section above for details.
What if I change my password and then forget the new one?
You will be locked out of your computer. The recovery process is the same as forgetting any password: Windows users reset through their Microsoft account, Mac users use Recovery Mode, and Linux users boot into recovery mode or use another administrator account. This is why writing down your new password somewhere secure (like a password manager) is a good idea.
Will changing my lock screen password affect my other accounts?
On Windows and Linux, your lock screen password is separate from other accounts you use. Changing it does not affect your email, social media, or work accounts. On Mac, your lock screen password is connected to your Apple ID, so changing one may change the other depending on your settings. Check your Apple ID settings if you want to keep them separate.
Can I use a PIN or biometric instead of a password?
Yes. Windows lets you set up a PIN, Windows Hello (face or fingerprint), or both alongside your password. Mac supports Touch ID or Face ID. Linux support varies by distribution and hardware. You can usually use any of these methods to unlock your screen, so you do not have to choose just one.