Need to check how much disk space is free on your Windows PC without opening File Explorer? The command line offers a direct, precise way to get this info with minimal steps. You’ll use built-in commands like `wmic` or `fsutil` that require no setup beyond opening Command Prompt or PowerShell. These methods work instantly on any Windows version from 7 up to the latest, and they show you raw data without rounding errors you might find in File Explorer’s visual estimates.
What You'll Need
- Windows PC already running (no additional software or drivers needed)
- An open Command Prompt or PowerShell window (right-click Start > Command Prompt or PowerShell)
- Administrator privileges not required for basic checks (but may be needed for troubleshooting deeper issues)
Step-by-Step
-
Open Command Prompt or PowerShell
Press Win + R, typecmdorpowershell, and hit Enter. For PowerShell, you may need to run it as Administrator for some commands. -
Check free space on all drives
Run this command to see a summary of all disks with their free space:wmic logicaldisk get free space, caption. Caption shows the drive letter, while Free space gives you the exact bytes available. Example output:Caption Free space C: 102400000000 D: 512000000000
The free space values appear in bytes (e.g., 102,400,000,000 bytes = 94.8 GB). -
Check free space for a specific drive
ReplaceX:with your drive letter (e.g., C:, D:). Usewmic logicaldisk where drivetype=3 get free spaceto filter only NTFS drives (most common). For fat32/exfat, addwhere volume="YOUR_VOLUME_LETTER". Example for drive C:wmic logicaldisk where drivetype=3 get free space -
Get precise details with PowerShell
Run this command for detailed drive info (including size, free space, and partition type):Get-PSDrive -PSProvider FileSystem | Select-Object Name, UsedBytes, FreeBytes, UsedPercentThis shows each drive’s name, used space, free space, and percentage used. To view in GB/GB: pipe toFormat-Table -AutoSize. -
Alternative: fsutil command
For older Windows versions (pre-Vista), use:fsutil volume diskfree D:(replace D: with your drive). This returns free space in KB. To confirm the drive letter is correct, list all drives first withfsutil cdrive list.
Common Mistakes
-
Typo in drive letter: If you run
wmic logicaldisk get free spacewithout specifying a drive, it shows all drives. To avoid confusion, always specify a letter (e.g., C:). -
Incorrect file system type: NTFS drives return accurate free space. For FAT32/exFAT, use the
volumeparameter to filter by partition type. -
Ignoring output units: Free space appears in bytes (e.g., 100000000000 = 94.8 GB). Convert manually or use PowerShell’s calculation:
powershell -command "(Get-PSDrive C).FreeBytes / 1GB"to get free space in GB. - Running as non-admin: If you’re checking a drive used by system files (e.g., C:), PowerShell may require admin rights. For basic checks, this isn’t needed.
Tips
-
Watch for hidden/system files: Use
wmic logicaldisk where drivetype=3 get free space, sizeto compare total size and free space. If free space seems low, check hidden system partitions (e.g., recovery partitions). -
Backup before cleaning: If you suspect low space, create a system image or back up critical files before deleting temporary files (use
cleanmgrin File Explorer instead of manual deletion). -
PowerShell shortcut: For one-liners, save this as a script and run it repeatedly to track free space:
Get-PSDrive C | Select-Object Name, FreeBytes, FreeGB - Compare with File Explorer: Open File Explorer, right-click the drive and select Properties. The “Free space” field rounds to 1 GB increments. Command line shows raw bytes—useful for precise calculations.
-
Monitor over time: Use PowerShell to create a log file of free space trends:
Get-PSDrive C | Select-Object Name, FreeGB | Out-File -Encoding UTF8 C:\FreeSpaceLog.txt
Troubleshooting
-
Command not found
If you see errors like “wmic” or “fsutil” not found, you’re using PowerShell without admin rights. Switch to Command Prompt (open with right-click > Run as Administrator) or useGet-WmiObjectin PowerShell:Get-WmiObject Win32_LogicalDisk | Select-Object DeviceID, FreeSpace -
Drive shows “0” free space
This often means the drive is full or not accessible. Check:- Is the drive mounted correctly? Try mapping the drive letter.
- Are there hidden system files taking up space? Use
sfc /scannowto repair system files. - Check for large temporary files:
dir /s /a-d C:\Windows\Temp.
-
Slow response or no output
Windows may be locked or stuck. Try:- Restart your PC.
- Run Command Prompt as Administrator.
- Check for antivirus software blocking access (temporarily disable it).
-
Results differ from File Explorer
File Explorer rounds values up/down. Command line shows raw bytes. For example:- Command line: 100,000,000,000 bytes free (94.8 GB).
- File Explorer: 95 GB free (rounded up).
Frequently Asked Questions
How do I check free space on my SSD?
SSDs use NTFS by default, so the same commands apply. Use wmic logicaldisk where drivetype=3 get free space to check C: (most SSDs are partition C). If the drive shows “0” free space, consider disabling TRIM or checking for file corruption with chkdsk X: (replace X: with your drive letter).
Can I use this command to check a network drive?
Yes, but network drives often use different file systems (e.g., CIFS/SMB). Run wmic logicaldisk where drivetype=3 get free space—if it shows no free space, the drive is likely offline or misconfigured. For network drives, use net use to verify mapping first.
Why does free space keep dropping even when I haven’t added new files?
Common reasons include:
- Temporary files from updates or antivirus scans.
- Windows cache files (check
C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\Explorer). - Large log files or temporary files in
C:\Users\YourUsername\AppData\Local\Temp. - Recycle Bin (empty it with
recyclebinin Command Prompt).
How do I check free space on a Linux file system mounted in Windows?
Windows doesn’t natively support monitoring ext4/fat32 filesystems from the command line. For Linux file systems, use File Explorer to check the drive’s properties or install tools like smartmontools for SATA drives.
What if I’m not sure which drive letter is my main system drive?
Run wmic logicaldisk list brief in Command Prompt to see all drives and their drive types (3 = NTFS). The most common system drive is usually C:. For older PCs, it might be D: or E:.
Can I use this method to check a USB drive?
Yes, but USB drives often have different drive types (e.g., 7 for removable media). To check free space, use:
wmic logicaldisk where drivetype=7 get free space
If the drive shows no free space, it may be full or disconnected. Check the drive’s properties in File Explorer for a more visual estimate.