The fastest way to lock your computer

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 the 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 key + L (the Search key is usually where Caps Lock would be). The screen locks when ready.

These keyboard shortcuts are the standard method because they are faster and more reliable than using menus, and they work the same way every time, on any computer running that operating system.

Key Takeaways

  • Windows computers lock with Windows key + L; Macs lock with Control + Command + Q; Chromebooks lock with Search + L.
  • A locked screen requires your password to unlock, but does not shut down your programs or close your files.
  • You can also lock your computer through the Start menu or Apple menu if you prefer not to use a 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 Start menu on Windows

If the keyboard shortcut does not work or you prefer using the mouse, you can lock your computer through the Start menu. Click the Start button in the bottom left corner, then click your user account icon or name at the top of the menu. A small dropdown will appear with several options.

Click Lock from that dropdown. Your screen will lock when ready, and the lock screen will appear. This method takes a few more clicks than the keyboard shortcut, but it accomplishes the same thing.

Locking through the Apple menu on Mac

On a Mac, you can also lock your screen using the menu bar at the top. Click the Apple menu (the apple icon in the top left), then scroll down and click Lock Screen. Your Mac will lock, and you will see the lock screen with the date and time.

Some older versions of macOS may label this option differently or require you to go through System Preferences instead, but the keyboard shortcut Control + Command + Q works on nearly all recent Mac models and is faster.

What happens when your computer is locked

When you lock your computer, the screen goes blank or shows a lock screen, but your programs keep running in the background. Any files you had open stay open. Downloads continue. If you had music or a video playing, it keeps playing — you just cannot see or interact with anything on the screen.

To unlock, you press any key or click the mouse, and the lock screen will prompt you to enter your password. Once you type it correctly, you return to exactly where you left off. Nothing closes, nothing saves, nothing restarts.

Setting your computer to lock automatically

You can tell your computer to lock itself after a set amount of time with no activity — for example, after five minutes of you not touching the keyboard or mouse. This is useful if you sometimes forget to lock manually.

On Windows: Open Settings, go to Accounts, then select Sign-in options. Scroll down to find the section labeled "Require sign-in". Choose how long you want Windows to wait before locking — options usually range from one minute to never. Select a time that works for you, like five or ten minutes.

On Mac: Open System Preferences (or System Settings on newer versions), click Security & Privacy, then select the General tab. Look for the option that says "Require password" and choose how long after sleep or screen saver set up you want the password prompt to appear. Set it to a short time like five minutes.

On Chromebook: Open Settings, click Security and Privacy on the left, then find the "Screen lock" section. Toggle it on and set the timeout — usually between one and thirty minutes of inactivity.

Why you should lock instead of shutting down

Locking is different from shutting down or sleeping. When you lock, your computer stays on and ready, but nobody can access your files or accounts without your password. When you shut down, everything closes and your computer turns off. When you put it to sleep, it uses very little power but wakes up when ready when you touch it.

Lock is the right choice when you are stepping away for a few minutes or an hour and plan to come back to the same work. It keeps your programs and files exactly where they are, and it protects your privacy if someone walks by your desk. Shutdown is better if you are done for the day or will not use the computer for several hours.

Troubleshooting if the lock does not work

If you press the keyboard shortcut and nothing happens, try clicking on the desktop first to make sure the computer is focused on the main screen rather than a window or process. Then try the shortcut again.

If the keyboard shortcut still does not work, use the menu method instead — Start menu on Windows, Apple menu on Mac, or the system menu on Chromebook. If neither method works, restart your computer. A restart will clear any temporary glitch that is preventing the lock function from responding.

If you have recently changed your password and the lock screen is not accepting it, make sure Caps Lock is off and that you are typing your password correctly. If you have forgotten your password, you will need to use your password recovery method — usually a recovery email or phone number you set up when you created your account.

Frequently Asked Questions

Does locking my computer save my work?

No. Locking only secures your screen. If you have unsaved files open, they remain unsaved. Save your work before you lock, or set your programs to auto-save if that feature is available. Locking does not close files or trigger any save action.

Can someone unlock my computer if they know my password?

Yes. A lock screen protects against casual access, but anyone with your password can unlock it. If you want stronger security, use a strong password that is hard to guess, and do not share it. Some computers also support fingerprint or face recognition as an unlock method, which adds another layer.

What is the difference between locking and sleeping?

Locking keeps your computer on and running but requires a password to access it. Sleeping turns off the display and most functions to save power, but the computer wakes when ready when you move the mouse or press a key. Both require a password to resume, but sleeping uses much less electricity.

Will my downloads finish if I lock my computer?

Yes. Locking only affects the screen and input. Downloads, uploads, and background tasks continue running. You can lock your computer and walk away while a file downloads, and it will be ready when you return.

Can I lock my computer remotely?

Not with the standard lock function. The keyboard shortcut and menu options only work when you are at the computer. Some remote access software like Microsoft Remote Desktop or TeamViewer allows you to lock a computer from another device, but that requires the software to be installed and configured first.