Graphics Device Driver Error Code 31: How to Fix It on Windows 11 and 10

On this page
Error Code 31 in Device Manager means Windows cannot load the driver for a device; for a graphics card it reads: "This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)". The fix that works most often is a clean reinstall of the graphics driver: remove it completely (with Display Driver Uninstaller if needed) and install the latest driver from NVIDIA, AMD or Intel.
Code 31 at a glance
| Question | Answer |
|---|---|
| Where you see it | Device Manager → Display adapters → right-click the GPU → Properties → Device status |
| Symptoms | Low resolution, one screen only, no brightness control, games won't start, "Microsoft Basic Display Adapter" shown |
| Usual causes | Corrupted or wrong driver, failed Windows Update driver, leftovers from an old driver, damaged system files |
| Best fix | Clean driver reinstall (DDU in Safe Mode + latest driver from the GPU maker) |
| Is the GPU broken? | Rarely. Code 31 is almost always software. Code 43 is more often hardware |
Common causes of Code 31
- A driver update that was interrupted or installed the wrong version (for example a generic driver from Windows Update over a laptop maker's driver).
- Leftover files from an old NVIDIA/AMD/Intel driver after switching graphics cards.
- Corrupted Windows system files or driver store.
- Third-party "driver updater" tools installing mismatched drivers.
- On laptops with two GPUs: the Intel/AMD integrated graphics driver missing, so the dedicated GPU driver can't load.
How to fix Code 31 (in order)
1. Restart and check Windows Update
Restart the PC, then open Settings → Windows Update → Advanced options → Optional updates → Driver updates and install any display driver offered. Restart again and check Device Manager.
2. Update the driver from Device Manager
- Right-click Start → Device Manager → expand Display adapters.
- Right-click the graphics card → Update driver → Search automatically for drivers.
3. Roll back the driver
If Code 31 started after an update: Properties → Driver tab → Roll Back Driver (only available if an older driver is stored).
4. Uninstall and reinstall the driver
- Download the latest driver first: NVIDIA (nvidia.com → Drivers, or the NVIDIA app), AMD (amd.com/support, AMD Software: Adrenalin Edition), Intel (intel.com → Intel Driver & Support Assistant). On laptops, the maker's support page (Dell, HP, Lenovo, ASUS) has drivers tested for your model.
- In Device Manager, right-click the GPU → Uninstall device → tick "Attempt to remove the driver for this device" → Uninstall.
- Restart and run the driver installer you downloaded. Choose Custom → Clean installation (NVIDIA) or Factory Reset (AMD) if offered.
5. Clean uninstall with DDU (most reliable)
- Download Display Driver Uninstaller (DDU) from its official site (Wagnardsoft) and the latest GPU driver.
- Disconnect from the internet so Windows doesn't auto-install a driver.
- Boot into Safe Mode: Settings → System → Recovery → Advanced startup → Restart now → Troubleshoot → Advanced options → Startup Settings → Restart → press 4.
- Run DDU, pick your GPU brand and click Clean and restart.
- Back in normal Windows, install the downloaded driver, then reconnect to the internet.
6. Repair Windows system files
Open Terminal (Admin) and run, one at a time:
DISM /Online /Cleanup-Image /RestoreHealthsfc /scannow
Restart and reinstall the driver.
7. Laptops with two GPUs: install the integrated driver first
Install the Intel or AMD integrated graphics driver first, then the NVIDIA/AMD dedicated driver, ideally both from the laptop maker's page.
8. Update BIOS/UEFI and chipset drivers
Old firmware can stop a new GPU or driver from initializing. Install chipset drivers and any BIOS update from the motherboard or laptop maker (follow their instructions carefully and don't power off during the update).
9. Check the hardware (desktops)
Reseat the graphics card, connect both PCIe power cables, try another PCIe slot, and test the card in another PC if you can. See how to tell if your motherboard is dead if the PC itself misbehaves.
10. Reset Windows (last resort)
Settings → System → Recovery → Reset this PC → Keep my files reinstalls Windows and usually ends persistent driver errors.
Code 31 vs other Device Manager codes
| Code | Meaning | Typical fix |
|---|---|---|
| 10 | Device cannot start | Update/reinstall driver |
| 31 | Windows cannot load the required driver | Clean driver reinstall |
| 43 | Windows stopped the device because it reported problems | Reinstall driver; if it persists, often a hardware/power issue |
| 28 | Drivers not installed | Install the driver |
| 22 | Device is disabled | Right-click → Enable device |
FAQ
Can Code 31 affect devices other than graphics cards?
Yes: network adapters, Bluetooth, USB and audio devices can show it too. The same steps (update, roll back, uninstall/reinstall) apply.
Will Windows work without the graphics driver?
Yes, with the basic Microsoft display driver, but at limited resolution and without gaming or video acceleration.
Should I use driver updater apps?
No. Get drivers from Windows Update, the GPU maker or your PC maker; third-party updaters often cause these errors.
How do I check GPU health after fixing it?
Open Task Manager → Performance → GPU, and see how to check GPU usage.