How to Lock Your Mac Screen: The Shortcut and Every Other Method

Locking your Mac before you step away takes one keystroke once you know it. This guide covers every built-in way to lock the screen, from the keyboard shortcut to hot corners and the Apple menu, and the one password setting that decides whether a lock is genuinely secure. At the end, it explains how to stop relying on memory altogether and have the Mac lock itself the moment you actually leave.

The fastest way: the keyboard shortcut

On any modern Mac, the quickest way to lock the screen is the keyboard shortcut. Press Control, Command, and Q together. The screen goes straight to the lock screen and your password is required to get back in. This locks the screen without putting the Mac to sleep, so anything you have running keeps going; if that is the point, see how to lock the screen without putting the Mac to sleep.

It is worth committing this one to memory, because it is the same on every Mac running macOS 14 Sonoma or later and needs no setup. If you only learn one method, learn this. The rest of this guide covers the alternatives for the times your hands are not on the keyboard, and then the setting that makes any of these locks meaningful.

Other built-in ways to lock by hand

The keyboard shortcut is the fastest, but macOS gives you several other ways to lock the screen without it. Each is built in, with nothing to install.

The Apple menu

Click the Apple menu in the top-left corner of the screen and choose Lock Screen. The keyboard shortcut is shown next to the menu item, which is a handy reminder while you are learning it. This is the most discoverable method and useful when your pointer is already near the menu bar. The same menu also holds Log Out and Shut Down; for when each of the three is the right thing to do as you leave, see the guide on whether to lock, log out or shut down your Mac.

A hot corner

A hot corner triggers an action when you push the pointer into a corner of the screen, so you can lock with a flick of the trackpad or mouse.

  1. Open System Settings and go to Desktop & Dock.
  2. Scroll down and click Hot Corners.
  3. Choose a corner and set its action to Lock Screen.

Tip: if you worry about triggering it by accident, hold a modifier key such as Shift or Option while you pick the action. The corner will then only fire while that key is held, which prevents stray locks when you reach for the menu bar.

Closing the lid, on a laptop

On a MacBook, closing the lid puts the Mac to sleep. Provided you have set the password requirement described below, waking it then asks for your password. This is not instant in the way the shortcut is, but it is the natural gesture when you pack up to leave.

The login window, via fast user switching

If you turn on fast user switching, a user menu appears in the menu bar. Choosing Login Window from it returns the Mac to the login screen, which locks your session. To enable the menu, open System Settings, go to Control Center, and turn on the fast user switching menu so it shows in the menu bar.

If you would rather lock from a script or a single command, you can also lock your Mac from the Terminal with a one-line command and bind it to a keystroke.

The setting that makes a lock secure

A lock is only as good as the password requirement behind it. The manual Lock Screen command and the keyboard shortcut take you to the lock screen and ask for your password straight away. The automatic paths, however, the screen saver and display sleep, are governed by a separate option, and by default macOS may allow a short grace period during which the Mac can be woken without a password.

Require the password immediately

  1. Open System Settings and go to Lock Screen.
  2. Find "Require password after screen saver begins or display is turned off".
  3. Set it to Immediately.

Why this matters: if this is set to a delay such as five seconds, one minute, or longer, the screen can be awake and effectively unlocked for that whole window after the screen saver starts or the display sleeps. Setting it to Immediately closes that gap. If your Mac seems to dim but never actually lock, this setting is the most likely cause; the dedicated guide on why a Mac is not locking automatically walks through it and the related timer settings in full.

Why locking by hand is not enough

Every method above is reliable, and they share one weakness: each depends on you remembering to do it. On a busy day, or when you are called away mid-thought, the lock you meant to trigger is exactly the one you forget. If you forget and the Mac is later lost or left behind, you can still lock it remotely with Find My, provided Find My was switched on beforehand. The fallback, the native inactivity timer, does not solve this either, because it is time-based rather than presence-based. macOS counts idle seconds; it does not know you have left the desk.

That leaves an awkward trade-off. Set the screen saver to start after one minute and your screen stays open for up to a minute after you walk away. Set it to ten seconds to feel safer and it blanks the screen every time you pause to read or think. There is no idle interval that is both quick to lock when you leave and patient while you stay. For a fuller look at the native timer, Bluetooth proximity, Touch ID, and camera-presence options side by side, see the guide on ways to auto-lock your Mac in 2026.

Lock the moment you actually walk away

Presence detection closes the gap by answering a different question: not "how long has it been idle?" but "is the person still here?". This is the approach Peeku uses to auto-lock your Mac the moment you walk away. Peeku combines three local signals to decide you have genuinely left:

When the signals agree you have gone, Peeku locks within a few seconds, and because it waits for genuine absence rather than a fixed timer, it does not lock you out while you sit reading. Detection runs entirely on your Mac, with no account and no cloud face data; the guide on privacy-first, on-device auto-lock explains how that works. Two honest caveats: Peeku still relies on the "Require password: Immediately" setting above, so configure that first either way, and the full locking app ships free outside the Mac App Store, on Gumroad and as a notarised DMG, because the App Store sandbox blocks the system screen-lock calls.

Quick reference

Stop relying on memory

Learn the shortcut for the times you need it, then let Peeku lock your Mac the moment you actually walk away. Free, no account, no cloud face data, and all detection stays on your Mac.

Get Peeku on Gumroad (free) See how Peeku works

macOS 14+, Apple Silicon. About 3.1 MB. Developer ID signed and notarised. Pay what you want on Gumroad (₹0 option available).

Free Mac App Store build

Prefer the App Store path?

Install Peeku Presence Coach for eye-rest nudges, walk reminders, optional Desk Health, and private local presence signals. The full walk-away lock still needs the direct Mac build because the App Store sandbox blocks automatic screen-lock commands.