Skip to content
Follow
Windows

How to Defragment Windows 11 for Better Performance

Richard
Written by
Richard
Aug 5, 2021 Updated Jun 19, 2026 2 min read
How to Defragment Windows 11 for Better Performance
How to Defragment Windows 11 for Better Performance

You defragment Windows 11 by optimizing your hard drive to reorganize scattered file data and improve PC performance.

File fragmentation occurs when pieces of a single file become spread across your storage drive. This scattering makes your computer work harder to find and access them, slowing down operations.

Defragmentation consolidates these dispersed file segments, allowing Windows 11 to read and open files more quickly. This process directly boosts your PC’s overall responsiveness and speed.

For instance, optimizing a traditional Hard Disk Drive (HDD) significantly reduces file access times. Windows 11’s built-in optimization tool also benefits Solid State Drives (SSDs), though it performs a slightly different function called TRIM.

⚡ Quick Answer

Defragment Windows 11 by opening Settings, navigating to System > Storage > Advanced storage settings > Drive optimization. Select your drive and click Optimize to reorganize fragmented files for better performance.

How to Defragment Your System Drive

You can defragment your Windows 11 system drive right from the Settings app to help your computer run faster.

  1. Open the Settings app by pressing Windows key + I or by clicking Start and selecting Settings.
Windows 11 Start menu accessing Settings
windows 11 start settings

  1. Click on System, then select Storage on the right side of the screen.
Windows 11 System Storage settings interface
windows 11 system storage

  1. Click on Advanced storage settings.
Advanced storage settings in Windows 11
advanced storage settings

  1. Select Drive optimization from the menu.
Windows 11 Drive Optimization tool interface
windows 11 drive optimization

  1. You will see a list of your drives and their current status.
Windows 11 defragmentation tool turned off
windows 11 defragmention off

If you want to set a specific time for this to run, make sure Schedule optimization is turned off by clicking Change settings.

How to Schedule Defragmentation

Windows 11 usually defragments your drives automatically, but you can schedule it to run at a specific time if you want to, using the Task Scheduler.

📝Note
This process requires admin privileges.
  1. Search for Task Scheduler in the search bar and open the app.
Windows 11 Task Scheduler application window
windows 11 task scheduler app

  1. In the menu on the left, go to Task Scheduler Library %📂%LNK0%% > Microsoft > Windows > Defrag.
Task Scheduler setup for defragmentation
task scheduler defrag

  1. Double-click the defrag schedule or click Properties on the right side.
Windows 11 defragment task schedule triggers
windows 11 defragment task schedule triggers

  1. Click the Triggers tab and click New to choose your preferred time and frequency.
Windows schedule for defragmentation triggers
windows schedule defrag triggers

  1. Click OK to save your settings. Finally, right-click the task and select Enable to turn it on.
Enabling scheduled task for Windows 11 defrag
windows 11 enable schedule task defrag

Summary

Defragmenting your Windows 11 drive helps organize files, making your computer find them quicker and improving overall performance.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Enable Task Scheduler History in Windows 11
Windows How to Enable Task Scheduler History in Windows 11
How to Access Windows Tools in Windows 11
Windows How to Access Windows Tools in Windows 11
How to Access Settings in Windows 11
Windows How to Access Settings in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *