Before you jump to conclusions about lag, consider if defragmenting might restore your system to its peak performance. Alistair Berg / Getty ImagesAlthough modern computers boast incredible speeds, they can still experience slowdowns over time. If your desktop or laptop is lagging, even during simple tasks, a defragmentation (or defrag) might be the solution.
If you're unsure about what defragmentation means, don’t worry—you're about to learn all about this process and how to defrag a computer.
Defragmentation: The Cure for Your Disk's Troubles
The term "defrag" is often used to describe the Microsoft Windows tool known as Disk Defragmenter, which was developed to address a specific issue caused by the way data is stored on hard drives.
When you first load data onto your computer's hard drive, such as programs and files, it is stored in an organized, systematic manner. However, as time passes, the drive becomes more complicated, and data fragments are scattered throughout the disk.
Introduction to Hard Disk Drives
Here are three important facts to remember about hard disks:
- Hard disk drives (HDD) store data in units known as sectors. Picture the surface of the disk as divided into concentric rings (like tree rings), each ring divided into pie-like slices. Each sector represents one of these slices and holds a specific amount of data, such as 512 bytes.
- The hard disk has a small arm that moves across the surface of the disk. To access a specific sector, the arm is positioned at the correct ring, and it waits for the sector to rotate into place.
- Hard disks are relatively slow in comparison to other computer components. In relation to the speed of the processor and memory, the time it takes for the arm to move and for a sector to position itself is quite slow.
Given the reality of point No. 3, it's essential to reduce arm movement as much as possible, while ensuring that data is stored in continuous blocks on the disk.
Storing Data on a Hard Disk Drive
Imagine installing a fresh application on an empty hard drive. Since the disk is void, the computer places the application's files into consecutive sectors across the disk, which is an effective method for organizing data on a hard drive.
However, as you continue using the disk, this efficient method starts to lose its effectiveness. The disk begins to fill up. Files are deleted to free up space, but those deleted files are spread out across the disk’s surface.
When you install a new program or a large file, it is placed in many scattered spaces across the disk. As a result, when the system loads these fragmented pieces, the disk’s arm must move across the entire surface, causing a significant delay.
Understanding the Defragmentation Process

The goal of a disk defragmenter is to rearrange the file system so that all files are stored in adjacent sectors and consecutive rings of the disk. A highly effective defragmenter may also seek to optimize further by positioning applications near the operating system to minimize disk movement when loading programs.
Properly defragmenting older drives can greatly enhance file access speeds. However, on newer disks that haven't been heavily filled or had numerous deletions, defragmentation has minimal impact since everything is already arranged sequentially.
As one might expect, the task of moving thousands of files individually on a slower hard drive is a time-intensive operation, often taking several hours to complete.
How to Use the Disk Defragmenter in Windows 7
Since Windows 7 was launched, the disk defragmenter operates on its own. This means you don't have to worry about initiating it manually, as it will run automatically at scheduled intervals. While this is convenient, there may be occasions when you wish to perform a manual defrag.
If your Windows system is slow or having performance issues, the disk defragmenter offers a couple of solutions. One of them is adjusting the schedule on which it operates, which can be done by following these steps.
- Start by clicking on the Start menu located at the bottom left of your screen.
- You can either search for "disk defragmenter" or "defrag" in the search bar, or navigate to Control Panel.
- Once in the Control Panel, select System and Security.
- Then, under the Administrative Tools section, click on Defragment Your Hard Drive.
- Click Configure Schedule to choose a preferred time for the defragmentation process to run.
- Finalize by clicking OK.
If you want to manually start the defrag process immediately, follow these steps.
- Click on the Start button.
- In the search bar, type "defragment" or "defrag".
- From the Current Status column, select the disk you wish to defrag.
- Click Analyze Disk. You may need to enter your administrator password.
- The computer will analyze the disk and show a percentage indicating how fragmented the disk is. If it's more than 10%, you should proceed with a defrag.
- Click Defragment Disk and relax while the defragmentation is performed.
How to Use the Disk Defragmenter in Windows 8 to 10
In newer versions of Windows, the disk defragmenter automatically runs in the background. However, you can also choose to manually defrag your disk if you prefer.
If you notice that your computer is lagging and suspect that fragmented data is the cause, follow these steps to resolve the issue.
- Type 'defragment' or 'defrag' in the search bar.
- Click on Defragment and Optimize Drives from the available options.
- Select Optimize Drives and hit the Optimize button.
- That's all! While the defragmenter is working, avoid heavy usage of your computer, or leave it idle. The process may take a few hours.
As you can see, recent versions of Windows eliminate the need to manually select the disk defragmenter or click 'Defragment Disk.' Instead, the 'Optimize Drives' feature serves to manually defrag your disk.
Do SSDs Need Defragmentation?
The emergence of SSD (solid state drive) technology has greatly diminished the need for defragmentation. Unlike traditional mechanical hard drives, SSDs have no moving parts, and data is stored and altered using chips.
Because of the more efficient operation of solid-state drives, they do not require defragmentation like mechanical hard disk drives. In fact, running a defrag on an SSD could potentially reduce its lifespan.
Thankfully, your computer’s operating system will recognize the presence of an SSD and will not attempt to run a defragmentation process on it.
