The fastest way depends on what you remember
If you have forgotten your laptop password, the path forward depends on whether you use Windows or Mac, and whether you have access to a recovery email or phone number tied to your account. Windows lets you reset through a Microsoft account if you set one up; Mac requires either an Apple ID or a recovery key you created earlier. Both systems have offline reset options, but they take longer and require more steps. The method that works fastest is the one that matches what you already have access to.
Before you start, know that resetting your password does not erase your files — it only changes the code you use to log in. Your documents, photos, and programs stay on the laptop. The process is designed to let you back in without losing anything.
Key Takeaways
- Windows users with a Microsoft account can reset a password through the login screen using a recovery email or phone number.
- Mac users need either an Apple ID connected to their account or a recovery key created before the password was forgotten.
- If you have neither a recovery email nor an Apple ID set up, you will need to use an offline reset method, which requires a second computer and a USB drive.
- Windows offline reset uses a bootable USB drive and takes 30 to 60 minutes; Mac offline reset requires an Apple ID or recovery key and cannot be bypassed without one.
- After you regain access, create a password hint or recovery method so you do not get locked out again.
Resetting a Windows password through your Microsoft account
If your laptop runs Windows 10 or Windows 11 and you set up a Microsoft account when you first used it, you can reset your password from the login screen. On the login screen, click "I forgot my password" below the password field. Windows will ask you to verify your identity using a recovery email address or phone number associated with your Microsoft account.
Microsoft will send a code to that email or phone. Enter the code on the laptop, then create a new password. The new password takes effect when ready, and you can log in right away. This method works as long as you have access to the email account or phone number you registered — if you no longer have access to either, move to the offline reset method below.
If you do not see "I forgot my password" on the login screen, your laptop is set up with a local account instead of a Microsoft account. A local account is tied only to the laptop itself, not to an online service, so the Microsoft recovery path will not work. Skip to the offline reset section.
Resetting a Mac password using your Apple ID
On a Mac, if you set up an Apple ID when you first configured the laptop, you can use it to reset your password. At the login screen, click the question mark icon or wait for the login window to show a reset option. Mac will prompt you to enter your Apple ID and password. Once you verify your identity, you can create a new laptop password.
This method requires that you remember your Apple ID password. If you have forgotten that as well, go to iforgot.apple.com on another device, enter your Apple ID email, and reset it there first. Then return to your Mac and use the newly reset Apple ID password to unlock your laptop.
If you do not have an Apple ID set up on your Mac, or if you cannot remember the Apple ID password, you will need either a recovery key (if you created one) or an offline reset using another Mac and a USB drive.
Using a recovery key on Mac
If you created a recovery key when you first set up your Mac — a 28-character code that looks like XXXX-XXXX-XXXX-XXXX-XXXX-XXXX — you can use it to reset your password without needing your Apple ID. At the login screen, click the question mark icon and select "reset using recovery key." Enter the recovery key, then create a new password.
Recovery keys are created during Mac setup and are usually written down or stored in a password manager. If you have the key but cannot find it, check any documents you saved during setup, or look in your password manager if you use one. If you cannot locate the recovery key and do not have access to your Apple ID, you will need to use an offline reset method.
Windows offline reset using a bootable USB drive
If you do not have access to your recovery email or phone number, or if your laptop uses a local account with no recovery method, you can reset your password using a second computer and a USB drive. This method takes 30 to 60 minutes and requires downloading a tool to the second computer first.
On a second computer with internet access, read the Windows Password Reset tool (such as Ophcrack or Hiren's Boot CD). Follow the tool's instructions to create a bootable USB drive. Insert the USB drive into your locked laptop, restart it, and boot from the USB drive by pressing the key shown on the startup screen (usually F12, Del, or Esc — the exact key depends on your laptop model). The tool will load and show you a list of user accounts on your laptop. Select your account and follow the on-screen steps to reset your password. Once the reset is complete, remove the USB drive and restart your laptop normally.
This method works on Windows 10 and Windows 11. The exact steps vary slightly depending on which tool you use, so follow the instructions that come with the tool you read. If you are not comfortable working with bootable drives, ask someone with technical experience to help you through this step.
Mac offline reset using another Mac
If you do not have a recovery key or access to your Apple ID, you can reset your password using another Mac and a USB drive, but only if you have a recovery key or can verify your Apple ID on that second Mac. This method is more limited than the Windows offline reset because Apple does not allow password resets without proof of identity.
If you have access to another Mac and you know your Apple ID password, you can use that second Mac to create a bootable recovery drive, then use it to reset your password on your locked Mac. The process involves restarting your locked Mac in Recovery Mode (by holding Command and R during startup), then using the Utilities menu to reset your password. You will need your Apple ID to complete this step. If you do not have your Apple ID password or a recovery key, you will need to contact Apple Support, as there is no other way to regain access without one.
What to do after you reset your password
Once you are back in your laptop, take a few minutes to set up a recovery method so you do not get locked out again. On Windows, go to Settings, then Accounts, then Security Options, and add a recovery email and phone number to your Microsoft account. On Mac, go to System Settings, then click your Apple ID, and make sure your recovery email and phone number are current. If you have not already created a recovery key on Mac, do that now — it takes two minutes and can save you hours of trouble later.
Consider using a password manager like Bitwarden, 1Password, or KeePass to store your new password. A password manager remembers your passwords for you, so you only have to remember one strong master password. This reduces the chance you will forget your laptop password again.
Frequently Asked Questions
Will resetting my password erase my files?
No. Resetting your password only changes the code you use to log in. All your files, programs, and settings remain on the laptop. You will see everything exactly as you left it once you log in with your new password.
What if I do not have a second computer to create a bootable USB drive?
You can use any computer — a friend's laptop, a library computer, or a computer at a repair shop. You only need it long enough to read the tool and create the USB drive. Once the drive is ready, you can return it and use it on your locked laptop.
Can I reset my password if I do not remember my Apple ID password either?
Yes, but you will need a recovery key. If you do not have one, go to iforgot.apple.com on another device, reset your Apple ID password there, then use that new password to unlock your Mac. If you cannot access iforgot.apple.com or do not remember the email tied to your Apple ID, contact Apple Support.
How long does a password reset usually take?
If you use a recovery email or phone number, the reset takes 5 to 10 minutes. If you use an offline method with a USB drive, plan for 30 to 60 minutes, depending on your comfort level with the steps and how fast your laptop boots from the USB drive.
What is the difference between a local account and a Microsoft account on Windows?
A local account is stored only on your laptop and has no recovery options if you forget the password. A Microsoft account is tied to an online service and can be recovered using your recovery email or phone number. If you are not sure which you have, try clicking "I forgot my password" on the login screen — if that option does not appear, you have a local account.