Skip to content
theRAMageddon
United States, USD
Guide

How to Test RAM: MemTest86 and Windows Memory Diagnostic

Random crashes, freezes or a blue screen after a RAM upgrade? A RAM test tells you whether memory is the cause. Here is how to run MemTest86 and Windows Memory Diagnostic and how to read the results.

By GregoryUpdated 6 min read

Key takeaways

  • MemTest86 boots from a USB drive and tests memory outside Windows; the Free edition costs nothing.
  • Windows Memory Diagnostic is installed by default and starts with mdsched.exe, a good first check before a long MemTest86 run.
  • One pass usually finds errors that show up every time; faults that come and go need a longer run.
  • If a test finds errors, switch off XMP or EXPO and test one module at a time before you buy new RAM.

When should you run a RAM test?

Run a RAM test when your PC freezes, restarts or crashes programs without a clear reason, or shows a blue screen that comes and goes. It also makes sense right after you install new memory, add a second kit or switch on an XMP or EXPO profile. Those symptoms can come from other parts too, so the test either clears your RAM or points straight at it.

PassMark, the company behind MemTest86, says many memory faults in the field are intermittent. They come and go with temperature or electrical interference, or they are compatibility problems with timings and voltages. A short test can miss them. New to terms such as DDR5, XMP and dual channel? Start with our guide on what RAM is.

Before you test, write down what is installed. Task Manager (Ctrl+Shift+Esc), tab Performance, then Memory, shows the capacity, the speed and how many slots are in use. In PowerShell, the command Get-CimInstance win32_physicalmemory lists the maker, capacity, slot and part number of every module. You will want those part numbers if one module turns out to be faulty.

MemTest86 vs Windows Memory Diagnostic

Both tools are free and both test memory outside the normal Windows session, so Windows itself is not using the memory you are checking. The difference is depth and setup. MemTest86 needs a USB drive and a boot from it. Windows Memory Diagnostic is already on most Windows PCs and needs only a restart.

The table puts the two side by side, based on what PassMark and Engadget describe.

MemTest86Windows Memory Diagnostic
Made byPassMark SoftwareMicrosoft
CostFree edition, plus paid Pro and Site editionsInstalled with Windows
How it startsBootable USB drive, no operating system neededmdsched.exe, then a restart
Hardwarex86 and ARM computersWindows PCs
Memory typesDDR2, DDR3, (LP)DDR4, (LP)DDR5, ECC and CAMM2Not listed in our sources
Test options14 algorithms, including row hammer and DMA testsBasic, Standard or Extended mix, up to 15 passes
ResultsCustom reports in the Pro editionEvent Viewer, source MemoryDiagnostics-Results
Best forA thorough check, overnight if neededA quick first check

Our advice: start with Windows Memory Diagnostic if you want a fast answer tonight, and move to MemTest86 when you need to be sure. None of our sources claim the Windows tool is as thorough as MemTest86, so treat a clean Windows result as a hint, not as proof.

How to run MemTest86

Setting up MemTest86 on a Windows PC takes a few minutes. These are the steps PassMark describes:

  1. Download the Windows USB image from memtest86.com and extract the archive.
  2. Run imageUSB, the tool included in the download, and pick your USB drive. It writes MemTest86 to the drive and erases everything that was on it.
  3. Restart the PC and boot from the USB drive through the boot menu or the BIOS. The key for the boot menu differs per motherboard and laptop, so check the manual.
  4. Let the test run. The build is signed for Secure Boot and runs 4 passes by default.
Use an empty USB drive

imageUSB wipes the USB drive you select. Copy off anything you want to keep, and check twice that you picked the right drive before you start.

Run time depends on your processor and on how much memory you have. PassMark gives about 15 minutes for 1 pass and 120 minutes for 4 passes as an example, and warns that a slow CPU with a lot of RAM can need all night. One pass usually catches errors that appear every time. If you suspect a fault that only shows up now and then, leave the test running longer, overnight if you can.

No errors after all passes means your memory is probably fine at these settings, and the cause of the crashes is likely elsewhere. Any error, even a single one, is worth following up with the steps further down.

How to run Windows Memory Diagnostic

The built in tool needs no download. Open the Start menu and search for Windows Memory Diagnostic, or press Win+R, type mdsched.exe and press Enter. Choose Restart now and check for problems. Save your work first, because the PC restarts straight away. According to Engadget, the tool writes data to RAM, reads it back and checks for mismatches.

While the test runs, press F1 to open the options. You can pick the test mix (Basic, Standard or Extended) and the number of passes, up to 15. Extended is the most thorough and the slowest. For a first check the default is fine; for a second opinion, choose Extended and more passes.

Windows says the results show after you log back in, but that message does not always appear. To find them, open Event Viewer, go to Windows Logs and then System, and use Filter Current Log to show only the MemoryDiagnostics-Results source. Open the newest entry: it says whether the tool found errors. A clean result does not fully rule out memory problems, so if the crashes continue, run the Extended mix or switch to MemTest86.

What to do when the test finds errors

An error does not automatically mean a broken module. Work through these steps in order and test again after each one.

Switch off XMP or EXPO. These profiles run memory above standard specifications. NZXT describes them as a form of overclocking with a small risk of instability, and Intel notes that changing clock frequency or voltage may reduce stability. Disable the profile in the BIOS so the kit runs at its default speed, then test again. If the errors disappear, the profile is the problem, not the RAM. Our guide to RAM speed and latency explains what those settings change.

Test one module at a time. Leave a single stick in the board, test it, then swap. Kingston advises shutting the computer down first, unplugging the power adapter on a laptop and touching a piece of bare metal to get rid of static before you handle modules. This tells you which stick is at fault, and the part number you noted earlier helps with a warranty claim.

Check for mixed kits. Corsair says replacing all modules with one kit is the only way to guarantee the modules work together, and that adding a second kit risks incompatibility, especially at speeds above what the CPU maker certifies. Crucial adds that a system runs at the speed of its slowest module. If each stick passes alone but the set fails, suspect the mix. Our RAM compatibility guide covers what to match.

Update the BIOS. ASUS says stability problems can occur even when the CPU and memory are on its QVL (the list of tested modules), and recommends the latest BIOS. Other board makers publish their own lists and update tools on their support pages.

Some faults cannot be fixed with a new stick. Many thin laptops have memory soldered to the board, and on Apple silicon Macs the memory sits in the chip package and cannot be upgraded, according to Apple. In those cases repair or warranty is the route. Note also that the on-die ECC in DDR5 only corrects errors inside the chip, not on the path to the processor, so a DDR5 kit can still fail a test.

Replacing a faulty module: what it costs

If a stick still fails at default settings and on its own, it is most likely defective. Check the maker's warranty first. If you buy new memory, get a complete kit of two matching modules rather than one stick next to the old ones. The table shows the cheapest kit per type this week at Adorama, Amazon.com, B&H Photo, Best Buy, Corsair.com, Newegg and Walmart, from our check on November 30, 2026. Prices are excluding sales tax.

KitCheapest kit this weekPer GB
16GB DDR4 desktop$60.99$3.81
32GB DDR4 desktop$158.00$4.94
16GB DDR5 desktop$203.98$12.75
32GB DDR5 desktop$439.99$13.75
16GB DDR4 laptop$82.00$5.13
16GB DDR5 laptop$210.99$13.19

DDR4 and DDR5 do not fit each other's slots, so buy the type your board supports. Every kit with this week's price is on our RAM prices page and the DDR5 RAM prices page. For fitting the new modules, see how to upgrade RAM.

Lowest price in United States this weekCheapest 32GB DDR5 desktop kit$439.99 NeweggUpdated November 30, 2026
Compare 258 kits

What we do not know yet

  • How the two tools compare in detail. We have not seen a side by side comparison from PassMark or Microsoft, so we cannot say how many faults Windows Memory Diagnostic misses that MemTest86 would catch.
  • Event ID numbers. Some websites list specific Event Viewer IDs for a pass or a fail. We could not confirm them from Microsoft, so read the text of the entry instead of relying on a number.
  • Apple silicon Macs. MemTest86 lists support for ARM computers, but we have not checked whether it runs on an Apple silicon Mac, so do not count on it there.
  • Next week's replacement price. Our prices change every week. Change in the median price per GB over the last 4 weeks: -16.3%.

Questions

How long does a RAM test take?

MemTest86 runs 4 passes by default. PassMark's example is about 15 minutes for 1 pass and 120 minutes for all 4, but a slow CPU with a lot of RAM can take all night.

Is Windows Memory Diagnostic good enough?

It is a useful first check, but a clean result does not fully rule out memory problems. If the symptoms continue, rerun it with the Extended test mix or run MemTest86.

Where do I find the Windows Memory Diagnostic results?

Open Event Viewer, go to Windows Logs and System, filter on the MemoryDiagnostics-Results source and open the newest entry.

Does one error mean my RAM is broken?

Not always. An XMP or EXPO profile, a mix of two kits or an old BIOS can cause errors too. Retest at default settings and one module at a time first.

What does replacement RAM cost right now?

This week the cheapest 32GB DDR5 desktop kit costs $439.99 and the cheapest 16GB DDR4 desktop kit $60.99 in our US data. Prices are excluding sales tax.

Sources

  1. How we track RAM prices, theRAMageddon
  2. MemTest86, PassMark Software
  3. Creating a MemTest86 bootable USB Flash drive in Windows, PassMark Software
  4. MemTest86 Execution Time, PassMark Software
  5. What Happens When You Run The Windows Memory Diagnostic, Engadget
  6. How to Check Your RAM Amount, Type, and Speed on Windows 11, How-To Geek
  7. How to Enable XMP or EXPO (and Whether You Should), NZXT
  8. Intel XMP (Extreme Memory Profile) RAM Overclocking, Intel
  9. Upgrade the memory and storage in your HP laptop or desktop PC, Kingston Technology
  10. How to Upgrade & Install RAM in your PC, Corsair
  11. DDR memory speeds and compatibility, Crucial
  12. How to query the QVL list (CPU/memory), ASUS
  13. Upgrade or install memory in your Mac mini, Apple
  14. DDR5 memory standard: An introduction to the next generation of DRAM module technology, Kingston Technology

Gregory is the pen name for the theRAMageddon price guides and explainers. Drafts are written with AI assistance from our own weekly price data, following our editorial policy.

Keep reading