Reconciling decimal and binary storage quantities
A megabyte and a mebibyte are close in size but not equal, and the gap is 48,576 bytes per unit. This guide shows where the two conventions come from and how to compare capacities labeled either way.
Two definitions of a million-ish bytes
A decimal megabyte follows the SI prefix mega, which means one million, so it holds 1,000,000 bytes. A mebibyte uses the binary prefix mebi, which stands for 2 to the 20th power and holds 1,048,576 bytes. The binary figure comes from the way memory addresses grow in powers of two. Computers have long used 1,024 for what they called a kilobyte, because 1,024 is close to 1,000, and the habit carried over to megabytes and gigabytes. The two meanings of the same word caused enough confusion that the IEC standardized the names kibi, mebi and gibi in the late 1990s, and the names now appear in IEC 80000-13.
The size of the gap
The difference between one mebibyte and one megabyte is 1,048,576 minus 1,000,000, or 48,576 bytes, which is about 4.86 percent of a decimal megabyte. The gap widens with each prefix step, since each binary step multiplies by 1,024 and each decimal step by 1,000. A gibibyte is 1,073,741,824 bytes, about 7.4 percent more than a decimal gigabyte, and a tebibyte is about 10 percent more than a decimal terabyte. At the next step up, a pebibyte exceeds a decimal petabyte by roughly 12.6 percent. Small files hide the effect: a 4 kilobyte block and a 4 kibibyte block differ by only 96 bytes, so the confusion became visible only as capacities grew into the gigabyte range and beyond. These percentages are why a larger drive appears to lose more space than a smaller one when its label is read in the other convention.
A drive that seems to be missing space
Storage makers use decimal prefixes, which the SI Brochure defines and which keep the labels consistent with the rest of science and commerce. A drive sold as 500 gigabytes holds 500,000,000,000 bytes. If an operating system reports that capacity in binary gigabytes, it shows about 465.7, since 500,000,000,000 divided by 1,073,741,824 is 465.66. No bytes are missing. The label and the display describe the same number of bytes in different units. A one-terabyte drive shows about 931 in the binary display for the same reason. Some systems use decimal units in their displays, and others label binary units with the decimal names, so the same drive can appear with different numbers on different machines.
Comparing a byte total before blaming overhead
When two capacities disagree, compute the byte totals first. Convert each stated quantity to bytes, using the right unit for the stated prefix, and compare the results. If the byte counts match, the difference came from the unit names. If they differ, then file system structures, reserved areas, partition tables and formatting overhead become plausible explanations. A file system reserves some space for its own metadata, and some systems reserve extra space for repairs or wear leveling, so a formatted volume holds fewer user bytes than the raw device. Those overheads are real, but they are usually smaller than the 4.86 percent or 7.37 percent unit gap, and they should be tested only after the units are settled.
Using a conversion to settle a file size
Suppose a file of 100 decimal megabytes needs to be compared against a limit stated in mebibytes. The file holds 100,000,000 bytes, and dividing by 1,048,576 gives about 95.37 mebibytes. A limit of 95 MiB would be too small for it, even though the file looks smaller than 100 MB. In the other direction, a 100 MiB file holds 104,857,600 bytes, about 104.86 decimal megabytes, and would fail a limit of 100 MB. Upload limits, mail attachment limits and storage quotas are common places where the unit family decides whether a file fits, so read the limit documentation for the exact prefix.
Memory sizes and drive sizes side by side
The two families meet in a single computer. Memory is built from address lines, so its sizes are powers of two: a module sold as 8 gigabytes holds 8 gibibytes, or 8,589,934,592 bytes, which is about 8.59 decimal gigabytes. A solid-state drive sold as 256 gigabytes holds 256,000,000,000 bytes, which is about 238.4 gibibytes. Both are labeled with the same letters, and both labels are honest in the convention their industry uses. The apparent mismatch shows up when an operating system lists memory and storage in one window with one unit name. Converting each figure to bytes puts them on the same footing and shows which differences come from prefixes and which, if any, are left over for formatting and reserved space.
Labels in the wild
The prefix names do not guarantee the meaning. Some operating systems and applications show KB, MB or GB while computing in powers of 1,024. Memory modules are sold in binary sizes such as 8 gigabytes, which really means 8 gibibytes, or 8,589,934,592 bytes. Network speeds always use decimal prefixes. Flash cards, hard drives and solid-state drives use decimal prefixes on the packaging. Macintosh operating systems have shown decimal units in file sizes since 2009, while Windows has long used binary values under the decimal-looking labels. Checking the documentation for the specific product, or comparing against a known byte count, shows which convention is in use.
Writing capacities clearly
In your own documents, pick one convention and state it. Use kB, MB and GB with their decimal meanings when you quote a manufacturer figure or a network rate, and use KiB, MiB and GiB when the context is memory or a binary-sized buffer. Include the byte count when it matters, because 1,048,576 bytes cannot be misread. In a spreadsheet, keep the unit in the column heading and avoid mixing the two families in one column. If the audience is not technical, a short note under the table, saying that MB here means one million bytes, removes the most common source of confusion without lengthening the document.
What the converter does with these units
The data size converter treats each unit as a fixed number of bytes: megabyte as 1,000,000 and mebibyte as 1,048,576. It does not know how a particular program labels its output, and it does not subtract file-system overhead. Given a number and its stated unit, it returns the exact conversion. The accuracy of the answer depends on whether the unit name in the source matches the convention that the program actually used. For a disputed capacity, convert both sides to bytes, subtract them as shown in the worked difference, and let the result tell you whether the unit labels explain the gap.
Reproduce the checks
Decimal unit
Open the Data size converter and enter:
- Value
1- From
megabyte- To
byte
Expected output:
Converted value
1000000Convert the stated megabyte quantity to byte before using it in the comparison.
Binary unit
Open the Data size converter and enter:
- Value
1- From
mebibyte- To
byte
Expected output:
Converted value
1048576Convert the stated mebibyte quantity to byte before using it in the comparison.
Byte-count difference
Open the Basic calculator and enter:
- First number
1048576- Operation
subtract- Second number
1000000
Expected output:
Result
48576The difference follows from the two unit definitions.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- NIST: NIST Guide to the SI: conversion factors ↗ · 2026-10-07