Skip to main content
WorksTogether
Tutorial · Last verified December 6, 2026RAM & memory

How to test your RAM

Blue screens with a different code each time, apps crashing for no reason, files that come out corrupted — these are the signs that point at memory, but none of them proves it. The proof is a memory test, and Windows already has one built in. This tutorial runs it first, then the deeper MemTest86 test for the cases the built-in tool cannot settle.

By Marcus Webb · Hardware TechnicianVerified 2026-12-06

At a glance

Run Windows Memory Diagnostic first — it is built into Windows, free, and takes one command: press Win + R, type mdsched.exe, and choose “Restart now and check for problems”. If it finds errors, the RAM is faulty. If it finds nothing and the crashes continue, run MemTest86 from a USB stick: four passes, zero errors allowed.

  • Expected result: a verdict — faulty RAM, or RAM cleared as the likely cause.
  • Hands-on time: about 15 minutes; the tests run unattended (Windows: several minutes; MemTest86: hours for a full four-pass run).
  • Difficulty: Easy for the Windows tool; Moderate for MemTest86 (bootable USB stick).
Photograph: two green RAM memory modules and a small screwdriver on a wooden desk beside a closed silver laptop

Before you start

The Windows test restarts the PC, so save everything first. The deeper test needs a spare USB stick — and a reason to run it.

  • Save your work and close your apps. Both tests run outside Windows, so the PC restarts — Microsoft's first instruction is to save all work and close out of all apps.
  • A spare USB stick (at least 1 GB) for MemTest86. Writing the MemTest86 image erases the stick, so use one with nothing on it you need.
  • Administrator rights may be asked for. Launching the Windows tool can bring up a User Account Control prompt — an administrator account approves it.
  • Know what you are chasing. The signs that point at memory are blue screens with a different error code each time (often MEMORY_MANAGEMENT or IRQL_NOT_LESS_OR_EQUAL), random crashes or freezes, restarts for no reason, and files that come out corrupted. None of these proves the RAM is bad — a driver or a disk can cause all of them — but together they are a good reason to test.

If the laptop is a Mac with Apple silicon, stop here: MemTest86 does not boot on Apple silicon Macs, and the Windows tool below does not exist on macOS. This tutorial is for Windows PCs.

The test, step by step

Step 1Save your work — the PC is about to restart.

Close your documents and your apps. The Windows Memory Diagnostic runs before Windows loads, so the PC has to restart, and anything unsaved is lost. Microsoft puts this first for a reason: save all work and close out of all apps before you start.

Step 2Launch Windows Memory Diagnostic with mdsched.exe.

Press Win + R to open the Run box, type mdsched.exe and press Enter. (You can also type “Windows Memory Diagnostic” in the Start menu.) In the window that opens, choose “Restart now and check for problems (recommended)”. The second option schedules the test for the next restart instead, if you cannot restart right now.

Recreated Windows Memory Diagnostic screen: title, progress bar, Status: Test in progress, Test: Standard, Pass: 1 of 2, Overall progress: 47%
The Windows Memory Diagnostic test screen (recreated). Watch the Status line and the progress bar — while it says “Test in progress”, leave the PC alone and do not switch it off.

Step 3Let the test run — Standard first, Extended if needed.

After the restart the test starts on its own, in Standard mode by default. Microsoft says it takes several minutes. Press F1 while the test screen is showing to change the settings: Test mix (Basic, Standard or Extended), Cache and Pass count — then F10 to apply and continue. Extended runs more tests and takes longer; Microsoft suggests it when the Standard test shows no issue, and Windows Central suggests it when errors are found, to confirm them before you act.

Step 4Read the result — notification, or Event Viewer.

When the test finishes, the PC restarts on its own. Sign in, and a Windows Memory Diagnostic notification shows the result. If you miss it, open Event Viewer (Win + R, type eventvwr.msc), go to Windows Logs → System, and use Find for MemoryDiagnostics-Results. The message tells you the verdict: “The Windows Memory Diagnostic tested the computer's memory and detected no errors” means memory can be discarded as the cause; anything else means errors were found.

Step 5Still crashing after a clean Windows test? Run MemTest86.

The built-in tool is a good first check, but it can miss errors that only show up under longer or heavier testing. MemTest86 (by PassMark) runs outside Windows, from a USB stick, so it can test memory Windows itself would be using. Download the Free edition from memtest86.com/download.htm, extract the ZIP, and run the included imageUSB.exe — select your USB stick and click Write (this erases the stick). Then restart, open the one-time boot menu (often Esc, F9, F11 or F12, depending on the maker) and boot from the USB stick. MemTest86 counts down ten seconds and starts on its own, with the default run of four passes. PassMark's own advice: a single pass is generally enough to catch consistent errors, but run the full four — or overnight — for faults that come and go.

Step 6Isolate the faulty stick — one module at a time.

The free edition of MemTest86 reports errors, but not which module produced them. Shut the PC down, remove all but one stick, put it in the slot your manual recommends for a single module, and test it. Repeat for each stick, always in the same slot. The stick that produces errors is the faulty one. If a stick that passed alone produces errors in a different slot, the slot — or the board — is the suspect. And if the errors only appear with XMP or EXPO enabled, turn the profile off and retest at default settings first: PassMark notes the profile itself can be the problem, not the RAM.

Reading your result

Both tools have the same rule: zero errors is a pass, any error is a fail. There is no acceptable error count.

What each test result means, and what to do next

ResultWhat it meansNext step
Windows Memory Diagnostic: “detected no errors”The built-in test found no errors — memory can be discarded as the likely cause.If the crashes continue, run MemTest86 (step 5) before blaming another part.
Windows Memory Diagnostic: errors foundThe memory — or another hardware part — has a problem. Microsoft says memory errors usually indicate a problem with the memory chips or other hardware.Run the Extended test and check again. If errors persist, isolate the stick (step 6) or contact the PC manufacturer.
MemTest86: PASS, 0 errors after 4 passesNo errors in the full run — faulty RAM is now unlikely.Look elsewhere: drivers, the disk, heat. A pass makes bad RAM unlikely, it does not prove the RAM is perfect (see below).
MemTest86: FAIL, 1 error or moreFaulty memory. One error is enough — memory has to store every bit correctly.Test the sticks one at a time (step 6), replace the faulty one, and retest after the swap.
MemTest86: INCOMPLETEYou stopped the test before all passes finished — this is not a result.Let the full run finish. An incomplete pass is unfinished, not a clean bill of health.

A note on the clean result. A pass is suggestive, not proof: an intermittent fault can hide from any test, failing only at a particular temperature, after hours of operation, or under an access pattern the test does not generate. Four clean passes substantially reduce the probability that memory is your problem — they do not eliminate it. If the crashes continue after a clean MemTest86 run, the next suspects are drivers, the disk and heat, not a second memory test.

If it does not work

Common problems while testing RAM, and the fix for each

ProblemFix
No result notification after the Windows testOpen Event Viewer, Windows Logs → System, Find “MemoryDiagnostics-Results” — the result is logged there even when the notification is missed.
The PC will not boot from the MemTest86 USB stickUse the one-time boot menu (Esc, F9, F11 or F12 at power-on, depending on the maker) instead of changing the boot order. MemTest86 supports Secure Boot, so it usually does not need to be turned off.
Errors appear only with XMP / EXPO enabledTurn the memory profile off in the BIOS and retest at default settings. If the errors stop, the profile is too fast for the system — not necessarily the RAM.
Every stick passes alone, but the full set fails togetherThe modules may be mismatched or the board may not like the combination at its current settings. Retest at default settings, and check the modules match (same capacity, speed and generation).
MemTest86 will not start on a MacMemTest86 does not boot on Apple silicon Macs. On a Mac, use Apple Diagnostics instead — this tutorial is for Windows PCs.

Good to know

Three honest limits. We have not run these tests on a faulty stick for this page — every step above is quoted from Microsoft's and PassMark's own documentation, linked below. Durations vary by machine: Microsoft says the Windows test takes several minutes, and PassMark's example for MemTest86 is about 15 minutes for one pass and two hours for four — your machine will differ, so run the deep test overnight. And a clean test does not prove the RAM is perfect — it makes faulty RAM unlikely, which is what a diagnostic is for.

Check your laptop's RAM layout in the Upgrade Finder

Once you know whether the RAM is faulty, the next question is what fits your exact model: can I upgrade my laptop RAM? answers it from the manufacturer's specifications, and how to install RAM in a laptop walks through the swap.

Common questions

How do I test my RAM in Windows 11?

Press Win + R, type mdsched.exe, press Enter, then choose “Restart now and check for problems (recommended)” — Windows restarts into the Memory Diagnostic and tests the RAM before Windows loads. Save your work first: the test restarts the PC. The Standard test runs by default; press F1 while the test screen is showing to switch to Basic or Extended, change the cache setting or the pass count, then F10 to apply. When the test finishes, the PC restarts on its own and a notification shows the result after you sign in. If you miss the notification, the result is in Event Viewer under Windows Logs, System, source MemoryDiagnostics-Results.

How long does the Windows Memory Diagnostic take?

Microsoft says the test takes several minutes — the Standard test is the default, and the Extended test takes longer because it runs more tests. There is no fixed duration: it depends on how much RAM is installed and how fast it is. The PC restarts automatically when the test finishes, so you can walk away. MemTest86 is a different scale: PassMark's own example is about 15 minutes for one pass and two hours for four, and a large kit on a slow machine can run overnight — which is why most people start it in the evening.

How many passes of MemTest86 should I run?

Four — that is the default run, and it is the standard verdict: zero errors after four full passes. PassMark's own advice is that a single pass is generally enough to catch consistent errors, but intermittent faults need time to surface — they may only appear when the memory is warm or under a particular test pattern. So let the default four passes finish, and if the crashes you are chasing are rare, run it overnight. If errors flood in early, you can stop: the verdict is already in.

Does one MemTest86 error mean my RAM is bad?

Yes — there is no acceptable error count. Zero errors is a pass; a single error is a fail. The next step is to find which stick it is: test one module at a time in the same slot (the one your manual recommends for a single module) and repeat for each stick. The stick that produces errors is the faulty one. If a stick that passed alone produces errors in a different slot, the slot or the board is the suspect, not the stick. One exception: if the errors only appear with XMP or EXPO enabled, turn the profile off and retest at default settings first — PassMark notes the profile itself can be the problem.

Can RAM pass a test and still be faulty?

Yes, rarely — a clean run makes faulty RAM unlikely, but it is not proof. Intermittent faults can hide from any test. A weak cell may fail only at a particular temperature, after hours of operation, or under an access pattern the test does not generate. Four clean MemTest86 passes substantially reduce the probability that memory is your problem; they do not eliminate it. If the crashes continue after a clean result, the next suspects are drivers, the disk and heat — not a second memory test.

What are the signs of bad RAM?

Blue screens with a different error code each time, random crashes or freezes, restarts for no reason, and files that come out corrupted — but none of these proves the RAM is bad on its own. The classic codes are MEMORY_MANAGEMENT and IRQL_NOT_LESS_OR_EQUAL, and the pattern that points at memory is variety: a different code at each crash, crashes in unrelated apps, and failures that get worse under load. A driver or a disk can cause every one of these symptoms too, which is why the symptom list is a reason to test, not a verdict. Run the Windows Memory Diagnostic first; it is free, built in, and settles the question in minutes.

About the author

Marcus Webb

Hardware Technician — RAM, SSDs and repairs — hands on, screws out

Marcus has spent years opening laptops, swapping memory and storage, and fixing what breaks. On WorksTogether he writes the tutorials that involve a screwdriver: testing RAM, fitting an SSD, and the repairs worth doing yourself.

RAM testing & upgradesSSD installationLaptop repairs

All tutorials by the WorksTogether team

Sources