Generally speaking, we recommend that you defragment your hard drive once a month. Alternatively, you should defragment your drive when it has become 10% or more fragmented.
The good news is that Windows has a built-in defrag tool that you can use to keep your hard drive optimized. This ensures that you can keep your hard drive healthy without the need for any third-party tools.
If you want to defragment your hard drive (or check on its status), simply type "defrag" into the Windows search bar on the bottom left of your screen. Now, select the defrag window and choose Defragment and Optimize Drives.
Note that Windows 10 and 11 periodically defragment your drives by default, automatically.