Software & OS

How to See What Is Taking Up Storage on PC (Windows 11)

To see what is taking up storage on your PC, open Start, Settings, System, Storage in Windows 11 and select Cleanup recommendations. If you want exact folder and file sizes, sort a folder by size in File Explorer, or run dir /s /a /o:-s in Command Prompt.

The Settings page tells you how full the drive is and suggests things to clear. It does not rank your folders. For that, use the file listing methods further down. All of them read file sizes from the drive and none of them change anything.

Check storage in Windows 11 Settings

Open Start > Settings > System > Storage. Under the disk usage section you see how much space is used on the drive. To check the drive's total size and free space from File Explorer instead, open This PC and look under Devices and drives.

The same page has two cleanup features, covered below: Cleanup recommendations and Storage Sense. Microsoft's documentation describes the paths and labels but does not list every category the usage chart can show, and the chart's layout varies between Windows versions and updates. If your screen shows different category names than another guide, trust your screen.

Use Cleanup recommendations

Go to Start > Settings > System > Storage > Cleanup recommendations. Microsoft lists these categories:

  • Temporary files
  • Large or unused files
  • Files synced to the cloud
  • Unused apps

Windows shows how much space each category would free. Tick what you want gone, then select Clean up for that section. Nothing is removed until you do. If you are looking for a single big win, Large or unused files is the category most likely to hold it, because it points at individual files rather than system leftovers.

Under Temporary files you may also see an option for previous Windows installations. Microsoft's guidance is to check Previous Windows Installation(s) and select Remove files, and it warns that deleting the previous Windows version cannot be undone. Once it is gone you cannot go back to the older version, so leave it alone if there is any chance you want to.

Sort files by size in File Explorer

This is the quickest way to find the biggest files inside one folder:

  1. Open the folder in File Explorer (start with C:\Users\alex\Downloads, for example).
  2. Select View, then Details.
  3. Right-click an empty area of the folder, choose Sort by, then Size.
  4. If the smallest files come first, right-click again and pick Descending.

The limit is that File Explorer sorts only the items in the folder you opened. A folder's own size is not shown in the Size column, so a 40 GB folder can sit unnoticed among small files. Check folders one level at a time, or use the command-line methods below, which total whole folder trees.

List the biggest files with dir in Command Prompt

The dir command can list every file under a folder and sort by size. Run this from the folder you want to inspect:

dir /s /a /o:-s

The switches, as Microsoft documents them:

  • /s includes all subdirectories.
  • /a with no attributes shows all files, including hidden and system files. Without it, dir skips hidden and system files.
  • /o:-s sorts by size. Plain s is smallest first, and the - prefix reverses it, so the largest come first.

One catch: with /s, dir sorts within each directory, not across the whole tree. You get the largest files in each folder, grouped by folder, which is useful for spotting a heavy folder but is not a single ranked list. At the end of the output dir prints the total file count, their cumulative size in bytes, and the free space left on the disk. Add /-c to drop the thousand separators if you plan to paste the numbers into a spreadsheet.

Find the biggest files with PowerShell

PowerShell can rank every file in a folder tree in one list. Get-ChildItem -Recurse -File returns each file, and each file has a Length property in bytes:

Get-ChildItem -LiteralPath C:\Users\alex -Recurse -File -Force -ErrorAction SilentlyContinue |
    Sort-Object Length -Descending |
    Select-Object -First 20 FullName, @{Name='SizeGB'; Expression={[math]::Round($_.Length / 1GB, 2)}}

This prints the 20 largest files with their size in gigabytes. Here is what each part does:

  • -LiteralPath is the folder to scan. Microsoft recommends it over -Path when combined with -Recurse.
  • -File returns files only, so folders are not mixed in.
  • -Force includes hidden and system items that your account is allowed to open. It does not override security restrictions.
  • -ErrorAction SilentlyContinue hides "access denied" errors, so one locked folder does not flood the screen. Those folders are skipped, so their contents are not counted.

Scanning a whole profile can take minutes on a drive with many small files. Start with C:\Users\alex rather than C:\.

Total the size of each folder

To see which top-level folders are heaviest, add up the file sizes inside each one with Measure-Object, which can sum a property across objects:

Get-ChildItem -LiteralPath C:\Users\alex -Directory -Force |
    ForEach-Object {
        $bytes = (Get-ChildItem -LiteralPath $_.FullName -Recurse -File -Force -ErrorAction SilentlyContinue |
            Measure-Object -Property Length -Sum).Sum
        [pscustomobject]@{ Folder = $_.Name; SizeGB = [math]::Round($bytes / 1GB, 2) }
    } |
    Sort-Object SizeGB -Descending

Example output (your folders and numbers will differ):

Folder      SizeGB
------      ------
AppData      38.41
Videos       22.07
Downloads    11.90
Documents     4.36
Pictures      2.18

Two behaviours to know. First, Get-ChildItem lists symbolic links to directories during recursion but does not follow them by default, so data reached only through a link is not counted. Second, an empty folder gives a null sum, which the script rounds to 0. Change the path in the first line to scan a different location, and run the same pattern again on whichever folder comes out on top to drill down one level at a time.

Turn on Storage Sense so it stays under control

Once you know where the space went, Storage Sense can keep some of it from filling up again. Open Settings > System > Storage > Storage Sense. Microsoft documents these options:

  • Run Storage Sense sets how often it runs.
  • Delete files in my recycle bin if they have been there for over sets how long Recycle Bin items are kept.
  • Delete files in my Downloads folder if they haven't been opened for more than sets the age limit for Downloads. Read this one carefully before enabling it, because Downloads often holds installers and documents you meant to keep.
  • Content will become online-only if not opened for more than controls locally stored cloud files.

Storage Sense also removes temporary files. If you only want the effect once, you can use Cleanup recommendations instead and leave Storage Sense off.

Why folder totals can be lower than the drive's used space

If your folder sizes add up to much less than Settings reports, the difference is usually data your listing could not reach. Hidden and system files are skipped unless you pass dir /a or Get-ChildItem -Force. Folders your account has no permission to open are skipped as well, and -ErrorAction SilentlyContinue hides the evidence. Running PowerShell as administrator reaches more of them, though not necessarily everything. Cloud-synced files that are set to online-only keep a small placeholder on the drive rather than the full file, which Microsoft describes in its OneDrive Files On-Demand advice, so they free space locally but still appear in listings.

Treat the folder scans as a way to find large items to review, not as an exact accounting of the disk.

If the space is still missing

Run the per-folder script on C:\Users\alex first, then on other top-level folders such as a games library or a project directory. If every folder looks small but the drive is nearly full, check Cleanup recommendations for Temporary files and previous Windows installations, since those are not part of your user folders. On a Windows 10 machine, Microsoft's page points to Disk Cleanup instead: search the taskbar for disk cleanup, pick the drive, tick the file types to delete, and select Clean up system files for more.

Frequently asked questions

How do I see what is taking up storage on my PC?
On Windows 11, open Start, then Settings, System, Storage. The page shows how much of the drive is used. Select Cleanup recommendations to see temporary files, large or unused files, files synced to the cloud and unused apps, each with the space it would free.
How do I find the largest files on my PC?
In File Explorer, open the folder, choose View, then Details. Right-click an empty area, select Sort by, then Size. The biggest files in that folder are listed first. For a whole folder tree, use dir /s /a /o:-s in Command Prompt or Get-ChildItem -Recurse -File in PowerShell.
Why does my folder total not match the used space shown for the drive?
Listings only count what your account can read. Hidden files, system files and folders you have no permission to open are skipped unless you ask for them (dir /a, Get-ChildItem -Force), and some are still blocked without administrator rights. Cloud placeholder files and restore data can also make the numbers differ.
Is it safe to delete what Cleanup recommendations suggests?
Temporary files are generally safe to remove, but you choose what to clear. Read each category before selecting Clean up. Microsoft warns that deleting a previous Windows version (Windows.old) cannot be undone, so only do that if you are sure you will not roll back.

Sources