How to Test RAM for Errors in Windows
In this article
Testing your RAM for errors in Windows is straightforward: use the built-in Windows Memory Diagnostic tool to run a scan, then check the results. If it reports problems, your RAM is likely faulty and should be replaced. For a more thorough check, you can create a bootable USB with a dedicated memory testing tool like MemTest86, but the built-in tool is a good first step and requires no extra downloads.
What You'll Need
- A Windows PC (Windows 10 or 11 recommended; the steps are similar on Windows 8.1 and 7).
- Administrator rights to run the diagnostic tool.
- About 30–60 minutes of downtime—the test restarts your PC and you cannot use it while it runs.
- Optional: a blank USB drive (at least 1 GB) if you later want to use MemTest86 for a more exhaustive test.
Step-by-Step
- Save your work and close all programs. The test will restart your computer, so make sure nothing important is open.
- Open Windows Memory Diagnostic. Click Start, type Windows Memory Diagnostic in the search box, and press Enter. (On Windows 11, you can also find it via Settings > System > Recovery, but the search method is fastest.) If prompted by User Account Control, click Yes.
- Choose when to run the test. In the dialog, select Restart now and check for problems (recommended). Your PC will restart immediately. If you need to save more work, choose Check for problems the next time I start my computer instead.
- Let the test run. After restarting, you'll see a blue screen titled Windows Memory Diagnostic. The test runs automatically and typically takes 15–30 minutes, though it can take longer on systems with lots of RAM. Do not turn off the PC during this time.
- Wait for the restart. When the test finishes, Windows will restart normally. If any errors are found, they will be displayed on the blue screen before the restart, but you can also check the results afterward.
- Check the results. After logging in, open Event Viewer: right-click Start, choose Event Viewer, then expand Windows Logs and click System. Look for an event from source MemoryDiagnostics-Results in the list. Click it to see whether errors were detected. If no errors are found, the message will say so.
- Interpret the outcome. If the tool reports errors, your RAM is likely faulty. If it reports no errors but you still suspect memory problems, run the test again or use MemTest86 for a more thorough check (see Tips).
Common Mistakes
- Not saving work before restarting. The test restarts your PC without warning, so unsaved documents can be lost.
- Interrupting the test. Turning off the PC or pressing keys during the test can cause false results or leave the test incomplete.
- Assuming a single pass is enough. The built-in tool runs a standard set of tests once. For intermittent issues, multiple passes (or a more rigorous tool) may be needed.
- Ignoring the Event Viewer step. The blue screen results disappear quickly; checking Event Viewer is the reliable way to see the outcome.
Tips
- Run the test when you don't need the PC for a while—overnight is ideal if you choose the extended test.
- For a more thorough test, download MemTest86 from its official website, create a bootable USB, and boot from it. It runs multiple passes and can catch errors the built-in tool misses.
- If you have multiple RAM sticks, you can test them one at a time to identify which stick is faulty. This requires opening the PC and removing sticks, so do it only if you're comfortable with hardware.
- Keep your PC plugged in and avoid power interruptions during the test.
Troubleshooting
- The test doesn't start after restart. This can happen if fast startup is enabled or if the boot order is unusual. Try disabling fast startup in Control Panel > Power Options > Choose what the power buttons do, then run the tool again.
- The PC won't boot after the test. This is rare but can occur if the test left the system in an odd state. Try restarting; if it still won't boot, check that your RAM sticks are seated properly (if you moved them) or use Windows recovery options.
- No results in Event Viewer. If you don't see a MemoryDiagnostics-Results event, the test may not have completed. Run it again and let it finish fully.
- Errors found but you need the PC working. If the tool reports errors, back up important data immediately and consider replacing the faulty RAM. Running with known bad RAM can cause crashes and data corruption.
Frequently Asked Questions
How long does Windows Memory Diagnostic take?
Typically 15–30 minutes for a standard test, but it can take longer on systems with more RAM or if you choose the extended test option (available by pressing F1 during the test).
Does Windows Memory Diagnostic check all RAM?
Yes, it tests all available RAM by default. However, it runs a limited set of patterns, so it may miss some intermittent errors that more rigorous tools like MemTest86 would catch.
Can I use my PC while the test runs?
No. The test runs outside of Windows, so you cannot use the PC until it finishes and restarts.
What should I do if errors are found?
Back up your data and replace the faulty RAM stick. If you have multiple sticks, you can test them individually to identify the bad one.
Is MemTest86 better than Windows Memory Diagnostic?
MemTest86 is more thorough and runs more test patterns, making it better for detecting subtle or intermittent errors. It requires creating a bootable USB, but it's free and widely used.
Can I run the test without restarting?
No, the built-in tool requires a restart to run outside of Windows. There is no way to run it within a normal Windows session.