sodcalculator

10 Tech How-To

How to Clear RAM Cache on Windows

Guide 10-28308 · Updated · Step by step

Clearing the RAM cache on Windows can free up memory that’s being held by temporary system files and background processes, which may improve performance if your PC feels sluggish or runs out of memory. This guide walks you through safe, built-in methods—no third-party tools required—and explains what each step actually does. You’ll need a Windows 10 or Windows 11 PC with administrator access for some steps.

What You’ll Need

  • A Windows 10 or Windows 11 computer
  • Administrator account privileges (for the Command Prompt method)
  • About 5–10 minutes of time

Step-by-Step

Method 1: Restart Windows Explorer (Fastest, No Reboot)

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. In the Processes tab, scroll down to Windows Explorer (under “Apps”).
  3. Right-click Windows Explorer and select Restart. The taskbar and desktop icons will briefly disappear and reappear—this is normal.
  4. Check if your RAM usage has dropped in the Performance tab.

Method 2: Use the Command Prompt to Clear Standby Memory

  1. Press Windows + S, type cmd, then right-click Command Prompt and choose Run as administrator.
  2. Type the following command and press Enter:
    ipconfig /flushdns
    This clears the DNS cache, not RAM, but it’s often bundled with memory-clearing advice. For actual RAM, continue.
  3. To clear the standby memory (cached files), type this command and press Enter:
    echo 1 > /proc/sys/vm/drop_caches
    Wait—this is for Linux, not Windows. On Windows, use the built-in tool RAMMap instead (see Tips).

Method 3: Use the Built-in Memory Cleanup Tool (RAMMap)

  1. Download RAMMap from Microsoft’s official Sysinternals page (search “RAMMap Microsoft”).
  2. Extract the downloaded ZIP file and run RAMMap.exe as administrator (right-click → Run as administrator).
  3. In the menu bar, click Empty and choose Empty Standby List. This clears cached standby memory without affecting your open programs.
  4. Close RAMMap. Your RAM usage should drop noticeably.

Method 4: Restart Your Computer (Most Effective)

  1. Save all open work and close any running applications.
  2. Click the Start button, then the Power icon.
  3. Select Restart. This completely clears the RAM cache and resets all memory allocations.

Common Mistakes

  • Using third-party “RAM cleaner” software—these often do nothing useful or can even slow your system by constantly forcing memory to be cleared.
  • Clearing standby memory too aggressively—standby cache is actually beneficial because it speeds up frequently used apps. Clearing it too often can make your PC slower.
  • Running commands from unreliable sources—some “free RAM” commands found online are for Linux or are harmless but pointless on Windows.
  • Forgetting to restart after major updates—a simple reboot often fixes memory leaks better than any manual clearing.

Tips

  • Use RAMMap sparingly—only when you notice a real performance issue. The standby list is your friend; don’t empty it every hour.
  • Check what’s actually using memory—open Task Manager and sort by memory usage. Often, a single browser tab or background app is the culprit, not the cache.
  • Update your drivers and Windows—memory leaks are often fixed in updates.
  • Consider adding more RAM—if you constantly run out of memory, clearing cache is a temporary fix; upgrading is a permanent solution.

Troubleshooting

  • RAMMap won’t run or gives an error—Make sure you’re running it as administrator. If it still fails, download the latest version from Microsoft Sysinternals.
  • Task Manager doesn’t show a Restart option for Windows Explorer—This is rare; try closing Explorer via the “End task” button, then press Ctrl + Shift + Esc to open Task Manager, click File → Run new task, type explorer.exe, and press Enter.
  • RAM usage doesn’t drop after clearing standby list—If you have a memory leak from a specific app, restart that app. If the problem persists, reboot your PC.
  • Command Prompt says “Access denied”—You must run it as administrator. Right-click and choose “Run as administrator”.

Frequently Asked Questions

Is it safe to clear RAM cache?

Yes, it’s safe. Windows will simply reload cached data from disk when needed. Your open programs and files won’t be affected.

Will clearing RAM cache speed up my computer?

It can help if your RAM is nearly full and you’re experiencing slowdowns. However, if your PC is generally fast, clearing cache may not make a noticeable difference.

How often should I clear the RAM cache?

Only when you notice performance issues. There’s no need to do it regularly—Windows manages memory well on its own.

What’s the difference between standby and free RAM?

Standby RAM is cached data that can be instantly reused; free RAM is completely unused. Windows uses free RAM for standby to speed up app loading. Clearing standby gives you more free RAM but may slow down app launches.

Do I need third-party software to clear RAM cache?

No. The built-in methods (Task Manager, RAMMap, restart) are sufficient and safer.

Why does my RAM usage stay high after clearing?

Windows will quickly refill the standby cache with frequently used files. That’s normal and beneficial. If usage is still high due to active apps, check Task Manager for memory-hungry processes.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →