How to Check and Customise Virtual Memory (Paging File) Size in Windows 11

Physical Random Access Memory (RAM) provides blazing-fast volatile storage for active operating system tasks and running applications. However, when demanding tasks—like 4K video rendering, high-end 3D gaming, or running multiple virtual machines—threaten to exhaust physical RAM capacity, Windows 11 leverages Virtual Memory. By maintaining a dedicated paging file (pagefile.sys) on your solid-state drive (SSD), Windows temporarily offloads inactive memory blocks to disk. While Windows manages this automatically by default, manually sizing your pagefile resolves out-of-memory game crashes and prevents stutter.

When Should You Manually Adjust Virtual Memory?

Modifying your paging file configuration is beneficial in specific practical scenarios:

  • Resolving “Out of Memory” Errors: Certain modern games and creative video suites crash unexpectedly if Windows’ automatic pagefile fails to expand quickly enough during memory spikes.
  • Moving Pagefile to a Faster SSD: If your system drive is a compact NVMe drive with limited free capacity, moving the pagefile to a dedicated secondary high-speed SSD relieves drive congestion.
  • Eliminating Disk Fragmentation: Setting an identical initial and maximum size creates a fixed, non-expanding contiguous file on disk, eliminating background allocation overhead.

How to Access Virtual Memory Settings in Windows 11

Reaching the virtual memory control panel requires navigating to Advanced System Settings:

  1. Press Windows + I on your keyboard to open the Settings app.
  2. From the System pane, scroll down to the bottom and click on About.
  3. Under the Device specifications section, click on Advanced system settings (under Related links).
  4. In the System Properties dialogue box that appears, select the Advanced tab.
  5. Under the Performance section, click the Settings button.
  6. In the Performance Options window, click on the Advanced tab.
  7. Under the Virtual memory section, click the Change button.

How to Set a Custom Paging File Size

To configure a fixed, stable virtual memory allocation:

  1. Uncheck the box at the very top labelled Automatically manage paging file size for all drives.
  2. Select your fastest SSD drive partition (typically C:).
  3. Select the Custom size radio button.
  4. Calculate your allocation using standard memory formulas:
    • Initial size (MB): Set to 1.5 times your physical RAM capacity (e.g., if you have 16GB of RAM: 16 × 1024 × 1.5 = 24576 MB).
    • Maximum size (MB): Set to 3 times your physical RAM capacity (e.g., 16 × 1024 × 3 = 49152 MB), or match the initial size to keep it strictly fixed.
  5. Crucially, click the Set button to register your custom values.
  6. Click OK on all open dialogues and restart your computer to apply the updated memory mapping.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.