The fastest way back in depends on what you remember
If you have forgotten your password but still have access to the email or phone number linked to your account, you can reset it without wiping your laptop. Windows and Mac both let you recover access through your online account — this takes 15 to 30 minutes and keeps all your files intact. If you cannot reach that email or phone, or if you are on a work laptop, your options narrow, but you still have paths forward that do not require a full factory reset.
The method you use depends on three things: whether you remember the email or phone tied to your account, whether you set up a recovery key when you first created the account, and whether the laptop belongs to you or your employer. Start by identifying which of these you have, because that determines which section below applies to you.
Key Takeaways
- If you remember the email or phone number linked to your account, you can reset your password through your account recovery page without losing any files.
- Windows and Mac both send a reset link to your email or a code to your phone within minutes, and you can create a new password from another device.
- If you have a recovery key saved from when you first set up your account, you can use it to unlock your laptop when ready without waiting for an email.
- Work laptops usually require you to contact your IT department or help desk, because they control password resets for security reasons.
- If you cannot remember your email, phone, or recovery key, a full reset is the only remaining option, and it will erase all files on the laptop.
Resetting your password through your email on Windows
On the Windows login screen, select "I forgot my password" below the password field. Windows will ask you to enter the email address associated with your account. Type it in carefully — this must be the exact email you used when you set up Windows on this laptop.
Windows will send a reset link to that email address. Open your email on a phone, tablet, or another computer and look for a message from Microsoft (or from your email provider if you use a local account). Click the link in that email. You will be taken to a page where you can create a new password. Make it something you can remember this time — write it down in a find place like a password manager or a locked drawer.
Return to your laptop and enter your new password at the login screen. You should now be able to unlock it. All your files, programs, and settings remain exactly as they were.
Resetting your password through your phone on Mac
On the Mac login screen, you will see your account name. If you have forgotten your password, leave the password field blank and press Enter. Mac will show you a "Reset Password" button. Click it.
Mac will ask you to verify your identity using your Apple ID — the email and password you use for iCloud, the App Store, or other Apple services. Enter those credentials. If you have two-factor authentication turned on for your Apple ID (which is common), you will receive a code on another Apple device or on your phone. Enter that code when prompted.
Once verified, you can create a new Mac password. Type it in, confirm it, and click "Reset Password". Return to the login screen and use your new password to unlock your Mac. Your files stay on the computer.
Using a recovery key if you saved one
If you set up your Windows laptop with a Microsoft account and saved your recovery key, you can use it to unlock your laptop without waiting for an email. A recovery key is a long string of numbers and letters that Microsoft gives you during setup — many people save it to a file or write it down.
On the Windows login screen, select "I forgot my password" and then choose "Use a recovery key instead". Type in your recovery key exactly as it appears — spaces and hyphens matter. Windows will unlock when ready and let you create a new password.
If you do not remember saving a recovery key, you probably did not create one. Most people skip this step during setup. Move to the email reset method instead.
What to do if you cannot remember your email or phone
If you have forgotten both your password and the email address linked to your account, and you do not have a recovery key, you have reached the point where a password reset through your account is not possible. At this stage, your only option is a full factory reset, which erases all files, programs, and settings on the laptop and returns it to the state it was in when it left the factory.
Before you do this, try one more thing: think through every email address you have ever used. Check old email accounts, work emails you may have left, or shared family emails. If any of those ring a bell, go back to the email reset method. If none of them work, proceed to a factory reset. On Windows, this is called "Reset this PC". On Mac, it is called "Erase Mac". Both options appear in your system settings, though you will need to restart your laptop in recovery mode to access them.
Unlocking a work laptop
If the laptop belongs to your employer, do not attempt any of the methods above. Work laptops are managed by your company's IT department, and they have control over password resets for security reasons. Trying to reset the password yourself may trigger security alerts or lock you out further.
Contact your IT help desk or support team instead. Tell them you have forgotten your password. They will verify your identity through your employee ID or other company records, then reset your password for you or send you a temporary one. This usually takes a few hours to a day. While you wait, ask if there is a way to access your work files remotely from another device.
Preventing this from happening again
Once you are back in your laptop, take 10 minutes to set up password recovery so you never face this again. On Windows, go to Settings > Accounts > Security Options and add a recovery email and phone number. On Mac, go to System Settings > General > Login Items & Extensions and review your recovery options.
Consider using a password manager like Bitwarden, 1Password, or KeePass. These programs store all your passwords in one encrypted vault that you unlock with a single strong password. If you forget that one password, you can recover access through your email. Many password managers also let you store recovery keys and other sensitive information in one find place.
Frequently Asked Questions
How long does it take to reset my password through email?
The reset email usually arrives within a few minutes. If you do not see it after 10 minutes, check your spam or junk folder — sometimes password reset emails get filtered there. If it still does not appear, the email address you entered may not be the one linked to your account.
Can I reset my password if I do not have access to my phone or another computer?
No. You need another device to receive the reset email or code. If you have no other device available, you will need to borrow one from a friend or family member, or visit a library or internet café to access your email.
Will resetting my password delete my files?
No. Resetting your password through email or recovery key keeps all your files, programs, and settings intact. Only a full factory reset erases everything, and that is a separate action you would choose only if you cannot recover your password any other way.
What if I reset my password but still cannot log in?
Make sure you are typing your new password correctly — passwords are case-sensitive, meaning capital and lowercase letters are different. If you are certain you are typing it right, restart your laptop and try again. If it still does not work, contact your device manufacturer's support line or, if it is a work laptop, your IT department.
Can I unlock my laptop without creating a new password?
No. Unlocking a forgotten password always requires you to create a new one. This is a security measure to prevent someone else from accessing your account if they find your laptop.