Into Windows

  • Home
  • Windows 11
  • Windows 10
  • Windows 7
  • Privacy
You are here: Home » Windows 10 » How To Reduce Hibernation (Hiberfil.sys) File Size In Windows 10

How To Reduce Hibernation (Hiberfil.sys) File Size In Windows 10

Last Updated on June 23, 2020 by admin 7 Comments

Most Windows users use the hibernation feature to quickly boot into Windows and resume their work. However, the hibernation feature is turned on by default on most Windows 10 PCs and but it doesn’t show up in the power menu or power button by default. On Windows 10, it can be added to the Start menu power button by referring to our how to enable hibernate in Windows 10 guide.

 Reduce Hibernate File size

When you enable the hibernate feature, Windows creates a new file named hiberfil.sys in the root of your system drive (the drive where Windows is installed) to save the system state.

In the recent versions of Windows 10, Microsoft has made considerable changes to the hibernation file size. The hibernation file size is approximately 40% of the RAM installed on the computer in recent versions. In previous Windows versions, it was up to 95% of the random access memory (RAM) installed on the PC. On my ThinkPad laptop, which has 16 GB of RAM, the hibernation file size is just 6.34 GB.

Now, if you have a hiberfil.sys file with a huge size, you might want to reduce its size to free-up some disk space. The default size of hiberfil.sys varies depending on the amount of RAM installed on your PC.

reduce hibernation file size in Windows 10

One can reduce the hiberfil.sys file size by executing a simple command in the elevated Command Prompt. But we recommend you keep at least 70% of the original size of the hiberfil.sys.

Important: Windows 10 lets you reduce the hiberfile.sys file size up to 40% of the installed RAM size. However, on Windows 7, you cannot reduce the hibernation file size to less than 50% of the RAM. Besides, on Windows 10, if you try to set the hiberfile.sys file size to 30% or less, Windows 10 will automatically set the RAM size to 40%.

How to reduce the size of hiberfil.sys file in Windows 10/7/8

Step 1: Open elevated Command Prompt by typing CMD in Start menu search filed, right-click on Command Prompt entry, and then click Run as administrator.

Step 2: In the command prompt, type the following command and hit enter.

For Windows 10:

powercfg.exe /hibernate /size 100

In the above command, replace “100” with a value between 40 and 100. For example, if you want to set the hibernation file size to 80% of the original size:

powercfg.exe /hibernate /size 80

change hibernation file size in Windows 10 pic2

Once the file size is changed,  as you can see in the picture above, the Command Prompt will show the new size of the hibernation file.

For Windows 7:

Powercfg –h –size percentsize

In the above command, replace percentsize with your value (for example, 60%), but it cannot be smaller than 50.

reduce hibernation file size in Windows 10

Step 3: Exit the Command Prompt. You may now manually check the hiberfil.sys file size to make sure that the file size has been changed.

Can you move hiberfil.sys file to another drive in Windows 10 guide might also interest you.

Filed Under: Windows 10 Tagged: Windows 7

Related Posts

  • How To Delete Hiberfil.sys (Hibernation) File In Windows 10
  • Can I Move The Hiberfil.sys (Hibernation) File In Windows 10?
  • How To Delete Pagefile.sys In Windows 10
  • Show Or Hide Extensions With File Names In Windows 10 File Explorer

Comments

  1. Anonymous says

    December 29, 2019 at 9:54 pm

    Thanks for this writeup.

    BTW, you have 12 GB RAM and not 16GB !!

    60% file size for 16GB will be much bigger.

  2. admin says

    January 14, 2019 at 12:33 pm

    @ BH, thanks for your inputs. Will help others as well.

  3. BH says

    January 11, 2019 at 10:52 pm

    syntax has changed for Win10 as of this writing.

    Go to cmd, run as admin, type “powercfg /?” for base level options. For hibernate options: “powercfg /hibernate /?”

    Note that there is an feature for modifying hibernate options, and it is off by default. To enable modification: “powercfg /hibernate on”

    Windows 10 now allows 40% – 100%.

    Next, to change to 40%, use: “powercfg /hibernate /size 40”

  4. DARREN says

    December 31, 2017 at 11:08 pm

    When I attempt the above I receive :
    “A device attached to the system is not functioning.”

    Help!

  5. Nux says

    November 25, 2013 at 6:16 am

    To quote Microsoft: “For Windows 7, the default size of the hibernation file is equal to 75 percent of the total physical memory on the system.
    […]
    In rare and extreme cases of memory use, including memory validation by a memory performance or test utility, __hibernate_can_fail__ because the contents of memory cannot be compressed enough to fit within the size of the hibernation file.”

    MS also says that on systems with large disks, you should actually __increase__ the hibernation file size to 100 percent!

  6. Anon says

    March 9, 2012 at 12:17 pm

    Thanks for the command!!

  7. Hannes Schurig says

    April 30, 2010 at 5:02 pm

    Cool thing but what about disadvantages? What happen if my memory usage is about 2GB but I limited the hiberfil.sys to 1GB?

Leave a Reply

Your email address will not be published. Required fields are marked *

Advertisements

Search Into Windows

Recent posts

  • 5 Ways To Go To Desktop In Windows 11
  • How To Show Battery Percentage On Taskbar In Windows 11
  • Fix: AMD Software Adrenalin Edition Not Opening In Windows 11
  • How To Show Year On Windows 11 Taskbar
  • Windows 11 24H2 Is Available Now
  • How To Create 7z & TAR Files In Windows 11 Without Using Additional Apps
  • How To Remove Bell Icon From Taskbar In Windows 11
  • How To Reinstall Windows 11 Without Losing Apps And Files
  • How To Hide/Show Files & Icons On Desktop In Windows 10/11
  • How To Show Hidden Icons On Taskbar In Windows 11

About us

  • About Us
  • Contact Us
  • Privacy Policy

Copyright © 2025 · Into Windows