A blue screen usually means your operating system has crashed and cannot recover on its own
A blue screen — technically called a stop error or blue screen of death (BSOD) — appears when Windows encounters a problem it cannot fix while running. The screen turns blue, displays an error message and sometimes a code, and your computer either restarts automatically or freezes. This is a safety feature: rather than risk data corruption or hardware damage, Windows shuts down.
The cause is almost always one of five things: a driver that conflicts with your hardware, a recent software update that broke something, a failing hard drive or memory module, overheating, or malware. Most blue screens are fixable without replacing parts. The error code on the screen — if you can read it before the restart — tells you which one.
Key Takeaways
- Write down the error code shown on the blue screen, or take a photo; it narrows the cause from dozens of possibilities to one or two.
- Restart in Safe Mode (hold Shift while clicking Restart, then select Troubleshoot) to see if the problem is a recently installed driver or program.
- Check your hard drive and memory with built-in Windows tools before assuming hardware failure.
- Overheating is common in laptops and desktops with dust buildup; cleaning vents and checking fan speed can prevent crashes.
- If blue screens started after a Windows update, rolling back that update often solves the problem within minutes.
How to read the error code and what it tells you
The blue screen displays a stop code — usually a hexadecimal number like 0x0000007E or a name like DRIVER_IRQL_NOT_LESS_OR_EQUAL. This code is the key to fixing the problem. Take a photo of the screen or write down the code before the computer restarts, because you will need it to search for solutions specific to your situation.
Common codes include DRIVER_IRQL_NOT_LESS_OR_EQUAL (a driver is conflicting with hardware), SYSTEM_SERVICE_EXCEPTION (a Windows service or driver crashed), MEMORY_MANAGEMENT (your RAM is failing), and CRITICAL_PROCESS_DIED (a core Windows process stopped). Each one points to a different fix. If you cannot read the code before restart, check Windows Event Viewer after the next boot: press Windows key + R, type eventvwr.msc, and look in the Windows Logs section for Critical errors with timestamps matching your crash.
Restart in Safe Mode to isolate the problem
Safe Mode loads Windows with only essential drivers and services, which tells you whether the crash is caused by something you installed or by Windows itself. If your computer does not blue screen in Safe Mode, the problem is almost certainly a driver, a program, or a recent update — not a hardware failure.
To enter Safe Mode on Windows 10 or 11, restart your computer. While it is restarting, hold the Shift key and click Restart from the lock screen or sign-in screen. Select Troubleshoot, then Advanced Options, then Startup Settings, then Restart. Your computer will show a menu; press 4 or F4 for Safe Mode. If the blue screen does not happen in Safe Mode, restart normally and uninstall any drivers or programs you installed in the last few days. If the blue screen still happens in Safe Mode, the problem is likely hardware or a core Windows file.
Check your hard drive and memory with Windows built-in tools
Before you assume your hard drive or RAM is failing, run the diagnostic tools Windows provides. These are free and take 10 to 30 minutes. Open Settings, go to System, then About, and scroll down to find "Diagnostics" or "Recovery options." Look for "Run now" next to "Reset this PC" or search for "Memory Diagnostic" in the Start menu.
The Memory Diagnostic tool checks your RAM for errors. It will restart your computer, run a test, and report any problems when you log back in. If it finds errors, your RAM is failing and needs replacement. The hard drive check is built into Windows as well: right-click your C: drive in File Explorer, select Properties, go to the Tools tab, and click "Check." Windows will schedule a scan for the next restart. If either test reports problems, that is your answer — the hardware itself is damaged and must be replaced.
Uninstall or roll back recent drivers and updates
If Safe Mode worked but normal mode crashes, a driver or Windows update is the culprit. Check what you installed or updated in the last few days. If you installed a graphics driver, chipset driver, or any other hardware driver, uninstall it: go to Device Manager (right-click the Start button and select it), find the device, right-click it, and select Uninstall Device. Restart and let Windows reinstall the default driver.
If the crashes started after a Windows update, roll back the update. Go to Settings, System, About, and scroll to "Windows Update." Click "Update history," then "Uninstall updates." Find the most recent update, right-click it, and select Uninstall. Restart your computer. If the blue screens stop, that update was the problem. You can prevent it from reinstalling by going to Settings, Update & Security, Advanced Options, and pausing updates for a week while you wait for Microsoft to release a fix.
Check for overheating and clean dust from vents
Overheating causes blue screens because your CPU or GPU throttles or shuts down to protect itself. Laptops are especially prone to this because vents clog with dust. Feel the air coming from your computer's vents while it is running; if it is barely warm or if the fan is very loud, overheating may be the cause.
Clean the vents with compressed air — hold the can upright and use short bursts, or use a handheld electric duster. For a laptop, blow air into the vents from the sides and back, not straight into them. If you are comfortable opening the case, you can clean the heatsink and fan directly, but this voids some warranties. After cleaning, restart and monitor whether crashes continue. You can also read a free tool like HWiNFO to check your CPU and GPU temperatures while running; temperatures above 90°C (194°F) under load suggest overheating.
Scan for malware if other causes are ruled out
Malware rarely causes blue screens directly, but it can corrupt system files or drivers in ways that do. If you have ruled out drivers, updates, hardware failure, and overheating, run a malware scan. Windows Defender (built into Windows) is sufficient for most cases. Open Windows Security (search for it in the Start menu), go to Virus & threat protection, and click "Scan options." Select Full scan and run it. This takes an hour or more but checks every file on your drive.
If you suspect more serious malware, read Malwarebytes (free version available) from a different computer, transfer it on a USB drive, and run it on the affected computer in Safe Mode. Malwarebytes is more aggressive than Windows Defender and catches things Defender misses. If a scan finds and removes malware, restart and test whether the blue screens stop.
What to do if nothing above fixes the problem
If you have tried Safe Mode, checked your hard drive and memory, rolled back updates, cleaned for overheating, and scanned for malware and the blue screens continue, you have a hardware failure that requires replacement or a Windows installation that is too corrupted to repair. At this point, your options are to replace the failing component (usually the hard drive or motherboard, identified by the error code and diagnostic tests), reinstall Windows from a USB drive, or take the computer to a repair shop.
Before you do any of those, write down the exact stop code and search for it online with your computer model number. Someone else has likely hit the same code and posted a solution. If the code is specific to your hardware (like a graphics card model), a driver update or BIOS update from the manufacturer might fix it without replacement.
Frequently Asked Questions
Can I prevent blue screens from happening again?
Keep Windows and your drivers updated, avoid installing untrusted software, and keep your computer clean and cool. Most blue screens are caused by outdated or conflicting drivers, so updating them regularly helps. If you have had a blue screen, note the stop code; if it happens again with the same code, you know the fix worked or did not.
Is a blue screen the same as a crash or freeze?
No. A blue screen is a controlled shutdown by Windows when it detects a critical error. A freeze is when your computer stops responding but does not show the blue screen. A crash usually means the program closed unexpectedly. Blue screens are actually safer because Windows is protecting your data; a freeze or crash can corrupt files.
Do I need to replace my computer if I see a blue screen?
Almost never. Most blue screens are fixed by uninstalling a bad driver, rolling back an update, or cleaning dust. Hardware failure (hard drive, RAM, or motherboard) is less common and usually identified by diagnostic tools. Even if hardware is failing, you can often replace just that part rather than the whole computer.
Why does my computer restart automatically after the blue screen?
Windows is set to restart automatically after a stop error by default. This is meant to get you back to work quickly, but it also hides the error code. If you want to read the code, right-click the Start button, select System, scroll to "About," and under "Related links" find "Advanced system settings." Go to the Advanced tab, click Settings under Startup and Recovery, and uncheck "Automatically restart." The next blue screen will stay on screen until you restart manually.
What if the blue screen happens only when I play games or use certain programs?
This usually points to a graphics driver conflict or overheating under load. Update your graphics driver (NVIDIA, AMD, or Intel depending on your card) from the manufacturer's website, not Windows Update. If crashes continue, lower the graphics settings in the game or program to reduce the load on your GPU. If the computer still crashes, your graphics card may be failing and needs replacement.