How to Test RAM for Errors: Windows Memory Diagnostic and MemTest86

Faulty memory can cause some of the most confusing PC problems: random restarts, blue screens, programs that crash for no reason, or files that get corrupted. Before you replace anything, it is worth learning how to test RAM properly. This guide covers the built-in Windows tool and the more thorough MemTest86 method.

Signs Your RAM Might Be Failing

  • Frequent blue screens with memory-related error messages
  • Random freezes or restarts, especially under load
  • Apps crashing or files becoming corrupted
  • The PC not starting, or giving beep codes at boot

These symptoms can also come from other causes such as overheating or drivers, so testing helps you rule memory in or out. If your PC will not start at all, see PC won’t turn on? 8 fixes to try first.

Installing a RAM stick into a motherboard memory slot

Method 1: Windows Memory Diagnostic

This is the quickest option because it is already part of Windows.

  1. Save your work and close all programs.
  2. Press Windows + R, type mdsched.exe and press Enter.
  3. Choose Restart now and check for problems.
  4. Your PC restarts and runs the test. This can take several minutes. Windows then starts normally and shows the result in a notification.

If you do not see the result, open Event Viewer, go to Windows Logs > System and look for entries from MemoryDiagnostics-Results.

Method 2: MemTest86 (More Thorough)

MemTest86 runs outside Windows from a USB drive, so it can test almost all of your memory without the operating system getting in the way. It is the better choice when Windows tools show nothing but you still suspect RAM.

  1. Download MemTest86 from its official website and use its tool to create a bootable USB drive. This erases the USB drive, so use an empty one.
  2. Restart the PC and open the boot menu (often F11, F12 or Esc, depending on the board) and select the USB drive. You can confirm your board’s key with our guide to checking your motherboard model.
  3. Let the test run. A full run of several passes can take hours, so it is best to leave it running overnight.
  4. Any errors that appear mean there is a problem with a stick, the slot, or the memory settings.

What to Do If the Test Finds Errors

  1. Turn off XMP and overclocks. Unstable memory profiles are a very common cause of errors. Learn more in what is XMP, then test again at default speed. If you changed settings, you can return to defaults with our BIOS reset guide.
  2. Reseat the sticks. Remove and reinstall them firmly. Our guide on how to install RAM shows the correct way.
  3. Test one stick at a time. Run the test with each module alone, in the same slot, then try a different slot. This shows whether the problem is a stick or a slot.
  4. Check the slot order. If you use two sticks, make sure they are in the recommended slots for dual-channel mode.
  5. Replace the faulty module. If one stick fails in every slot at default settings, it needs to be replaced, ideally under warranty.
Motherboard showing the RAM slots (DIMM slots) next to the CPU socket

Frequently Asked Questions

How long should I run a RAM test?

The Windows tool is a quick check. For real confidence, let MemTest86 complete several passes. Some errors only show up after a long run.

Can a clean test still mean bad RAM?

Rarely, yes. Some faults appear only when the PC is hot. Make sure the system is cooled well, and consider reading what thermal throttling is if your PC runs hot.

Final Thoughts

Start with the built-in tool, move to MemTest86 for a deeper check, and always test at default settings first. Not sure how much memory you should have? See how much RAM do you need.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top