How to Defrag Windows 10 & Improve Your PC’s Performance

You can use Command Prompt or Use Disk Defragmentation tool

by Srishti Sisodia
Srishti Sisodia
Srishti Sisodia
Srishti is an avid writer with a keen interest in technology. She has spent the past ten years of her career researching and writing troubleshooting articles for Windows... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • Disk defragmentation is rearranging fragmented data on your hard drive to be accessed more efficiently.
  • This guide will discuss all the simple ways to defrag your hard drive, including using the Disk Defragmentation tool.

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

As you use your computer, files become fragmented and scattered across the hard drive, which makes it hard for your PC to access them quickly. This is one of the most common reasons for a slow-running computer.

Fortunately, you can use defragmentation to rearrange fragmented data and improve your PC’s performance. In this guide, we’ll show you how to defrag Windows 10 to keep it running smoothly.

How can I defrag Windows 10 and improve PC performance?

1. Use the Command Prompt

  1. Go to the search bar, type CMD, and click Run as administrator.Command Prompt Run as administrator how to defrag windows 10
  2. Click Yes on the UAC prompt.
  3. Type the following command, replace C with the drive you want to defrag, and press Enter: defrag C:

2. Use the Disk Defragmentation tool

2.1 Defrag manually

  1. Go to the search bar, type Control Panel, and click Open.Control Panel - Seacrh bar how to defrag windows 10r -
  2. Select View by Category and click System and SecuritySystem & Security how to defrag windows 10
  3. Go to Administrative tools.Administrative Tools how to defrag windows 10
  4. Click Defragment and Optimize Drives to open it. Defragment & Optimize devices
  5. Choose the disk drive you want to optimize.
  6. Select the Optimize button.Optimize
  7. Follow the onscreen instructions if prompted.

2.2 Run defrag automatically

  1. You can also schedule the disk optimization for the future; open Defragment and Optimize Devices, and click Change settings on the Optimize Drives window.Change Settings how to defrag windows 10
  2. Select the Frequency, and for Drives, Click Choose.Frequency Drives
  3. Choose the Drives from the next window.Drives
  4. Click OK

3. Use the Safe Mode

  1. Press the Windows key + R to open the Run dialog box.System Configuration how to defrag windows 10
  2. Type msconfig and click OK to open System Configuration.
  3. Go to the Boot tab, locate Boot options, and place a checkmark next to Safe bootSafe boot Minimal how to defrag windows 10
  4. Select the Minimal option, click Apply, and OK
  5. You will be prompted to restart your computer in Safe mode. 
  6. Click the Start menu, type Defragment and Optimize Drives and click Open
  7. Select the drive you want to defragment and click the Optimize button. hOptimize How to defrag windows 10
  8. The defragmentation process will take some time to complete. 
  9. Once done, go to System configuration, switch to the Boot tab, uncheck Safe boot, click Apply, then OK. Restart your computer in normal mode. 

4. Use the Settings app

  1. Press Windows + I to open Settings
  2. Go to SystemSystem - How to defrag on Windows 10
  3. Click Storage, and select the Optimize Drives option.Storage - optimize your device
  4. Select the drive and click the Optimize button. Optimize button
  5. Wait for the process to get complete. 

So, these are the methods you can use to defrag your Windows 10 computer. Try them and let us know what worked for you in the comments below.

Still having issues? Fix them with this tool:


If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: