What Sleep Mode Does and How to Use It

Sleep mode pauses your computer's activity while keeping it powered on, so it wakes up in seconds when you move the mouse or press a key. It uses far less electricity than running normally but more than shutting down completely. On Windows, you can put your computer to sleep by pressing the Windows key and X together, then selecting "Sleep" — or by closing the lid on a laptop. On Mac, click the Apple menu, select "Sleep", or press Control + Eject (or Control + Power on newer models).

Sleep is useful when you step away for an hour or two and plan to come back to the same work. Your programs stay open, your files stay in memory, and you don't lose any unsaved progress. The screen goes dark and the hard drive stops spinning, which saves battery on a laptop and reduces wear on your machine.

Key Takeaways

  • Windows computers sleep through the Windows key + X menu or by pressing the power button once (if configured to sleep rather than shut down).
  • Mac computers sleep through the Apple menu or by pressing Control + Eject, and closing the lid also triggers sleep automatically.
  • Sleep mode keeps your computer powered but uses much less electricity than normal operation, making it ideal for short breaks.
  • You can set your computer to sleep automatically after a period of inactivity, so you don't have to remember to do it manually.
  • Waking from sleep takes only a few seconds, and all your open programs and files return exactly as you left them.

Putting a Windows Computer to Sleep

The quickest way on Windows 10 or 11 is to press the Windows key (the one with the four squares) and hold X at the same time. A menu appears with several options. Look for "Sleep" and click it. Your screen goes black within a second or two, and your computer enters sleep mode.

If you prefer using the power button, you can configure it to sleep instead of shut down. Right-click the Start button, select "Settings", then go to "System" and "Power & battery". Scroll down to "Power and sleep" and look for "Power button and lid settings". Choose what happens when you press the power button — set it to "Sleep" if you want a single press to sleep the machine.

You can also sleep your computer by pressing Alt + F4 to close all windows, then pressing the power button. On a laptop, straightforward closing the lid usually puts the machine to sleep automatically, though you can change this behavior in Settings if needed.

Putting a Mac to Sleep

Click the Apple menu in the top-left corner of your screen and select "Sleep" from the dropdown. Your Mac goes to sleep when ready. Alternatively, press Control + Eject on older Macs, or Control + Power on newer models without an Eject key. The screen darkens and the machine enters sleep mode.

On a MacBook, closing the lid automatically puts the computer to sleep. If you want to change this behavior — for example, to keep your Mac awake when the lid is closed — go to System Settings, select "General", then "Login Items & Extensions", and look for power settings related to lid closure.

Setting Your Computer to Sleep Automatically

You can configure your computer to sleep on its own after a set period of inactivity, so you don't have to remember to do it manually. On Windows, right-click the Start button, go to "Settings", then "System" and "Power & battery". Under "Screen and sleep", set "Sleep" to your preferred time — common choices are 5, 10, or 15 minutes of inactivity.

On Mac, go to System Settings, select "General", then "Login Items & Extensions". Look for "Energy Saver" or "Battery" settings (depending on your macOS version). Set the "Turn display off after" time, and your Mac will sleep after that period of inactivity. You can set different times for when the Mac is plugged in versus running on battery.

Keep in mind that some programs — like video players or presentation software — may prevent automatic sleep while they are running. If your computer isn't sleeping when you expect it to, check whether a program is actively using the screen.

Waking Your Computer from Sleep

To wake your computer, move the mouse, press any key on the keyboard, or press the power button once. The screen comes back to life in a few seconds, and everything you had open is still there. On a laptop, opening the lid usually wakes the machine if you have that setting enabled.

If your computer doesn't wake when you expect it to, make sure the mouse or keyboard is actually connected and working. Wireless mice and keyboards sometimes lose connection, so try plugging in a wired device to test. If the computer still won't wake, press the power button once more or hold it for a few seconds.

Sleep Versus Shutdown: When to Use Each

Sleep is best for breaks lasting a few minutes to a couple of hours. Your computer uses less power than normal operation but still draws some electricity. Shutdown is better if you won't use the machine for several hours or overnight, because it cuts power almost entirely and saves the most energy.

Shutdown also clears your computer's memory and closes all programs, which can fix certain software problems. Sleep preserves everything in memory, so if a program is frozen or behaving strangely, shutting down and restarting may help more than sleeping and waking.

On a laptop, sleep is ideal when you're moving between rooms or stepping away briefly. Shutdown is better before packing the laptop away for travel or storage, because it prevents accidental wake-ups and reduces battery drain.

Troubleshooting Sleep Problems

If your computer won't sleep when you command it to, a program may be preventing sleep. On Windows, open Task Manager (Ctrl + Shift + Esc), go to the "Processes" tab, and look for programs using high CPU or disk activity. Close any you don't need. On Mac, hold Option and click the battery icon in the menu bar to see what's preventing sleep.

If your computer wakes up unexpectedly from sleep, a mouse movement, keyboard press, or network activity may be triggering it. On Windows, go to Device Manager (right-click Start and select it), expand "Mice and other pointing devices", right-click your mouse, select "Properties", and uncheck "Allow this device to wake the computer". Do the same for your keyboard under "Keyboards".

On Mac, go to System Settings, select "General", then "Login Items & Extensions", and check the "Energy Saver" settings to see which devices can wake the machine. You can disable wake-on-network-access or wake-on-mouse if those are causing unwanted wake-ups.

Frequently Asked Questions

Does sleep mode save battery on a laptop?

Yes, sleep mode uses significantly less battery than normal operation — typically 1 to 3 percent per hour, compared to 10 to 20 percent or more while awake. If you need to preserve battery for several hours, shutdown uses even less power, but sleep is a good middle ground for short breaks.

Will my files be safe if the power goes out while the computer is sleeping?

No. Sleep mode keeps your files in memory, not on disk, so a power outage will lose any unsaved work. If you're worried about power loss, save your files before sleeping, or use shutdown instead. A laptop on battery can sleep safely for hours without risk.

Can I put my computer to sleep on a schedule?

Yes. On Windows, you can use the Task Scheduler to run a sleep command at a specific time each day. On Mac, you can set automatic sleep times in Energy Saver settings. Both systems also offer automatic sleep after a period of inactivity, which is simpler to set up.

What's the difference between sleep and hibernation?

Sleep keeps your computer powered and ready to wake in seconds. Hibernation saves everything to disk, then powers off completely, using almost no electricity. Hibernation takes longer to wake from but is safer if power loss is a risk. Windows offers hibernation as an option; Mac does not have a separate hibernation mode.

Why does my computer wake up from sleep by itself?

Network activity, mouse movement, keyboard input, or scheduled tasks can trigger wake-ups. Check Device Manager (Windows) or Energy Saver settings (Mac) to see which devices are allowed to wake the computer, and disable any you don't need. Scheduled backups or updates can also cause wake-ups.