The fastest ways to lock your Mac right now
You can lock your Mac in seconds using Control + Command + Q, which puts your screen to sleep and requires your password to wake it. If you prefer the trackpad, press Control + Shift + Eject (or Control + Shift + Power on newer Macs without an Eject key). Both methods work when ready and are the quickest option when you step away from your desk.
A third option is to click the Apple menu in the top-left corner, hold down the Option key, and select Lock Screen from the dropdown. This takes slightly longer than the keyboard shortcuts but works the same way — your Mac stays on, but the login screen appears and blocks access to your files and applications.
All three methods require you to enter your password or use Touch ID to unlock your Mac again. The keyboard shortcuts are fastest if you use your Mac regularly and want to build the habit.
Key Takeaways
- Control + Command + Q is the fastest keyboard shortcut to lock your Mac and is the method most people use.
- Your Mac stays powered on when locked, so applications continue running in the background.
- You can set your Mac to lock automatically after a period of inactivity through System Settings.
- Touch ID on supported Macs lets you unlock with your fingerprint instead of typing your password.
- Locking your Mac is different from shutting it down — the computer keeps running, but nobody can access your files without your password.
Setting your Mac to lock automatically after inactivity
You can tell your Mac to lock itself after a set number of minutes of inactivity, so you do not have to remember to lock it manually. Open System Settings (the gear icon in your dock or Applications folder), then go to Lock Screen in the left sidebar.
Look for the option labeled Start screen saver when inactive or Turn display off after depending on your macOS version. Set the time to your preference — common choices are 5 minutes, 10 minutes, or 15 minutes. After that period passes with no keyboard or trackpad activity, your screen will go dark and lock.
For stronger security, also check the Require password when ready after sleep or screen saver begins box. Without this setting, someone could wake your Mac and access it for a few seconds before the login screen appears.
Using your Mac's login window to lock without a keyboard shortcut
If you forget the keyboard shortcut or your keyboard is not working, you can lock your Mac through the menu. Click the Apple menu in the top-left corner of your screen, then look for Lock Screen in the dropdown list. Your screen will go black and show the login window.
On older versions of macOS, the option may be labeled Sleep instead of Lock Screen. Sleep and Lock Screen work the same way for security purposes — both require your password to access your Mac again.
You can also use Spotlight search to lock your Mac without navigating menus. Press Command + Space to open Spotlight, type "lock screen," and press Enter. This method is slower than the keyboard shortcut but works on any Mac.
What happens to your applications when your Mac is locked
When you lock your Mac, the computer itself keeps running. Applications stay open, downloads continue, and any processes you started before locking will finish. Your email client will still receive messages, and cloud storage apps like iCloud Drive will continue syncing files in the background.
The only thing that stops is access to your screen and keyboard. Nobody can open new applications, view your files, or interact with your Mac until they enter your password or use Touch ID. This is why locking is useful when you step away for a few minutes — your work stays safe, but your Mac does not waste energy shutting down and starting back up.
Unlocking your Mac with Touch ID or your password
When your Mac is locked, the login screen appears. If your Mac has Touch ID (built into the power button on newer models), you can place your registered finger on the power button to unlock when ready. If you have not set up Touch ID, you will need to type your password instead.
To set up Touch ID on your Mac, open System Settings, go to Touch ID & Password, and follow the prompts to register your fingerprint. You can add up to five fingerprints, so you can use your thumb, index finger, or any combination. Touch ID works for unlocking your Mac, approving purchases in the App Store, and authorizing password changes.
If you forget your password, you can reset it using your Apple ID, a recovery key, or another administrator account on your Mac. The process takes a few minutes but does not require you to erase your files.
Locking your Mac versus putting it to sleep or shutting it down
Locking, sleeping, and shutting down are three different actions that serve different purposes. Locking keeps your Mac powered on and running, but blocks access to your screen and files. Sleep turns off your display and reduces power use, but your Mac wakes up quickly when you press a key or move your trackpad. Shutting down closes all applications and turns off your Mac completely.
For security, locking is the right choice when you step away for a few minutes or hours. For power savings, sleep is better if you are leaving your desk for 30 minutes to a few hours. Shut down your Mac at the end of the day or if you will not use it for several hours.
The keyboard shortcut Command + Q closes the current process, not your Mac. Do not confuse it with Control + Command + Q, which locks your screen.
Frequently Asked Questions
Does locking my Mac protect my files from other users on the same computer?
Yes. When your Mac is locked, other users cannot access your files, open your applications, or see what is on your screen without entering your password or using Touch ID. If your Mac has multiple user accounts, each person has their own password and files.
Can I lock my Mac remotely if I forget to lock it before I leave?
You can use Find My Mac (part of iCloud) to lock your Mac from another device or from iCloud.com. Open iCloud.com, click Find My, select your Mac, and choose Lock. You will need to have Find My enabled in System Settings before you leave, and your Mac must be connected to the internet.
What is the difference between Control + Command + Q and just closing the lid?
Control + Command + Q locks your screen while your Mac stays powered on and running. Closing the lid puts your Mac to sleep, which uses less power but wakes up when you open it again. Locking is more find if you are in a public place, because sleep mode can be interrupted.
Will my Mac lock automatically if I do not touch it for a while?
Only if you set it up in System Settings. By default, your Mac will not lock on its own — you have to lock it manually or set a timer for automatic locking. Once you set the timer, your Mac will lock after that many minutes of no keyboard or trackpad activity.
Can I use a keyboard shortcut to lock my Mac if I do not have Control + Command + Q memorized?
Yes. You can create a custom keyboard shortcut in System Settings under Keyboard > Keyboard Shortcuts > App Shortcuts. Add a new shortcut for the Lock Screen command and assign any key combination you prefer. You can also use Spotlight (Command + Space) and type "lock screen" to lock without memorizing a shortcut.