How to Find the Largest Folders on Windows
Windows Explorer deliberately does not show folder sizes. It would have to walk every subfolder every time you opened a directory, so Microsoft leaves it out โ which is exactly why finding the biggest folder by hand is so tedious. There are three practical ways to do it, and they differ mainly in speed.
The fastest method: a disk analyzer
A disk space analyzer reads the file system once, aggregates sizes per folder and shows the result as a tree and a treemap. You sort by size, see the biggest folder at the top, open it, and continue until a single folder explains most of the drive.
With DiskRaptor: launch it, select the drive, wait for the scan, then click the Size column header to sort descending. Each row shows the folder's size as a percentage of its parent, so a 40 GB folder inside a 45 GB parent is immediately obvious. The top-50 largest files list catches the single 30 GB file that a folder view can hide.
The PowerShell method
If you prefer a script โ for a server, a scheduled report, or a machine where you cannot install software โ PowerShell can measure the top-level folders of a drive. This version lists the 15 largest folders directly under C::
Get-ChildItem 'C:\' -Directory -Force -ErrorAction SilentlyContinue | ForEach-Object {
$bytes = (Get-ChildItem $_.FullName -Recurse -File -Force -ErrorAction SilentlyContinue |
Measure-Object -Property Length -Sum).Sum
[PSCustomObject]@{ Folder = $_.FullName; GB = [math]::Round($bytes / 1GB, 2) }
} | Sort-Object GB -Descending | Select-Object -First 15
Notes on using it:
- Run it in an elevated PowerShell window, otherwise protected folders are skipped and their size shows as zero.
-Forceincludes hidden and system files; without it, WinSxS, pagefile and hiberfil are invisible.- It is slow: PowerShell visits every file individually. On a drive with a million files expect minutes, not seconds โ that is a language limitation, not a disk limitation.
- Files inside folders you cannot read are silently ignored, so the numbers are a lower bound.
To look deeper than one level, wrap the same code in a loop and run it on the largest folder, or replace 'C:\' with the folder you want to measure.
The built-in alternatives (and why they are limited)
- Settings โ System โ Storage shows categories, not folders. Useful to know whether apps or media dominate.
- Disk Cleanup finds system junk but no user folders.
- Explorer's Properties dialog does compute a folder size, but only for the folder you select โ one at a time, with no sorting, and it re-walks the tree every time.
- Storage Sense cleans, it does not measure.
Comparing the methods
| Method | Speed | Depth | Interactive |
|---|---|---|---|
| Disk analyzer (DiskRaptor, WizTree, TreeSize) | Seconds to minutes | Whole drive, drill-down | Yes |
| PowerShell script | Minutes | Any folder | No โ scriptable |
| Explorer โ Properties | Minutes per folder | One folder at a time | Painful |
| Settings โ Storage | Instant | Categories only | Limited |
What to do with the result
Sorting by size tells you where the space is; it does not tell you what is safe to delete. Three rules keep this from going wrong:
- Never delete from
C:\Windows,Program FilesorProgramDataby hand โ uninstall instead, or use the system tools. - For your own folders, move before deleting: an external drive or a network share costs less than a recovery attempt.
- After each deletion, re-scan. If the number did not drop, the space is held somewhere else โ a snapshot, a recycle bin, or a file that is still open in another program.
A typical first pass finds the space in one of five places: games, downloads, AppData caches, virtual disks, or a media library. Once you know which one it is, the fix takes minutes.
Frequently asked questions
Why doesn't Windows show folder sizes in Explorer?
Because it would have to read every file in every subfolder every time a folder opens. Windows leaves that work to dedicated analyzers, which scan once and keep the results in memory.
Is PowerShell fast enough for a 4 TB drive?
Not really. PowerShell measures files one at a time, so a drive with millions of files can take many minutes or longer. A native analyzer that reads the filesystem in parallel is usually hundreds of times faster for this task.
Do I need administrator rights to find large folders?
No for your own folders, but yes to see system folders like WinSxS, System Volume Information or other users' profiles. Without elevation those simply show up as empty.
What is the largest folder on a typical Windows PC?
Usually WinSxS (4โ12 GB), a game library, or the user's AppData caches. On developer machines, Docker and WSL virtual disks regularly beat all of them.
Before you clean, lock the door
A tidy disk is a good moment to sort out the rest of the setup. A VPN for public networks, antivirus for everything you download and keep, and an ad blocker for the tabs you leave open all day.
Affiliate disclosure: the links below are affiliate links. If you buy through them, we may earn a commission at no extra cost to you โ it helps keep DiskRaptor free.
More about our Surfshark partnership.
Related reading
- Disk Space Full on Windows 11? Here's the Fix
- Best Free Disk Space Analyzer (2026)
- How to Find Large Files on Windows, macOS and Linux
- How to Find Duplicate Files on a PC
Reclaim your disk space
DiskRaptor is free, open source, and runs 100% locally.