Computer Basics

Bits, Bytes, KB, MB, GB, TB: Data Units Explained

A bit is the smallest unit of data in computing — a single binary digit with a value of 0 or 1. This guide defines every data unit from bits to yottabytes, explains the binary (1024-based) versus decimal (1000-based) prefix systems, and covers data transfer rate units used in networking.

What Is a Bit?

A bit (binary digit) is the smallest possible unit of data. It holds exactly one of two values: 0 or 1. Every piece of information a computer handles — numbers, text, images, audio — decomposes into individual bits.

A single transistor stores one bit. A modern CPU contains up to 100 billion transistors, each representing one bit at any given moment. Data transfer speeds in networking are measured in bits per second (bps), not bytes per second.

What Is a Byte?

A byte consists of exactly 8 bits. A byte is the standard unit for representing one character of text in ASCII encoding. The number 8 was standardized in the 1960s with the IBM System/360, and all modern computing architectures treat 8 bits as one byte.

What Is a Byte? - Bits, Bytes, KB, MB, GB, TB: Data Units Explained

A nibble is half a byte — 4 bits. A nibble represents exactly one hexadecimal digit (0–F). Nibbles are relevant in low-level programming and hardware design but rarely referenced in consumer computing.

One byte can represent 2⁸ = 256 unique values (0 through 255 in unsigned form).

Complete Data Unit Table: Bit to Yottabyte

Data units scale by powers of 1,024 in the binary system and powers of 1,000 in the decimal system:

UnitSymbolBinary Value (IEC)Decimal Value (SI)
Bitb1 bit1 bit
Nibble4 bits4 bits
ByteB8 bits8 bits
KilobyteKB / KiB1,024 bytes1,000 bytes
MegabyteMB / MiB1,048,576 bytes1,000,000 bytes
GigabyteGB / GiB1,073,741,824 bytes1,000,000,000 bytes
TerabyteTB / TiB1,099,511,627,776 bytes1,000,000,000,000 bytes
PetabytePB / PiB2⁵⁰ bytes ≈ 1.126 × 10¹⁵10¹⁵ bytes
ExabyteEB / EiB2⁶⁰ bytes ≈ 1.153 × 10¹⁸10¹⁸ bytes
ZettabyteZB / ZiB2⁷⁰ bytes ≈ 1.181 × 10²¹10²¹ bytes
YottabyteYB / YiB2⁸⁰ bytes ≈ 1.209 × 10²⁴10²⁴ bytes

What Is the Difference Between Binary and Decimal Prefixes?

The difference between binary and decimal prefixes causes a real capacity gap that affects every storage device sold to consumers.

Hard drive manufacturers use the decimal definition: 1 TB = 1,000,000,000,000 bytes. Operating systems report capacity using the binary definition: 1 TiB = 1,099,511,627,776 bytes. A “1 TB” hard drive formatted by Windows displays as 931 GB usable capacity — a 6.9% reduction caused entirely by the measurement discrepancy, not by actual data loss.

The IEC (International Electrotechnical Commission) standardized binary prefixes in 1998 to eliminate ambiguity:

  • KiB (kibibyte) = 1,024 bytes (binary kilobyte)
  • MiB (mebibyte) = 1,048,576 bytes (binary megabyte)
  • GiB (gibibyte) = 1,073,741,824 bytes (binary gigabyte)
  • TiB (tebibyte) = 1,099,511,627,776 bytes (binary terabyte)

Most operating systems still display GiB values but label them “GB,” which perpetuates confusion. macOS switched to decimal SI units in 2009, so macOS reports a 1 TB drive as approximately 1 TB rather than 931 GB.

Real-World Data Size Examples

The following examples show how data units map to common files and storage scenarios:

Real-World Data Size Examples - Bits, Bytes, KB, MB, GB, TB: Data Units Explained
  • 1 ASCII character = 1 byte
  • 1 tweet (280 characters) ≈ 280 bytes
  • 1 page of plain text (2,000 words) ≈ 12 KB
  • 1 MP3 song at 128 kbps (4 minutes) ≈ 4 MB
  • 1 JPEG photo (12 megapixel) ≈ 3–6 MB
  • 1 hour of 1080p video (H.264) ≈ 4–8 GB
  • 1 hour of 4K video (H.264) ≈ 45 GB
  • 1 installed game (AAA title) ≈ 50–150 GB
  • 1 TB HDD displays as 931 GB in Windows (decimal vs binary)

What Are Data Transfer Rate Units?

Data transfer rates use bits per second (bps) in networking and bytes per second (B/s) in storage benchmarking. The distinction is critical because 1 byte = 8 bits.

  • Mbps (megabits per second): Used by ISPs to advertise internet speeds. A 100 Mbps connection downloads at 12.5 MB/s maximum.
  • MBps (megabytes per second): Used for storage device speeds. An SSD rated at 500 MBps transfers 500 × 8 = 4,000 Mbps of data.
  • Gbps (gigabits per second): Used for Ethernet speeds. 1 Gbps Ethernet = 125 MB/s maximum throughput.

A common error: an ISP advertising a 1 Gbps plan does not deliver 1 GB/s download speed. Actual throughput is 1,000 Mbps ÷ 8 = 125 MB/s.

Key Takeaways

  • A bit is 1 binary digit (0 or 1); a byte is exactly 8 bits.
  • Data units scale by 1,024 (binary/IEC) or 1,000 (decimal/SI) depending on the context.
  • A “1 TB” hard drive shows as 931 GB in Windows because manufacturers use decimal (10¹²) while Windows reports in binary (2⁴⁰).
  • Networking speeds use bits per second (Mbps); storage speeds use bytes per second (MBps).
  • A 100 Mbps internet connection downloads at a maximum of 12.5 MB/s.
  • IEC introduced KiB, MiB, GiB, TiB to unambiguously denote binary multiples.

Frequently Asked Questions

How many bytes are in a kilobyte?

In the binary (IEC) definition, 1 kilobyte = 1,024 bytes. In the decimal (SI) definition used by storage manufacturers, 1 kilobyte = 1,000 bytes. Most operating systems use the 1,024-byte definition.

Why does a 1TB hard drive show less than 1TB in Windows?

Hard drive manufacturers measure 1 TB as 10¹² = 1,000,000,000,000 bytes. Windows measures 1 TB as 2⁴⁰ = 1,099,511,627,776 bytes. The resulting 1 TB drive displays as 931 GB in Windows.

What is the difference between Mbps and MBps?

Mbps = megabits per second (networking). MBps = megabytes per second (storage). Since 1 byte = 8 bits, 100 Mbps equals 12.5 MBps. ISPs advertise in Mbps; storage benchmarks use MBps.

How many gigabytes is 1 terabyte?

In decimal, 1 TB = 1,000 GB. In binary (IEC), 1 TiB = 1,024 GiB. A drive labeled 1 TB by its manufacturer contains approximately 931 GiB as reported by Windows.

How large is a petabyte?

1 petabyte = 1,000 terabytes (decimal) or 1,024 tebibytes (binary). Storing 1 PB of compressed text would hold approximately 500 billion pages of plain text.

Last Thoughts on Bits, Bytes, and Data Units

Bits and bytes are the foundational units of all digital data. The binary (1,024-based) and decimal (1,000-based) prefix systems create real-world discrepancies in storage capacity reporting, and the distinction between bits-per-second and bytes-per-second affects how internet and storage speeds translate to practical performance. Precise use of these units is necessary for accurate storage planning, network capacity calculations, and hardware evaluation.

Nizam Ud Deen

Nizam Ud Deen is the founder of theCoreiTech, a tech-focused platform dedicated to simplifying the world of computers, hardware, and digital innovation. With nearly a decade of experience in digital marketing and IT, Nizam combines strategic marketing insight with deep technical understanding. As a passionate entrepreneur, he has built multiple successful digital products and online ventures, helping bridge the gap between technology and everyday users. His mission through theCoreiTech is to empower readers to make informed decisions about computers, hardware, and emerging tech trends through clear, data-driven, and actionable content.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button