
How to Defragment and Optimize Drives in Windows 11
How to Defragment and Optimize Drives in Windows 11
Keeping your drives optimized helps Windows 11 run faster. Here is how to defragment HDDs and TRIM SSDs using the built-in Optimize Drives tool.
Open Optimize Drives
Press Win + S and type Defragment. Click Defragment and Optimize Drives. You will see a list of all your drives with their current status.
HDD vs SSD — Different Needs
- HDD (hard disk drive) — needs defragmentation. Files scatter across the disk over time, slowing reads. Defragging reorganizes them.
- SSD (solid state drive) — does NOT need defragmentation. It uses TRIM instead, which clears unused space. Windows 11 handles this automatically.
The Optimize Drives tool detects your drive type and applies the correct operation automatically.
Analyze a Drive
Select a drive and click Analyze. Windows checks the fragmentation level. If it shows 10% or higher on an HDD, optimization is recommended.
Optimize Now
Select the drive and click Optimize. For HDDs this runs defragmentation. For SSDs it runs TRIM. The process may take several minutes for a full HDD.
Schedule Automatic Optimization
Click Change settings under Scheduled optimization. Set it to run Weekly for HDDs. SSDs are already optimized automatically by Windows 11 — no manual schedule needed.