If Device Manager is showing a yellow warning icon next to your display adapter, you’ve probably run into the graphics driver error code 31. It usually reads something like: “This device is not working properly because Windows cannot load the drivers required for this device.” The good news? In most cases this is a driver-level problem, not a dead graphics card, and it’s fixable in a few minutes.
Quick Answer
Graphics driver error code 31 almost always means Windows failed to load your GPU’s driver properly. The fastest fix is usually a clean driver reinstall using Display Driver Uninstaller (DDU), followed by installing the latest driver straight from NVIDIA, AMD, or Intel. If that doesn’t work, an SFC scan or a Windows/BIOS update usually clears it up.
What Causes Code 31 on a Graphics Card?
Code 31 shows up when the function driver for your device fails to load correctly, similar to Code 43 device conflicts. On graphics cards specifically, this is typically triggered by:
- A corrupted or incomplete driver installation
- Leftover files from a previous driver conflicting with the new one
- A recent Windows update changing how it handles the device
- Outdated or mismatched GPU drivers
- Corrupted Windows system files
Fix 1: Restart and Reseat the Connection
Before touching any drivers, restart your PC. This alone resolves the error for some users, especially if it was triggered by a temporary glitch. If you’re on a desktop, it’s also worth shutting down completely, opening the case, and reseating the GPU in its PCIe slot — a loose connection can sometimes trigger this exact code.
Fix 2: Update the Driver Through Device Manager
This is the first thing to try, even though it doesn’t always fix a stubborn Code 31 — it’s another common Device Manager error that gets resolved the same way:
- Press Win + X and select Device Manager
- Expand Display adapters
- Right-click your graphics card and choose Update driver
- Select Search automatically for drivers
- Restart your PC once the update finishes
Fix 3: Do a Clean Driver Reinstall with DDU
This is the fix that resolves Code 31 for most people, because it removes every trace of the old driver instead of installing over it:
- Download Display Driver Uninstaller (DDU) and boot into Safe Mode
- Run DDU, select your GPU brand (NVIDIA, AMD, or Intel), and choose Clean and restart
- After reboot, don’t let Windows auto-install a generic driver — go straight to the manufacturer’s site
- Download and install the latest driver manually
- Restart once more and check Device Manager for the error
Fix 4: Download the Official Driver Directly
Skip Windows Update for this one and go to the source:
- NVIDIA: nvidia.com/drivers
- AMD: amd.com/support
- Intel: intel.com/content/www/us/en/support
Manufacturer drivers are usually more current and better tested against Code 31-style loading failures than whatever generic package Windows Update grabs. If you run into NVIDIA app installation errors while downloading through the app, grabbing the standalone installer from the site above usually sidesteps the issue.
Fix 5: Run an SFC Scan
If the driver itself is fine but Windows system files are corrupted, no driver install will stick. Run a system file check:
- Open Command Prompt as Administrator
- Type
sfc /scannowand press Enter - Let it finish, then restart your computer
Fix 6: Update Windows and Your BIOS
Microsoft has occasionally pushed cumulative updates that caused new GPU driver conflicts, later fixed in follow-up patches. Make sure Windows is fully updated under Settings > Windows Update. If the issue persists after that, an outdated motherboard BIOS can also interfere with how the GPU is initialized — here’s how to update your BIOS safely to rule that out.
Frequently Asked Questions
Does Code 31 mean my graphics card is broken?
Not usually. Code 31 is almost always a driver-loading issue rather than hardware failure. If a clean driver reinstall and BIOS update don’t fix it, hardware failure becomes more likely, but it’s rarely the first explanation.
Why does Code 31 keep coming back after I fix it?
This usually means Windows Update is silently reinstalling an older or generic driver over your manual install. You can prevent this by disabling automatic driver updates for that specific device in Device Manager.
Is DDU safe to use?
Yes, Display Driver Uninstaller is a widely trusted, free tool built specifically for removing GPU drivers cleanly. Just make sure you download it from its official site and run it in Safe Mode for best results.
Can a Windows update cause graphics driver error code 31?
Yes. There have been cases where Windows 11 cumulative updates disrupted NVIDIA and AMD driver behavior, causing errors like this until a follow-up patch or updated driver was released.


