How to Defrag a Computer

This wikiHow teaches you how to defragment a hard drive, a process that rearranges and better utilizes the space on the drive to improve your PC's performance. Though defragmenting a hard drive is not typically advised for Mac users, you...
Method 1 of 3:

Windows 10 and 8

  1. How to Defrag a Computer Picture 1How to Defrag a Computer Picture 1
    Open the Control Panel. The steps are slightly different depending on your operating system:
    1. Windows 10: Click the circle or magnifying glass to the right of the Start menu to open the Search bar, type control panel, then click Control Panel.
    2. Windows 8: Hover the mouse over the bottom-right corner of the screen to bring up the menu, click Settings, and then click Control Panel.
  2. How to Defrag a Computer Picture 2How to Defrag a Computer Picture 2
    Select Small icons from the 'View by' menu. It's near the top-right corner of the window.
  3. How to Defrag a Computer Picture 3How to Defrag a Computer Picture 3
    Click Administrative Tools. A list of admin tools will appear.
  4. How to Defrag a Computer Picture 4How to Defrag a Computer Picture 4
    Double-click Defragment and Optimize Drives. It's in the main (right) panel. A list of drives on your computer will appear.
    1. If your hard drive is set up to defragment automatically, you'll see the word 'On' under 'Scheduled optimization' at the bottom of the window. You can change the schedule by clicking Change settings.
  5. How to Defrag a Computer Picture 5How to Defrag a Computer Picture 5
    Select your drive and click Analyze. Windows will now check to see if your drive needs to be defragmented.
    1. If you have an SSD hard drive (solid state), this button will not be available. This is because it's not necessary to defragment your SSD drive.
  6. How to Defrag a Computer Picture 6How to Defrag a Computer Picture 6
    Select your drive and click Optimize. If your hard drive needs to be defragmented, click this button to begin the process.
    1. The defragmentation process can take anywhere from several minutes to several hours to complete depending on the state of your disk drive.[1]
Method 2 of 3:

Windows 7 and Vista

  1. How to Defrag a Computer Picture 7How to Defrag a Computer Picture 7
    Click the Start menu and select All Programs.
  2. How to Defrag a Computer Picture 8How to Defrag a Computer Picture 8
    Click the Accessories menu and select System Tools.
  3. How to Defrag a Computer Picture 9How to Defrag a Computer Picture 9
    Click Disk Defragmenter.
  4. How to Defrag a Computer Picture 10How to Defrag a Computer Picture 10
    Highlight the disk drive you to defragment. For example, if you want your computer's main hard drive defragmented, then highlight "(C:)."
  5. How to Defrag a Computer Picture 11How to Defrag a Computer Picture 11
    Click Analyze Disk. It's near the bottom of the Window. Your computer will analyze the disk drive to determine whether defragmenting the drive is recommended.
  6. How to Defrag a Computer Picture 12How to Defrag a Computer Picture 12
    Click Defragment disk if your computer instructs you to defragment. The defrag process can take anywhere from several minutes to several hours to complete depending on the state of your disk drive.
  7. How to Defrag a Computer Picture 13How to Defrag a Computer Picture 13
    Click Configure schedule when Disk Defragmenter finishes. It's above the list of hard drives.
  8. How to Defrag a Computer Picture 14How to Defrag a Computer Picture 14
    Place a check mark next to "Run on a schedule."
  9. How to Defrag a Computer Picture 15How to Defrag a Computer Picture 15
    Set a defragment schedule and click OK. Choose the frequency at which you would like Windows to automatically defragment your hard drive.
  10. How to Defrag a Computer Picture 16How to Defrag a Computer Picture 16
    Select your hard drive and click OK. Your computer is now set to automatically defragment your hard drives on a schedule.
Method 3 of 3:

Windows XP

  1. How to Defrag a Computer Picture 17How to Defrag a Computer Picture 17
    Click the Start menu and select My Computer.
  2. How to Defrag a Computer Picture 18How to Defrag a Computer Picture 18
    Right-click your hard drive and select Properties.
  3. How to Defrag a Computer Picture 19How to Defrag a Computer Picture 19
    Click the Tools tab. It's at the top of the window.
  4. How to Defrag a Computer Picture 20How to Defrag a Computer Picture 20
    Click Defragment Now. It's in the 'Defragmentation' group. This opens the Disk Defragmenter window.
  5. How to Defrag a Computer Picture 21How to Defrag a Computer Picture 21
    Select the drive you want to defragment and click Analyze. Your computer will analyze that disk drive's files and folders to determine whether defragmentation is necessary.
  6. How to Defrag a Computer Picture 22How to Defrag a Computer Picture 22
    Click Defragment if recommended by the tool. The drive will now be defragmented. This process may take several minutes to several hours.
    1. If you see a message that says the drive does not need to be defragmented, there's no need to take any action.
  7. How to Defrag a Computer Picture 23How to Defrag a Computer Picture 23
    Click Close when you're finished defragmenting the hard drive.
4.5 ★ | 2 Vote