Does closing the lid lock your MacBook?

Closing the lid puts a MacBook to sleep. It does not, on its own, lock it. Whether the next person to lift that lid gets your desktop or a password prompt comes down to one setting most people have never opened — and if it's set to a delay rather than Immediately, there's a window where the lid opens straight onto your work.

The short answer: closing the lid sleeps it, and sleeping is not locking

Shutting the lid sleeps the machine — Apple lists closing the display as one of the ways to put a Mac to sleep — and macOS asks for your password on wake only if the password-on-wake setting tells it to.

If that distinction is new, it has its own page: sleeping and locking are different states. This page is the lid: the setting, and what you can check once you've walked away.

Where the setting actually lives

System Settings → Lock Screen → "Require password after screen saver begins or display is turned off"

On current macOS: Apple menu → System Settings, then Lock Screen in the sidebar — you may have to scroll to find it. The row reads "Require password after screen saver begins or display is turned off", and it's a pop-up menu, not a switch. The wording talks about the screen saver and the display, which is why nobody hunting for a lid setting ever finds it: closing the lid turns the display off, so this is that setting.

The menu runs from Immediately, through a range of delays, to Never. Apple doesn't publish the intervals in between, so open it and look. If you want the lid to mean something, pick Immediately.

If the menu is greyed out: Apple documents one specific cause — this setting can't be changed while iPhone Mirroring is set to authenticate automatically.
On older macOS: the same control sat in System Preferences → Security & Privacy, worded "Require password after sleep or screen saver begins".

Any delay other than Immediately is a grace period

This is the part that catches people, and "grace period" is Apple's own word for it. Picking "5 minutes" doesn't mean the Mac locks five minutes after the lid closes. It means the opposite: for five minutes, reopening the lid returns you to your desktop, no password at all. Apple documents the delay as counting from when the screen saver or sleep begins, and closing the lid is sleep — so that's the clock your lid runs against.

Read Immediately as "as soon as it wakes" rather than as a stopwatch guarantee. Waking and drawing the login window take a moment — short, and not a hole anyone can plan around.

What Touch ID, Apple Watch, and automatic login change

Touch ID and Apple Watch change how you get back in, not whether the Mac asked. Apple Watch unlock deserves singling out, because it's explicitly a lid gesture: Apple's instruction is to press a key or lift the lid, and the Mac unlocks by itself if you're wearing an unlocked watch nearby.

Automatic login matters less here than it sounds. It applies only at startup, so it has no bearing on a lid you closed and reopened — Apple is explicit that an automatically logged-in account can still need a password once the screen locks. FileVault disables it, and also switches the password-on-wake requirement on.

Check it once on the machine

Reading the setting isn't the same as knowing what your Mac does, so spend fifteen seconds proving it. Set the menu to Immediately, close the lid, count to ten, open it. You should get the login window. If you get your desktop, something is holding that session open — a watch on your wrist, for one — and better to learn it now than from a stranger on a train.

Checking after the fact, when you're not at the Mac

What you can see from your iPhone

The setting tells you what your Mac is configured to do. It says nothing about what it did at 14:20 when you left the building. Only the Mac can answer that, and only if it was already reporting when the lid came down: Lock Status is a free helper in the Mac's menu bar, posting each state change to your own private iCloud for your iPhone to read. None of it can be reconstructed after the fact, so you'd have to set the Mac helper up first.

What you get is the last state your Mac reported and when. "Asleep · 8m ago" after you shut the lid is the answer you were hoping for. "Unlocked · 3m ago" is the answer you needed.

What it can't tell you, and why we'd rather say so

Here's the uncomfortable case. Because a sleeping Mac goes quiet the moment it announces the sleep, it gets one chance to tell you. If the lid closed before that announcement reached iCloud — a flaky Wi-Fi moment, a machine that dropped off the network on the way down — then what your iPhone holds is the state from before the lid closed, timestamped accordingly.

The honest answer there is we don't know yet, and it's what you'll see: the last state we heard, in amber, with its age counting up. Not a reassuring green "Locked", because nobody told us that. Why a reading goes amber, and why a sleeping Mac is the one state that stays confident, is on the locked-versus-asleep page.

Two other things it won't tell you: who is at the Mac, and whether anything was opened. It reports lock state, and that's all.

If it turns out it didn't lock

Locking it from where you are

Lock Status won't do it for you. It reports on a Mac, it doesn't reach into one — a remote-lock button would mean claiming an action succeeded when all we could confirm is that we sent it. The real list is short: ask someone nearby to shut it, use Screen Sharing if you set that up in advance, or Find My.

Find My, and what its "Lock" actually does

Find My comes up every time, so be precise. Locking a Mac there is part of Lost Mode and it's a heavy instrument: on Apple silicon it locks with your Apple Account password, on an older Intel Mac without a T2 chip you set a passcode. Apple is blunt about the consequence — you can't unlock it remotely or from another device, only at the Mac itself — and it needs the Mac powered on and online to arrive at all. That's for a laptop you think is gone, not one left in a meeting room.

What it does not do is tell you whether a Mac is locked. It shows where a device is and whether it's reachable; there's no lock indicator in it anywhere. "Online" is not "locked", and a Mac showing offline might be locked, asleep, or open on a desk.

And if the question has shifted from "is it locked" to "was it touched", that's a different page: whether it was opened while you were gone.

Common questions

Does a MacBook lock when the battery runs out?

Not something to rely on. Apple documents safe sleep: a laptop saves its state before sleeping, so if the battery runs flat while it's asleep that state survives and gets restored. What Apple doesn't document is whether the restore asks for your login password. Since that isn't published, treat a dead battery as an unknown, not a lock.

Does an external display keep it awake and unlocked?

It keeps it awake, and that's the case where the lid means nothing at all. Apple documents that a laptop on power, with an external display and an external keyboard and mouse, can be used with the lid closed — clamshell mode, as everyone but Apple calls it. It never sleeps, so the password-on-wake setting is never reached. Apple doesn't document the lock state here; in practice the Mac stays in whatever state it was in, so shutting the lid on a dock tells you nothing.