Your PC stopped with a blue or black screen showing Stop code: MEMORY_MANAGEMENT, then restarted. It may happen at random, under heavy use such as games or video editing, or soon after memory was added or the PC was moved.

What it means

Windows keeps careful records of which parts of the PC's memory (RAM) are in use and by what. This stop code means Windows found those records damaged or out of step, which Microsoft describes as a severe memory management error. Rather than carry on and risk damaging your files, it stops.

Several versions of this code point to a hardware fault in the memory itself. Others come from a driver that mishandles memory. The steps below test both, starting with the ones that change nothing.

Common causes

  • A faulty memory module, or one that was recently added, moved or knocked loose.
  • A faulty or outdated driver.
  • Damaged Windows system files.
  • Errors on the drive, which Windows also uses to hold memory it has set aside.
  • Memory speed settings changed in the PC's firmware (BIOS or UEFI), for example to run the memory faster than standard.

Fix 1: Undo recent changes

10 to 20 minutesChanges settings

If the crashes started after new memory was fitted, a driver was updated or an app was installed, that change is the first thing to undo.

  1. If memory was added recently, have it taken out again by whoever fitted it, and see whether the crashes stop.
  2. If you installed an app or driver shortly before the crashes began, uninstall it:

    Windows 11

    Settings, then Apps, then Installed apps, then select … beside it and choose Uninstall.

    Windows 10

    Settings, then Apps, then Apps & features, then select it and choose Uninstall.
  3. If you or a repair shop changed the memory speed settings in the firmware, ask for them to be put back to the defaults.
  4. Restart the PC.

Did that fix it?

No, try fix 2

Fix 2: Install updates and the latest drivers

20 to 60 minutesChanges settings

Updates fix known driver faults and replace Windows files. Ruling out an already-fixed problem saves time before you test the hardware.

  1. Open Windows Update:

    Windows 11

    Settings, then Windows Update

    Windows 10

    Settings, then Update & Security, then Windows Update
  2. Select Check for updates, install everything offered and restart.
  3. For graphics and chipset drivers, and any BIOS update for your model, use your PC maker's support site. Never use a "driver download" site.

Did that fix it?

No, try fix 3

Fix 3: Test the memory with Windows Memory Diagnostic

20 minutes to 2 hoursSafe

This is the most useful test for this code. Microsoft suggests it for checking problems with the physical memory modules. It runs before Windows loads, so nothing else gets in the way.

  1. Save your work and close your apps.
  2. Press Windows logo key + R, type the command below and select OK.
    Type this in Run box
    mdsched.exe
    How do I open Run box?

    Press the Windows logo key and R together, type the text into the Open box and select OK.

  3. Select Restart now and check for problems (recommended). The standard test starts by itself after the restart.
  4. For a more thorough test, press F1 while it runs, use the arrow keys to set Test Mix to Extended, and press F10. The extended test can take an hour or more.
  5. When you sign in again, a notification shows the result.

If the test reports memory errors, one of the memory modules is very likely faulty. Go to fix 6. A clean result is good news, but it doesn't completely rule out memory, so carry on with the next fixes.

Did that fix it?

No, try fix 4

Fix 4: Repair system files with DISM and SFC

20 to 40 minutesChanges settings

If the memory tests clean, damaged system files are the next suspect. These two built-in commands check Windows' files and replace damaged ones. Your personal files are not touched.

  1. Open Command Prompt as administrator.
  2. Type each command and press Enter. Wait for the first to finish before typing the second.
    Type this in Command Prompt, as administrator
    DISM.exe /Online /Cleanup-image /Restorehealth
    sfc /scannow
    How do I open Command Prompt as administrator?

    Select Start and type cmd. Right-click Command Prompt in the results and choose Run as administrator. Select Yes if Windows asks for permission.

  3. Restart the PC when both have finished.

Did that fix it?

No, try fix 5

Fix 5: Check the drive

10 to 30 minutesChanges settings

Windows moves some memory contents to the drive when RAM fills up. Errors on the drive can damage that data when it comes back, which can look like a memory fault.

  1. Open Command Prompt as administrator, type this command and press Enter:
    Type this in Command Prompt, as administrator
    chkdsk C: /scan
  2. If it says problems need fixing, type chkdsk C: /f and press Enter. Type Y when asked whether to check the drive the next time the system restarts, then restart.

Did that fix it?

No, try fix 6

Fix 6: Have the memory reseated or replaced

If the memory test reported errors, or the crashes continue after every fix above, the memory modules need checking by hand. A module that has worked loose can be pushed back into place, which is known as reseating. A faulty one has to be replaced.

  1. If the PC is under warranty, go to your PC maker through its support site and mention the memory test result.
  2. Otherwise, take it to a local repair shop. Ask them to test each memory module on its own, reseat the modules, and replace any that fail with ones that match your PC.
  3. If you are confident opening a desktop PC, your PC maker's manual or support site shows where the memory sits and how its clips release. Shut down and unplug the PC first.

Did that fix it?

For the general order of fixes for any stop code, read What to do after a blue screen. Memory faults can also show up as IRQL_NOT_LESS_OR_EQUAL or CRITICAL_PROCESS_DIED. If many different stop codes appear, faulty memory is a strong suspect.