Understanding Digital Information Units

A bit is the fundamental building block of digital data, holding a single binary value: either 0 or 1. Eight bits combine to form one byte, which can represent 256 distinct values (from 0 to 255). This pairing emerged as the industry standard because it provides enough combinations to encode letters, numerals, punctuation, and basic control characters.

From bytes, larger units scale upward using either decimal (base 10) or binary (base 2) multipliers:

  • Decimal multiples use powers of 1,000: kilobyte (10³), megabyte (10⁶), gigabyte (10⁹), terabyte (10¹²)
  • Binary multiples use powers of 1,024: kibibyte (2¹⁰), mebibyte (2²⁰), gibibyte (2³⁰), tebibyte (2⁴⁰)

Storage manufacturers typically advertise capacity in decimal units, while operating systems often report file sizes in binary units—creating the apparent "missing" space on new drives.

Byte Conversion Formulas

Converting between units requires multiplying or dividing by the appropriate scaling factor. The formulas below show conversions to and from bytes as the reference unit:

Kilobytes = Bytes ÷ 1,000

Megabytes = Bytes ÷ 1,000,000

Gigabytes = Bytes ÷ 1,000,000,000

Terabytes = Bytes ÷ 1,000,000,000,000

Kibibytes = Bytes ÷ 1,024

Mebibytes = Bytes ÷ 1,048,576

Gibibytes = Bytes ÷ 1,073,741,824

  • Bytes — The number of individual bytes you want to convert
  • Kilobytes — One kilobyte equals 1,000 bytes in the decimal system
  • Megabytes — One megabyte equals 1,000,000 bytes (or 1,000 kilobytes)
  • Gigabytes — One gigabyte equals 1,000,000,000 bytes (or 1,000 megabytes)
  • Terabytes — One terabyte equals 1,000,000,000,000 bytes (or 1,000 gigabytes)

Decimal vs. Binary: A Critical Distinction

The confusion between decimal and binary units stems from competing standards. The International System of Units (SI) defines kilobyte as 1,000 bytes, while the IEC standard reserves the "kibi-" prefix for binary quantities (1,024 bytes = 1 kibibyte).

This 2.4% difference at the kilobyte level compounds dramatically:

  • 1 MB (decimal) = 1,000 KB, but 1 MiB (binary) = 1,024 KiB—a 2.4% gap
  • 1 GB (decimal) = 1,000 MB, but 1 GiB (binary) = 1,024 MiB—a 7.3% gap
  • 1 TB (decimal) = 1,000 GB, but 1 TiB (binary) = 1,024 GiB—a 10% gap

Hard drive manufacturers use decimal units for marketing, meaning a "1 TB" drive actually holds roughly 931 GiB. Your operating system reports capacity in binary units, explaining the discrepancy when you physically connect the device.

Common Conversion Pitfalls

Avoid these frequent mistakes when converting between digital storage units:

  1. Confusing decimal and binary prefixes — A kilobyte (KB) is not the same as a kibibyte (KiB). If a document shows 1 MB, confirm whether it means 1,000,000 bytes or 1,048,576 bytes. Always check the source documentation or context clues to identify which system is being used.
  2. Forgetting that storage devices underreport capacity — When you buy a 1 TB external drive and connect it to your computer, it typically shows as ~931 GB. This isn't a defect—manufacturers advertise in decimal terabytes (10¹² bytes), but your OS displays binary tebibytes (2⁴⁰ bytes). The difference is normal and expected.
  3. Assuming all file sizes follow the same standard — Cloud storage services may advertise space in decimal units, while your local file explorer uses binary units. Before comparing storage quotes across platforms, verify which system each one employs to avoid purchasing insufficient capacity.
  4. Overlooking bits in bandwidth contexts — Internet speeds are measured in megabits (Mb) per second, not megabytes (MB). A 100 Mbps connection transfers ~12.5 MB/s. Many users mistakenly compare download speeds directly to file sizes without converting, leading to incorrect transfer time estimates.

Frequently Asked Questions

Why do storage devices show less capacity than advertised?

Manufacturers list capacity using decimal units (base 1,000), where 1 TB = 1,000,000,000,000 bytes. Operating systems report using binary units (base 1,024), where 1 TiB = 1,099,511,627,776 bytes. A 1 TB drive technically holds 1 trillion bytes, but the operating system interprets this as approximately 0.91 TiB, or ~931 GB. This is standard behavior across all storage devices and isn't caused by hidden partitions or defects.

What's the difference between megabytes and megabits?

A megabyte (MB) contains 8 megabits (Mb). Internet service providers advertise speeds in megabits per second (Mbps), while file transfers are measured in megabytes per second (MB/s). A 100 Mbps connection downloads at roughly 12.5 MB/s. The "bit" terminology is used for transmission speeds because network protocols operate at the bit level, whereas storage and file operations naturally work with bytes.

Should I use binary or decimal units for my storage calculations?

Use decimal units (KB, MB, GB, TB) when dealing with manufacturer specifications, network traffic, and official storage capacity claims. Use binary units (KiB, MiB, GiB, TiB) when working with actual disk space, file sizes reported by your operating system, and memory allocations. In practice, most people rely on whatever their system displays, but understanding both systems prevents confusion when comparing advertised versus actual capacity.

How many bytes are in a gigabyte?

In decimal units (standard for marketing), 1 GB = 1,000,000,000 bytes. In binary units (standard for operating systems), 1 GiB = 1,073,741,824 bytes. The difference is approximately 73.7 million bytes, or about 7.3%. This discrepancy explains why a 500 GB external drive appears as roughly 465 GiB in Windows Explorer.

What are the largest byte units used in practice?

Enterprise data centers use petabytes (1,000 TB) and exabytes (1,000 PB) for massive datasets. A petabyte could store roughly 500 billion documents, while an exabyte could hold the equivalent of all recorded human speech. Even larger units like zettabytes (1,000 EB) and yottabytes (1,000 ZB) exist mathematically but are rarely used outside theoretical discussions, as they would represent the total storage capacity of the entire planet many times over.

Why is 1,024 used instead of 1,000 for binary conversions?

Computer memory and storage use binary addressing, where 2¹⁰ = 1,024. Early computers naturally grouped bits in powers of 2 (2, 4, 8, 16, 32, 64, 128, 256, etc.), making 1,024 the logical boundary for the next unit. This stems from how processors access memory—addresses are binary numbers with a fixed bit width, so powers of 2 align perfectly with hardware design.

More conversion calculators (see all)