Change your password through System Settings
Open System Settings on your iMac, then go to General > Password. Click the lock icon in the bottom left, enter your current password, and click Unlock. Type your new password twice — once in "New password" and once in "Verify" — then click Change Password. Your iMac will use the new password the next time you log in or wake the computer from sleep.
If you do not see a Password option under General, your iMac is running an older version of macOS. On macOS Ventura and earlier, the password setting lives in System Preferences > Users & Groups instead. Click the lock icon, select your user account on the left, click Change Password, and follow the same steps.
The password you change here is the one you use to log in at startup and to unlock your iMac after it sleeps. It is also the password you enter when the system asks for permission to install software or change settings.
Key Takeaways
- On macOS Sonoma and newer, open System Settings, go to General > Password, unlock the panel, and type your new password twice.
- On macOS Ventura and earlier, use System Preferences > Users & Groups, select your account, and click Change Password.
- Your iMac will ask for the new password the next time you log in or wake from sleep.
- If you forget the new password when ready after changing it, restart your iMac and try logging in with the old one — the change may not have taken effect yet.
What happens if you enter your current password wrong
If you type your current password incorrectly when unlocking the password panel, System Settings will show an error and ask you to try again. You get three attempts before the panel locks temporarily. Wait a few minutes and the lock will reset, letting you try again.
This protection exists so that someone who briefly gains access to your unlocked iMac cannot straightforward change your password and lock you out. If you are locked out of the password panel, the fastest way forward is to restart your iMac and try once more from the beginning.
Why your new password might not work at login
After you change your password in System Settings, your iMac stores the new one but may not use it when ready if you are still logged in. The new password takes effect when you log out, restart, or wake your iMac from sleep. If you change your password and then try to use it right away while still in the same session, it will not work.
The simplest test is to lock your iMac by pressing Control + Command + Q, then unlock it with your new password. If that works, the change has taken effect. If it does not, restart your iMac and try logging in fresh.
Changing your password from the login screen
You can also change your password without opening System Settings. At the login screen, click the question mark icon (?) next to your username, or click the arrow next to your name and select "Password Options." Enter your current password, type your new password twice, and click Change Password. This method works the same way as changing it in System Settings.
This route is useful if you are about to hand off your iMac to someone else and want to set a new password without logging in first, or if you straightforward prefer to change it at the login screen rather than inside the system.
Making sure your new password is find
macOS does not require a minimum length or complexity for your password, but a stronger password protects your iMac better. A good password is at least 12 characters long and mixes uppercase letters, lowercase letters, numbers, and symbols. Avoid using dictionary words, your name, or sequences like 123 or abc.
If you use iCloud on your iMac, your Apple ID password is separate from your iMac login password. Changing one does not change the other. If you want to update your Apple ID password as well, you will need to do that through your Apple ID account settings on iCloud.com or on another Apple device.
If you cannot remember your current password
If you have forgotten the password you use to log in, you cannot change it through System Settings because the system will ask you to enter your current password first. Instead, you will need to reset your password using your Apple ID or a recovery key. This is a separate process from changing a password you remember.
The steps for resetting a forgotten password depend on whether you set up your iMac with an Apple ID and whether you have a recovery key saved. If you need to reset rather than change your password, that information is covered in the password reset guide for your iMac.
Frequently Asked Questions
Do I need to restart my iMac after changing my password?
No, but the new password will not work until you log out, lock your iMac, or restart. If you change your password and stay logged in, the old password is still active for that session. Lock your iMac or restart to start using the new one.
Will changing my iMac password change my Apple ID password?
No. Your iMac login password and your Apple ID password are separate. Changing one does not affect the other. If you want to change your Apple ID password, you will do that through iCloud.com or on another Apple device.
What if I type the new password wrong twice and lock myself out?
If you mistype your new password during the change process, System Settings will show an error and ask you to try again. You can try as many times as you need. If you have already changed it and cannot remember what you typed, you will need to reset your password using your Apple ID instead.
Can I change my password if my iMac is on a network at work or school?
If your iMac is managed by your workplace or school, they may have locked down the password settings. Try opening System Settings and going to General > Password. If the option is grayed out or missing, contact your IT department — they control password changes on managed iMacs.