The fastest way to add a password to your computer

On Windows, open Settings, go to Accounts, then select Password on the left side. Click "Add" and type your new password twice to confirm it matches. On Mac, open System Settings, click General, then Users & Groups, unlock the panel with your admin password, select your account, and click "Change Password." Both take about two minutes and lock your computer so only someone who knows the password can log in.

The password you create here is the one you type every time you turn on your computer or wake it from sleep. It is the main barrier between your files and anyone else who has physical access to your machine. A strong password — one that mixes uppercase and lowercase letters, numbers, and symbols — makes it much harder for someone to guess their way in.

Key Takeaways

  • Windows users find the password setting in Settings > Accounts > Password, while Mac users go to System Settings > General > Users & Groups.
  • A strong password uses at least 12 characters and includes uppercase letters, lowercase letters, numbers, and symbols like ! or @.
  • Write your password down and store it somewhere physically safe if you think you might forget it, because recovering a forgotten password on your own computer is time-consuming.
  • Your computer password is different from your Microsoft account password (Windows) or Apple ID password (Mac), and you can change them separately.

Step-by-step for Windows 10 and Windows 11

Click the Start button in the bottom left corner, then type "Settings" and press Enter. Once Settings opens, click "Accounts" on the left side of the window. You will see several options; click "Password" in the left menu.

Click the blue "Add" button. Type your new password in the first box, then type it again in the second box to make sure you did not make a typo. Windows will ask you to add a password hint — something that reminds you of your password but does not give it away to someone else (for example, "my childhood dog's name" instead of "Rover"). Click "Next," then "Finish." Your password is now active. The next time you restart your computer or it wakes from sleep, you will need to type this password to log in.

Step-by-step for Mac

Click the Apple menu in the top left corner and select "System Settings." In the sidebar on the left, click "General." Scroll down and click "Users & Groups." You will see a lock icon at the bottom of the window; click it and type your current admin password to unlock the settings.

Click your user account in the list on the left, then click the "Change Password" button. Type your current password (the one you use now, if you already have one), then type your new password twice. Click "Change Password" to save it. If you do not currently have a password, you will see an "Add Password" button instead. The new password takes effect when ready.

What makes a password strong enough to actually protect you

A strong password is long and random. Aim for at least 12 characters. Use a mix of uppercase letters (A, B, C), lowercase letters (a, b, c), numbers (0, 1, 2), and symbols (!@#$%^&*). Avoid words from the dictionary, your name, your birth year, or anything someone could guess by knowing you. "MyDog2024!" is weak because it uses a common word and a predictable year. "7mK!xQ2pLn9w" is strong because it has no pattern.

If you struggle to remember a random password, use a password manager — a program like Bitwarden, 1Password, or Dashlane that stores passwords for you behind one master password. Your computer password itself should still be something you can type from memory, since you need it to log in before the password manager can open.

What happens if you forget your password

On Windows, you can use a password reset disk if you created one before you forgot the password. If you did not, you will need to use another admin account on the same computer, or contact Microsoft support for recovery options. The process is not quick.

On Mac, you can reset your password using your Apple ID, but you will need to know that password. If you do not have an Apple ID or do not remember it, you will need to use Recovery Mode, which requires more technical steps. Write down your password and store it somewhere safe — a locked drawer, a safe, or a notebook you keep find — so you do not lose access to your own computer.

The difference between your computer password and your account password

Your computer password (also called your local password) is what you type to log into the machine itself. On Windows, you may also have a Microsoft account password, which is separate and controls access to OneDrive, Outlook, and other Microsoft services. On Mac, your Apple ID password is separate and controls access to iCloud, the App Store, and other Apple services.

You can change your computer password without changing your Microsoft or Apple ID password, and vice versa. If you forget your Microsoft or Apple password, you can reset it online through their websites. If you forget your computer password, you are locked out of the machine itself. Keep them separate in your mind and in your password manager.

Why you should set a password even if you live alone

A password protects your files if your computer is stolen, borrowed, or accessed by someone in your home. It also prevents accidental changes — a child or guest cannot delete files or install software if they cannot log in. If you use your computer for banking, shopping, or storing documents, a password is essential.

A password does not encrypt your files, so someone with advanced technical skills and physical access to your hard drive could still extract data. For truly sensitive information — financial records, medical documents, passwords themselves — consider using full disk encryption (BitLocker on Windows Pro/Enterprise, FileVault on Mac), which scrambles everything on the drive. But a basic password is the first and most important step.

Frequently Asked Questions

Can I use the same password for my computer and my email?

You can, but it is not recommended. If someone guesses or steals your computer password, they gain access to your email too, which they can then use to reset passwords on your bank account, social media, and other services. Use different passwords for your computer and your email, and different passwords again for banking and shopping sites.

What if I share my computer with other people?

Create a separate user account for each person. On Windows, go to Settings > Accounts > Other Users > Add Account. On Mac, go to System Settings > General > Users & Groups and click the + button. Each person logs in with their own password and sees only their own files. You can set one account as admin (yours) to control what others can install or change.

Do I need a password if I never leave my computer unattended?

Yes. Computers can be stolen, borrowed, or accessed when you step away. A password is also your first defense if your computer is ever compromised by malware or a hacker. It takes two minutes to set up and can save you hours of trouble later.

Can I change my password whenever I want?

Yes. On Windows, go back to Settings > Accounts > Password and click "Change." On Mac, go to System Settings > General > Users & Groups, unlock the panel, and click "Change Password" again. You can change it as often as you like. Some workplaces require password changes every 90 days, but for your personal computer, you only need to change it if you think someone else knows it.

What if I see a password prompt I did not create?

Do not enter a password. This could be malware or a scam. Restart your computer and check your security software. If you see repeated unexpected password prompts, run a full scan with Windows Defender (Windows) or Malwarebytes, or take your computer to a technician.