You leave your desktop for an hour expecting it to have dozed off, and come back to find the fans still spinning and the monitor still lit. A PC that won't sleep on its own is one of the more annoying Windows faults because nothing is technically broken: something is simply telling Windows to stay awake, and Windows is doing as it's told. The trick is finding out what that something is. The commands and settings below come from Microsoft's documentation, and the order of the checks is our advice.
This guide is about a PC that never drops into sleep when left idle. If yours goes to sleep but then wakes up again by itself, that's a different problem with different tools, and our guide on how to stop a PC waking from sleep covers it.
Step 1: Check the timers are actually set
It sounds obvious, but start here, because a driver update, a power plan change or a manufacturer utility can quietly reset these values. In Windows 11, Microsoft points you to Settings > System > Power & battery > Screen, sleep & hibernate timeouts. Use the Turn my screen off after and Make my device sleep after drop-downs to set sensible values; on a desktop, the "plugged in" values are the ones that matter.
If the sleep timer says Never, you've found your answer. If it's set to something like 15 or 30 minutes and the PC still doesn't sleep, keep going.
While you're there, it's worth checking what the power button does. Microsoft's guide to sleep and hibernate explains that you can open Control Panel > System and Security > Power Options > Choose what the power buttons do and pick Sleep for "When I press the power button". That gives you a manual way to put the PC to sleep while you track down the automatic problem.
Step 2: Ask Windows what's blocking sleep
This is the most useful step, and most people never try it. Windows keeps a list of active "power requests". Microsoft's powercfg documentation says the /requests option "Enumerates application and driver Power Requests" and that "Power Requests prevent the computer from automatically powering off the display or entering a low-power sleep mode."
To see them:
Right-click the Start button and open Terminal (Admin), so the command runs from an administrator prompt.
Type powercfg /requests and press Enter.
The output is split into categories. Microsoft's documentation names three request types you can override: Display, System and Awaymode. Roughly speaking, a Display request stops the screen turning off and a System request stops the PC sleeping. Under each heading you'll either see "None." or the name of a process, service or driver.
Run the command while the PC should be idle, ideally with the apps you normally leave open still running. Common things to look for (our advice, not a Microsoft list):
A browser tab playing audio or video. A paused video in a background tab, or a site with autoplaying media, can hold a request.
Game launchers and downloaders. Big downloads and updates are a frequent reason for a PC to stay awake, and that's often deliberate.
Audio drivers. If an audio device shows up, look for an app that has left an audio stream open, such as voice chat, a music player or a streaming tool.
Keep-awake utilities. Tools designed to stop sleep do exactly that. PowerToys Awake is a good example: Microsoft's documentation says its "Keep awake indefinitely" mode means the PC "stays awake indefinitely until you explicitly put the machine to sleep or close/disable the application." If you've used our guide to keeping your PC awake with PowerToys Awake, check it isn't still switched on.
Close the culprit, run powercfg /requests again to confirm the list is clear, then wait for the sleep timer to run out.
Step 3: Override a request you can't get rid of
Sometimes the thing holding a request is something you want to keep running, such as a sync service or a driver that keeps asking for no reason. Microsoft's documentation says /requestsoverride "Sets a Power Request override for a particular process, service, or driver", and that the caller type and name are the ones shown by powercfg /requests.
The syntax is: powercfg /requestsoverride <caller type> <name> <request types>
The caller type is process, service or driver. Microsoft's own example is:
powercfg /requestsoverride process wmplayer.exe display system
That tells Windows to ignore Windows Media Player's display and system requests. Swap in the process name from your own /requests output. Running powercfg /requestsoverride with no parameters lists the overrides you've already set.
Use this sparingly. If you override a backup tool or a download manager, Windows may sleep in the middle of a job you wanted to finish. It's better to stop the app requesting it than to override it permanently.
Windows' idle timer restarts whenever it sees input, so a PC that "never sleeps" sometimes isn't idle at all from Windows' point of view. This step is our advice rather than Microsoft guidance. A high-DPI mouse on a reflective or vibrating desk, a controller left plugged in with a slightly drifting stick or a faulty wireless receiver can all keep the idle timer resetting.
The quick test is to unplug everything except the keyboard, set the sleep timer to a few minutes and see whether the PC sleeps. If it does, plug devices back in one at a time. If the cursor moves on its own, fix that first, as it will keep waking the idle timer.
Step 5: Check which sleep states your PC supports
If the PC goes to "sleep" but the fans and lights stay on, it may be using a different sleep state from the one you expect. Microsoft's documentation says powercfg /availablesleepstates (or powercfg /a) "Reports the sleep states available on the system" and "Attempts to report reasons why sleep states are unavailable."
Many newer systems use Modern Standby rather than traditional S3 sleep. Microsoft describes Modern Standby as an "S0 low power idle model" that lets the system "stay connected to the network while in a low power mode". It also says that "Switching between S3 and Modern Standby cannot be done by changing a setting in the BIOS" and that switching isn't supported "without a complete OS re-install." So if your PC uses Modern Standby, some background activity in sleep is expected rather than a fault. Our explainer on Modern Standby vs S3 sleep goes into the differences.
If /a says a sleep state isn't available because of a graphics or other driver issue, updating that driver from the manufacturer's site is the obvious next step.
Step 6: Get a report if it's still a mystery
When the simple checks don't explain it, powercfg can produce more detailed reports:
powercfg /energy produces an HTML report that "Analyzes the system for common energy-efficiency and battery-life problems". Microsoft says it "should be used when the computer is idle and has no open programs or documents." Our guide to running a powercfg energy report explains how to read it.
powercfg /systemsleepdiagnostics "Generates a diagnostic report of system sleep transitions."
powercfg /sleepstudy produces a Sleepstudy report, which is mainly useful on Modern Standby systems.
Look for any app or device the reports flag as preventing idle, and treat it the same way as a /requests entry: update it, stop it or remove it.
If it sleeps but devices misbehave afterwards
A related complaint is a PC that finally sleeps but wakes with a monitor, printer or USB device that no longer works. Microsoft's advice is that you "might need to disconnect and reconnect your device or restart your PC" and that you should "make sure that you have the most current drivers for all of your devices."