How to Change When Your Windows 11 Computer Goes to Sleep
- 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.
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.
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:
- Press Win+I. The Settings app opens.

Windows 11 Start menu search panel for opening OpenSSH Client settings - Click System in the left-hand menu. The System pages appear on the right.

Settings › System - Click Power & battery. On a desktop PC with no battery, this page may be called Power instead.

- 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.

- 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.
- 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.
- Close Settings.
Windows now uses the battery value when the PC is unplugged and the plugged-in value when it is connected to power.
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:
- Open the Start menu, type Control Panel and open it. The Control Panel window appears.
- 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.
- Click Power Options. Your power plans are listed.
- Click Choose when the computer sleeps on the left side. The Edit Plan Settings page opens.
- 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.
- Click Save changes. If you leave the page without saving, your changes are lost.
- Close Control Panel.
Your PC now uses the sleep times you saved. Return to this page any time to change them back.

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.
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).
- Open Control Panel and go to Power Options. Your power plans are listed.
- Click Change plan settings next to your current power plan. This is the plan with the selected radio button.
- Click Change advanced power settings. A small Power Options window opens.
- Expand Sleep by clicking the plus (+) next to it. You may need to scroll down to find it.
- Expand Sleep after. Two entries appear: On battery and Plugged in.
- 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.
- Click OK. The window closes and the new values apply.
- 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.

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.

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.
- Open Command Prompt. Open the Start menu, type
cmdand 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. - 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. - 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 Promptpowercfg -change -standby-timeout-ac 30 - Press Enter. If the command works, Command Prompt shows no message and returns to the prompt. Check the result in Settings.
The active power plan now uses the timeout you entered. To undo a change, run the command again with your previous value.
Summary
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.
Did this guide fix your problem?
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.
No comments yet — be the first to share your thoughts!