If your Mac keeps asking for your keychain password and the one you use to log in isn’t working, the password was likely changed without updating the login keychain, or the keychain itself has become corrupted. The quickest fix is to reset the login keychain using the Keychain Access app, which will clear the old stored passwords and let you start fresh.
What Is the Keychain and Why Does It Have Its Own Password?
The Keychain is a password management system built into macOS and iOS. It securely stores your website logins, Wi-Fi passwords, credit card information, and private keys. The login keychain is the default keychain that automatically unlocks when you log in to your Mac. Its password is normally synced with your user account password, so when you change your Mac login password, the keychain password should update automatically.
However, this sync can break. If you changed your account password using a method that didn’t update the keychain (like resetting it via another admin account, or using a directory service), the keychain retains the old password. You’ll then be prompted for the old password, and the new one won’t work.
Why Your Keychain Password Isn’t Working
There are several common reasons why the keychain password fails:
- Password changed externally: If an administrator or IT department reset your account password, the login keychain wasn’t updated.
- Corrupted keychain file: The keychain database can become damaged, causing it to reject even the correct password.
- Wrong keychain selected: macOS might be trying to unlock a different keychain (like a system or an old backup keychain) that has a different password.
- iCloud Keychain sync conflict: After restoring from a backup or migrating to a new Mac, the local keychain may not match the iCloud keychain, causing repeated prompts.
- Keyboard layout or caps lock: A simple typing issue, but surprisingly common.
How to Fix a Keychain Password That Isn’t Working
Try these steps in order, from least to most disruptive.
1. Check for Simple Typing Issues
Make sure Caps Lock is off and that the keyboard layout matches what you used when setting the password. If you use multiple languages, the password might be typed with a different layout.
2. Update the Keychain Password Manually
If you know the old password, you can update the keychain to match your current login password:
- Open Keychain Access (in /Applications/Utilities).
- In the menu bar, go to Edit > Change Password for Keychain “login”.
- Enter your current login password (the one that works for your Mac account) in the “Current Password” field.
- Enter your new password (or the same one) in the “New Password” and “Verify” fields.
- Click OK.
If the “Current Password” field is rejected, you don’t know the old keychain password, and you’ll need to reset it (see below).
3. Reset the Login Keychain
This is the most common fix. It deletes the login keychain and creates a new empty one. You’ll lose all stored passwords, but you can re-enter them as you visit sites.
- Open Keychain Access.
- In the menu bar, go to File > Delete Keychain “login”.
- When prompted, choose Delete References (not “Delete Files” – you want to keep the file in case you need to recover it later).
- Log out and back in, or restart your Mac.
- macOS will create a new empty login keychain, and it will use your current login password.
If you later find you need an old password, you can open the deleted keychain file (usually in ~/Library/Keychains/) with Keychain Access and use the old password to unlock it.
4. Use the Keychain First Aid Tool
If resetting doesn’t help, the keychain file might be corrupted. Keychain Access has a built-in repair tool:
- Open Keychain Access.
- Go to Keychain Access > Keychain First Aid.
- Enter your login password and click Start.
This will verify and repair the keychain file. It may ask for the keychain password, which you might not know – in that case, skip to the next step.
5. Delete the Keychain Files Completely
If nothing else works, you can delete the keychain files from the Finder. This is a last resort, as it wipes all saved passwords.
- Open Finder and press Cmd+Shift+G.
- Type
~/Library/Keychains/and press Enter. - Move the folder named
login.keychain-db(or similar) to the Trash. - Restart your Mac. A new keychain will be created.
Note: If you use iCloud Keychain, your passwords are also stored in the cloud, so after resetting you can re-enable iCloud Keychain to restore them.
What About iCloud Keychain?
iCloud Keychain is a separate system that syncs your passwords across Apple devices. It uses your iCloud account password and device passcodes, not your Mac login password. If you see a prompt for an iCloud Keychain password, it’s asking for your iCloud password or the passcode of another trusted device. If that’s not working, you can reset iCloud Keychain by going to System Settings > Apple ID > iCloud > Passwords & Keychain and turning it off and on again. This will remove the local copy and re-download from iCloud.
How to Prevent This From Happening Again
- Always change your Mac password through System Settings > Users & Groups – this automatically updates the keychain.
- If you ever reset a password via Recovery Mode or another admin account, be prepared to reset the keychain afterward.
- Keep a backup of your keychain (File > Export) if you have important passwords that aren’t in iCloud.
- Enable iCloud Keychain so your passwords are recoverable even if the local keychain is lost.
Frequently Asked Questions
Will resetting my keychain delete all my saved passwords?
Yes, resetting the login keychain removes all passwords stored in it. However, if you have iCloud Keychain enabled, your passwords will be restored from iCloud after you sign back in. For local-only passwords, you’ll need to re-enter them.
Why does my Mac keep asking for the keychain password at startup?
This usually means the login keychain password doesn’t match your account password. The system tries to unlock the keychain automatically, fails, and prompts you. The fix is to either update the keychain password (if you know the old one) or reset the keychain.
Can I use the same password for my keychain and my Mac account?
Yes, that’s the default. When you change your Mac password, the keychain password should change too. If it doesn’t, you can manually set it to match using the “Change Password” option in Keychain Access.
What if I forgot the keychain password entirely?
If you don’t know the old keychain password, you can’t unlock it. The only solution is to delete the keychain file (as described above) and start fresh. You’ll lose any passwords that weren’t synced to iCloud.
Does resetting the keychain affect my Wi-Fi passwords?
Yes, Wi-Fi passwords are stored in the keychain, so they will be removed. You’ll need to re-enter them to connect to networks. If you have iCloud Keychain, they may be restored from there.
Is there a way to recover a single password from a keychain I can’t unlock?
No. Without the correct keychain password, the data is encrypted and cannot be recovered. This is by design – the keychain is meant to be secure. Your only option is to reset it and re-enter passwords manually.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Disable Autocorrect on iPhone or iPad: Quick Guide
- Custom Keyboard Shortcuts on Windows 11 & macOS
- Restore Windows 11 Display Scaling to Recommended
- Semiconductor Cycle: How Investors Track It0.0
- Microsoft Store Error 0x80073d12: Fixes That Work
- View Notification Count on iPhone: Full Guide