Fix Compressed Folders Reporting the Wrong Size on Windows 11
🔍 WiseChecker

Fix Compressed Folders Reporting the Wrong Size on Windows 11

When you compress a folder in Windows 11, the Properties dialog may show a size that does not match the actual disk usage. You might see a folder listed as 10 GB on disk but only 5 GB of compressed data, or vice versa. This discrepancy occurs because Windows 11 reports both the uncompressed size and the size on disk separately, and the numbers can be confusing. This article explains why compressed folders show the wrong size and provides step-by-step fixes to get accurate size readings.

Key Takeaways: Fixing Compressed Folder Size Display in Windows 11

  • File Explorer > Folder Properties > General tab: Shows both “Size” (uncompressed) and “Size on disk” (compressed) — the difference is normal compression savings.
  • Compact OS via Command Prompt: Run compact /compactos:query to check system-level compression status; compact /compactos:always enables it.
  • Clear Thumbnail and Icon Cache: Run del /f /s /q /a %userprofile%\AppData\Local\IconCache.db and restart File Explorer to refresh cached size values.

ADVERTISEMENT

Why Windows 11 Shows the Wrong Size for Compressed Folders

Windows 11 uses NTFS compression to reduce the disk footprint of files and folders. When you view a folder’s Properties, the dialog displays two numbers: “Size” and “Size on disk.” The “Size” value is the total uncompressed size of all files in the folder. The “Size on disk” value is the actual space the compressed data occupies on the hard drive. If you see a large difference, it means compression is working as designed.

However, several factors can cause these numbers to appear incorrect:

File Explorer Caching

File Explorer caches folder size information to speed up browsing. When compression is applied or removed, the cache may not update immediately, causing the displayed size to be outdated.

NTFS Compression Attributes

NTFS compression is a file system attribute, not a folder attribute. Files inside a compressed folder may have different compression states. If some files are compressed and others are not, the total size shown can be inconsistent.

Compact OS and System Compression

Windows 11 includes a feature called Compact OS that compresses system files at the operating system level. This can affect how File Explorer calculates the size of system folders like Windows, WinSxS, and Program Files. Compact OS uses a different compression algorithm than standard NTFS compression, leading to further size discrepancies.

Third-Party Compression Tools

Tools like 7-Zip, WinRAR, or PeaZip create their own compressed archives (ZIP, RAR, 7z) that are separate from NTFS compression. These archives have their own size metadata that File Explorer may misinterpret. For example, a ZIP file inside a folder may show its compressed size instead of the original uncompressed content size.

Steps to Correct Compressed Folder Size Display in Windows 11

Follow these steps in order. Each step addresses a specific cause of incorrect size reporting.

Step 1: Refresh File Explorer and Recalculate Sizes

  1. Close and reopen File Explorer
    Press Ctrl+Shift+Escape to open Task Manager. Find Windows Explorer in the Processes list. Right-click it and select Restart. This clears temporary cache and forces File Explorer to recalculate folder sizes from scratch.
  2. Press F5 to refresh
    With the folder open, press F5. This refreshes the current view and may update the size column.
  3. Check the folder Properties again
    Right-click the folder and select Properties. Look at the Size and Size on disk values. If they differ by more than a few percent, compression is active and the numbers are likely correct.

Step 2: Clear Thumbnail and Icon Cache

File Explorer stores icon and thumbnail data in a database file. A corrupted or outdated cache can cause incorrect size display.

  1. Open Command Prompt as administrator
    Click Start, type cmd, right-click Command Prompt, and select Run as administrator.
  2. Run the cache deletion command
    Type the following command and press Enter: del /f /s /q /a %userprofile%\AppData\Local\IconCache.db. This deletes the icon cache database file.
  3. Restart File Explorer
    Press Ctrl+Shift+Escape to open Task Manager. Restart Windows Explorer as described in Step 1. The icon cache will be rebuilt automatically.
  4. Verify the folder size
    Open the folder’s Properties again. The size values should now be accurate.

Step 3: Disable and Re-enable NTFS Compression on the Folder

If the size still appears wrong, the compression attribute may be incorrectly applied or corrupted at the folder level.

  1. Open the folder Properties
    Right-click the folder and select Properties.
  2. Click Advanced
    On the General tab, click the Advanced button.
  3. Uncheck Compress contents to save disk space
    Clear the checkbox and click OK. Then click Apply and OK in the Properties dialog.
  4. Wait for decompression
    Windows decompresses all files in the folder. This may take a few seconds to several minutes depending on folder size.
  5. Re-enable compression
    Repeat steps 1-3 but check the Compress contents to save disk space checkbox. Click OK and Apply.
  6. Check the size again
    Open Properties. The Size on disk should now be smaller than the Size.

Step 4: Check Compact OS Status

Compact OS operates independently of NTFS compression and can affect system folder sizes.

  1. Open Command Prompt as administrator
    Click Start, type cmd, right-click Command Prompt, and select Run as administrator.
  2. Query Compact OS status
    Type compact /compactos:query and press Enter. The output shows whether Compact OS is enabled or disabled.
  3. Interpret the output
    If the status is “The system is in the Compact state,” Compact OS is active. If it says “The system is not in the Compact state,” it is disabled.
  4. Disable Compact OS if needed
    To disable Compact OS, type compact /compactos:never and press Enter. This decompresses system files. Restart your PC.
  5. Re-enable Compact OS if desired
    To re-enable, type compact /compactos:always and press Enter. Restart your PC.

Step 5: Use Disk Cleanup to Clear System Compression Cache

Disk Cleanup can remove temporary files that may interfere with size calculations.

  1. Open Disk Cleanup
    Click Start, type cleanmgr, and press Enter.
  2. Select the drive
    Choose the drive where the compressed folder resides (usually C:) and click OK.
  3. Check Temporary files and Thumbnails
    In the list, ensure Temporary files and Thumbnails are checked. Click OK and confirm deletion.
  4. Restart your PC
    After cleanup, restart Windows 11 to clear any remaining cached data.

ADVERTISEMENT

If Windows 11 Still Shows the Wrong Size After These Steps

If the size display remains incorrect, consider these additional scenarios.

Folder Contains Symbolic Links or Junctions

Symbolic links and directory junctions can cause File Explorer to double-count or miscount folder sizes. To check, open a Command Prompt and run dir /al inside the parent folder. Look for entries with or . These links point to other locations, and their size may be reported incorrectly. To fix, move the link to a separate folder or remove it if not needed.

Folder Contains Sparse Files

Sparse files are large files with empty regions that NTFS handles efficiently. File Explorer may show a large Size but a small Size on disk for sparse files. This is normal behavior. To verify, use the command fsutil sparse queryflag filename. If the file is sparse, the size discrepancy is expected and not a bug.

Third-Party Compression Software Interference

Applications like 7-Zip or WinRAR may create compressed folders that are not NTFS compressed. Their size metadata can confuse File Explorer. Right-click the folder and check if a third-party context menu entry like “Add to archive” appears. If so, the folder is an archive, not an NTFS-compressed folder. To view the correct size, open the archive with the same software and check its internal file list.

NTFS Compression vs Compact OS: Key Differences

Item NTFS Compression Compact OS
Scope Individual files and folders Entire system files (Windows, WinSxS)
Algorithm LZNT1 (NTFS-specific) XPRESS4K or XPRESS8K (system-level)
Performance impact Minimal on modern hardware May slightly reduce read speed
How to enable Folder Properties > Advanced > Compress contents Command: compact /compactos:always
Size reporting Shows both uncompressed and compressed sizes Shows only compressed size for system files
User control Per-folder or per-file System-wide only

You can now identify why compressed folders show the wrong size on Windows 11 and apply the appropriate fix. Start with refreshing File Explorer and clearing the icon cache. If the issue persists, disable and re-enable NTFS compression on the folder. For system folders, check Compact OS status using the compact command. As a final step, run Disk Cleanup to remove cached data that may interfere with size calculations.

ADVERTISEMENT