The fastest way to lock a MacBook is to press Control-Command-Q. You can also press the Touch ID button, choose Apple menu > Lock Screen, or flick the pointer into a hot corner. Your apps stay open behind the lock, and nobody gets back in without your password, your fingerprint or your Apple Watch.
This guide shows how to lock a MacBook seven ways, fastest first, and then covers the one setting that decides whether closing the lid really locks it. The steps were checked against Apple’s support pages for macOS 27 on December 5, 2026. They are the same on a MacBook Air, a MacBook Pro and a desktop Mac.
7 Ways to Lock Your Mac at a Glance
| Method | What to do | Best when |
|---|---|---|
| Keyboard shortcut | Control-Command-Q | Your hands are on the keys |
| Touch ID button | Press it once | Your Mac or Magic Keyboard has Touch ID |
| Apple menu | Apple menu > Lock Screen | You prefer the mouse or trackpad |
| Hot corner | Move the pointer into a screen corner | You lock many times a day |
| Close the lid | Shut the display | You are packing up (needs the password setting below) |
| Automatic lock | Set a short idle time | You forget to lock |
| Find My | Mark the Mac as lost from another device | The Mac is lost or already out of reach |
1. The Mac Lock Screen Shortcut: Control-Command-Q
Hold Control and Command, then press Q. The screen locks at once. Apple lists this macOS lock screen shortcut on its Mac keyboard shortcuts page.
Be careful with one neighbor. Shift-Command-Q logs you out of your account instead, which closes your apps. macOS asks you to confirm first, so click Cancel if you pressed it by mistake.
If you were searching for a lock screen Mac hotkey that uses the power button, that depends on the keyboard. The next section explains it.
2. Press the Touch ID Button
If your MacBook has Touch ID, the sensor sits at the top right of the keyboard. Press it once, like a button, and the screen locks. Apple’s shortcuts page puts it this way: on keyboards with Touch ID, press to lock your screen. The same press works on a Magic Keyboard with Touch ID.
Two details are worth knowing:
- Some Magic Keyboards have a separate Lock Screen key instead. Apple says to press that key if your keyboard has one.
- On older built-in keyboards without Touch ID, holding the power button for 1.5 seconds puts the Mac to sleep. That is not the same as locking, as you will see below.
3. Use the Apple Menu
This is the answer if you want to lock a Mac screen without a keyboard shortcut to remember.
- Click the Apple menu in the top-left corner of the screen.
- Choose Lock Screen.
The Apple menu also has Sleep and Log Out. They do different jobs, so pick Lock Screen when you only want to step away for a moment.
4. Set Up a Hot Corner That Locks the Screen
A hot corner starts an action when you push the pointer into a corner of the screen. Apple’s guide to hot corners on Mac gives locking the screen as one of its examples.
- Open System Settings.
- Click Desktop & Dock in the sidebar. You may need to scroll down.
- Click Hot Corners.
- Click the pop-up menu for the corner you want and choose Lock Screen.
- Click Done.
Worried about locking the Mac by accident every time the pointer drifts? Hold Command, Shift, Option or Control while the pop-up menu is open. The corner then only works while you hold that key. Also note that the bottom-right corner opens a Quick Note by default, so choose another corner if you use that.
5. Close the Lid (and Check This Setting First)
Closing the display puts a Mac laptop to sleep. Whether it is also locked when you open it again depends on one setting, and this is where many people get caught out.
- Choose Apple menu > System Settings.
- Click Lock Screen in the sidebar.
- Find Require password after screen saver begins or display is turned off.
- Click the pop-up menu and choose the shortest time you can live with.
That menu sets how much time may pass before a password is needed. With a long delay, someone who opens the lid a minute after you closed it can walk straight in. So if you came here asking how to lock a MacBook Air or Pro just by shutting it, this is the setting to check. Apple describes it on its page about requiring a password after waking your Mac.
On macOS Monterey 12 and earlier, the same option is in System Preferences > Security & Privacy > General.
Apple says a Mac in sleep consumes much less power, which also helps if you are trying to look after your MacBook battery.
6. Make Your Mac Lock by Itself
Everyone forgets sometimes. The same Lock Screen settings page lets the Mac cover for you:
- Turn display off on battery when inactive and Turn display off on power adapter when inactive set how long the Mac waits before the screen goes dark.
- The Require password menu from the last section then decides how soon after that the password is needed.
Set both to short times and an unattended Mac locks itself within a few minutes.
For a shared or office Mac you can go one step further. In System Settings > Privacy & Security, click Advanced at the bottom and turn on Log out automatically after inactivity. This logs you out completely, so save your work before you walk away.
7. Lock a Lost Mac Remotely With Find My
If the Mac is not in front of you, you can still lock it. Apple’s steps for Lost Mode on iCloud.com are:
- Go to icloud.com/find and sign in to your Apple Account.
- Select the Mac in the list of devices.
- Select Mark As Lost and follow the instructions.
A Mac with Apple silicon is locked with your Apple Account password. For an Intel-based Mac you create a numerical passcode, so write it down. Apple is clear that you cannot unlock the Mac online or from another device, only on the Mac itself. Treat this as a tool for a lost or stolen Mac, not for a coffee break.
Lock, Sleep or Log Out: What Is the Difference?
| Action | What happens | Password needed to return? |
|---|---|---|
| Lock Screen | The screen is hidden right away and you stay logged in | Yes |
| Sleep (or closing the lid) | The Mac goes into a low-power state | Only after the delay in the Require password setting |
| Log Out | Your apps close and the login window appears | Yes |
For a quick break, lock. For a longer one, sleep with a short password delay does the same job and saves power.
How to Unlock Your Mac Again
Apple’s page on locking the screen of your Mac lists three ways back in:
- Password: press any key, then type your login password.
- Touch ID: rest your finger on the sensor. Apple notes that you still have to type the password after starting the Mac, every 48 hours, and after five fingerprint attempts that did not match.
- Apple Watch: with Auto Unlock turned on, waking the Mac while you wear your unlocked watch logs you in.
That last one has a side effect. If you lock the Mac but stay next to it with your watch on, a tap on a key can unlock it again. To change that, open System Settings > Touch ID & Password and turn off the setting for your watch in the Apple Watch section, as described on Apple’s Auto Unlock page.
What a Locked Mac Does Not Protect
A lock keeps people out of your account. It does not make the Mac untouchable.
- Someone can still restart it. Apple warns that locking the screen does not stop other users from turning off the Mac, restarting it and logging in to their own account. Unsaved work in apps that do not save automatically could be lost, so save before you leave.
- A weak password undoes everything. If your login password is short or reused, change it. Our guide to the 2 billion exposed logins explains how to check whether a password of yours has leaked.
- The lock is not encryption. Apple says data on a Mac with Apple silicon or the T2 chip is encrypted automatically, and that turning on FileVault adds the requirement of your login password to see that data.
One more useful option: in Lock Screen settings, turn on Show message when locked, click Set and type a phone number or email address. Apple suggests this as a way to show contact details if the Mac is ever lost.
If the Lock Shortcut Does Not Work
- Nothing happens, or you hear an alert sound. Some owners on Apple’s community forum report that Control-Command-Q fails while certain apps are in front. Click the desktop and try again, or use Apple menu > Lock Screen, which does not depend on the app.
- The whole Mac is unresponsive. Then the problem is a frozen app, not the shortcut. See how to force quit an app on Mac, and if freezes are frequent, our list of fixes for a slow MacBook.
- The Mac opens without asking for a password. Go back to the Require password setting in section 5 and shorten the delay.
- Touch ID does not lock the screen. Press the button down. Resting a finger on it only reads your fingerprint.
Quick Answers
How do you lock a Mac computer quickly? Press Control-Command-Q. On a Mac or Magic Keyboard with Touch ID, pressing the Touch ID button does the same thing.
How to lock computer on Mac without the keyboard? Click the Apple menu in the top-left corner and choose Lock Screen, or set up a hot corner in System Settings > Desktop & Dock > Hot Corners.
Does closing the lid lock a MacBook? It puts the MacBook to sleep. It asks for a password on waking only after the time set under System Settings > Lock Screen > Require password after screen saver begins or display is turned off.
Do apps keep their place when I lock my Mac? Yes. Locking does not log you out, so your windows and documents are where you left them when you unlock. Logging out is what closes apps.
Can I lock my Mac from my iPhone? Yes, for a lost Mac. Open icloud.com/find in the phone’s browser, select the Mac and choose Mark As Lost. Apple says the Find My app on a device signed in to the same Apple Account works too. You can only unlock the Mac again on the Mac itself.
What is the difference between the lock shortcut and the log out shortcut? Control-Command-Q locks the screen and keeps you logged in. Shift-Command-Q logs you out after asking you to confirm.
