The fastest way depends on what you remember and what you set up before
If you forgot your password, your recovery path depends on whether you use Windows, macOS, or Linux, and whether you set up a recovery email or phone number when you created the account. Windows lets you reset through a Microsoft account recovery page if you know your email. macOS has a recovery mode built in. Linux varies by distribution, but most have single-user mode as a fallback. The key difference: cloud-based accounts (Microsoft, Apple ID) are easier to recover remotely, while local-only accounts require you to be at the machine itself.
Before you try anything, know that some recovery methods take 24 to 48 hours because the company needs to verify you own the account. Others work in minutes. The slowest option is usually contacting support; the fastest is usually a recovery email or phone number you set up years ago.
Key Takeaways
- Windows users with a Microsoft account can reset their password through account.microsoft.com if they have access to their recovery email or phone number.
- macOS users can boot into Recovery Mode (Command + R at startup) and use the password reset utility without needing the original password.
- If you set up a local account on Windows with no Microsoft connection, you will need to use a password reset disk you created earlier, or reinstall Windows.
- Recovery email and phone numbers are your fastest path back in — set them up now if you have not, because you cannot add them after you are locked out.
- Do not pay for third-party password recovery software; legitimate recovery is free through your operating system or your account provider.
Windows: recovering through your Microsoft account
If your Windows 10 or 11 laptop is connected to a Microsoft account (the email address you use to sign in), go to account.microsoft.com from any other device. Click "Security" in the left menu, then "Password security". You will see a button to reset your password. Microsoft will send a code to your recovery email or phone number — whichever you set up when you created the account.
Enter the code, then create a new password. You can sign into your laptop with this new password within a few minutes. This works whether you are at home or anywhere else, as long as you have internet access on another device.
If you do not remember the email address you used for your Microsoft account, look at the sign-in screen on your locked laptop — it shows the account name. If that account name looks like an email (user@outlook.com), that is your Microsoft account. If it is just a name (like "Sarah"), it is a local account, and the Microsoft method will not work.
Windows: recovering a local account without a recovery email
A local account is one that exists only on your laptop, not connected to Microsoft. If you created one and did not set up a password reset disk beforehand, your options narrow. The fastest legitimate path is to reinstall Windows using a USB drive or DVD, which erases everything on the laptop but lets you create a new account. This takes 30 minutes to an hour and requires another computer to create the installation media.
If you created a password reset disk before you forgot the password, plug it in now. At the Windows sign-in screen, click "Reset password" below the password field. The disk will walk you through creating a new password. If you did not create a disk, you cannot use this method.
Do not buy third-party password recovery software. Most either do not work on modern Windows or require you to have already set them up before you were locked out. The legitimate free options are the ones described here.
macOS: using Recovery Mode
macOS has a built-in password reset utility that works without your original password. Shut down your Mac completely. Turn it back on and when ready hold Command + R until you see the Apple logo or a spinning globe. This boots into Recovery Mode.
Once in Recovery Mode, click "Utilities" in the menu bar, then "Reset Password". Select your user account from the dropdown. You will see a prompt to create a new password. Enter it twice, then click "Reset Password". Restart your Mac and sign in with the new password.
This method works on almost all Macs made in the last 10 years. If your Mac has an Apple Silicon chip (M1, M2, M3), the process is the same but Recovery Mode may take longer to load. If you see a login screen asking for a recovery key instead of letting you into Utilities, your Mac has FileVault encryption turned on. You will need the recovery key that was shown when you first set up FileVault — if you do not have it, contact Apple Support.
Linux: accessing single-user mode
Linux password recovery depends on your distribution and how your system is configured. Most distributions allow you to boot into single-user mode (also called rescue mode) by holding Shift during startup and selecting an option from the boot menu. Once in single-user mode, you can use the passwd command to reset your password without needing the old one.
The exact steps vary between Ubuntu, Fedora, Debian, and others. If you are not comfortable with the command line, the safest approach is to boot from a live USB (a bootable Linux drive) and mount your hard drive from there, then use command-line tools to reset the password. This requires creating the live USB on another computer first.
If your Linux system uses GRUB bootloader with a password set, you may need to reset that first. This is less common on personal laptops but more common on servers. If you set up full-disk encryption, you will need the encryption passphrase before any of these methods work.
What to do if you cannot remember your recovery email or phone number
If you set up a Microsoft account but cannot access the recovery email (because you no longer have that email address, or you forgot its password), contact Microsoft Support through account.microsoft.com. They can verify your identity by asking security questions you answered when you set up the account, or by asking for a government ID. This process usually takes 24 to 48 hours.
For macOS, if you do not have your recovery key and cannot access Recovery Mode, you will need to contact Apple Support or visit an Apple Store with proof of purchase. They can help you regain access, though this also takes time and may require you to prove you own the device.
For Linux, if you cannot boot into single-user mode and do not have a live USB, your best option is to reinstall the operating system, which erases your data. This is why backing up regularly and keeping recovery information in a safe place matters.
Preventing this from happening again
Set up a recovery email and phone number on your account right now, while you can still sign in. On Windows, go to Settings > Accounts > Your info > Manage your Microsoft account, then add both. On macOS, go to System Settings > [Your Name] > Password & Security, and make sure your recovery email is there. On Linux, this depends on your distribution, but most have a way to set a recovery email in your user settings.
If you use a password manager (like Bitwarden, 1Password, or KeePass), store your laptop password there — but only if you can access the password manager from another device. If your password manager password is also on your laptop, this does not help. Write down your recovery codes or backup codes in a physical location only you know about, separate from where you write down passwords.
Create a password reset disk on Windows (Settings > Accounts > Sign-in options > Password > Create a password reset disk) and store it somewhere safe. On macOS, write down your recovery key when you first set up your account and store it in a find place, not on the laptop itself.
Frequently Asked Questions
Can I reset my password if I do not have internet access?
On Windows with a Microsoft account, no — you need internet to reach Microsoft's servers. On macOS, you can reset it in Recovery Mode without internet. On Linux, single-user mode works without internet. If you have a Windows local account and no password reset disk, you will need to reinstall Windows, which requires downloading it on another computer first.
Will resetting my password delete my files?
No. Resetting your password through Recovery Mode (macOS), single-user mode (Linux), or a password reset disk (Windows) leaves all your files intact. Reinstalling Windows erases everything on the drive, so only do that if you have backed up your files elsewhere or you do not care about losing them.
Is it safe to use online password recovery services I found in a search?
No. Most are scams or malware. Legitimate password recovery comes only from Microsoft, Apple, your Linux distribution, or the built-in tools on your device. If a website promises to unlock your laptop for a fee, it is not legitimate. Use only the methods described here.
What if someone else is trying to recover my password?
If you think someone is trying to access your account, change your password as soon as you regain access, then enable two-factor authentication on your Microsoft or Apple account. This requires a code from your phone or email every time someone signs in, even if they have the correct password. On Windows, go to account.microsoft.com > Security > Advanced security options. On macOS, go to System Settings > [Your Name] > Password & Security > Two-factor authentication.
How long does it take to recover my password?
If you have a recovery email or phone number set up, a few minutes to an hour. If you need to contact support, 24 to 48 hours. If you need to reinstall Windows or use a live USB on Linux, 30 minutes to an hour depending on your internet speed and how familiar you are with the process.