You may see one capacity written as 256 GB in one place and 238.42 GiB in another. Neither number is wrong, because GB and GiB are different units. One GB is 1,000,000,000 bytes. One GiB is 1,073,741,824 bytes, which is 7.37% larger.

This guide defines both families of prefixes, shows where the binary names came from, and explains how the same word ended up with two meanings. You can then convert any size by hand or with the storage units calculator.

Two families, two bases

The decimal prefixes are the SI prefixes. NIST lists kilo as 10³, mega as 10⁶, giga as 10⁹ and tera as 10¹². The binary prefixes count in powers of 2. NIST gives kibi as 2¹⁰, mebi as 2²⁰ and gibi as 2³⁰, and its examples include 1 MiB = 1,048,576 bytes and 1 GiB = 1,073,741,824 bytes.

This site writes KB, MB, GB and TB for the decimal units, and KiB, MiB, GiB and TiB for the binary ones. (The SI symbol for kilo is a lowercase k, so a strict decimal kilobyte is kB. This site uses KB to match common labels and its calculators.)

Decimal unit Bytes Binary unit Bytes Binary is larger by
1 KB 1,000 1 KiB 1,024 2.40%
1 MB 1,000,000 1 MiB 1,048,576 4.86%
1 GB 1,000,000,000 1 GiB 1,073,741,824 7.37%
1 TB 1,000,000,000,000 1 TiB 1,099,511,627,776 9.95%

The gap grows at every step, because each step multiplies a 1.024 difference into the one before it. That is why the mismatch was easy to ignore at kilobytes and hard to ignore at terabytes.

Where the binary names came from

NIST explains that computer professionals noticed that 2¹⁰ is very nearly 1,000 and began using "kilo" to mean 1,024. That worked while everyone who said kilobyte knew it meant 1,024 bytes. In 1998 the International Electrotechnical Commission approved names and symbols for binary multiples "for use in the fields of data processing and data transmission."

NIST also notes how the names were built. Each keeps the first two letters of the SI prefix and adds "bi," and each symbol adds an "i" (so Ki, Mi, Gi). The page is explicit that these prefixes "are not part of the International System of Units (SI)." The 2025 edition of the standard that covers them, IEC 80000-13, specifies names, symbols and definitions for units used in information science and technology, and the IEC page states that "Prefixes for binary multiples are also given."

Why one word had two meanings

NIST describes the situation plainly. When discussing computer memory, most manufacturers use megabyte to mean 2²⁰ = 1,048,576 bytes, but, in NIST's words, "the manufacturers of computer storage devices usually use the term to mean" 1,000,000 bytes. NIST adds a third megabyte of 1,024,000 bytes, used for a familiar 1.44 MB diskette, and concludes: "The confusion is real."

NIST also gives a reason for the split. Storage devices were not built on binary trees, so for many practical purposes binary arithmetic was less convenient than decimal arithmetic. A capacity written with SI prefixes therefore counts in powers of 1,000, the same way kilometers and kilograms do.

NIST also records that the IEEE Standards Board decided its standards would use the conventional SI meanings, so that mega means 1,000,000, with the base-2 meaning allowed only when it is explicitly pointed out.

That history gives a simple test for any number you see. When a tool reports binary quantities under the label GB, its figure will look about 7% smaller than the decimal GB figure for the same bytes. When both sides use the correct label, GB for 10⁹ and GiB for 2³⁰, the figures differ because the units differ, and nothing is missing.

Converting by formula

Convert through bytes so the two families never mix:

bytes = value × base^exponent (base 1,000 for decimal, 1,024 for binary)

GiB = bytes ÷ 1,073,741,824 and GB = bytes ÷ 1,000,000,000

Worked example. Example: a drive labeled 256 GB.

bytes = 256 × 1,000,000,000 = 256,000,000,000

GiB = 256,000,000,000 ÷ 1,073,741,824 = 238.42 GiB

The reverse direction works the same way. Example: 64 GiB.

bytes = 64 × 1,073,741,824 = 68,719,476,736

GB = 68,719,476,736 ÷ 1,000,000,000 = 68.72 GB

Adding sizes with different labels works the same way. Example: 3 GB plus 2 GiB.

bytes = 3 × 1,000,000,000 + 2 × 1,073,741,824 = 5,147,483,648

That total is 5.15 GB or 4.79 GiB, depending on the unit you want to report. It is not 5 of either, because the two parts were measured with different rulers.

Two constants cover most cases: 1 GB = 0.9313 GiB and 1 GiB = 1.0737 GB. As a shortcut, GiB ≈ GB × 0.9313. The table applies it to small capacities, using the exact byte counts.

Decimal label Bytes Binary equivalent
8 GB 8,000,000,000 7.45 GiB
16 GB 16,000,000,000 14.90 GiB
32 GB 32,000,000,000 29.80 GiB
64 GB 64,000,000,000 59.60 GiB

The storage units calculator does the same conversion: enter a value and a unit, and it shows the size in both families together with the difference. To find out which family a rounded figure used, start from an exact byte count when you have one. Example: 16,000,000,000 bytes divided by 1,000,000,000 is 16.00, and divided by 1,073,741,824 is 14.90. Whichever result matches the figure on screen tells you the base behind it.

For the drive-sized version of this problem, see why a 1 TB drive shows less space. If the letters themselves are the confusion, read bits vs. bytes.

Common mistakes

  • Assuming 1 GB is always 1,024 MB. In decimal units 1 GB is 1,000 MB. The 1,024 belongs to the binary pair, 1 GiB = 1,024 MiB. Check the letters before multiplying.
  • Mixing families in one calculation. Dividing a decimal byte count by 2³⁰ and labeling the answer GB gives a binary number under a decimal name. Divide by the base that matches the label you write.
  • Expecting the same gap at every size. The difference is 2.40% at kilobytes and 9.95% at terabytes. A rule of thumb learned at one level does not carry to the next.
  • Reading "Gb" as "GB." A lowercase b is the usual shorthand for bit, and a gigabit is one eighth of a gigabyte. The units are different in kind, not just in base.
  • Rounding before converting. A rounded figure such as 238 GiB converts back to a number that is off by hundreds of megabytes. Keep the byte count until the last step.

FAQ

Is a KiB the same as a KB?

No. A KiB is 1,024 bytes and a KB is 1,000 bytes, a 2.40% difference. The extra "i" marks the binary unit.

How many MB are in a GB?

In decimal units, 1,000 MB make 1 GB. In binary units, 1,024 MiB make 1 GiB.

Which unit should I use?

Either, as long as the label matches the base you used. SI prefixes mean powers of ten, and the IEC names exist for powers of 1,024. Mixing the two under one label is what creates errors.

Why do the binary names end in "bi"?

NIST says each name keeps the first two letters of the SI prefix and adds "bi," which recalls the word "binary." So kilo becomes kibi, mega becomes mebi and giga becomes gibi.

Sources

  1. NIST, Definitions of the SI units: The binary prefixes. Accessed November 6, 2026.
  2. NIST, Metric (SI) Prefixes. Accessed November 6, 2026.
  3. IEC, IEC 80000-13:2025, Quantities and units - Part 13: Information science and technology. Accessed November 6, 2026.