The fastest way depends on what you remember
If you forgot your 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 your Microsoft account online if you set one up. Mac requires either a recovery key you saved earlier, or access to another admin account on the same machine. If neither of those exists, you will need to restart your laptop from a recovery disk or external drive.
The good news: you do not need to erase everything or pay someone to unlock it. The bad news: if you have no recovery method in place, the process takes longer and requires some technical steps. Start with the method that matches what you have access to right now.
Key Takeaways
- Windows users with a Microsoft account can reset their password online by visiting the account recovery page and confirming their identity through email or phone.
- Mac users need either a recovery key saved during setup, access to another admin account, or an Apple ID tied to the laptop to regain access.
- If you have no recovery method set up, both Windows and Mac require booting from a recovery disk or external drive, which is more involved but still possible.
- The fastest reset takes 10 to 15 minutes if you have a recovery email or phone number; without one, expect 30 minutes to an hour.
Resetting a Windows password through your Microsoft account
If your laptop is connected to a Microsoft account (the kind you use for Outlook, OneDrive, or Xbox), you can reset your password from any web browser on another device. Go to account.microsoft.com and click "Sign in". On the sign-in screen, click "Can't access your account?" and enter your email address or phone number. Microsoft will send a code to the email or phone number you registered.
Enter the code you receive, then answer a security question or confirm your identity another way. Once verified, you will be prompted to create a new password. Make it something you can remember this time — at least eight characters, mixing uppercase, lowercase, numbers, and a symbol if the system requires it. After you set the new password, go back to your laptop and sign in with it.
If you do not remember which email or phone number you used, or if you cannot access either one, you will need to use the local account reset method instead (see the section below on resetting without a recovery method).
Resetting a Mac password with a recovery key or another admin account
If you set up FileVault encryption on your Mac, you should have received a recovery key — a long string of letters and numbers. If you saved that key somewhere safe, restart your Mac and enter your password at the login screen. After three wrong attempts, a "Reset Password" button will appear. Click it, enter your recovery key, and create a new password.
If you do not have the recovery key but another person has an admin account on the same Mac, that person can reset your password without restarting. They should go to System Settings (or System Preferences on older Macs), click "General", then "Users & Groups" (or just "Users & Groups" on older versions). They select your account, click the lock icon to unlock it, then click "Reset Password". They can set a temporary password for you, which you can change the next time you log in.
If you have an Apple ID tied to your Mac, you can also use that to reset your password. At the login screen, click "Reset Password" (if it appears after a few wrong attempts), then follow the prompts to verify your Apple ID. This method works on most newer Macs running macOS Big Sur or later.
Resetting a Windows password without a recovery method
If you cannot access your Microsoft account recovery email or phone, you will need to restart your laptop from a Windows recovery disk or USB drive. If you have another Windows computer, you can create a recovery drive on a USB stick using the Windows Recovery Media Creation Tool (search for it on Microsoft's website). Plug the USB drive into your locked laptop, restart it, and press the key that opens the boot menu — usually F12, Esc, or Del, depending on your laptop brand. Select the USB drive and follow the prompts to reset your password.
This process erases nothing on your laptop; it straightforward gives you a way to create a new password. However, if you do not have access to another Windows computer to create the recovery drive, you will need to contact the laptop manufacturer or take it to a repair shop. They can verify your ownership and help you regain access, though this usually costs money and takes a few days.
Resetting a Mac password without a recovery method
If you have no recovery key, no other admin account, and no access to your Apple ID, you will need to restart your Mac in Recovery Mode. Shut down your Mac completely. Turn it back on and when ready hold down Command + R until you see the Apple logo. This boots into Recovery Mode, where you can access Disk Utility and other tools.
From the Recovery Mode menu, click "Utilities" at the top, then "Terminal". In the Terminal window, type resetpassword and press Enter. This opens the Reset Password utility, which lets you create a new password for any account on the Mac. Select your account from the dropdown, enter a new password, and click "Reset Password". Restart your Mac and sign in with the new password.
If Recovery Mode does not work or you cannot access Terminal, your last option is to take the Mac to an Apple Store or authorized repair shop. They can verify your ownership through your serial number and help you regain access, though this may involve erasing the drive and reinstalling the operating system.
Preventing this from happening again
Once you are back in your laptop, take a few minutes to set up recovery options so you never get stuck again. On Windows, go to Settings, click "Accounts", then "Security options", and add a recovery email and phone number to your Microsoft account. On Mac, go to System Settings, click "General", then "Users & Groups", select your account, and note whether FileVault is turned on. If it is, write down your recovery key and store it somewhere safe — a password manager, a locked drawer, or a trusted family member.
You should also consider using a password manager like Bitwarden, 1Password, or the built-in password managers in Windows and Mac. These store your passwords securely and let you recover them if you forget, as long as you remember the master password. A password manager also makes it easier to use strong, unique passwords without having to memorize them.
Frequently Asked Questions
How long does it take to reset my password?
If you have a recovery email or phone number set up, the reset takes 10 to 15 minutes. If you need to create a recovery disk or use Recovery Mode, expect 30 minutes to an hour, depending on your internet speed and how familiar you are with the process.
Will resetting my password erase my files?
No. Resetting your password does not touch your files, photos, documents, or any other data on your laptop. It only changes the password you use to sign in. The only exception is if you use the full Mac recovery process that erases and reinstalls the operating system, which is rare and only happens if other methods fail.
What if I do not have another computer to create a Windows recovery disk?
You can ask a friend or family member to create one on their Windows computer using the Windows Recovery Media Creation Tool, then use it on your laptop. Alternatively, contact your laptop manufacturer's support line — they may be able to mail you a recovery disk or walk you through other options.
Can I reset my password if I forgot my Apple ID too?
Yes, but it is more complicated. Go to iforgot.apple.com on another device and follow the steps to recover your Apple ID. Once you have access to your Apple ID again, you can use it to reset your Mac password. If you cannot recover your Apple ID, you will need to visit an Apple Store with proof of ownership.
Is there a way to reset my password without restarting my laptop?
Only if you have another admin account on the same laptop, or if you can access your Microsoft account (Windows) or Apple ID (Mac) recovery options online. Otherwise, restarting into Recovery Mode or using a recovery disk is the only way forward.