Fix BSOD Errors: How to Repair RAM and Software Issues
In this article
To fix Blue Screen of Death (BSOD) errors caused by RAM or software, you must first identify the specific stop code on the blue screen and then either run the Windows Memory Diagnostic tool for hardware checks or boot into Safe Mode to remove problematic drivers and updates. Most BSODs are caused by driver conflicts, corrupted system files, or failing memory modules that prevent the operating system from accessing critical data.
What You'll Need
- A Windows PC capable of booting into Safe Mode or the Windows Recovery Environment (WinRE).
- An internet connection for downloading driver updates.
- A USB flash drive (at least 8GB) if you need to perform a system repair or reinstall Windows.
- A Phillips-head screwdriver (if you need to physically reseat your RAM sticks).
- Access to another working computer if your primary PC cannot boot at all.
Step-by-Step
- Record the Stop Code: When the blue screen appears, look for the text in all caps at the bottom, such as "MEMORY_MANAGEMENT", "PAGE_FAULT_IN_NONPAGED_AREA", or "CRITICAL_PROCESS_DIED". This code tells you whether the issue is likely hardware (RAM) or software (drivers/OS). Note that menu labels and error descriptions can differ slightly depending on your version of Windows or system region.
- Boot into Safe Mode: If the PC crashes before you can do anything, force it into the Recovery Environment. Turn the PC on and off three times using the physical power button during the boot sequence. Once in the Automatic Repair screen, navigate to Advanced options > Troubleshoot > Advanced options > Startup Settings > Restart. After the restart, press 4 or F4 to enter Safe Mode. This loads only the most essential drivers, allowing you to troubleshoot without the crashing software interfering.
- Run Windows Memory Diagnostic: To check for RAM failure, type "Windows Memory Diagnostic" into the Start menu search bar and open the app. Select "Restart now and check for problems". The computer will reboot into a blue-screen environment (separate from the BSOD) and scan your RAM. If the tool reports hardware failures, one or more of your RAM sticks are physically damaged and must be replaced.
- Update or Roll Back Drivers: Many BSODs occur after a driver update. Right-click the Start button and select Device Manager. Look for any device with a yellow exclamation mark. Right-click the device and select Update driver. If the crashes started immediately after an update, right-click the device, select Properties, go to the Driver tab, and click Roll Back Driver to return to a stable version.
- Run SFC and DISM Scans: Corrupted system files can trigger software-based BSODs. Open the Start menu, type "cmd", right-click Command Prompt, and select Run as administrator. Type
sfc /scannowand press Enter. Once finished, typeDISM /Online /Cleanup-Image /RestoreHealthand press Enter. These tools compare your system files against a known healthy image and replace corrupted versions. - Uninstall Recent Software and Updates: If the BSOD started after installing a specific app or a Windows update, remove it. Go to Settings > Apps > Installed apps and uninstall the suspected software. For Windows updates, go to Settings > Windows Update > Update history > Uninstall updates and remove the most recent quality update.
- Physically Reseat the RAM: If the Memory Diagnostic tool found errors or if the crashes persist, shut down the PC and unplug the power cable. Open the case and locate the RAM slots. Press the clips on the sides of the RAM sticks to pop them out, then firmly push them back in until the clips click. Dust in the slots can cause intermittent connection issues that trigger BSODs.
- Test RAM Sticks Individually: If you have multiple RAM sticks, try booting the PC with only one stick installed at a time. If the PC is stable with Stick A but crashes with Stick B, you have identified the faulty module.
Common Mistakes
- Ignoring the Stop Code: Many users try generic fixes without looking at the error code. A "MEMORY_MANAGEMENT" error requires a different approach than a "VIDEO_TDR_FAILURE", which is almost always GPU-related.
- Updating Drivers in Safe Mode: While you can uninstall drivers in Safe Mode, some update utilities require full system services to run. It is better to download the driver in Safe Mode but install it during a normal boot or via a specialized installation tool.
- Overclocking RAM: Applying an unstable XMP (Extreme Memory Profile) or manual overclock in the BIOS can cause random BSODs. Users often forget they enabled these settings and spend hours troubleshooting software when the issue is actually an unstable voltage or frequency.
- Touching RAM Contacts: Touching the gold pins on a RAM module with bare fingers can leave oils or static electricity that interfere with the connection. Always hold RAM by the edges.
Tips
- Check Event Viewer: If the BSOD happens randomly, open Event Viewer > Windows Logs > System. Look for "Critical" or "Error" entries timed exactly when the crash occurred to find the specific file causing the crash.
- Use a Bootable Scanner: If the built-in Windows Memory Diagnostic is inconclusive, use a third-party tool like MemTest86 on a bootable USB drive. This tests the RAM outside of the Windows environment, ensuring no software interference.
- Keep a System Restore Point: Before updating major drivers or BIOS settings, create a restore point via Control Panel > System > System Protection. This allows you to undo changes in seconds if a BSOD occurs.
- Clean the RAM Slots: Use a can of compressed air to blow dust out of the motherboard RAM slots before reseating the modules to ensure a clean electrical contact.
Troubleshooting
If the computer continues to BSOD even after running SFC, updating drivers, and reseating the RAM, the issue may be deeper than a simple software glitch or a single faulty stick.
First, check if the BSOD occurs only during specific tasks, such as gaming or video rendering. If it only happens under load, it may be an overheating issue rather than a RAM failure. Use a hardware monitor to check CPU and GPU temperatures. If they exceed 90-100 degrees Celsius, the system may crash to protect itself.
If the PC fails to boot into Safe Mode or the Recovery Environment, you will need to create a Windows Installation Media USB on another computer. Boot from this USB, select "Repair your computer", and then try the "System Restore" or "Startup Repair" options. This bypasses the corrupted OS on the hard drive entirely.
In cases where the RAM is confirmed healthy but the crashes persist, the motherboard's memory controller or the CPU itself could be failing. This is rare but can be tested by moving the RAM sticks to different slots on the motherboard to see if a specific slot is dead.
Frequently Asked Questions
Can a virus cause a BSOD?
Yes, some malware targets system drivers or modifies critical kernel files, which can lead to system instability and blue screens. Running a full scan with official security software in Safe Mode is recommended.
Does a BSOD mean my RAM is definitely broken?
No. While RAM failure is a common cause, most BSODs are caused by software conflicts, outdated drivers, or corrupted registry keys. Always run a diagnostic test before assuming the hardware is dead.
Will resetting my BIOS fix a BSOD?
It can, especially if the crash is caused by unstable overclocking settings or incorrect memory timings. Resetting to "Optimized Defaults" in the BIOS removes these variables.
Why does my PC BSOD only when I open a specific app?
This usually indicates a conflict between that app and a driver (like your graphics driver) or a memory leak where the app consumes all available RAM, causing the system to crash.
Can a failing hard drive cause a RAM-related BSOD?
Yes. Windows uses a "Page File" on the hard drive as virtual memory. If the sector of the drive where the page file is stored becomes corrupted, Windows may report a memory management error even if the physical RAM is healthy.