The fastest way to lock your screen

The quickest way to lock your computer is to press Windows key + L on a Windows machine, or Control + Command + Q on a Mac. Your screen will go dark or show a lock screen, and anyone who tries to use your computer will need your password to get back in. This takes one second and works from anywhere on your desktop.

If you are using a Chromebook, press Search + L (the Search key is usually where Caps Lock would be on a regular keyboard). The screen locks when ready.

These keyboard shortcuts are the method most people use because they are faster than navigating menus, and they work the same way every time.

Key Takeaways

  • Windows key + L locks a Windows computer when ready; Control + Command + Q does the same on a Mac.
  • You can also lock your screen through the Start menu on Windows or the Apple menu on a Mac if you prefer not to use a keyboard shortcut.
  • Setting your computer to lock automatically after a period of inactivity protects your screen even if you forget to lock it manually.
  • Locking your screen is different from putting your computer to sleep — a locked screen still uses power but requires a password to unlock.

Locking through the menu on Windows

If the keyboard shortcut does not work or you prefer using menus, you can lock your screen through the Start menu. Click the Start button (the Windows logo in the bottom left), then click your user account picture or name at the top of the menu. A dropdown will appear with several options, including "Lock".

Click "Lock" and your screen will lock when ready. This method takes a few more clicks than the keyboard shortcut, but it works on any Windows version from Windows 10 onward.

Locking through the menu on Mac

On a Mac, click the Apple menu in the top left corner of your screen. Scroll down and click "Lock Screen". Your Mac will lock and display the login screen.

Alternatively, you can use the Control Center. Click the Control Center icon in the top right corner of your menu bar, then look for the "Lock" option. Not all Mac models display this option in Control Center, so the Apple menu method is more reliable.

Setting your screen to lock automatically

You can set your computer to lock itself after you have not used it for a certain amount of time. This protects your screen even if you forget to lock it manually when you step away.

On Windows: Open Settings (press Windows key + I), then go to Accounts > Sign-in options. Scroll down to "Require sign-in" and choose how long your computer should wait before locking — options usually range from when ready to 15 minutes. Select a time that matches how long you are typically away from your desk.

On Mac: Open System Settings, then click General > Login Items > Allow items when logging in. Go back and click Lock Screen. You will see an option for "Start screen saver when inactive" — set this to the number of minutes you want. When that time passes without keyboard or mouse activity, your screen will lock.

The difference between locking and sleeping

Locking your screen and putting your computer to sleep are not the same thing. When you lock your screen, your computer stays on and running, but the display is dark and requires your password to use. When you put your computer to sleep, the entire system uses much less power and takes a few seconds to wake up.

For short breaks — stepping away for a few minutes — locking is usually better because your computer is ready to use when ready when you return. For longer breaks or at the end of the day, sleep or shutdown uses less electricity.

Why you should lock your screen

Locking your screen prevents anyone who walks past your desk from seeing what is on your monitor or using your computer without your knowledge. This is especially important in shared spaces like offices, libraries, or coffee shops.

Even at home, locking your screen protects your accounts and files from family members or guests who might accidentally or intentionally access your computer. It takes one second and requires no special setup.

Troubleshooting when the lock does not work

If you press the keyboard shortcut and nothing happens, your computer may not have registered the command. Try pressing it again slowly, making sure you hold down both keys at the same time.

If the shortcut still does not work, restart your computer. Sometimes a software glitch prevents keyboard shortcuts from functioning. After restart, the shortcut should work normally. If it still does not, try locking through the menu instead — this will tell you whether the problem is with the keyboard shortcut or with the lock function itself.

On rare occasions, a Windows update or Mac system update can change where the lock option appears in menus. If you cannot find it, check your operating system's help documentation or search "lock screen" in your system settings.

Frequently Asked Questions

Can someone unlock my screen if they know my password?

Yes. A locked screen only prevents someone from using your computer without entering your password — it does not encrypt your files or hide them from someone who knows your login credentials. If you need to protect sensitive information from people who might know your password, you should use file encryption or a separate user account with restricted access.

Does locking my screen save my work?

No. Locking your screen does not save open documents or programs. You should save your work before stepping away, just as you would before shutting down. Locking only prevents unauthorized access while your computer is running.

What happens if I lock my screen and then forget my password?

You will need to reset your password to unlock your computer. On Windows, you can use a password reset disk if you created one beforehand, or you can use another administrator account to reset the password. On a Mac, you can use your Apple ID to reset your password at the login screen. If you have neither, you may need to contact your IT support or computer manufacturer.

Can I lock just one window instead of my whole screen?

No. Locking your screen locks the entire computer, not individual windows or programs. If you want to hide a specific window, you can minimize it or switch to a different workspace, but this does not prevent someone from clicking on it and bringing it back into view.

Does locking my screen turn off my monitor?

No. Locking your screen keeps your monitor on and powered. If you want to turn off your monitor to save power, you can do that separately through your display settings, or you can put your entire computer to sleep instead.