The fastest way to lock your screen

On Windows, press Windows key + L together. Your screen will go dark or show a lock screen, and anyone trying to use your computer will need your password to get back in. On Mac, press Control + Command + Q. Both shortcuts work when ready, even if you have programs open—nothing closes, and your work stays exactly where you left it.

This is the method to use when you step away from your desk, even for a minute. It takes one second and protects your computer from anyone who walks by. The keyboard shortcut is faster than using menus, and it works the same way every time.

Key Takeaways

  • Windows computers lock with Windows key + L; Mac computers lock with Control + Command + Q.
  • A locked screen keeps your programs and files open but requires a password to access them again.
  • You can also lock your screen through the Start menu on Windows or the Apple menu on Mac if you prefer not to use the keyboard shortcut.
  • Setting your computer to lock automatically after a few minutes of inactivity adds a layer of protection if you forget to lock manually.

Locking through the Windows menu

If the keyboard shortcut does not work or you prefer using menus, Windows offers another route. Click the Start button in the bottom left corner, then click your user account picture or name at the top of the menu. A small dropdown will appear with several options.

Select Lock from that dropdown. Your screen will lock when ready, just as it would with the keyboard shortcut. This method takes a few more seconds than the keyboard shortcut, but it works on any Windows computer and does not require you to remember a key combination.

Locking through the Mac menu

On a Mac, click the Apple menu in the top left corner of your screen. Scroll down until you see Lock Screen and click it. Your Mac will lock right away. You can also find this option by clicking your user account name at the top right of the screen, though the Apple menu is usually faster.

If you have a newer Mac with Touch ID, you can also lock your screen by pressing Control + Command + Q, which is the same shortcut mentioned earlier. Both methods work equally well.

Setting your computer to lock automatically

You can tell your computer to lock itself after you stop using it for a set amount of time. On Windows, right-click on your desktop background and select Personalize. Click Lock screen on the left side, then scroll down and click Screen timeout settings. Set how many minutes you want to wait before the screen locks—most people choose 5 or 10 minutes. When that time passes without keyboard or mouse movement, your screen locks on its own.

On Mac, click the Apple menu and select System Settings (or System Preferences on older versions). Click Lock Screen on the left side. Find the option that says Start screen saver when inactive or Turn display off after, and set it to your preferred time. Your Mac will lock automatically after that period of inactivity.

What happens when your screen is locked

When your screen is locked, anyone who tries to use your computer will see a lock screen or a blank screen with a password prompt. They cannot access your files, programs, or anything else on your computer without entering your password. Your programs keep running in the background—if you had email open, it will still be downloading messages while your screen is locked.

When you return, you straightforward type your password and press Enter (or click the arrow on Mac), and you are back to exactly where you left off. Nothing closes, nothing is lost. Locking is different from shutting down or putting your computer to sleep—those actions close programs or turn off power, whereas locking just protects access.

Why you should lock your screen

Locking your screen takes one second and prevents someone from accessing your email, files, or accounts while you are away. Even if you only step away for a minute, someone could open sensitive documents, send messages from your account, or install unwanted software. Locking is especially important in offices, libraries, or anywhere other people have physical access to your computer.

It is also a good habit to build. The faster locking becomes automatic for you, the less likely you are to forget. Many workplaces require employees to lock their screens when they step away, and some companies set computers to lock automatically for security reasons.

Frequently Asked Questions

Will my programs close when I lock my screen?

No. Locking your screen keeps all your programs open and running. When you unlock your screen with your password, everything will be exactly as you left it. Only shutting down or restarting your computer closes programs.

Can I unlock my screen with a fingerprint instead of a password?

On Windows 10 and newer, you can set up Windows Hello to unlock with your face or fingerprint. On Mac, you can use Touch ID if your Mac has it. Both work in addition to your password—you can use either method to unlock.

What if I forget my password and my screen is locked?

You will need to reset your password through your computer's account recovery options. On Windows, click "I forgot my password" on the lock screen. On Mac, you may need to use another administrator account or your Apple ID to reset it. Contact your IT support if you are at work.

Does locking my screen use more battery power?

Locking does not use extra power. Your screen stays on and your programs keep running, so battery drain is the same as if you were actively using it. If you want to save battery, put your computer to sleep instead, which turns off the display and uses much less power.

Can someone unlock my screen if they know my password?

Yes, they can unlock it if they have your password. Locking protects against casual access by people who do not know your password. For stronger security, use a strong password that is hard to guess, and never share it with others.