What the screen is telling you

A "blue screen" (Microsoft now calls them stop code errors, and on recent Windows 11 versions the screen may be black) means Windows hit a problem it couldn't recover from and restarted to protect your data. It usually says "Your device ran into a problem and needs to restart."

  • The stop code at the bottom, such as MEMORY_MANAGEMENT or PAGE_FAULT_IN_NONPAGED_AREA, names the kind of failure.
  • What failed, if shown, names a file, often a driver ending in .sys. That points straight at the device or app to fix.
  • Take a photo with your phone; the screen disappears fast.

If it happened once and the PC restarted normally, you can usually ignore it. Act when the same code keeps coming back.

Fix it step by step

  1. Remove new hardware. Shut down and disconnect anything you added just before the crashes started: a dock, drive, webcam, memory or graphics card. Restart and see if the crashes stop.
  2. Install every update. Go to Start > Settings > Windows Update > Check for updates. Install everything, including optional driver updates, and restart.
  3. Check Device Manager. Right-click the Start button and choose Device Manager. Look for a device with a yellow exclamation mark, right-click it and choose Update driver. If that doesn't help, disable or uninstall that device.
  4. Free up disk space. Microsoft recommends keeping about 10% to 15% of the system drive free, because Windows needs room for its swap file.
  5. Repair system files. Type command prompt in the taskbar search, right-click it and choose Run as administrator. Run DISM.exe /Online /Cleanup-image /Restorehealth and wait for "The operation completed successfully." Then run sfc /scannow and wait for "Verification 100% complete."
  6. Undo recent changes. If the crashes began after an update, a new app or a new driver, use System Restore or Uninstall Updates (see below).

If it crashes too fast to fix: use Safe Mode

Safe Mode starts Windows with only basic drivers, which often stops the crashing long enough to repair it.

  1. Open the recovery screen. From a working desktop, hold Shift while you click Restart in the Power menu. If Windows won't stay up, turn the PC off at the logo twice; the third start opens Automatic Repair. Choose Advanced options.
  2. Go to Troubleshoot > Advanced options > Startup Settings > Restart.
  3. Press 4 (or F4) for Safe Mode, or 5 (or F5) for Safe Mode with Networking if you need to download a driver.
  4. In Safe Mode, uninstall the app or driver you added last, then run steps 3 to 5 above.

The same Advanced options menu also has System Restore (rolls back system files and settings, keeps your documents) and Uninstall Updates (removes the latest Windows update).

Common causes and what to try

  • Crashes started right after a Windows update: Uninstall Updates from the recovery menu, then wait for the next update before reinstalling.
  • The screen names a .sys file: search the file name to see which device or program it belongs to, then update or remove that driver. Graphics, Wi-Fi, antivirus and VPN drivers are frequent culprits.
  • Security software: third-party antivirus runs deep inside Windows. In July 2024 a faulty CrowdStrike update caused 0x50 and 0x7E stop codes on Windows PCs. Update or temporarily uninstall your security suite; Windows Security takes over automatically.
  • WHEA_UNCORRECTABLE_ERROR: the hardware itself reported an error. Microsoft's order is Windows Update, then the driver for the named device, then System Restore or Startup Repair.
  • Memory-related codes (MEMORY_MANAGEMENT and similar): remove any newly added RAM, undo overclocking or "game boost" tuning, and test the memory with the built-in Windows Memory Diagnostic (search for it from Start).
  • Crashes when the PC is hot or under load: clean the vents, keep laptops off soft surfaces, and check for a BIOS/firmware update on the maker's support site.

If nothing works

  1. Back up your files to OneDrive or an external drive while the PC still runs.
  2. Use Reset this PC in Settings > System > Recovery (or in the recovery menu). Choose Keep my files first; apps will need reinstalling.
  3. If it still crashes on a freshly reset Windows with nothing added, the cause is almost certainly hardware: memory, drive or motherboard. Contact the PC maker while it's under warranty.

Good to know

  • A single blue screen after a power flicker or a driver update isn't a sign the PC is dying.
  • Stop codes are always shown in English, even on Windows set to Spanish or Chinese, which makes them easy to look up.
  • Never download "driver updater" or "registry cleaner" programs to fix crashes; get drivers from Windows Update or the PC or part maker.
  • If you're asked for a BitLocker recovery key in the recovery menu, you need it to continue; on work PCs, ask IT.

People also ask

Is a blue screen a virus?

Rarely. Most stop codes come from drivers, recent updates, security software or failing hardware. Run Windows Security if you suspect malware, but start with drivers and updates.

Where do I find the stop code after the PC restarts?

It's shown on the crash screen itself, so photograph it next time. Windows also records crashes in Reliability Monitor, which you can open by searching for "reliability" from Start.

Will System Restore delete my files?

No. It rolls back system files, drivers and settings to an earlier point but leaves your documents, photos and other personal files alone.

Why does my screen show a black screen with a stop code instead of blue?

Recent versions of Windows 11 show the same stop code error on a black background. The meaning and the fixes are the same.

Can a blue screen damage my PC?

The crash itself doesn't damage hardware, but unsaved work is lost and repeated crashes can corrupt files. Fix the cause and keep a backup.

When should I just reset Windows?

After you've updated Windows and drivers, removed new hardware and run DISM and sfc. Reset this PC with Keep my files solves most software causes that remain.

All quick answers