Short answer: not a real one. Windows only has an idle-based setting — "sleep after X minutes" — which waits for the PC to be inactive first. It's not a countdown, and it won't sleep at all while a download, video, or remote session keeps the machine busy. Here's how sleep timing actually works, the DIY one-off countdown, and how to schedule sleep automatically by time of day — free for up to 3 rules.
When people search for a "sleep timer," they usually picture a countdown like a TV's: "go to sleep in 30 minutes, no matter what." Windows doesn't have that. What it has is an idle timeout under Settings → System → Power & battery (Windows 11) or Power & sleep (Windows 10): "put my device to sleep after ___ minutes." The key word is after being idle — the clock only counts while you're not using the PC, and it resets the moment anything keeps it busy.
That's why a movie, a long download, or a remote desktop session can keep your PC awake well past the sleep time you set — Windows sees activity and never starts the countdown. If that's your actual problem, see why Windows won't sleep and how to find what's blocking it.
| What you want | How to do it | The catch |
|---|---|---|
| Sleep after some idle time | Settings → Power & battery, or powercfg | Idle-based — won't sleep during activity |
| A one-off "sleep in 30 min" countdown | Task Scheduler / shutdown /t (DIY script) | No GUI; hibernate/off, not true sleep |
| Different sleep behavior by time of day | PowerDoze scheduled power modes | Free tier caps at 3 rules |
Open Settings → System → Power & battery (or Power & sleep on Windows 10) and set "put my device to sleep after" to the minutes you want. Prefer a command line? Run powercfg /change standby-timeout-ac 30 for plugged-in, or standby-timeout-dc for battery (minutes).
Best for: Setting how long the PC waits when you walk away. Limit: It's a single idle threshold, not a countdown, and activity keeps it awake.
For "definitely go to sleep in 30 minutes," Windows makes you script it. In Command Prompt, shutdown /h /t 1800 hibernates after 1800 seconds; cancel with shutdown /a. shutdown can hibernate or power off but not sleep — for real sleep you'd schedule rundll32.exe powrprof.dll,SetSuspendState 0,1,0.
Best for: A one-time "sleep after this finishes" timer. Limit: No interface, easy to forget the cancel command, and it ignores whether anything's still running.
Most people who want a "sleep timer" really want their PC to sleep reliably on a schedule — quiet and power-saving overnight, always awake during work. PowerDoze does exactly that: build a power mode with a short sleep timeout and another that never sleeps, then attach time-based rules (schedules can cross midnight). It switches automatically, and the sleep timeout is bundled with CPU limits, cooling, and screen-off — not just one setting. Free for up to 3 rules and 2 power modes, no account required.
Honest note: PowerDoze schedules and automates Windows sleep — it isn't a one-tap "sleep in X minutes" countdown (use the DIY trick above for that). Limit: The free tier caps at 3 rules; Pro removes it and adds app- and Wi-Fi-based switching.
Not a true countdown timer — only an idle-based "sleep after X minutes" under Settings → Power & battery (Power & sleep on Windows 10). It waits for the PC to be inactive, then sleeps; there's no native "sleep in 30 minutes no matter what" option.
The setting is idle-based, so a download, a playing video, a remote session, or an app holding a wake lock resets the timer. It only sleeps after it's genuinely been idle for the full timeout. See our won't-sleep diagnosis guide.
Settings → System → Power & battery (or Power & sleep on Windows 10) → "put my device to sleep after." Or run powercfg /change standby-timeout-ac 30 (minutes, plugged in) / standby-timeout-dc (battery).
Run shutdown /h /t 1800 in Command Prompt to hibernate after 30 minutes (seconds); cancel with shutdown /a. For true sleep instead of hibernate, script rundll32.exe powrprof.dll,SetSuspendState 0,1,0 via Task Scheduler.
Windows can't schedule this by time, but PowerDoze can: one power mode with a short sleep timeout, one that never sleeps, and time-based rules that switch between them automatically. Free for up to 3 rules.
Yes — time-based rules and up to 2 custom power modes are free, no account required, on Windows 10 and 11. Pro removes the 3-rule cap and adds app- and Wi-Fi-based switching.
Want your PC to sleep on a schedule instead of fighting the idle timer? Time-based rules are free — up to 3 rules and 2 power modes, no account required.
Download free for Windows 10/11See also: Why Windows won't sleep · Schedule power plans by time · All features