How to defrag Windows 10

How to defrag Windows 10
Image Credit: Future Publishing (Image credit: Future Publishing)

It’s simple to defragment – or 'defrag' – your storage in Windows 10. If you have a hard drive you’ve been using for a long time without disk defragmentation, you may have noticed performance steadily slowing down. 

That likely means it’s time to perform a defrag on that drive.

Before we begin, you should ensure the drive you plan to defrag is a hard drive and not a solid state drive (SSD). The Windows 10 defrag tool can tell you which type of drives you have.

We’ll jump straight into the instructions for defragging a hard drive now, but just note that you should not defrag a solid state drive (SSD), and we’ll explain why after the instructions on defragging a hard drive in Windows 10.

First, let’s get the Windows 10 Defrag tool open.

How to defrag Windows 10

Image Credit: TechRadar
  • Step one: Press the Windows Key and type 'defrag' into the search bar, then select “Defragment and Optimize Drives” from the results.

If your search bar is misbehaving or you don’t see the above results, you can also reach the tool by opening the Control Panel, selecting System and Security, and then selecting “Defragment and optimize your drives” underneath the Administrative Tools header. 

You can get to the Control Panel by pressing the Windows Key and typing “Control Panel” into the search bar and selecting the result or you can open the Start Menu, scroll down to the Windows System folder, open it, and select Control Panel from inside.

How to defrag Windows 10

Image Credit: TechRadar
  • Step two: Examine the list of your computer’s drives in the Defrag tool, and find the hard drive you want to defrag.
  • Step three: Check the “Media Type” column for your drive and ensure it is not a solid state drive (SSD). Only proceed with defragmentation for a hard drive.
  • Step four: Click on the drive you want to defrag, then press the “Optimize” button below the list of drives. 

Windows 10 may prompt you to approve the action before it proceeds. 

  • Step five: Sit back and let the Defrag tool work. Depending on the size of your drive and the level of fragmentation, it may take a considerable amount of time to complete. 
  • Step six (optional): If you’d like Windows 10 to defrag your drive on a regular basis, you can turn on scheduled optimization inside the Defrag tool. Press the “Turn on” button under “Scheduled optimization,” then select the schedule you want Windows to follow, and press the “Choose” button to select which drives should be included in the regular defrags.

Why you might not want to defrag

It’s important to note that many modern computers, the kind more likely to be running Windows 10, may not have actual hard drives but instead use solid state drives (SSDs). In the case of SSDs, performing a defrag is unnecessary and can actually be detrimental to the longevity of the SSD.

Disk defragmentation moves chunks of information on a disk around so that related data are physically closer together on the hard disk. This helps improve speeds on the disk, as more data can be read consecutively without the need to jump around between sections of the disk. It can also allow for faster write speeds for the same reason, as newly written data can go on the drive in order.

An SSD doesn’t use a read/write head jumping around on a spinning disk to read and write data. So, the fragmentation of data onto different parts of the SSD’s flash memory doesn’t have the same effect that it does on hard drives. So, it is not recommended to perform a defrag on an SSD. Trying to do so using the built-in defrag tool may not even allow it for SSDs, instead performing a TRIM operation, which identifies blocks of data no longer in use and wipes them clean.

TOPICS
Mark Knapp

Over the last several years, Mark has been tasked as a writer, an editor, and a manager, interacting with published content from all angles. He is intimately familiar with the editorial process from the inception of an article idea, through the iterative process, past publishing, and down the road into performance analysis.

Latest in Windows
Acer Aspire 14 AI laptop display showing the Windows 11 login screen
Shock, horror – I’m not going to argue with Microsoft’s latest bit of nagging in Windows 11, as this pop-up is justified
A laptop on a desk with the Windows 11 background on its screen.
Microsoft is adding image editing and compression to its Windows Share feature - and I couldn't be happier
AOC Agon Pro AG276FK gaming monitor tilted slightly to the side, showing the Windows desktop screen
Windows 11 users get ready for more ‘recommendations’ from Microsoft – but I’m relieved to say these suggestions might actually be useful
Microsoft Store logo on a blurred background
There's finally a fix for an annoying Microsoft Store bug that's older than Windows 11
Portrait of African-American teenage boy studying at home or in college dorm and using laptop, copy space
Windows 11’s Notepad gets AI-powered ‘Rewrite’ feature, but not everyone’s going to be happy about it
Copilot on a laptop
Microsoft quietly updates Copilot to cut down on unauthorized Windows activations
Latest in How Tos
Cheltenham racing festival 2024 day four: Paul Townend on Galopin Des Champs crosses the finishing line for victory in the Gold Cup
Cheltenham Festival 2025 live stream: How to watch world-class horse racing online
Vinicius Junior of Real Madrid in action during the UEFA Champions League in March 2025
Atletico Madrid vs Real Madrid live stream: How to watch Champions League online
Arsenal manager Mikel Arteta attending a press conference before a UEFA Champions League Round of 16 first leg match in March 2025
Arsenal vs PSV live stream: How to watch the UEFA Champions League match online
Ousmane Dembele of Paris Saint-Germain watches the ball during a UEFA Champions League 2024/25 match in March 2025
Liverpool vs PSG live stream: How to watch today's UEFA Champions League match online, team news
Still from the sneak peek trailer of Ring & Friends showing the ex-beatles singer on stage at the Ryman
Ringo & Friends at The Ryman: how to watch the country music show online
Lewis Hamilton of Great Britain and Scuderia Ferrari waves to the crowd from the stage during F1 75 Live in the run up to the 2025 F1 season
How to watch F1 online: your guide to 2025 Formula 1 season