Overview
Choose the right denominator
A folder-size percentage is meaningful only when its reference total is clear. This guide shows how to calculate a folder’s share of Demo Storage and how to compare one file with its containing folder, a distinction useful when prioritizing cleanup or explaining a storage report.
- Calculation
- part ÷ reference total × 100
- Dataset
- 1,000 MiB logical size
- Folder count
- Five direct folders
Start by deciding what the percentage should describe. For a folder’s share of the entire dataset, divide that folder’s logical size by the dataset total. For a file’s share of its folder, use the containing folder total instead.
In Demo Storage, Media is 400 MiB out of 1,000 MiB, so it represents 40% of the dataset. The denominator is the full dataset, not the total of the other folders or the number of files.
| Folder | Logical size | Denominator | Dataset share |
|---|---|---|---|
| Media | 400 MiB | 1,000 MiB | 40% |
| Archive | 250 MiB | 1,000 MiB | 25% |
| Projects | 180 MiB | 1,000 MiB | 18% |
| Photos | 100 MiB | 1,000 MiB | 10% |
| Documents | 70 MiB | 1,000 MiB | 7% |
Self-check: What is Media’s denominator?
It is the full Demo Storage total of 1,000 MiB. The calculation is 400 ÷ 1,000 × 100, which gives Media a 40% share of the dataset.
A percentage changes when the reference total changes, even though the file size stays the same. Archive’s largest file, backup-a.zip, is 200 MiB. Compared with Archive’s 250 MiB total, it accounts for 80% of that folder.
Against the full 1,000 MiB dataset, the same file is 20%. State the reference beside the result—“80% of Archive” or “20% of Demo Storage”—so readers do not mistake a parent-level share for a dataset share.
- Folder comparison: 200 ÷ 250 × 100 = 80% of Archive.
- Dataset comparison: 200 ÷ 1,000 × 100 = 20% of Demo Storage.
A folder total includes the files below it. Every file in this demonstration is a direct child of one named folder, and each named folder is a direct child of Demo Storage. The five folder totals therefore partition the dataset: 400 + 250 + 180 + 100 + 70 = 1,000 MiB.
When calculating a dataset share, use the folder total once. Do not add its descendant files to the dataset again; they are already represented in that folder’s total. For a deeper tree, compare a subfolder with its parent when that relationship is the point, or with the dataset total when measuring its overall contribution.
Folder shares help people decide where to investigate first: Media takes 40% of the dataset, while Documents takes 7%. A larger share identifies more logical data in this example; it does not explain whether those files are needed, duplicated, or safe to remove.
These values use logical sizes, with one MiB equal to 1,048,576 bytes. Allocated storage is a separate measurement and is not included here. Before deleting anything, check the file’s purpose, confirm that a separate backup exists when needed, and make sure the application or system does not depend on it.
For another useful distinction, read Understanding Folder Sizes to see how file sizes combine into folder totals.


