MEASUREMENT & METHODS

Data: units and measurement guide

Check the storage label before comparing numeric data sizes.

Measurement basis

One byte contains eight bits. Decimal and binary storage prefixes specify different factors, so the prefix convention is part of the data-size definition.

Definition conventions

Decimal steps use powers of 1,000; binary steps use powers of 1,024. The byte-to-bit relationship stays eight bits per byte.

Conversion method

Use the source and target definitions together, accounting for both bits versus bytes and the prefix convention.

Choose the conversion direction

Start with the exact storage symbol on the source value, then choose a decimal or binary target explicitly.

Bits, bytes and the origin of the terms

The bit is the basic unit of digital information, a choice between two values. The word was introduced in print by Claude Shannon in his 1948 paper on communication theory, who credited the coinage to John Tukey, a contraction of binary digit. The byte is a group of bits, standardized at 8 bits in practice since the 1960s, and Werner Buchholz is credited with coining the word at IBM in 1956 during work on the Stretch computer. One byte therefore holds 256 values and 1 B equals 8 bit. A nibble is half a byte, 4 bits, and shows up as a single hexadecimal digit. These basics matter because the data unit table has two different families of multiples that look alike.

Decimal prefixes versus binary prefixes

The SI prefixes mean powers of 1,000, so 1 kB is 1,000 bytes, 1 MB is 1,000,000 bytes and 1 GB is 10⁹ bytes. Memory hardware, however, naturally comes in powers of two, which led to the habit of calling 1,024 bytes a kilobyte. To remove the ambiguity, the IEC introduced binary prefixes in 1998, later included in IEC 80000-13: kibibyte (KiB) is 1,024 bytes, mebibyte (MiB) is 1,048,576 bytes and gibibyte (GiB) is 1,073,741,824 bytes. The factor between the families grows with the prefix, about 2.4 percent at kilo, 4.9 percent at mega, 7.4 percent at giga and 10 percent at tera. Software that reports GB while meaning GiB is where most confusion arises.

Why a new drive looks smaller than the label

Storage makers advertise capacity with decimal prefixes, so a 1 TB drive holds 10¹² bytes. An operating system that counts in binary units shows this as 931.32 GiB, and some systems label it GB, which makes the disk look smaller than promised. The same happens at every size: a 512 GB SSD is 476.84 GiB, and a 4.7 GB DVD is about 4.38 GiB. No capacity is missing, only the unit is different. When comparing figures, convert both to bytes or to the same prefix family. Once you notice the ratio, 0.931 for gigabytes to gibibytes, the discrepancy is predictable and can be checked in seconds.

A floppy disk and the mixed units it created

The 3.5 inch high-density floppy disk shows what happens when the two families are mixed in one name. Its capacity is 1,440 KiB, which is 1,474,560 bytes. Labeling it 1.44 MB uses a megabyte of 1,000 KiB, which is neither 1,000,000 bytes nor 1,048,576 bytes. That unit has no formal definition and appears nowhere else. The example is a reminder that a number with the symbol MB attached can come from three different conventions. Modern documents avoid this by using the IEC prefixes where binary is meant. When you meet an older reference that does not, check any source that lists the exact byte count, since that is unambiguous regardless of the prefix.

Bit and byte symbols

The symbol for byte is an uppercase B and for bit it is the word bit, with b sometimes used in informal text. A rate of 8 Mb is 8 megabits and 8 MB is 8 megabytes, which differ by a factor of 8, so the case of the letter matters. The SI prefix for kilo is a lowercase k, so kB is the correct symbol, while KB is widespread in practice and generally understood as kilobytes or kibibytes. Prefix symbols stay capitalized from mega upward. Network equipment tends to label in bits and storage in bytes, so a specification that mixes both, such as a 256 GB phone with a 100 Mb cap, uses different bases even though the symbols look alike.

File sizes from text to film

A page of plain text takes a few kilobytes. A compressed photograph from a phone is commonly several megabytes, a three-minute song in a compressed format around 3 to 8 MB, and a feature film in high definition several gigabytes. Operating systems and games run to tens of gigabytes, and large data sets reach terabytes. Multiples beyond the terabyte, namely the petabyte, exabyte and zettabyte, are used for data centers and global traffic estimates. At these sizes the 10 percent gap between TB and TiB becomes noticeable: a 10 TB archive is 9.09 TiB. Specifying the unit exactly avoids disputes over whether a delivered volume meets a contractual size.

Words, blocks and sector sizes

Computing uses other groupings between the byte and the kilobyte. A word is the natural unit of a processor, commonly 32 or 64 bits, so 8 bytes on a 64-bit system. A disk sector has long been 512 bytes, and many current drives use 4,096-byte sectors, which equals 4 KiB. File systems allocate space in clusters, so a one-byte file can occupy a full 4 KiB cluster, which is why the size on disk exceeds the size of the contents. Memory pages in most operating systems are likewise 4 KiB. When you convert a file size you are converting the byte count, and the space the file consumes on a particular disk is a different number set by the allocation unit.

Conversion practice

To convert between families, go through bytes. A file of 250 MB holds 250,000,000 bytes, which is 238.42 MiB, since 250,000,000 divided by 1,048,576 is about 238.42. A 16 GiB memory module has 17,179,869,184 bytes and is 17.18 GB. A 2 TiB volume is 2.199 TB. Between bits and bytes, divide by 8: 40 megabits is 5 megabytes, and 3 MB is 24 Mbit. Keep the same prefix family within each step, and only cross the decimal-binary boundary once, at the byte level. That order of operations produces fewer rounding errors than chaining several rounded intermediate values.

Standards and usage guidance

The IEC 80000-13 standard defines the binary prefixes, and the BIPM SI Brochure fixes the decimal prefixes and notes that SI prefixes always denote powers of ten. NIST has published guidance recommending the IEC prefixes for binary multiples. JEDEC memory standards still define KB, MB and GB in binary terms for semiconductor memory, which is why RAM is quoted in what are effectively gibibytes while sold as GB. If a document does not say which family it uses, assume decimal for storage devices and network figures, and binary for RAM and for some operating system displays, then confirm from the byte count where precision is needed.

Precision and checking

  • Preserve symbol capitalization and any i in a binary prefix.
  • A displayed decimal/binary difference does not change the underlying stored data quantity.

Reference numbers are displayed with up to twelve significant digits. That display does not add precision to a rounded measurement. Keep source and target quantities compatible, confirm symbol case and regional conventions, and round the final result to precision justified by the input. Factors involving π or repeating fractions use finite numerical precision.

Choose a unit definition

Use a working converter

Source and verification scope

The reference values and examples use the versioned unit definitions shared with the linked converters. Source dates identify the stated access or verification scope. A reverse calculation checks arithmetic and direction, but it does not independently verify a definition. Computandum is independent of the cited organizations, and the citations do not imply endorsement of this guide or a real application.

Sources

Read the calculation and sourcing methodology →