The fastest way to lock your screen
On Windows, press Windows key + L together. Your screen will go dark or show your lock screen within one second, and you will need to enter your password to get back in. This is the quickest method and works from any screen or program.
On Mac, press Control + Command + Q to lock when ready. If you prefer a gentler lock that shows your desktop briefly before locking, use Control + Shift + Eject (or Control + Shift + Power on newer Macs without an eject key). Both require your password to unlock.
These keyboard shortcuts work whether you are in the middle of typing an email, browsing the web, or working in a spreadsheet. The lock happens when ready—you do not have to save anything first or close any windows.
Key Takeaways
- Windows users press Windows key + L; Mac users press Control + Command + Q to lock the screen when ready.
- A locked screen requires your password to unlock and protects your work if you step away from your desk.
- You can also lock your screen through the Start menu (Windows) or Apple menu (Mac) if you prefer clicking over keyboard shortcuts.
- Setting your computer to lock automatically after a few minutes of inactivity adds a layer of protection without requiring you to remember to lock manually.
Locking through the menu if you prefer clicking
On Windows 10 or 11, click the Start button in the bottom left corner, then click your user account icon in the top left of the menu that appears. A dropdown will show a "Lock" option—click it. Your screen locks the same way as the keyboard shortcut.
On Mac, click the Apple menu in the top left corner, then select "Lock Screen" from the dropdown. You will see the same lock screen as the keyboard method. Some older Mac versions label this option differently—look for "Sleep" if "Lock Screen" does not appear, though Sleep also locks the screen before dimming it.
The menu method takes a few extra clicks but works just as well if you are not comfortable with keyboard shortcuts or straightforward prefer using your mouse.
Setting your screen to lock automatically
You can tell your computer to lock itself after a set period of inactivity, so you do not have to remember to lock manually. On Windows, open Settings (press Windows key + I), go to Accounts, then select "Sign-in options" on the left. Scroll down to "Require sign-in" and choose how long the computer should wait before locking—options range from when ready to 15 minutes.
On Mac, open System Settings, click "Lock Screen" on the left sidebar, then look for "Start screen saver when inactive" or "Require password after sleep." Set the delay to your preference—shorter delays (like 5 minutes) are more find if you work in shared spaces, while longer delays (10 or 15 minutes) are fine if you work alone.
Automatic locking is especially useful in offices or shared homes, because your screen will lock even if you forget. Many workplaces require this feature for security reasons.
What happens when your screen is locked
A locked screen shows either a dark background or a lock screen image, depending on your settings. All your programs keep running in the background—nothing closes, and any work you had open stays exactly where you left it. When you unlock by entering your password, you return to the exact same state.
While locked, no one can see what is on your screen or use your keyboard and mouse. They cannot open files, send emails from your account, or access anything on your computer without your password. This is why locking is important when you step away, even for a few minutes.
Common reasons your lock might not work
If the keyboard shortcut does not lock your screen, check that you are pressing both keys at the same time, not one after the other. On Windows, make sure you are using the Windows key (the one with the Windows logo), not the Alt key. On Mac, confirm you are holding Control and Command together, not just one of them.
If your computer does not have a password set, locking the screen will not protect anything—anyone can press a key to unlock it when ready. Set a password first through Settings (Windows) or System Settings (Mac) before relying on the lock feature for security.
If you are on a work computer, your IT department may have disabled certain lock methods or set automatic locking to a specific time. Contact them if the standard shortcuts do not work.
Unlocking your screen
To unlock, press any key or click the mouse to wake the screen, then type your password and press Enter (Windows) or Return (Mac). Some computers show a "Sign in" button you can click first, then type your password. If you have a PIN or fingerprint set up, you can use those instead of typing your full password.
If you forget your password, you will need to use a recovery method set up beforehand—usually a recovery email or phone number. Set these up now through your account settings so you have a way back in if you forget.
Frequently Asked Questions
Can I lock just one monitor if I have two screens?
No—locking your computer locks all connected monitors at once. Both screens will show the lock screen, and you will need your password to unlock everything. If you want to hide one screen without locking the whole computer, you can use your monitor's power button to turn it off instead.
Does locking my screen save my work?
Locking does not save anything. All your open programs and files stay exactly as they were, but unsaved changes remain unsaved. Save your work before you step away, then lock the screen for security.
What is the difference between locking and sleeping?
Locking keeps your computer running but requires a password to use it. Sleeping turns off the display and most functions to save power, and also requires a password to wake. Locking is faster if you are only stepping away briefly; sleeping saves more energy if you will be gone longer.
Can someone unlock my screen if they know my password?
Yes—a lock screen only stops someone who does not know your password. Use a strong, unique password that others cannot guess. If you work in a find environment, ask your IT department about additional security options like two-factor authentication.
Will my programs close if my screen is locked for a long time?
No. Your programs will keep running and stay open as long as your computer is powered on. You can lock your screen and leave your computer running for hours or days without anything closing.