Shortcut to Lock Computer: Windows & Mac Keys

How-to basics · Updated November 22, 2026

The quickest shortcut to lock your computer is Windows Key + L on Windows and Control + Command + Q on a Mac. On Windows, this instantly takes you to the lock screen; on macOS, it puts the display to sleep and requires your password or Touch ID to wake it. Below we cover every method, why locking matters, and how to fix common issues.

Why Locking Your Computer Matters

Locking your computer is a basic security habit that prevents anyone from accessing your files, emails, or logged-in accounts while you step away. In an office, it also prevents coworkers from accidentally sending emails or editing documents under your name. For remote workers, locking is essential if you use a laptop in public places like coffee shops or airports. Even at home, a quick lock keeps children or visitors from stumbling onto sensitive information. The lock screen does not log you out; it just hides your session behind a password, PIN, or biometric prompt.

Windows Shortcut: Windows Key + L

The most direct method on Windows 10 and Windows 11 is pressing Win + L. This works regardless of which app you are in, and it never triggers a shutdown or restart. If you are using a remote desktop session, the shortcut locks your local machine, not the remote one—use Ctrl + Alt + End in the remote session to lock the remote PC.

If your keyboard lacks a Windows key (rare on modern PCs), you can use the on-screen method: press Ctrl + Alt + Delete, then select “Lock.” This is a fallback that works on all Windows versions.

Mac Shortcut: Control + Command + Q

On macOS, the default shortcut to lock the screen is Control + Command + Q. This works on macOS Catalina (10.15) and later. On older versions, you might need to set up a hot corner or use the Lock Screen menu item. If you have a Mac with Touch ID, pressing the Touch ID button also locks the screen instantly. Another method is to use Command + Control + Q—note the order of keys doesn’t matter as long as all three are pressed together.

If you prefer a menu-based approach, click the Apple menu () and choose “Lock Screen.” You can also set a hot corner in System Settings > Desktop & Dock > Hot Corners to lock the screen when you move the mouse to a corner.

How to Change or Disable the Shortcut

On Windows, you cannot remap the Win + L shortcut directly, but you can disable it via Group Policy or Registry edits—this is not recommended because it weakens security. Most users simply use the default.

On macOS, you can change the lock shortcut in System Settings > Keyboard > Keyboard Shortcuts > App Shortcuts. Click the “+” button, select “All Applications,” type the exact menu command “Lock Screen” (or “Lock” on older versions), and enter your preferred key combination. For example, you could set it to Command + Option + L. Note that if you set a shortcut that conflicts with another app, the lock screen shortcut will still work in most cases because it is a system-level command.

Other Ways to Lock Your Computer

Beyond keyboard shortcuts, you have several alternatives:

  • Start menu (Windows): Click the Start button, click your profile picture, then select “Lock.”
  • Ctrl + Alt + Delete (Windows): Press this combination and choose “Lock” from the menu.
  • Apple menu (Mac): Click the Apple logo in the top-left and select “Lock Screen.”
  • Hot corners (Mac): Set a corner to trigger the lock screen in System Settings > Desktop & Dock > Hot Corners.
  • Screen saver (both): Set a screen saver that requires a password on wake. On Windows, this is in Settings > Personalization > Lock screen > Screen saver settings. On Mac, it’s in System Settings > Lock Screen.
  • Dynamic lock (Windows): Pair your phone via Bluetooth and enable “Dynamic lock” in Settings > Accounts > Sign-in options, so the PC locks when your phone leaves range.

What to Do If the Shortcut Doesn’t Work

If Win + L or Control + Command + Q fails, try these steps:

  • Check the keyboard: Some gaming keyboards have a “Windows key lock” mode (often toggled with Fn + Win). If the Windows key is disabled, the shortcut won’t work.
  • Update drivers: Outdated keyboard or graphics drivers can interfere with shortcut behavior. Use Windows Update or Device Manager to update.
  • Check for conflicting software: Tools like AutoHotkey or custom macro programs may override system shortcuts. Temporarily disable them to test.
  • Mac specific: Ensure you are pressing the “Control” key, not “Option.” Also check if the shortcut is being captured by a full-screen app (e.g., some games). Try the Apple menu method instead.
  • Registry/plist corruption: On Windows, run sfc /scannow in an elevated Command Prompt to repair system files. On Mac, restart in Safe Mode to check for third-party issues.

Lock vs. Sleep vs. Sign Out: What’s the Difference?

Many users confuse locking with sleeping or signing out. Locking just shows the lock screen while your apps keep running in the background—your downloads continue, your music keeps playing, and your open documents remain exactly as they were. Sleeping (or “Sleep” on Windows, “Sleep” on Mac) puts the computer into a low-power state, pausing most activity; it also requires a password to wake if you have that enabled, but it consumes a little power and resumes faster than locking alone. Signing out closes all your programs and returns to the login screen; it’s the most secure but also the most disruptive because you have to reopen everything. For quick security, locking is the best balance.

Frequently Asked Questions

Does locking my computer log me out of apps like Skype or Slack?

No, locking does not log you out of any applications. Your session remains active, and you’ll return to exactly where you left off after entering your password. This is different from signing out, which closes all apps.

Can I lock my computer automatically when I step away?

Yes. On Windows, you can set a screen saver timeout that locks the screen after a period of inactivity. Go to Settings > Personalization > Lock screen > Screen saver settings, choose a screen saver, set a wait time, and check “On resume, display logon screen.” On Mac, go to System Settings > Lock Screen and set “Require password after sleep or screen saver begins” to a short time, then set a screen saver start time.

Why does my Mac not lock with Control + Command + Q?

This shortcut works only on macOS Catalina (10.15) and later. If you have an older version, use the Apple menu > Lock Screen (if available) or set up a hot corner. Also, ensure you’re pressing the correct keys—some keyboards label the Control key as “control” or “ctrl.”

Is there a way to lock a Windows computer without a keyboard?

Yes. You can click the Start button, click your profile icon, and select “Lock.” Or press Ctrl + Alt + Delete and click “Lock.” If you have a touch screen, you can swipe up from the bottom to access the lock screen on Windows 10, but this is not a direct lock—it just shows the lock screen after a swipe.

Does locking my computer use more battery than sleeping?

Locking keeps your computer fully awake, so it uses the same battery as normal use. Sleeping uses much less power. If you’re stepping away for more than 15–20 minutes, consider sleeping instead of locking to save battery. On laptops, you can set the power button to sleep when pressed.

Can I lock my computer remotely?

Yes, if you have remote desktop software like Windows Remote Desktop or third-party tools. On Windows, you can also use the “Find My Device” feature (Settings > Privacy & Security > Find My Device) to lock your PC remotely if it’s lost. On Mac, you can use iCloud’s “Find My” to lock your Mac remotely, but that requires the device to be online.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.