Windows 10 / How to Defragment a Hard Drive and Optimize an SSD
In Windows 10, search for Defragment and Optimize Drives, open it, select the hard disk drive (HDD), and choose Analyze or Optimize. Use the same tool for a solid-state drive (SSD). Windows chooses the appropriate maintenance for the type of drive.
Open Optimize Drives
Search the taskbar for defrag and open Defragment and Optimize Drives. To get there from File Explorer, press Windows+E and follow these steps.
- Under This PC, right-click a local drive and select Properties. You can choose a different drive to optimize once the utility opens.
- On the Tools tab, select Optimize under Optimize and defragment drive. This opens the list of drives.
Choose the right action for an HDD or SSD
In Optimize Drives, check the drive letter and the Media type column together. For example, C: might be an SSD and D: an HDD on the same computer. Drive letters vary from one PC to another.
HDD. When parts of a file are far apart, the drive’s read head has to move farther. Select Analyze and look at the fragmentation percentage under Current status. If D: shows OK (0% fragmented), leave it as it is. If the status indicates that it needs attention, select Optimize to bring the fragments together.
SSD. When you select Optimize, Windows can use TRIM to tell the SSD which areas no longer contain data it needs to keep. Leave Windows’ automatic maintenance enabled and let it choose the operation instead of forcing hard-drive defragmentation with a separate utility.
When the operation ends, check Last run and Current status for that drive. An HDD can take some time, depending on its size and how fragmented it is.
Microsoft Support guide to drive optimization
Check or change the automatic schedule
Windows schedules optimization weekly by default. Under Scheduled optimization, choose Change settings and select daily, weekly, or monthly while the schedule is enabled. Use Choose to confirm which drives are included.
Save the settings and reopen the dialog to verify the frequency. Return to the same menu to restore your previous schedule. If a laptop keeps missing scheduled runs, try leaving it plugged in. Automatic maintenance may skip the task while it is on battery power.
What to do if optimization stalls or the PC is still slow
An HDD with little free space may only be partly defragmented. Microsoft specifies at least 15% free space on the volume for a full defragmentation. Free space by removing files you no longer need or moving large files to another drive, then run the analysis again.
If the drive status looks normal but the PC is still slow, open Task Manager and check the Processes tab for heavy disk use before optimizing again. If read errors recur or the drive repeatedly disappears, back up the important files you can still read to another device first.
Microsoft Learn documentation on defragmentation requirements and scheduling




