Pagefile.sys Too Big: Reduce or Delete Safely
Have you noticed that your Windows computer is running low on storage space even though you haven’t installed many programs or downloaded large files? When checking your system drive, you might find a large file named pagefile.sys taking up several gigabytes of space.
Pagefile.sys is a Windows system file that acts as a paging file, allowing Windows to move certain memory contents between physical RAM and storage when needed. It can also help Windows support system crash dumps, depending on your configuration.
Windows usually manages this file automatically. Its size can vary depending on your RAM, system settings, workload, and crash dump requirements.
If pagefile.sys is taking up too much space, you can reduce its size by changing the virtual memory settings. You can also move it to another drive if you have enough space there. However, completely disabling the paging file isn’t recommended for most users because it may cause performance problems or prevent some applications from working correctly.
Before making changes, check the file’s current size and available storage space.
Then follow the steps below, starting with the safest options.
How to Reduce Pagefile.sys Size in Windows 11 or Windows 10

To reduce the size of pagefile.sys in Windows 11 or Windows 10, open System Properties, select the Advanced tab, and click Settings under Performance. Open the Advanced tab again and select Change under Virtual memory. Uncheck Automatically manage paging file size for all drives, select your system drive, and choose Custom size. Enter suitable initial and maximum values, click Set, and restart your computer. Keep a paging file enabled unless you have a specific reason to disable it.
Let’s explore the steps in detail!
Step 1: Check How Much Space Pagefile.sys Is Using
Before changing anything, check the size of pagefile.sys to determine whether it is actually taking up too much storage.
Open File Explorer by pressing Windows + E on your keyboard. Select This PC, then open your Windows drive, which is usually labeled Local Disk (C:).
The file may not be visible because Windows hides protected operating system files by default. To view it, enable hidden items and temporarily change the protected file visibility setting if necessary.
In Windows 11, open File Explorer, select View > Show > Hidden items. Then open Folder Options, go to the View tab, and temporarily clear Hide protected operating system files (Recommended). In Windows 10, open the View tab, select Options, and use the View settings to reveal protected operating system files.
Confirm the warning if prompted. Look for pagefile.sys in the root of your Windows drive.
Right-click the file and select Properties to check its size. Once you’re finished, restore the setting that hides protected operating system files.
Important: Do not delete or move pagefile.sys manually. The purpose of this step is only to check its size.
Step 2: Open the Virtual Memory Settings
Now that you know the file’s size, open the Windows settings that control it.
Press Windows + R to open the Run dialog box. Type sysdm.cpl and press Enter.
The System Properties window will appear. Select the Advanced tab at the top.
Under the Performance section, click the Settings button. Another window named Performance Options will open.
Select the Advanced tab. Look for the Virtual memory section near the bottom, where Windows displays information about the paging file.
Click Change to open the virtual memory configuration window.
This is where you can control whether Windows manages pagefile.sys automatically or uses a size that you specify. Take your time here, because the settings affect how Windows handles memory when RAM becomes limited.
Step 3: Turn Off Automatic Paging File Management
By default, Windows generally manages the paging file automatically. If you want to set a smaller size yourself, you’ll need to change this setting.
At the top of the Virtual Memory window, look for Automatically manage paging file size for all drives.
Uncheck this box. You should now be able to select individual drives and choose a paging file configuration.
Select your Windows drive, usually C:. Check which option is currently selected before making changes.
You may see options such as System managed size, Custom size, and No paging file. These options determine how Windows allocates storage for virtual memory.
For most users, automatic management is the easiest and safest choice. Only turn it off if you have a specific reason to limit the paging file and understand the possible consequences.
Step 4: Set a Smaller Custom Paging File Size
If pagefile.sys is unusually large and you need to free up storage, you can try setting a smaller custom size.
With your Windows drive selected, choose Custom size. You’ll see two fields: Initial size (MB) and Maximum size (MB).
The initial size determines the starting allocation, while the maximum size sets the upper limit Windows can use for the paging file under this configuration.
There is no single ideal size for every computer. Your RAM capacity, applications, memory usage, and crash dump requirements all matter. Avoid choosing a very small maximum simply because you want to save space.
For example, if you have 16 GB of RAM, don’t automatically assume that a 1 GB paging file will be enough. Some applications can use substantial virtual memory even on a computer with plenty of RAM.
Check your typical memory usage before choosing values. If you’re unsure what to enter, return to System managed size instead of guessing.
After entering suitable values, click Set, then click OK to close the window. Restart your computer if Windows asks you to do so.
Step 5: Use System Managed Size if You Are Unsure
If you don’t know how much virtual memory your computer needs, letting Windows manage pagefile.sys is usually the better option.
Return to the Virtual Memory window using the steps above. Select your Windows drive and choose System managed size.
Click Set, then click OK to save the setting. Restart your computer if prompted.
Windows can then adjust the paging file according to its memory-management needs and applicable system requirements.
Keep in mind that system-managed sizing doesn’t guarantee the smallest possible file. Windows may increase its size when your workload or crash dump configuration requires additional space.
However, it avoids the risk of setting an arbitrary limit that is too low for your everyday tasks.
Step 6: Move the Paging File to Another Drive
If your C: drive is almost full but another internal drive has plenty of free space, moving the paging file may be an option.
Open the Virtual Memory settings again and uncheck automatic management if it is still enabled.
Select your C: drive and choose No paging file only if you’re deliberately moving the paging file and will configure another suitable drive. Click Set.
Next, select the other drive, choose System managed size, and click Set. Confirm the changes and restart your computer.
Make sure the destination drive is reliable and available whenever Windows needs it. Moving the paging file to a slower or removable drive may hurt performance or create other problems.
If your computer has only one drive, or you’re unsure about this process, leave the paging file on the Windows drive.
Step 7: Check Whether the File Size Has Changed
After restarting your computer, check the paging file configuration again.
Open System Properties > Advanced > Performance Settings > Advanced > Virtual memory > Change.
Review the selected drive and the paging file settings. If you chose a custom size, confirm that the values are still displayed correctly.
You can also revisit the Windows drive in File Explorer and check the file’s size, although Windows may hide the file unless protected operating system files are visible.
Remember that pagefile.sys can change size over time. A smaller file immediately after restarting doesn’t mean Windows will never increase it again.
If your main goal was to free up space, open Settings > System > Storage and check the available storage on your Windows drive.
Step 8: Avoid Deleting Pagefile.sys Manually
You may be tempted to right-click pagefile.sys and delete it, especially if it occupies several gigabytes. However, you shouldn’t manually delete this system file.
Windows manages the paging file as part of its memory system. The file may be in use, and attempting to force its removal can fail or cause unnecessary system problems.
If you have a specific reason to disable the paging file, you can select your Windows drive in the Virtual Memory window, choose No paging file, click Set, and restart. However, this is generally not recommended for everyday computers.
Disabling the paging file can cause applications to run out of available committed memory, and it may limit the ability to capture certain crash dumps. Having plenty of physical RAM doesn’t eliminate every reason to keep a paging file.
If you need more storage space, start by removing temporary files, uninstalling unused applications, or moving personal files to another drive. These options are generally safer than disabling virtual memory.
FAQs
Can I safely delete pagefile.sys?
You shouldn’t delete pagefile.sys manually. If you have a specific reason to remove it, Windows provides a virtual memory setting to disable the paging file. However, keeping it enabled is recommended for most users.
Why is pagefile.sys so large?
Its size can depend on your RAM, memory usage, Windows configuration, and crash dump requirements. Windows may increase the file when applications need more committed memory.
How much should I reduce pagefile.sys?
There is no universal recommended size. The right setting depends on your computer’s RAM, workload, and system requirements. If you’re unsure, use System managed size.
Does deleting pagefile.sys improve computer performance?
No. Deleting or disabling the paging file doesn’t automatically make your computer faster. It can cause memory-related errors or prevent certain applications from running properly.
Can I move pagefile.sys to another drive?
Yes. You can configure a paging file on another suitable drive through Virtual Memory settings. Make sure the destination drive is reliable and has enough free space.
Is pagefile.sys a virus?
No. Pagefile.sys is a legitimate Windows system file. Its presence and large size alone don’t indicate a virus or malware infection.
Summary
If pagefile.sys is too large on your Windows 11 or Windows 10 computer, you can reduce its size through the Virtual Memory settings. Start by checking how much space the file uses, then decide whether a custom size is appropriate for your workload.
If you’re unsure, choose System managed size and let Windows handle memory requirements automatically. You can also move the paging file to another suitable drive if your system drive is running low on space.
Most importantly, don’t delete pagefile.sys manually. Keeping a properly configured paging file helps Windows manage memory and maintain compatibility with demanding applications.
Make small, careful changes, restart your computer when required, and check your available storage afterward.
