Skip to content
Windows 🟡 Intermediate

How to Change When Your Windows 11 Computer Goes to Sleep

Richard
Written by
Richard
Updated 6 min read
A Windows 11 monitor showing power settings with sliders and toggles, illustrating how to change the sleep timeout.
A Windows 11 monitor showing power settings with sliders and toggles, illustrating how to change the sleep timeout.
Before you start
  • 7 steps
  • Needs administrator rights

Sleep (a low-power state that keeps your open apps and documents in memory) starts after your PC sits idle for a set time. Set that time too short and the PC sleeps while you read. Set it too long and it drains the battery after you walk away.

In Settings System Power & battery, pick a time from 1 minute up to 5 hours, or choose Never to stop the PC sleeping on its own. Windows 11 stores one value for battery power and another for when the PC is plugged in. You can change both in four ways: the Settings app, Control Panel, advanced power plan settings, or Command Prompt.

⚡ Quick Answer

Open Settings System Power & battery, expand Screen and sleep (called Screen, sleep, & hibernate timeouts on 24H2 and later), and set the sleep timer under On battery power and When plugged in. Choose a time from 1 minute to 5 hours, or Never. The change takes effect immediately, with no Save button.

Advertisement

How to Change Sleep Timeout – The Easy Way

This is the quickest method. It works the same on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2). Use the Settings app like this:

  1. Press Win+I. The Settings app opens.
    Windows 11 Start menu search panel for opening OpenSSH Client settings
    Windows 11 Start menu search panel for opening OpenSSH Client settings
  2. Click System in the left-hand menu. The System pages appear on the right.
    Settings › System
    Settings › System
  3. Click Power & battery. On a desktop PC with no battery, this page may be called Power instead.
  4. Expand Screen and sleep. On newer builds of Windows 11 (24H2 and later), this section is named Screen, sleep, & hibernate timeouts. A list of drop-down menus appears.
  5. Set the battery timer under On battery power, put my device to sleep after. This controls how long a laptop waits before sleeping on battery. Pick a time from 1 minute up to 5 hours, or choose Never.
  6. Set the plugged-in timer under When plugged in, put my device to sleep after. This controls how long the PC waits before sleeping while connected to power. The same choices apply. There is no Save button, so the change takes effect immediately.
  7. Close Settings.

Windows now uses the battery value when the PC is unplugged and the plugged-in value when it is connected to power.

Advertisement

The same section has turn off my screen after options. Screen timeout and sleep timeout are separate settings. If your screen goes black but the PC is still running, the screen setting triggered, not sleep. Keep the sleep time equal to or longer than the screen time, or the sleep setting can seem to do nothing.

If you see only the When plugged in options, your PC has no battery, and Windows hides the battery options. To undo a change, reopen this page and choose your previous values. On a work PC, organization policies may override what you set here.

Alternative: Change Sleep Settings Using Control Panel

Control Panel uses the older layout and has a Save changes button, so nothing changes until you confirm. Follow these steps:

  1. Open the Start menu, type Control Panel and open it. The Control Panel window appears.
  2. Change View by to Small icons or Large icons. Do this only if the view is set to Category. The option is in the top-right corner.
  3. Click Power Options. Your power plans are listed.
  4. Click Choose when the computer sleeps on the left side. The Edit Plan Settings page opens.
  5. Set the sleep time next to Put the computer to sleep. Use the drop-down menus for both On battery and Plugged in. Choose Never to turn off automatic sleep. On a desktop, you see only the Plugged in column.
  6. Click Save changes. If you leave the page without saving, your changes are lost.
  7. Close Control Panel.

Your PC now uses the sleep times you saved. Return to this page any time to change them back.

Control Panel window showing computer sleep settings options
windows when i press the sleep button options new image

Control Panel and Settings edit the same power plan (a saved group of power options), so they stay in sync. A change in one place appears in the other the next time you open it.

Advertisement

Advanced Option: Use Power Plan Settings

Use this method to enter an exact number of minutes instead of choosing from a preset list. The steps work the same on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2).

  1. Open Control Panel and go to Power Options. Your power plans are listed.
  2. Click Change plan settings next to your current power plan. This is the plan with the selected radio button.
  3. Click Change advanced power settings. A small Power Options window opens.
  4. Expand Sleep by clicking the plus (+) next to it. You may need to scroll down to find it.
  5. Expand Sleep after. Two entries appear: On battery and Plugged in.
  6. Enter the number of minutes for On battery and Plugged in. The values are in minutes, so enter 120 for two hours. Enter 0 to choose Never.
  7. Click OK. The window closes and the new values apply.
  8. Close Control Panel.

Your active power plan now sleeps after the exact number of minutes you entered.

This changes only the plan you selected. Every other power plan keeps its own sleep values. If a value doesn’t take effect, check that you edited the active plan.

Advertisement
Windows 11 sleep timeout configuration with time duration options
Windows 11 sleep timeout configuration with time duration options

This window sets the sleep timeout to the exact minute for both battery and plugged-in states. To reach it, open Control Panel, go to Power Options, click change plan settings next to your active plan, and open the advanced power settings window.

Windows 11 sleep settings menu for adjusting power timeout values
windows sleep button action advanced power option window

Expand the Sleep section here to fine-tune the duration for both states. The same window also lists related options, such as hibernate and wake timers, which affect when and how your PC sleeps or wakes.

Use Command Prompt to Change Sleep Timeout (For Advanced Users)

Command Prompt can set the sleep timeout in minutes with powercfg (the built-in tool for managing power settings), without any menus. This suits scripts and setting up several PCs. The commands change the active power plan.

  1. Open Command Prompt. Open the Start menu, type cmd and open Command Prompt. Administrator rights may be required: if a command later fails with an access error, close the window, right-click Command Prompt, choose Run as administrator, then try again.
  2. Enter the battery command. It sets the timeout for battery power. Type the command below, replacing the minutes value with the time you want.

    The powercfg /change standby-timeout-dc <minutes> command sets the sleep time for a laptop running on battery. For example, setting <minutes> to 30 makes the laptop sleep after 30 minutes of inactivity on battery. This cuts power draw and extends battery life while the PC is idle.

  3. Enter the plugged-in command. It sets the timeout for when the PC is connected to power, using the command shown next.
    ⬛Command Prompt
    powercfg -change -standby-timeout-ac <minutes>

    Replace <minutes> with the time you want, in minutes. Enter 0 to turn off automatic sleep entirely. For example, to set a 30-minute timeout while plugged in, type:

    ⬛Command Prompt
    powercfg -change -standby-timeout-ac 30
  4. Press Enter. If the command works, Command Prompt shows no message and returns to the prompt. Check the result in Settings.
Advertisement

The active power plan now uses the timeout you entered. To undo a change, run the command again with your previous value.

📝NoteDesktop PCs typically lack separate battery and plugged-in settings, so the plugged-in setting is the one that matters on those machines.

Summary

⚠️WarningSleep changes apply straight away. No restart or sign-out is needed, and you can reopen any of these pages later to adjust the times again. Save important files before you leave the PC, because the battery can run out while it sleeps. Check Microsoft’s official guide for more help.

Questions readers asked

I can't find "Choose when the computer sleeps" in Control Panel. Where is it?

Go to Control Panel, then Power Options. Find your active power plan, the one with the selected radio button, and click "Change plan settings" next to it. This opens the Edit Plan Settings page, which is the same page the left-side link opens. Under "Put the computer to sleep," set the times for On battery and Plugged in. Then click "Save changes" at the bottom. Your changes are lost if you skip this step.

Still have a question?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked * How we handle comments