Have you ever copied a file from one drive to another and noticed that its size looks different? Or opened a file’s Properties window and found two different values under “Size” and “Size on disk”?
This does not always mean that Windows has changed your file or that some data is missing. Windows can display file sizes in different ways depending on where you check them, how the file is stored and which storage feature is being used.
Understanding these differences makes it easier to check storage usage, compare copied files and identify situations where a file really has changed.
File size and Size on disk are not the same
The first thing to understand is the difference between these two values. Windows displays both in the Properties window of a file.
Size: This is the logical size of the file. It represents the amount of data contained in the file, measured in bytes.
Size on disk: This represents the storage space Windows attributes to the file on that drive. It can be different because of disk allocation, compression or sparse file storage.
For example, a small text file might contain 2 KB of data but occupy a larger amount of allocated space on a drive. The difference depends partly on how the file system allocates storage.
To check both values, right-click a file, select Properties and look under the General tab. You will see Size and Size on disk listed separately.
Why Size on disk changes between drives
Windows does not necessarily allocate storage one byte at a time. File systems divide available space into units called clusters. A file uses the number of clusters needed to store its data, so the allocated space can be greater than the actual file size.
Imagine a file containing 5 KB of data on a drive that allocates storage in 4 KB clusters. It may need two clusters, using 8 KB of allocated space. The exact result depends on the file system and its allocation settings.
Now copy the same file to another drive with a different cluster size. The logical file size can remain unchanged, while its Size on disk becomes different.
This is one reason why a file may appear to occupy more space on one drive than another. Microsoft explains the relationship between file size, allocated space and NTFS storage in its documentation about disk space on NTFS volumes.
File compression can reduce the space used
Windows supports NTFS compression, which can store certain files using less physical disk space. The file’s logical size may stay the same even when its compressed storage requirement is smaller.
For example, a file with a logical size of 100 MB might use less than 100 MB of storage when NTFS compression is effective. The amount saved depends on the type of data. Text-based files may compress well, while already-compressed formats such as JPEG images or many video files may show little reduction.
This can explain why two copies of a file have different Size on disk values when one is stored in a compressed location and the other is not.
Do not confuse NTFS compression with ZIP or other archive formats. NTFS compression is handled by the file system, while an archive is a separate file created by a compression application.
Sparse files may occupy less space than their reported size
Sparse files are another reason for a difference between logical size and actual storage usage. They allow parts of a file that contain only zero values to remain unallocated instead of taking up ordinary disk space.
This is useful for certain large files, including some virtual disk and database files. A sparse file can have a large reported size even though only part of its data occupies physical storage.
For example, a virtual disk file might report a size of several gigabytes but use much less physical storage if most of its space has not been written with actual data.
Microsoft’s Sparse Files documentation explains how Windows handles unallocated regions in these files.
OneDrive files may show different local storage usage
If your files are stored in OneDrive, the difference may be related to Files On-Demand.
This feature allows you to see files in File Explorer without downloading every file’s full contents to your computer. Some files remain online-only until you open them or choose to keep them available locally.
As a result, a file can have a reported logical size while using very little local disk space. Its online content is still available through OneDrive, but the complete file may not be stored on your device.
To check its availability, look at the status icon beside the file in File Explorer. A cloud icon generally indicates an online-only file, while a green check indicates that the file is available locally. The exact icon can vary depending on the OneDrive sync state.
Microsoft explains these differences in its support article about OneDrive sizes and dates not matching.
Windows may round file sizes differently
Sometimes the file has not changed at all. The difference comes from how Windows displays the number.
File Explorer may show a rounded value such as 1.5 MB, while the Properties window includes a more precise byte count. A folder’s displayed total may also be rounded, so adding the visible values manually may not produce the same result as the exact total.
There is also a difference between decimal and binary units. Storage manufacturers commonly use decimal measurements, where 1 GB equals 1,000,000,000 bytes. Windows and other software may use binary calculations, where 1 GiB equals 1,073,741,824 bytes, even when the displayed unit label says GB.
This is one reason a drive advertised as 1 TB may appear to have a lower capacity in Windows. The difference does not automatically indicate missing storage.
How to check the actual size of a file
If you want to compare file sizes accurately, avoid relying only on the rounded value shown in File Explorer. Use the exact byte count instead.
For one file, follow these steps:
- Open File Explorer.
- Find the file you want to check.
- Right-click it and select Properties.
- Look at the Size field.
- Check the exact number of bytes shown in parentheses, if available.
You can also use PowerShell to check the exact logical size of multiple files in a folder. Open the folder in File Explorer, click its address bar, type powershell and press Enter. Then run:
Get-ChildItem -File | Select-Object Name, Length
The Length column reports each file’s size in bytes. This command reads file information; it does not change or delete anything. It lists files in the current folder, not files inside all its subfolders.
What to check when two copies show different sizes
If you copied a file and the two versions appear to have different sizes, first check whether you are comparing the same measurement. Compare Size with Size, rather than comparing Size on disk with Size.
Then check the following points:
- Compare exact byte counts: Rounded MB or GB values can hide small differences.
- Check the file locations: One copy may be stored in a compressed or cloud-synced location.
- Check the file system: Different drives may use different allocation sizes.
- Check OneDrive status: An online-only file may not have its full contents stored locally.
- Compare file contents if necessary: If exact sizes differ, the files may not be identical. A hash comparison can help confirm whether their contents match.
For a stronger comparison, you can calculate a SHA-256 hash for each file using PowerShell:
Get-FileHash "C:\Path\To\File.ext" -Algorithm SHA256
Run the command for both copies, replacing the paths with their actual locations. If the SHA-256 hash values match, the files have matching content with an extremely high level of confidence. If they differ, the contents are not identical.
Common reasons for different file size readings
| What you notice | Possible reason | What to check |
|---|---|---|
| Size and Size on disk differ | Cluster allocation, compression or sparse storage | File Properties and file system settings |
| Same file uses different disk space on two drives | Different cluster sizes or compression settings | Drive format and storage properties |
| OneDrive file uses very little local space | Files On-Demand placeholder | OneDrive status icon |
| File Explorer and Properties show slightly different numbers | Rounding or unit conversion | Exact byte count |
| Two copies have different exact sizes | Different file contents or an incomplete copy | Compare SHA-256 hashes |
Also Read: How to Find Empty Folders Left Behind by Uninstalled Programs
Final thoughts
Different file size readings in Windows do not always mean something is wrong. The difference may come from storage allocation, NTFS compression, sparse files, OneDrive or simple rounding.
When checking a file, start with its exact Size value rather than relying on the rounded figure in File Explorer. If you are comparing two copies and need to confirm that they are identical, compare their SHA-256 hashes. This gives you a much clearer answer than looking at the displayed storage figures alone.
About the Author
Himanshu writes about technology, software tools and practical digital solutions.






One comment on “Why Windows Shows Different File Sizes in Different Locations”