Learn how to quickly and easily defragment a hard disk using built-in options in Windows 11 and Windows 10.
If you are using a mechanical hard disk, you should defragment it periodically to improve its read speed and lifespan. Thankfully, both Windows 10 and Windows 11 have a built-in tool to not only analyze how fragmented your hard disk is but also defragment it when needed with a single click.
In this quick and easy guide, I will show you the steps to defragment a hard disk in Windows 11 and Windows 10. Let’s get started.
Before You Start
- SSDs (Solid State Drives) don’t require defragmentation. Even if you try to do it by following the steps below, Windows will instead send a TRIM command.
- Depending on how big your mechanical hard disk is and how fragmented it has become, it takes time to complete the process. While the defragmentation process is running, please don’t turn off your system.
- You can also defragment external mechanical hard disks.
Steps to Defragment Hard Disk in Windows 11 & 10
- Open the Start menu by pressing the “Windows” key.
- Search “Defragment and Optimize Drives” and click “Open“.
- Select the drive to defrag.
- Click the “Optimize” button.
- Windows starts defragmenting the drive.
- Once done, you can proceed to the next drive or close the Defragment tool.
Detailed Steps (With Screenshots)
First, we need to open the Defragment tool. To do that, open the Start menu by pressing the “Windows key” on your keyboard. Next, search for “Defragment and Optimize Drives” and select the “Open” option.

In the Defragment tool window (Optimize Drives), you will see a list of all the drives in your system. The program also helpfully tells if a drive needs defragmentation under the “Status” section. If it says “Needs Optimization”, then the drive needs to be defragged. If it says “OK”, there is no need for any optimization.
If you want, you can force Windows to analyze if a drive is fragmented. To do that, select the drive and click the “Analyze” button.
To defragment a drive, select it in the main list and click the “Optimize” button. You can defrag multiple drives at once, select them while holding down the “Ctrl” key, and then click the “Optimize” button.
As soon as you press the Optimize button, Windows will defragment the drive and optimize it. Depending on the drive size and how fragmented it is, the optimization will take some time to complete.

As I said earlier, if you are using an SSD, you don’t need to perform defragmentation. However, if you proceed and press the “Optimize” button, Windows will send the TRIM command instead of performing defragmentation.
Once the defragmentation is complete, the tool will let you know the same. You can safely close the Defragmentation tool.
What Is Disk Fragmentation in Mechanical Hard Drives?
Whenever you create a new file, copy data, or modify a file, Windows writes the data to the disk in Clusters. You can think of Clusters as small sections that can contain a limited capacity of data. In general, the data you write to the disk occupies multiple clusters. The bigger the file, the more clusters it will occupy.
The operating system doesn’t necessarily write data to clusters that are side-by-side to increase the write performance and speed. That way, it doesn’t waste time or cluster space. For example, let’s say you copied a Word document to your computer. At first, Windows assigns specific clusters to store that Word document. After some days, you modified the document, which increased its file size. In that case, Windows has to look for new clusters to save the new data because the clusters next to it might already be occupied with data from other files. The new clusters can be anywhere on the disk. Put simply, the data is fragmented across the disk, causing Disk Fragmentation.
Though the fragmentation increases write performance, it can negatively affect the read performance of a disk. For instance, it is easier for Windows to grab data in side-by-side clusters than go to an entirely new location.
To alleviate the problem, Windows has a built-in mechanism called Disk Defragmentation. On running this tool, it reorganizes the data so that it is no longer fragmented. By default, defragmentation runs on schedule and requires no user intervention. However, if the disk is slow, it is better to run the defragmentation tool manually to be sure.
—
That is all. I hope you now understand why a mechanical hard disk requires defragmentation from time to time and how you can do it manually when needed. If you have any questions or need help, comment below. I’ll be happy to assist.
What to do if the drag status reads “never run”?
It simply means that Windows never ran defragmentation. It’s perfectly normal. If you want, you can run it manually as shown in the guide.