Download ArticleDownload Article

When too many files in your hard disk are in different places or clusters in your hard disk, or “fragmented,” your computer slows down. When you defrag your drive, it realigns everything back, and the pieces of files are moved to locations that are contiguous (beside each other). This makes it easier for your computer to read the files. Note that you must sign into an Administrator account in order to defrag your hard drive.

Things You Should Know

  • Type "defrag" in the Cortana search box to open the application titled "Defragment and Optimize Drives".
  • Highlight the drive you want to defrag. Consider the Current Status of each drive to see which need defragging, if any.
  • Click the "Optimize" button to begin defragging all selected drives.
Method 1
Method 1 of 2:

Using the Defrag App

Download Article
  1. How.com.vn English: Step 1 Type “defrag” in the Cortana search box.
    You will find the Cortana search box at the lower left side of the desktop beside the Start button shown as a magnifying glass icon. As you type, a list of search results will appear on the Cortana search window. When you finish typing “defrag,” the Defragment and Optimize Drives (Desktop app) option will appear at the top of the search window.
  2. How.com.vn English: Step 2 Click/tap “Defragment and Optimize Drives (Desktop app).”
    This will open the Optimize Drives dialog box. If you are not signed into an Administrator account, right-click (press and hold) “Defragment and Optimize Drives (Desktop app)” and choose “Run as administrator” when the pop-up menu appears.
    Advertisement
  3. How.com.vn English: Step 3 Highlight the drive you want to defrag.
    In the Optimize Drives window, you will see a box labeled “Status” inside of which is a table where the rows list all the drives in your device as well as all storage media connected to the device. The columns have the following headings (from left to right): “Drive,” “Media type,” “Last run,” and “Current status.” Highlight the drive you want to optimize by clicking/tapping on it.
    • For each drive listed, you will see its Current Status in the last column, which tells you how fragmented your drive is and advises you on what to do (“OK,” meaning “no need to defrag,” or “Needs Optimization”).
  4. How.com.vn English: Step 4 Click/tap the “Analyze” button on the Optimize Drives window.
    This will analyze the extent of fragmentation of the drive. After a few minutes, the Current Status column opposite the drive you are testing will show you (in percentage) how fragmented the drive is. It is recommended that you optimize your drive only if it is 10% or more fragmented.
    • If the fragmentation is less than 10%, click/tap the “Close” button at the bottom right side of the window to exit Optimize drives. It is not advisable to defragment your drive too often as this will contribute to the wear and tear of your hard drive.
  5. How.com.vn English: Step 5 Click the “Optimize” button to start defragmenting your drive.
    The defragmentation will take some time (several minutes or even hours) depending on how large the capacity of your hard drive is, how many files are in your hard drive, and how fragmented these files are. The Current Status column will give a real-time report on the progress of optimization.
    • You will know if the defragging process is finished when the running progress report stops and the entry in the Current Status column becomes “OK.” Enclosed in parentheses beside “OK” is the percentage of defragmentation (0% if your hard drive is not too full).
    • If your hard disk is large and there are many files and many of these files are fragmented, the defragging process may take hours to complete. In this instance, it would be better to start the defragging process and do some other things: read a book, do housework, take a nap, etc.
  6. How.com.vn English: Step 6 Exit the menu when you’re done.
    When the defrag process is finished, click the “Close” button at the bottom right hand of the window to exit Optimize Drives.
  7. Advertisement
Method 2
Method 2 of 2:

Using the Defrag Command

Download Article
  1. How.com.vn English: Step 1 Press ⊞ Win+X or right-click on Start.
    This will open a right-click menu.
  2. How.com.vn English: Step 2 Choose Command Prompt (Admin) or Windows Powershell (Admin).
  3. How.com.vn English: Step 3 Click on Yes.
    This will allow Command Prompt to run as an administrator.
  4. How.com.vn English: Step 4 Type the following command:
    defrag C:. This will defragment the drive where Windows 10 is installed.
  5. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Do the words "defrag" and "defragment" mean the same thing?
    How.com.vn English: Community Answer
    Community Answer
    Yes, they do. "Defrag" is a short way of saying "defragment." It's similar to "tech" and "technology."
  • Question
    Does Windows 10 defrag automatically once a month?
    How.com.vn English: Zuubytron
    Zuubytron
    Community Answer
    If you go into the control panel you can see how often it is set to defrag. Normally it is once or twice a month.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • You can still work on your device while defragging, but your computer will slow down while defragging is ongoing, so it is better to let the defragging finish before working on your computer.
      • Windows 10 will automatically optimize and defragment your drives on a weekly basis.
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • You should make sure that your device is not jostled or moved abruptly while the defragging process is ongoing as your hard disk may be damaged by any sudden movement.
      Advertisement

      About This Article

      How.com.vn English: Scott St Gelais
      Co-authored by:
      IT Consultant
      This article was co-authored by Scott St Gelais. Scott St Gelais is an IT Consultant and the Owner of Geeks in Phoenix, Arizona. With over two decades of experience, Scott specializes in computer service and repair, development, computer graphics, and website authoring. Scott received his Technical Associates Degree from High Tech Institute and completed the IT Support Professional Certificate by Google. Geeks in Phoenix is a member of the Microsoft Partner Network and an Intel Technology Provider Gold Partner. This article has been viewed 165,428 times.
      How helpful is this?
      Co-authors: 7
      Updated: June 16, 2023
      Views: 165,428
      Categories: Windows 10
      Thanks to all authors for creating a page that has been read 165,428 times.

      Reader Success Stories

      • How.com.vn English: Dixie Elder

        Dixie Elder

        Mar 2, 2017

        "Excellent article, I didn't know half of this info."
      Share your story

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement