How to Fix “There Is Not Enough Free Memory to Run This Program”

The “There is not enough free memory to run this program” error can appear when opening apps, running installers, launching games, or executing older programs in Windows 11 (and Windows 10). It may show up even when your PC appears to have plenty of RAM available.

In most cases, this error is caused by insufficient available RAM or virtual memory, too many background processes, memory leaks, corrupted system files, or compatibility issues with older apps, not a physical RAM failure. Follow the steps below to fix the issue step by step.

How to Fix “There Is Not Enough Free Memory to Run This Program”

Follow the steps in order. After each step, try running the program again.

1. Restart Your PC

A restart clears memory leaks and frees locked RAM.

  1. Save all open work
  2. Click Start > Power > Restart
  3. After reboot, try launching the program again

This is often enough if the error appeared suddenly.

2. Close Unnecessary Background Apps

High memory usage can block new programs.

  1. Press Ctrl + Shift + Esc to open Task Manager
  2. Go to the Processes tab
  3. Sort by Memory
  4. Select apps you don’t need
  5. Click End task

Leave system processes running.

3. Check Available Memory in Task Manager

Confirm whether RAM is actually low.

  1. Open Task Manager > Performance > Memory
  2. Check:
    • Total memory
    • Available memory
    • Memory in use

If available memory is very low, continue with the next steps.

4. Increase Virtual Memory (Page File) — Very Important

Windows uses virtual memory when RAM is insufficient.

  1. Press Windows + R, type sysdm.cpl, and press Enter
  2. Open the Advanced tab
  3. Under Performance, click Settings
  4. Go to the Advanced tab
  5. Click Change under Virtual memory
  6. Enable Automatically manage paging file size for all drives

– OR –

Manually set:

  • Initial size: 1.5× your RAM
  • Maximum size: 3× your RAM
  1. Click OK and restart your PC

Insufficient or disabled page files are a top cause of this error.

5. Run the Program as Administrator

Permission and memory allocation issues can block apps.

  1. Right-click the program or installer
  2. Select Run as administrator
  3. Confirm the UAC prompt

This is especially helpful for installers and legacy apps.

6. Run the Program in Compatibility Mode (Older Apps)

Older software may mis-handle modern memory limits.

  1. Right-click the program’s .exe file
  2. Select Properties > Compatibility
  3. Check Run this program in compatibility mode
  4. Choose:
    • Windows 7 or Windows XP (if applicable)
  5. Click Apply and OK

This is very effective for legacy 16-bit or 32-bit apps.

7. Check System Type (32-bit vs 64-bit)

Some apps cannot run on certain architectures.

  1. Open Settings > System > About
  2. Check System type
  3. Make sure:
    • 32-bit apps aren’t exceeding 32-bit limits
    • You’re using 64-bit Windows for memory-heavy apps

32-bit apps are limited to ~4 GB memory.

8. Scan for Memory Leaks or Faulty Apps

Some apps consume memory endlessly.

  1. Open Task Manager
  2. Monitor memory usage over time
  3. Identify apps whose memory keeps increasing
  4. Update or uninstall problematic apps

Browser extensions are common offenders.

9. Run System File Checker and DISM

Corrupted system files can cause memory allocation failures.

  1. Right-click Start and open Windows Terminal (Admin)
  2. Run:
sfc /scannow
  1. After it completes, run:
DISM /Online /Cleanup-Image /RestoreHealth
  1. Restart your PC

This repairs Windows memory management components.

10. Check Available Disk Space

Low disk space can break virtual memory.

  1. Open File Explorer > This PC
  2. Make sure drive C: has at least:
    • 10–20 GB free space

If the disk is full, Windows cannot expand the page file.

11. Disable Startup Apps

Too many startup apps reduce available memory.

  1. Open Task Manager > Startup
  2. Disable non-essential apps
  3. Restart your PC

This frees memory immediately after boot.

12. Test Physical RAM (Advanced)

If the error happens frequently:

  1. Press Windows + R, type mdsched.exe, and press Enter
  2. Choose Restart now and check for problems

Faulty RAM can cause false “out of memory” errors.

Final Thoughts

The “There is not enough free memory to run this program” error is almost always caused by virtual memory settings, background app usage, or compatibility issues, not defective RAM. In most cases, increasing the page file and closing unused apps resolves the issue immediately.For long-term stability, keep enough free disk space, limit startup apps, and use 64-bit software on 64-bit Windows whenever possible.

Posted by Raj Bepari

I’m a digital content creator passionate about everything tech.