TechBuzzPro

How to Set the Windows 11 Paging File Properly

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To properly set the Windows 11 paging file, open System Properties, go to the Advanced tab, click Performance Settings, then Advanced, and under Virtual memory click Change. From there, either let Windows manage the size automatically or set a custom size with an initial and maximum value in megabytes. The paging file (also called virtual memory or swap file) is disk space Windows uses as extra RAM when physical memory runs low. Setting it correctly prevents out-of-memory errors and keeps your PC stable during heavy multitasking. You need administrator rights to change these settings.

What You'll Need

  • A Windows 11 PC with an administrator account.
  • Basic knowledge of your installed RAM (check Settings > System > About).
  • Free disk space on the drive where the paging file will live (usually C:).

Step-by-Step

  1. Open System Properties. Press Windows key + R, type sysdm.cpl, and press Enter. Alternatively, right-click Start, choose System, then click Advanced system settings. Note: menu labels can differ slightly by Windows version or region.
  2. Go to the Performance section. In the System Properties window, select the Advanced tab. Under Performance, click Settings.
  3. Open Virtual memory settings. In the Performance Options window, go to the Advanced tab. Under Virtual memory, click Change.
  4. Decide between automatic and custom. If you want Windows to handle it, tick “Automatically manage paging file size for all drives.” If you need a custom size, untick that box, select the drive (typically C:), then choose “Custom size.”
  5. Enter initial and maximum sizes. A common rule is initial size = 1.5 × RAM, maximum = 3 × RAM, but you can also use the recommended value shown at the bottom of the window. For example, with 16 GB RAM, initial 24576 MB and maximum 49152 MB. Enter values in megabytes.
  6. Click Set, then OK. The Set button must be clicked for the custom values to apply. Then click OK on all open windows.
  7. Restart your PC. A restart is required for the new paging file settings to take effect.

Common Mistakes

  • Forgetting to click Set after entering custom values, so the changes are not saved.
  • Setting the maximum size smaller than the initial size, which Windows will reject.
  • Disabling the paging file entirely on a drive that hosts crash dumps or on a system with limited RAM, which can cause instability.
  • Placing the paging file on a slow external drive or a drive that is nearly full.
  • Assuming a huge paging file speeds up the PC; it only prevents memory shortages, it does not add RAM performance.

Tips

  • Let Windows manage the size unless you have a specific reason to set it manually. Automatic management works well for most users.
  • If you have multiple drives, keep the paging file on the fastest drive (usually an SSD) and avoid putting it on a USB drive.
  • Check the recommended size shown at the bottom of the Virtual Memory window; it is based on your RAM and usage.
  • After changing the size, monitor performance in Task Manager > Performance > Memory to see if the commit charge stays within limits.

Troubleshooting

  • Changes do not stick: Make sure you clicked Set before OK, and that you are logged in as an administrator.
  • Windows warns about low virtual memory: Increase the maximum size or let Windows manage it automatically.
  • Cannot change settings because the option is greyed out: This can happen if the drive is not local or if group policy restricts it. Check with your administrator.
  • System feels slow after setting a custom size: Revert to automatic management and restart.
  • Paging file on a drive that is full: Free up space or move the paging file to another drive with enough room.

Frequently Asked Questions

Do I need to change the paging file size?

Most users do not. Windows 11 manages it automatically and that is fine for everyday use. Only change it if you have a specific need, such as a fixed-size file for certain applications or to free up space on a small SSD.

What is the recommended paging file size?

Windows shows a recommended value in the Virtual Memory window. A common manual starting point is 1.5 times your RAM for initial size and 3 times for maximum, but the automatic setting is usually best.

Can I disable the paging file?

You can, but it is not recommended. Disabling it can cause crashes when RAM runs out and may prevent Windows from creating crash dumps. Keep it enabled unless you have a very specific reason.

Will a larger paging file speed up my PC?

No. A larger paging file only gives Windows more room to swap data when RAM is full. It does not increase speed; in fact, heavy paging to a slow drive can slow things down. Adding more RAM is the real speed fix.

Does the paging file affect SSD lifespan?

Modern SSDs handle the write load from paging files well. Windows manages the file size to balance performance and wear. You do not need to disable it for SSD longevity.

Where is the paging file located?

By default it is on the system drive (C:) as a hidden file named pagefile.sys. You can move it to another drive in the Virtual Memory settings.