The paging file lives in Windows settings, not in a folder you can find
Your paging file is a hidden file that Windows uses when your computer runs low on RAM. To move it, you go to System Properties, not File Explorer. The steps differ slightly between Windows 10 and Windows 11, but both involve the same settings panel. You cannot simply drag the file somewhere else — Windows needs permission to move it, and it needs to know where to look.
Most people never need to move their paging file. But if you have a fast second drive (like an SSD) and your main drive is slow or nearly full, moving the paging file can help. The file shrinks and grows as Windows needs it, so moving it frees up space on your primary drive without losing anything.
Key Takeaways
- The paging file is managed through System Properties under Advanced System Settings, not through File Explorer or Settings.
- You must restart your computer after moving the paging file for the change to take effect.
- Moving the paging file to a faster drive can improve performance if your main drive is slow, but only if you have a second drive available.
- Windows creates a new paging file on the new drive and removes the old one automatically after you restart.
How to move the paging file in Windows 10
Open the Start menu and type "View advanced system settings" into the search box. Click the result that appears. This opens System Properties with the Advanced tab already selected.
In the Performance section, click the "Settings" button. A new window opens. Click the "Advanced" tab at the top. Under Virtual Memory, click "Change". A dialog box appears showing your current paging file setup.
Uncheck the box that says "Automatically manage paging file size for all drives". This lets you set the size manually. Click the drive where you want to move the file (usually your second drive, if you have one). Select "Custom size", then enter a size in megabytes. A safe starting point is 1.5 times your RAM — if you have 8 GB of RAM, enter 12000. Click "Set", then "OK" twice to close both windows.
Restart your computer. Windows will create the new paging file on the drive you chose and remove the old one from your main drive.
How to move the paging file in Windows 11
Right-click the Start button and select "System". Scroll down and click "Advanced system settings". This opens the same System Properties window as Windows 10. From here, the steps are identical: click Performance Settings, then the Advanced tab, then Change under Virtual Memory.
Uncheck "Automatically manage paging file size for all drives". Select your second drive, choose "Custom size", and enter your target size. Click "Set", then "OK" twice. Restart your computer.
What size to set your paging file to
Windows recommends setting the paging file to 1.5 times your installed RAM. If you have 16 GB of RAM, that is 24000 MB (or about 24 GB). You can also set it to match your RAM exactly — if you have 8 GB, set it to 8000 MB.
Do not set it smaller than your RAM amount. If you set it too small, Windows will run out of virtual memory and programs may crash. If you are unsure, use 1.5 times your RAM and adjust later if needed.
You can also let Windows manage the size automatically by checking "Automatically manage paging file size for all drives" in the Virtual Memory dialog. This is the default setting and works fine for most people. Automatic management means the file grows and shrinks as needed, up to a limit Windows calculates.
Moving the paging file to a second drive
If you have two drives, you can move the paging file off your main drive entirely. This is most useful if your main drive is an older, slower drive or if it is running out of space. A second SSD is ideal — the paging file will be faster there than on a mechanical hard drive.
To move it completely, uncheck the paging file on your main drive first. In the Virtual Memory dialog, click your main drive (usually C:), select "No paging file", and click "Set". Then click your second drive, select "Custom size", enter your size, and click "Set". Click "OK" and restart.
If you only have one drive, leave the paging file where it is. You cannot move it to an external USB drive or network location — Windows only recognizes internal drives.
What to do if you see an error after restarting
If Windows shows an error about virtual memory after you restart, the size you set was too small. Restart again, go back to Virtual Memory settings, and increase the size. Try 2 times your RAM instead of 1.5 times.
If Windows will not let you change the paging file at all, you may not have administrator rights on your account. Right-click System Properties and select "Run as administrator" before opening Advanced System Settings.
If you moved the paging file to a second drive and that drive is no longer connected, Windows will show an error on startup. Reconnect the drive, or go back to Virtual Memory settings and move the paging file back to your main drive.
When to move the paging file and when to leave it alone
Move the paging file if your main drive is nearly full, if it is a slow mechanical drive and you have a faster SSD as a second drive, or if you want to reduce wear on an older main drive. Do not move it if you only have one drive, if your main drive is already an SSD, or if you have plenty of RAM and rarely use the paging file.
Most modern computers with 16 GB of RAM or more rarely use the paging file at all. If you have enough RAM for your work, moving the paging file makes almost no difference to speed. The main benefit is freeing up space on a full drive.
Frequently Asked Questions
Will moving the paging file make my computer faster?
Only if your main drive is slow and your second drive is much faster. If both drives are SSDs, you will see no speed difference. If your main drive is a mechanical hard drive and your second drive is an SSD, moving the paging file may help slightly — but only if Windows actually uses the paging file, which happens mainly when you run out of RAM.
Can I move the paging file to an external USB drive?
No. Windows only recognizes internal drives for the paging file. External drives, network locations, and USB sticks do not work. The paging file must be on a drive that is always connected and always available when Windows starts.
What happens if I delete the paging file manually?
Do not delete it manually. Windows manages the paging file automatically and will recreate it. If you want to remove it entirely, use the Virtual Memory settings and select "No paging file" for all drives — but this is not recommended unless you have more RAM than any program you run will ever need.
Do I need to set the paging file size the same on both drives?
No. You can have a paging file on only one drive, or different sizes on each drive. Most people either move it entirely to a second drive or leave it on the main drive only. Having it on both drives at the same time is uncommon and usually not necessary.
Will I lose any files if I move the paging file?
No. The paging file is temporary — Windows creates it, uses it, and deletes parts of it constantly. Moving it does not affect your documents, programs, or any saved data. After you restart, Windows simply creates the new paging file on the new drive and removes the old one.