Forgot your Windows or Mac sign-in password? Official reset steps
Official ways to reset a forgotten Windows password or PIN for Microsoft and local accounts, Apple's Mac login password reset, and what to prepare.
📚 Computer Basics · 42/49·⏱ About 4min read·Information updated 2026-11-03
📋 Key facts5
Check first
Microsoft account or local account?
Microsoft account
Reset with a security code on the sign-in screen or web
Local account
Reset with the security questions you set
Mac
Reset prompt after restart, or macOS Recovery
Basis
Windows 11 and macOS, as of November 2026
First, which kind of account?
Windows sign-in accounts are either a Microsoft account, signed in with an email address, or a local account that exists only on that computer. If the sign-in screen shows an email address, it is usually a Microsoft account. The two reset very differently. On a computer from work or school, the organization manages the account, so contact its IT staff rather than trying yourself.
If you only forgot the PIN
A Windows Hello PIN is a password for that device only. Microsoft says that with a Microsoft account you can select I forgot my PIN below the PIN box on the sign-in screen, verify your account and create a new PIN. Local accounts do not get this link; instead switch the sign-in option to your password, sign in, and create a new PIN in Settings > Accounts > Sign-in options.
Reset a Microsoft account password
Microsoft says to choose the forgot-password option in the sign-in window, or open the Microsoft account password reset page on another device and enter your username. Pick the email or phone you registered for receiving a code, enter the code, and set a new password. The computer needs to be online to accept the new password, which is why keeping your recovery email and phone number current matters.
Reset a local account password
Microsoft says that for a Windows 11 local account you enter a wrong password, select the arrow next to the password box, select OK and then Reset password, and answer the security questions you set when creating the account. Local account passwords cannot be changed on Microsoft's website. Accounts without security questions cannot use this method, so if you can still sign in, check your questions now.
If nothing works
Microsoft states that if these recovery options do not work, its support cannot retrieve or bypass a lost password. If another account on the same PC has administrator rights, you can sign in with it and change the password. Without that you may have to reset the device, which can erase your files. Password-cracking tools passed around online may carry malware and are not recommended.
Mac: reset from the login window
Apple's support article says to restart the Mac first and look at the login window. If you see Reset password or Restart and show password reset options, follow the prompts; you may be asked for a recovery key or to sign in with your Apple Account. If no prompt appears, start up in macOS Recovery and follow its options, such as Forgot all passwords?
Mac: recovery key and the last resort
If you wrote down the 24-character recovery key shown when FileVault was turned on, you can reset with it. Apple says that on macOS 26 and later you may find the key in the Passwords app on another device signed in to the same Apple Account. Erase Mac in Recovery permanently deletes all user accounts, passwords and data, so consider it only after everything else.
What to prepare now
You can only recover what you prepared. Check your Microsoft account recovery email and phone, your local account security questions, and your Mac's Apple Account and recovery key today. Backing up important files to an external drive or the cloud means less is lost even if you must reset. You can also create new passwords with a password generator and keep them in a password manager. Steps follow Microsoft and Apple support pages as of November 2026.