How to Make Your Mac Ask for a Password Immediately When You Close the Lid

Most people assume the moment they shut their MacBook lid or walk away until the screen goes black, anyone else walking past will hit a password prompt. Yet by default on many Macs, macOS waits a grace period—anywhere from five seconds to several minutes—before actually locking the screen, leaving open emails and banking tabs exposed if you shut the lid at a café and open it again right away.

Changing one setting inside Lock Screen makes your Mac lock the very instant the display sleeps or the lid closes.

Change Require Password After Sleep to Immediately

Whether your Mac runs macOS Sequoia, Sonoma, or Ventura, the timing rule lives under Lock Screen preferences inside System Settings.

  1. Click the Apple menu in the top-left corner and choose System Settings.
  2. Scroll down in the left sidebar and click Lock Screen.
  3. Locate the drop-down menu labelled Require password after screen saver begins or display is turned off.
  4. Click the menu and select Immediately (instead of After 5 seconds, After 5 minutes, or longer).
  5. If prompted, enter your Mac login password or rest your finger on Touch ID to confirm.

Even with Immediately selected, Macs equipped with Touch ID or an Apple Watch still unlock in under a second for you—they simply lock out everybody else straight away.

Shorten How Fast Your Screen Turns Off When You Step Away

Requiring a password immediately only protects you once the screen actually goes to sleep. Right above that drop-down on the same Lock Screen page, check the top three timers so your display does not sit wide awake for half an hour after you walk away from your desk:

  • Start Screen Saver when inactive: Set to 5 minutes or 10 minutes.
  • Turn display off on battery when inactive: Choose 2 minutes or 5 minutes for strong café and office security.
  • Turn display off on power adapter when inactive: Pick 10 minutes or 15 minutes at your desk.

Lock Your Mac Manually in One Second Before Walking Away

Whenever you stand up to grab a coffee in a shared office and do not want to close the laptop lid, press Ctrl + Cmd + Q on your keyboard (or click Apple menu > Lock Screen). That locks macOS instantaneously without putting background downloads or music to sleep. And if you also prefer keeping messy apps from springing open every time you start your Mac from scratch, check our guide on how to stop your Mac opening apps automatically at startup.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.