Disable Windows Hibernation to Free Up Storage?
In this article
- What Is Hibernation and How Does It Work?
- How Much Space Will You Actually Free Up?
- How to Disable Hibernation (and Re-enable It Later)
- What You Lose When You Disable Hibernation
- Common Misconceptions and Related Questions
- Should You Disable Hibernation? A Quick Guide
- Alternative Ways to Free Up Storage
- Frequently Asked Questions
Yes, disabling Windows hibernation can free up a significant amount of storage space, often several gigabytes, by deleting the hidden hiberfil.sys file. However, you lose the ability to use the Hibernate power option and Fast Startup, so weigh the storage gain against those features before disabling it.
What Is Hibernation and How Does It Work?
Hibernation is a power-saving state designed for laptops and desktops. When you hibernate, Windows saves the entire contents of your RAM (the open programs, documents, and system state) to a file on your hard drive called hiberfil.sys, then powers off completely. When you turn the machine back on, Windows reloads that saved state from the file, so you can resume exactly where you left off without reopening everything.
Unlike Sleep, which keeps RAM powered and uses a small amount of electricity, hibernation uses no power at all. It is especially useful for laptops when the battery is critically low, or when you want to shut down but keep your work session intact for the next day.
The hiberfil.sys file is created at the root of your system drive (usually C:\) and is hidden and protected by the operating system. By default, it is sized to about 40% of your total physical RAM. For example, a PC with 16 GB of RAM will have a hibernation file of roughly 6.4 GB. On systems with 32 GB or 64 GB of RAM, the file can be 12.8 GB or 25.6 GB respectively, which is a substantial chunk of storage.
How Much Space Will You Actually Free Up?
The exact amount depends on your RAM size and how Windows has configured the file. Here are typical values:
- 8 GB RAM: hiberfil.sys is about 3.2 GB
- 16 GB RAM: about 6.4 GB
- 32 GB RAM: about 12.8 GB
- 64 GB RAM: about 25.6 GB
You can check the actual size of the file by opening File Explorer, navigating to C:\, and enabling “Hidden items” in the View tab. The file will appear as hiberfil.sys. Right-click it and select Properties to see its exact size.
Note that Windows may also use this file for other features, such as Fast Startup (explained below), and may resize it dynamically. If you have enabled “Allow hybrid sleep” or other power settings, the file could be larger or smaller than the default 40%.
How to Disable Hibernation (and Re-enable It Later)
Disabling hibernation is done through a command-line tool, not through the Power Options control panel. Here are the steps for Windows 10 and Windows 11:
- Open the Start menu, type
cmd, right-click “Command Prompt” and select “Run as administrator”. - In the command prompt window, type the following command and press Enter:
powercfg /h off - Wait a few seconds for the command to complete. You will not see a confirmation message, but the
hiberfil.sysfile will be deleted and the Hibernate option will disappear from the Power menu.
To re-enable hibernation later, run the same command with on instead of off: powercfg /h on. This will recreate the file and restore the Hibernate option.
If you want to keep hibernation but reduce the size of the file, you can use the command powercfg /h /type reduced. This sets the file to about half its normal size (roughly 20% of RAM), but it disables Fast Startup. To revert to full size, use powercfg /h /type full.
What You Lose When You Disable Hibernation
Disabling hibernation has two main consequences:
- Hibernate option disappears: You can no longer manually hibernate your PC. If you rely on hibernation to preserve your work session when the battery dies, you will lose that safety net.
- Fast Startup is disabled: Fast Startup (also called Fast Boot) is a Windows feature that uses the hibernation file to speed up shutdown and boot times. When you shut down with Fast Startup enabled, Windows saves the kernel and drivers to the hibernation file, and on the next boot it loads them from there instead of cold-starting. This can make boot times noticeably faster on traditional hard drives. Disabling hibernation turns off Fast Startup, so your PC may take longer to boot.
If you use Sleep mode regularly, that is unaffected—Sleep keeps RAM powered and does not use the hibernation file. However, note that Windows may automatically hibernate after a period of sleep (a setting called “Hibernate after”), which would also be disabled.
Common Misconceptions and Related Questions
One common misconception is that disabling hibernation is the same as deleting the page file (virtual memory). That is false—the page file (pagefile.sys) is a separate file used for memory management and is not affected by the powercfg /h command. Deleting the page file would be harmful to system stability and is not recommended.
Another frequent question is: “Can I just delete hiberfil.sys manually?” The answer is no. The file is locked by the system and cannot be deleted through File Explorer even with administrator privileges. You must use the powercfg command to remove it safely.
Some users also wonder if disabling hibernation affects the “Shut down” option. It does not—shut down still works normally, but the boot process may be slower without Fast Startup. On solid-state drives (SSDs), the boot time difference is often negligible, so many users with SSDs disable hibernation without noticing any slowdown.
Should You Disable Hibernation? A Quick Guide
Consider disabling hibernation if:
- You have a desktop PC that you always shut down or put to sleep, and you never use Hibernate.
- You have limited storage (e.g., a 128 GB SSD) and need to free up space.
- You have an SSD and boot times are already fast, so Fast Startup is less valuable.
- You never rely on hibernation to save your work when the battery runs out.
Keep hibernation enabled if:
- You use a laptop and need the hibernate feature to protect your session when the battery is low.
- You notice that your PC boots slowly without Fast Startup (especially on a traditional hard drive).
- You have plenty of free storage space and don’t need the extra gigabytes.
If you are on the fence, you can try disabling hibernation for a few days and see if you miss the features. The process is easily reversible with the powercfg /h on command.
Alternative Ways to Free Up Storage
If you want to free up storage but don’t want to lose hibernation, consider these alternatives:
- Run Disk Cleanup: Use the built-in Disk Cleanup tool (or Storage Sense in Windows 10/11) to remove temporary files, Windows update leftovers, and other junk.
- Move large files to an external drive: Videos, photos, and game installations often take up the most space.
- Uninstall unused applications: Games and software can consume tens of gigabytes.
- Reduce the size of the hibernation file: Use
powercfg /h /type reducedto halve its size while keeping hibernation (but losing Fast Startup). - Enable compression on the hibernation file: This is not a standard option, but you can compress the file using the
compactcommand on NTFS drives—though this may affect performance.
Remember that the actual space freed by disabling hibernation is exactly the size of hiberfil.sys. On a modern system with 16 GB of RAM, that’s roughly 6-7 GB, which is enough to store a few large games or a movie collection.
Frequently Asked Questions
Does disabling hibernation delete my open programs?
No. Disabling hibernation only removes the ability to save your session to disk. Any open programs are unaffected until you shut down or restart. When you shut down normally, Windows closes all programs as usual.
Can I still use Sleep mode after disabling hibernation?
Yes, Sleep mode is completely independent of the hibernation file. Sleep keeps your RAM powered and does not write anything to disk, so it will continue to work normally.
Will disabling hibernation speed up my computer?
It may slightly speed up shutdown and boot times on traditional hard drives, because Fast Startup is disabled and the system does a full cold boot. On SSDs, the difference is usually negligible. However, you will lose the faster boot that Fast Startup provides, so the net effect is often a slower boot, not faster.
How do I know if hibernation is currently enabled?
Open Command Prompt as administrator and type powercfg /a. This shows all available sleep states. If “Hibernate” is listed as available, it is enabled. You can also check for the presence of hiberfil.sys in File Explorer (with hidden files shown).
Is it safe to delete hiberfil.sys manually?
No. The file is locked and protected by Windows. Attempting to delete it manually will either fail or cause system instability. Always use the powercfg /h off command.
After disabling hibernation, can I re-enable it without losing my current session?
Yes. Running powercfg /h on will recreate the hibernation file immediately. Your current session is not affected, but you will need to hibernate manually to test it. The file will be created with the default size based on your RAM.