You hit Update or Install in Steam, the progress bar stalls and Steam reports an error while updating or installing the game, with the words disk write error in brackets at the end. The steps come from Valve's own Steam Support pages and Microsoft's Windows Security documentation, credited below, and where something is our advice rather than theirs, we say so.
What the error actually tells you
Valve's Steam Support page on update and installation problems says this error "results when Steam is not able to complete the installation" and that "The specific reason for the error will be shown in the parenthesis at the end of the error message." So a disk write error is Steam telling you that writing the game's files to your drive failed. It doesn't say why.
In our view, the causes fall into five groups, and it's worth keeping them in mind as you work through the fixes: something temporarily holding a file open, folder permissions, security software blocking the write, a problem with the file system, or a drive that's starting to fail. The first fixes below are quick and harmless; the later ones take longer.
One useful clue before you start: if only one game fails, the problem is more likely to be that game's files. If several games on the same drive fail, suspect the library folder or the drive itself.
Step 1: Restart Steam and the PC
Close Steam properly rather than just closing its window: use the Steam menu and choose Exit, or right-click its icon in the system tray. Then restart the PC and try again. Valve calls this a good first step, explaining that restarting "flushes all kinds of system states and caches, while resetting other programs and releasing locks on files and other resources."
Step 2: Repair the Steam library folder
Valve says Steam library folders "need to be writable by all users in order to update properly", and that "Sometimes these user permissions break and need to be refreshed." Steam has a built-in fix:
Open Steam > Settings > Storage.
Select the drive that holds the game.
Open the ... menu and choose Repair Folder.
Approve the Windows permission prompt if one appears, then retry the update.
Step 3: Clear the download cache
Valve says clearing the download cache makes the Steam client "flush locally cached configuration data and acquire it from the Steam servers again." Go to Steam > Settings > Downloads and choose Clear Cache.
Step 4: Verify the game's files
If the game is already installed and an update is failing, ask Steam to check it. Right-click the game in your Library, choose Properties, open the Installed Files tab and click Verify integrity of game files. Valve notes that one or more files failing to verify "is normal for most Steam games", because they're local configuration files, and that "You can safely ignore this message." It also warns not to run verification while doing other heavy jobs such as defragmenting or virus scanning, or for several games at once. Our guide to verifying game files on PC covers the other launchers too.
Step 5: Check your security software
Valve says antivirus software "hooks very deep into user systems and can affect disk and network operations which will cause issues with Steam", and suggests adding exceptions for Steam in your antivirus, such as excluding Steam library folders from live scanning.
On Windows 11 there's a second thing to check. Microsoft's Windows Security feature called Controlled folder access protects chosen folders from apps it doesn't trust, and Microsoft says that if an app tries to save to a protected folder, "that means the app you're using is blocked from saving to that location." If you've turned it on, or added your games drive to its protected folders, it can stop Steam writing game files. Open Windows Security > Virus & threat protection > Manage ransomware protection and either allow Steam through Controlled folder access or remove the Steam library from the protected folders. Microsoft advises being "thoughtful about which apps you add", so only allow apps you trust. Our guide to adding an exclusion in Microsoft Defender shows the related scanning exclusion.
If you use third-party antivirus, check its quarantine and blocked-apps list for Steam or the game, then add an exception rather than turning protection off permanently.
Step 6: Check the drive for errors
Valve's advanced troubleshooting says "All storage drives/devices can be affected by file corruption, especially if it is older or running under a heavy load", and points Windows users to This PC, right-click the drive, Properties > Tools > Error checking. Our guide to checking a drive for errors with CHKDSK explains the options and what the results mean.
While you're there, check the drive's health. Our guides to checking SSD health and what a CrystalDiskInfo Caution or Bad rating means show how. In our view, if a drive's health warning is showing, back up anything you can't replace before you try anything else, because repeated failed writes on a struggling drive put the rest of its data at risk.
Step 7: Move the game to another drive
If the error keeps coming back on one drive, test another. Valve suggests that "It can be very helpful to test the issue by installing on an alternate hard drive": add a new library folder with Steam > Settings > Storage and the + button, then install or move the game there. Our guide to moving Steam games to another drive walks through it. If the game installs fine on the second drive, the first drive or its file system is the likely problem.
Step 8: If it still fails
Valve's page lists a few more checks worth trying in order:
Turn off overclocking. Valve says running hardware outside the maker's recommended settings "can cause memory and file corruption" and should be disabled, usually in the BIOS. That includes memory profiles if you suspect them; our guide to fixing crashes after enabling XMP or EXPO explains how to test that.
Test your RAM. Valve notes that "Memory errors can cause issues with the Steam installation process" and suggests Windows Memory Diagnostic (search for mdsched). See Windows Memory Diagnostic vs MemTest86 for which to use.
Look for interfering programs. Valve's list of programs that can interfere with Steam includes VPNs, firewalls, anti-spyware tools and download managers.
Reinstall Steam into the same folder. Valve says doing so "will preserve all installed games", but warns that uninstalling Steam "will delete all game content", so reinstall over the top rather than uninstalling first.
If none of that helps, contact Steam Support from the Help menu in Steam. In our view, it's worth including a screenshot of the full error message and a list of what you've already tried.