RAM

How to Test RAM for Errors With MemTest86

Step-by-step guide to testing RAM for errors with MemTest86: make a bootable USB, boot it, run enough passes, and read the results correctly.

On this page
  1. What MemTest86 tests and what it doesn’t
  2. What you need
  3. Step 1: Make the bootable USB
  4. Step 2: Boot from the USB
  5. Step 3: Run the test
  6. Reading the result
  7. Finding a bad stick
  8. Errors only when XMP or EXPO is on
  9. Alternatives
  10. Common misconceptions
  11. Safety before swapping sticks

MemTest86 checks your RAM for faults by booting outside Windows and running test patterns across the installed memory. To use it, write the image to a USB drive, boot from that drive, run at least four passes, and look for zero errors. Expect a long run. On a large kit, a full default run can take several hours.

What MemTest86 tests and what it doesn’t

MemTest86 tests installed memory for faults before Windows loads, so it covers nearly all of the RAM in the machine. It can catch a faulty module or a bad cell, and it can expose some instability.

It does not test your CPU, storage, or drivers. Passing it also does not prove that an overclock is stable. For that, run an OS-based stress test after the MemTest86 run; see RAM timings and latency for the options.

What you need

  • A USB drive. It will be erased, so back up anything on it first.
  • A working PC with internet access to download the image and write it to the drive.
  • Time. Plan for a long run and consider leaving it overnight, especially with a large amount of RAM.

Step 1: Make the bootable USB

  1. Download MemTest86 from memtest86.com and unzip the package.
  2. Insert the USB drive and run imageUSB, which is included in the package.
  3. Select your USB drive, choose Write, and confirm. This erases the drive.
  4. Wait for the write to finish, then exit.

Rufus or balenaEtcher can also write the image if you prefer them. Follow the tool’s instructions for an image file.

Step 2: Boot from the USB

Restart the PC and open the boot menu. The key depends on the board; common ones are F8, F11, F12, and Esc. Select the USB drive. If the drive appears twice, choose the entry marked UEFI.

If the drive does not appear, check that the image was written correctly and that the USB drive is plugged into a port the board can boot from.

Step 3: Run the test

Depending on the version, MemTest86 may start on its own after a short countdown. If it does not, select the start option from the menu.

The default run is four passes. One pass on a 32 GB kit typically takes roughly one to three hours, depending on the CPU and the memory configuration, so a full default run can take several hours. Larger kits take longer.

Some versions let you save a report to the USB drive. The features differ between the free and paid editions, so check what your version offers.

Reading the result

  • Zero errors across all passes. No faults were found in this test. This is the pass criterion.
  • Any error. The memory has a fault, or it is unstable at the current settings. An error is never acceptable. A few errors are not “fine”.

An error does not always mean a bad stick. Overclock settings, the CPU’s memory controller, and the board can all cause errors, so work through the steps below before you replace anything.

Finding a bad stick

  1. Power down, then leave one stick installed.
  2. Run the full test with that stick in one slot.
  3. Repeat for each stick, one at a time, in the same slot.
  4. If one stick keeps failing, move a stick that has passed into the other slots to see whether the slot is the problem.

Replace the module that fails consistently.

Errors only when XMP or EXPO is on

Test with XMP or EXPO disabled first. If the memory passes at its default speed but shows errors with the profile on, the kit or the board is unstable at that speed. Your options are to lower the speed one step, loosen the timings, or raise the DRAM voltage slightly within the kit’s rated limits. After any change, run the full test again.

Alternatives

  • Memtest86+ is an open-source alternative from memtest.org.
  • Windows Memory Diagnostic is built into Windows and needs no download. It is a quicker check and less thorough than MemTest86.
  • OS-based stress tests such as TestMem5, Karhu RAM Test, and y-cruncher can catch instability at tuned speeds that MemTest86 may miss.

Common misconceptions

  • “One clean pass proves the RAM is good.” Run at least four passes.
  • “A few errors are acceptable.” None are.
  • “MemTest86 errors always mean bad RAM.” Overclock settings, the CPU, or the board can cause them.
  • “Passing MemTest86 proves an overclock is stable.” OS-based stress tests catch more instability.

Safety before swapping sticks

Power off, switch off the power supply, and unplug it before you move sticks between tests. Ground yourself against static electricity by touching the case’s metal before you handle a module.

The complete guide to ram

PC RAM Guide: Module Types, Specs and How Much You Need
Read the guide

Keep exploring

Guides from other topics

All topics →