What Is Hibernate on Windows and How Do You Enable and Use It?

Updated

Hibernate saves your open apps and documents to the hard drive and then powers the PC off completely, so you can unplug it or leave it for days and still resume exactly where you left off. It is the right choice when you want to keep your session but not draw any battery or wall power — unlike Sleep, which keeps memory alive and needs a trickle of power, and unlike Shut Down, which closes everything. The catch is that Hibernate is not always visible or enabled by default, so you may need to turn it on first.

Hibernate vs. Sleep vs. Shut Down

Mode Where your session is stored Power used Survives unplugging / battery drain? Typical use
Sleep RAM Small trickle No — losing power loses the session Short breaks
Hibernate Hard drive (hiberfil.sys) None Yes Long gaps, travel, low battery
Shut Down Nowhere (apps closed) None Yes, but session is gone Finishing for the day

Because Hibernate writes the contents of RAM to disk, resuming reads that file back into memory. That is why it takes a little longer to wake than Sleep, and why it needs free disk space roughly equal to your installed RAM.

When Hibernate Is the Better Choice

  • You are closing a laptop for a day or more and want zero battery drain.
  • Your battery is nearly empty and you cannot reach a charger — hibernating preserves your work before the machine dies.
  • You want to move a laptop between locations without shutting down your apps.
  • You are on a desktop and want to cut power completely while keeping your session.

Sleep is better for a quick coffee break. Shut Down is better when you want a clean slate or are troubleshooting.

How to Enable Hibernate

Hibernate is often hidden because the hibernation file is disabled. The most direct way to turn it on is an elevated Command Prompt.

  1. Open the Start menu, type cmd, right-click Command Prompt, and choose Run as administrator.
  2. Type the following and press Enter:
powercfg /hibernate on
  1. Expected result: the command returns with no error, and the hiberfil.sys file is created on your system drive.
  2. To turn it off again later, use powercfg /hibernate off.

You can also reach it through the graphical power settings: open Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable, then tick Hibernate in the shutdown settings list. The exact wording varies by Windows version.

How to Trigger Hibernate

Once enabled, you have several ways to hibernate:

  • Start menu: click the power icon and choose Hibernate.
  • Power button: if you set the power button action to Hibernate in Power Options, a single press hibernates.
  • Command line: run shutdown /h in Command Prompt.
  • Lid close (laptops): set "When I close the lid" to Hibernate in Power Options.

If you want this on a schedule rather than by hand, a shutdown/hibernate utility can automate it — the Power Monitor Off utility on rtmenu.com lists scheduled Auto Shutdown, Log Off, Restart, and Hibernate among its computer-control features, which is useful when you want the machine to hibernate at a fixed time without you being there.

Troubleshooting Common Hibernate Problems

The Hibernate option is missing. The hibernation file is probably disabled. Run powercfg /hibernate on as administrator, then check the power menu again.

"Hibernate" is greyed out or the command fails. Some systems block hibernation when certain drivers or fast-startup settings conflict, or when the firmware does not support the required sleep states. Check your motherboard/BIOS power settings and confirm the hibernation file is not disabled by policy.

Not enough disk space. The hibernation file is sized close to your RAM, so a full system drive can prevent hibernation. Free up space or reduce the file size with powercfg /hibernate /size <percentage>.

Strange behavior after resuming. Waking from hibernation restores the exact state, including any problems that existed before. If an app misbehaves after resume, a full restart clears it. Also note that hibernation and Windows Fast Startup are related — Fast Startup uses a hibernation-like file, so disabling hibernation can affect it.

You want to confirm your network state after resuming. If you rely on a stable connection or need to check your public IP after waking, an IP address utility that displays your external IP in a customizable window can confirm you are back online. The IP Address Utility on rtmenu.com shows the address as visible to the outside world and lets you change the display format.

Quick Reference

  • Enable: powercfg /hibernate on (admin)
  • Disable: powercfg /hibernate off (admin)
  • Hibernate now: shutdown /h
  • Resize the file: powercfg /hibernate /size <percentage>
  • Best for: long idle periods, low battery, travel, keeping your session with zero power draw

Hibernate is the middle ground between convenience and power savings: your work stays intact, the machine draws nothing, and you pick up where you left off — as long as the hibernation file is enabled and you have the disk space to hold it.