Troubleshoot Windows Memory Problems
In this article
To troubleshoot Windows memory problems, start by running the built-in Windows Memory Diagnostic tool and checking the Event Viewer for memory-related errors. If your PC crashes, freezes, or shows blue screens with memory-related stop codes (like PAGE_FAULT_IN_NONPAGED_AREA), faulty RAM or driver conflicts are the usual culprits. This guide walks you through the steps to identify and fix memory issues, from built-in diagnostics to manual hardware checks. You will need a Windows PC, a USB drive (if you want to test with MemTest86), and a screwdriver if you plan to reseat RAM sticks.
What You'll Need
- A Windows 10 or Windows 11 PC (steps are similar on older versions)
- Administrator access (to run diagnostics and view logs)
- A USB flash drive (optional, for a more thorough memory test with MemTest86)
- A screwdriver (only if you need to open the case to reseat or replace RAM)
Step-by-Step
- Save your work and close all applications. Memory diagnostics require a restart, so save any open files and close programs.
- Open the Windows Memory Diagnostic tool. Press Windows + R to open the Run dialog, type
mdsched.exe, and press Enter. Alternatively, search for “Windows Memory Diagnostic” in the Start menu. - Choose when to restart. In the dialog, select “Restart now and check for problems (recommended)” or “Check for problems the next time I start my computer.” The PC will restart and the diagnostic tool will begin automatically.
- Let the test run. The Windows Memory Diagnostic will run a standard test (a series of memory read/write patterns). It may take 20–30 minutes. You can press F1 during the test to change the test mix (Basic, Standard, Extended) or the cache setting, but the default Standard test is usually sufficient. Do not turn off the PC during the test.
- Wait for the results. After the test finishes, Windows will restart automatically. The results may appear as a notification after you log in, or you can check them in Event Viewer (see step 6).
- Check the results in Event Viewer. Press Windows + R, type
eventvwr.msc, and press Enter. Go to Windows Logs > System. Look for an event with the source “MemoryDiagnostics-Results” (Event ID 1201 for a pass, 1202 for a fail). If you see a fail, your RAM is faulty and needs replacement. - If the diagnostic passes but problems persist, run a more thorough test with MemTest86. Download MemTest86 (free version) from the official website (memtest86.com) and create a bootable USB drive using their provided tool or a tool like Rufus. Insert the USB, restart your PC, and boot from the USB (usually by pressing F12, F2, or Del during startup to enter the boot menu). Let MemTest86 run for at least one full pass (or overnight if possible). Any red errors indicate faulty RAM.
- Reseat the RAM sticks. If you suspect physical connection issues, power off your PC, unplug it, open the case, and remove the RAM sticks. Gently re-seat them firmly in their slots until the clips click. Also try swapping the sticks between slots to isolate a faulty slot.
- Test with one stick at a time. If you have multiple RAM sticks, remove all but one and run the memory diagnostic again. Repeat for each stick. This identifies which specific stick is faulty.
- Check for driver or software conflicts. If memory tests are clean, the issue may be a driver. Open Device Manager (right-click Start > Device Manager), expand the “Memory” or “System devices” sections, and look for any devices with a yellow warning icon. Update drivers via Windows Update or the manufacturer’s website. Also run
sfc /scannowin an elevated Command Prompt to check for corrupted system files.
Common Mistakes
- Skipping the restart: The Windows Memory Diagnostic only runs on restart; if you select “next time,” you must restart manually.
- Interrupting the test: Turning off the PC during the test can cause false results or system file corruption.
- Assuming a pass means no memory issues: The standard Windows test is not as thorough as MemTest86. A clean result does not guarantee perfect RAM.
- Not testing each stick separately: If you have multiple sticks, a single faulty one can cause intermittent issues that are hard to pinpoint without isolation.
- Ignoring the Event Viewer: The notification may not appear; always check Event Viewer for the definitive result.
Tips
- Run the memory diagnostic in “Extended” mode (press F1 during the test) if you suspect a subtle issue, but be prepared for it to take over an hour.
- Use MemTest86 as a second opinion; it is more thorough and catches errors that Windows misses.
- Keep your BIOS/UEFI up to date. Sometimes memory compatibility issues are fixed with a BIOS update.
- If you recently added new RAM, ensure it is compatible with your motherboard (check the motherboard’s QVL list) and that it is installed in the correct slots (often A2 and B2 for dual-channel).
- Document any error codes from blue screens (e.g., MEMORY_MANAGEMENT) – they can guide you to specific issues.
Troubleshooting
If the memory diagnostic fails and you have already reseated and tested each stick individually, the RAM is likely faulty and needs replacement. If the diagnostic passes but crashes continue, consider these steps:
- Check for overheating: High temperatures can cause memory errors. Use a temperature monitoring tool (like HWMonitor) to check RAM temps (usually not displayed, but CPU temps can indicate airflow issues). Ensure fans are clean and working.
- Update chipset drivers: Outdated chipset drivers can cause memory management errors. Download the latest from your motherboard manufacturer’s site.
- Disable XMP/DOCP: If you overclocked your RAM via XMP (Intel) or DOCP (AMD), try disabling it in BIOS to see if stability returns. Overclocking can cause memory errors.
- Run a full system scan: Malware can cause memory-related crashes. Use Windows Defender or a reputable third-party antivirus.
- Check the page file: If your system drive is low on space, the page file may be too small. Ensure you have at least 10% free space on the system drive.
- If nothing works, consider reinstalling Windows: A clean install can rule out software corruption. Back up your data first.
Frequently Asked Questions
How long does the Windows Memory Diagnostic take?
The standard test typically takes 20–30 minutes, but it can be longer depending on your RAM size and speed. The extended test can take over an hour.
Can I use my PC while the memory test is running?
No, the test runs before Windows loads, so you cannot use the PC. You must let it finish without interruption.
What does “MemoryDiagnostics-Results” event ID 1201 mean?
Event ID 1201 means the test passed with no errors. Event ID 1202 means errors were found, indicating faulty RAM.
Is MemTest86 free?
Yes, the free version of MemTest86 is available for personal use. It is bootable from a USB drive and runs outside of Windows.
Can faulty RAM damage other components?
Faulty RAM can cause data corruption and system crashes, but it rarely damages other hardware. However, it can corrupt files, so replace it as soon as possible.
Do I need to replace all RAM sticks if one fails?
No, only the faulty stick needs replacement. However, for best compatibility, it is often recommended to replace the entire kit if you are using matched sticks, but it is not strictly necessary.