What locking your PC actually does

Locking your PC means putting it into a state where nobody can use it without entering your password or PIN — but the computer stays on and running. When you lock the screen, any programs you have open stay open in the background. Email continues to sync, downloads keep going, and when you unlock it again, you pick up exactly where you left off.

This is different from shutting down or putting the computer to sleep. A locked PC is still consuming power and still connected to the network, but the keyboard and mouse won't respond to anyone except you. It's the fastest way to step away from your desk without closing your work.

Key Takeaways

  • The fastest way to lock Windows is to press the Windows key and the letter L at the same time.
  • On a Mac, press Control, Command, and Q together, or use the Apple menu and select Lock Screen.
  • You can also lock your PC by pressing Ctrl+Alt+Delete and selecting Lock from the menu that appears.
  • Setting your PC to lock automatically after a few minutes of inactivity protects you if you forget to lock it manually.
  • Locking your screen is not the same as logging out — your programs and files stay open and running.

Locking Windows with the keyboard shortcut

The quickest way to lock a Windows PC is to hold down the Windows key (the one with the four-square logo) and press the letter L. Release both keys. Your screen will go dark or show your lock screen, and you'll be back at the login prompt the next time someone tries to use the keyboard or mouse.

This works on Windows 10, Windows 11, and most older versions. It works whether you're at the desktop, in the middle of an email, or in any program. The shortcut is the same on every Windows machine, so it's worth memorizing if you step away from your desk regularly.

Locking a Mac

On a Mac, press Control, Command, and Q all at the same time. Your screen will lock when ready. When you or someone else tries to use the keyboard, the login screen appears and asks for a password.

If you prefer using the menu, click the Apple logo in the top-left corner, then find and click "Lock Screen" in the dropdown. Both methods work the same way — the computer stays on, but nobody can access it without your password.

Using Ctrl+Alt+Delete to lock your screen

On Windows, you can also lock your PC by pressing Ctrl, Alt, and Delete at the same time. A menu will appear with several options. Look for "Lock" or "Sign out" and click it. Your screen will lock the same way as the Windows key + L shortcut.

This method is slower than the keyboard shortcut, but it's useful if you forget the Windows key combination or if the shortcut isn't working for some reason. The Ctrl+Alt+Delete menu also lets you switch users, sign out completely, or restart the computer if you need to.

Setting your PC to lock automatically

On Windows 10 or 11: Open Settings, go to Accounts, then select Sign-in options. Scroll down to find "Require sign-in" and click the dropdown. Choose how long you want the computer to wait before locking — options usually range from one minute to 15 minutes. If you're away from your desk a lot, set it to a shorter time like two or three minutes.

On a Mac: Click the Apple menu, go to System Settings, then select Lock Screen. Look for "Start screen saver when inactive" and set the time. You can also check the box next to "Require password when ready after screen saver begins" to make sure the lock is when ready.

Automatic locking is a safety net. If you forget to lock your screen manually, the computer will do it for you after the time you set. This is especially useful in offices or shared spaces where someone might walk by your desk.

The difference between locking and logging out

When you lock your PC, you stay logged in — your files, email, and programs are all still there and still running. The screen is just protected by a password. When you unlock it, everything is exactly as you left it.

When you log out, you close all your programs and disconnect from your user account. The next person who sits down at the computer sees the login screen, and your files are not accessible to them. Logging out takes longer and closes everything you have open, so it's not the right choice if you're just stepping away for a few minutes.

Locking a laptop when you're away from home

If you take your laptop with you, locking the screen before you close it is a good habit. It means that if someone opens your laptop while you're traveling or at a coffee shop, they can't access your files or accounts without your password.

You can also set your laptop to lock when you disconnect from a specific Wi-Fi network or when a Bluetooth device (like your phone or smartwatch) moves out of range. This is called dynamic lock on Windows. To set it up, go to Settings, Accounts, Sign-in options, and look for "Dynamic Lock." Check the box and pair a Bluetooth device. Your laptop will lock automatically when that device is no longer nearby.

Frequently Asked Questions

What happens to my open programs when I lock my PC?

Your programs stay open and running in the background. Email will continue to sync, downloads will keep going, and any background tasks will continue. When you unlock your screen, everything is exactly where you left it.

Can someone unlock my PC if they know my password?

Yes. A lock screen only protects your computer from casual access. If someone knows your password, they can unlock it. To protect your files from someone who has physical access to your computer, you should use full-disk encryption (BitLocker on Windows, FileVault on Mac) in addition to a strong password.

Will locking my PC slow it down?

No. Locking your screen uses almost no extra power or processing. The computer continues to run normally in the background. The only difference is that the display may turn off after a period of time to save power, depending on your settings.

Is there a way to lock my PC remotely?

If your PC is connected to a network and you have remote access set up, you may be able to lock it from another device. On Windows, you can use the Find My Mobile feature if your device is linked to a Microsoft account. On a Mac, you can use Find My Mac through iCloud. Check your operating system's documentation for the specific steps.

What's the difference between locking and putting my PC to sleep?

A locked PC stays fully powered on and running. Sleep mode turns off the display and reduces power consumption, but the computer wakes up quickly when you move the mouse or press a key. Sleep is better for longer breaks; locking is better if you're stepping away for just a few minutes.