How to Test RAM: MemTest86 and Windows Memory Diagnostic
Random crashes, freezes or restarts can point to faulty memory. This guide shows how to test RAM with the free MemTest86 and the tool built into Windows, and how to read what they tell you.
Key takeaways
- MemTest86 boots from a USB stick and tests memory outside Windows. It is the more thorough of the two free tools.
- Windows Memory Diagnostic is installed by default and makes a quick first check after a restart.
- One pass usually catches errors that happen every time. Errors that come and go need a longer run, often overnight.
- If errors show up, switch off XMP or EXPO and test one stick at a time before you buy anything new.
When is a RAM test worth running?
Run a memory test when a PC crashes, freezes or restarts for no clear reason, when programs close on their own, or straight after you change something about the memory. New sticks, a second kit added to the first, or a freshly enabled XMP or EXPO profile are all good moments to check that the system is stable. Such symptoms never prove on their own that memory is to blame. A clean run lets you cross the RAM off your list, while a failed run makes it the prime suspect.
MemTest86 is made by PassMark, and the developer observes that a lot of real world memory faults are intermittent. Heat or electrical noise can trigger them, and so can poor compatibility, where the timings and voltages are slightly wrong for the motherboard. A brief run may never catch such a fault, so the length of the test is important. New to DDR5, XMP or dual channel? Begin with what RAM is and how it works.
Before you test, note down what is fitted. In Windows 11, Task Manager (Ctrl+Shift+Esc) shows capacity, speed and slots used under Performance and then Memory. The PowerShell command Get-CimInstance win32_physicalmemory lists each module with its maker, capacity, slot and part number. Keep that list: if one stick turns out to be faulty, you will know which one to pull.
MemTest86 or Windows Memory Diagnostic?
Neither tool costs anything, and each one checks the RAM while Windows itself is not running. MemTest86 boots from a dedicated USB stick, with no operating system involved. Windows Memory Diagnostic ships with nearly every Windows PC and does its work as the machine restarts. Below is a comparison drawn from what PassMark and Engadget say about the two.
| MemTest86 | Windows Memory Diagnostic | |
|---|---|---|
| Made by | PassMark Software | Microsoft |
| Cost | Free edition, paid Pro and Site editions | Included with Windows |
| How it starts | Bootable USB stick, no operating system | mdsched.exe or the Start menu, then a restart |
| Hardware | x86 and ARM computers | Windows PCs |
| Memory types listed | DDR2, DDR3, (LP)DDR4, (LP)DDR5, ECC, CAMM2 | Not listed in our sources |
| Test options | 14 algorithms, including row hammer and DMA tests | Basic, Standard or Extended mix, up to 15 passes |
| Results | On screen, customisable reports in Pro | Event Viewer, source MemoryDiagnostics-Results |
| Best for | A thorough test, overnight if needed | A quick first check |
What we suggest: for a quick answer with nothing to download, begin with the Windows tool, then switch to MemTest86 once you want certainty. As Engadget notes, a pass in Windows Memory Diagnostic cannot completely clear your RAM, so see it as an initial screen and not the final word.
The imageUSB tool that comes with MemTest86 erases everything on the drive you pick. Use an empty stick and check the drive letter twice before you write the image.
How to run MemTest86 from a USB stick
All you need to prepare MemTest86 on Windows is a spare USB stick and a few minutes. The steps, as PassMark lays them out:
- Get the USB image for Windows from memtest86.com, the official site, and unzip it.
- Run the imageUSB program that is included, select your USB stick and write the image. This wipes the stick.
- Reboot and start the computer from the stick, using the boot menu or the BIOS. Which key opens them depends on the brand, so look it up in the manual for your laptop or motherboard.
- Let the test run. PassMark signs the build for Secure Boot, so it is made to start on PCs that have Secure Boot switched on.
By default MemTest86 runs 4 passes. PassMark's own example puts one pass at about 15 minutes and four passes at about 120 minutes, but the time grows with the amount of memory and shrinks with a faster processor, and PassMark cautions that a large amount of RAM paired with a slow processor may need the whole night. Faults that occur on every run normally show up in one pass. For a problem that appears only occasionally, give the test more time, preferably a full night.
No errors after all passes means the memory is very likely fine at its current settings, and the cause of your crashes is probably somewhere else. Even one error deserves attention: work through the checks lower on this page before deciding what is wrong.
How to use Windows Memory Diagnostic
The built in test needs no download. Search for Windows Memory Diagnostic in the Start menu, or press Windows+R and type mdsched.exe, then pick Restart now and check for problems. The machine reboots immediately, so save any open files beforehand. Engadget explains that the tool fills the memory with data, reads it again and compares the two for differences, and it does this outside the normal Windows session so the operating system is not using the memory under test.
Pressing F1 during the run brings up the settings, where you set the mix (Basic, Standard or Extended) and how many passes to do, with 15 as the maximum. Extended digs deepest but takes longest. The default suits an initial check; if that comes back clean and you want to double check, switch to Extended and add passes.
Windows says the result appears after you log back in, but it does not always pop up. You can look it up yourself: in Event Viewer, open Windows Logs, then System, select Filter Current Log and leave only the MemoryDiagnostics-Results source ticked. The latest entry states whether the tool found errors or hardware problems. Some other websites quote event ID numbers for success and failure, yet Microsoft does not confirm them anywhere we could find, so go by the wording of the message and ignore the number.
What to do when the test finds errors
Errors do not necessarily mean a module has failed. Go through the checks below one by one and repeat the test after every step, so it is clear which change fixed it.
Switch off XMP or EXPO. Both profiles run memory above standard specifications, and Engadget lists them as a common cause of instability. NZXT adds that a profile is validated for one matched kit of two modules, so four sticks or two mixed kits are not guaranteed to hold the rated speed. Set the memory back to its default in the BIOS and test again. If the errors stop, the kit is fine at standard speed and the profile is the problem. Our guide to XMP and EXPO explains the settings.
Test one module at a time. Take all sticks out but one and run the test, then swap. A stick that fails on its own, in more than one slot, is the faulty part. If every stick passes alone but the set fails together, look at compatibility instead.
Check compatibility and the BIOS. According to Corsair, swapping every module for a single kit is the one sure route to memory that works as a set; adding a second kit costs less but may cause conflicts, especially above the processor maker's certified speed. Crucial notes that mixed speeds run at the speed of the slowest module. Look up your board's memory support list (QVL) and update the BIOS: ASUS, for example, says stability problems can still occur with listed parts and recommends the latest BIOS. How to read such a list is explained in our RAM compatibility guide.
If a single stick keeps failing at default settings, replace it, or replace the whole kit so the modules match. Fitting new memory is covered in how to upgrade RAM, and the UK RAM price overview shows every kit we track, cheapest first.
On an older DDR4 system, the cheapest matched 16GB DDR4 desktop kit this week costs £76.79, with more on our DDR4 price page. Prices are including VAT and were last checked on 30 November 2026.
Common mistakes
- Stopping after one short pass. One pass finds faults that happen every time, not the ones that come and go. Give MemTest86 its full 4 passes, or a night if the problem is rare.
- Trusting a single clean Windows result. The built in tool is a quick check. If problems continue, rerun it with the Extended mix or move to MemTest86.
- Testing with XMP or EXPO still on and blaming the RAM. An unstable profile looks the same as a faulty stick. Test at default settings before you replace anything.
- Writing MemTest86 to the wrong drive. imageUSB wipes the drive you choose, including an external backup disk if you pick it by mistake.
- Replacing one stick of a pair with a different model. A mismatched pair can bring the errors straight back. Buy a matched kit if you can.
What we do not know yet
We have not found a Microsoft page that documents Windows Memory Diagnostic in detail, so what this guide says about the tool comes from Engadget, not from Microsoft's own documentation. If the command does not work on your machine, MemTest86 is the fallback.
We also have no source on how well either tool handles memory on Apple silicon Macs. Apple states that memory on those Macs is built into the chip package and cannot be upgraded, so a failed test there is a matter for Apple support rather than a stick you can swap.
We do not test RAM ourselves. We compare prices and specifications, and the steps above come from the tool makers and the sources listed on this page.
Questions
How long does a RAM test take?
MemTest86 runs 4 passes by default. PassMark gives about 15 minutes for one pass and 120 minutes for four as an example, but a slow processor with a lot of memory can take all night.
Is MemTest86 free?
Yes. The Free edition is enough for a home PC. PassMark also sells Pro and Site editions, which add customisable reports and automation.
Where do I find the Windows Memory Diagnostic results?
Open Event Viewer, go to Windows Logs and then System, and filter on the MemoryDiagnostics-Results source. The newest entry says whether errors were found.
Does one error mean my RAM is broken?
Not always. A memory profile set above standard speed or two kits that do not work well together can cause errors too. Retest without XMP or EXPO and with one module at a time first.
What does replacement RAM cost in the UK?
This week the cheapest 32GB DDR5 desktop kit costs £400.00 and the cheapest 16GB DDR4 desktop kit £76.79. Prices are including VAT.
Sources
- How we track RAM prices, theRAMageddon
- MemTest86, PassMark Software
- Creating a MemTest86 bootable USB Flash drive in Windows, PassMark Software
- MemTest86 Execution Time, PassMark Software
- What Happens When You Run The Windows Memory Diagnostic, Engadget
- How to Check Your RAM Amount, Type, and Speed on Windows 11, How-To Geek
- How to Enable XMP or EXPO (and Whether You Should), NZXT
- How to query the QVL list (CPU/memory), ASUS
- How to Upgrade & Install RAM in your PC, Corsair
- DDR memory speeds and compatibility, Crucial
- Upgrade or install memory in your Mac mini, Apple
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.