Computer Basics

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

A bit is the smallest unit of digital data – a single binary digit valued 0 or 1 – and 8 bits make 1 byte, the unit that holds one character of text. Larger sizes (KB, MB, GB, TB, PB) just stack bytes, but they are counted two ways: powers of 1,000 (decimal) by drive makers and powers of 1,024 (binary) by your operating system, which is why a “1 TB” drive shows as 931 GB in Windows.

In shortA bit is one 0 or 1; a byte is 8 bits (one character). Sizes go byte -> KB -> MB -> GB -> TB -> PB, each ~1,000x bigger. Drives count in 1,000s; Windows counts in 1,024s, so a 1 TB drive reads 931 GB. Storage is in bytes (uppercase B); internet speed is in bits (lowercase b), so divide Mbps by 8 to get MB/s.
Data Unit ConverterBits, bytes, KB/MB/GB - decimal vs binary
8 bits
= 1 byte
256
values per byte (2⁸)
1,024
bytes per KiB (binary)
931 GB
of a “1 TB” drive in Windows

What Is a Bit?

A bit (binary digit) is the smallest unit of data, holding just one of two values: 0 or 1:

  • One on/off state: every number, letter, image, and sound a computer handles breaks down into bits.
  • Stored physically: one transistor (or one magnetic/flash cell) holds one bit at a time.
  • Lowercase b: the bit is written b, and network speeds are counted in bits per second (bps), not bytes.

What Is a Byte?

A byte is a group of 8 bits, the standard unit for one character of text:

What Is a Byte? - Bits, Bytes, KB, MB, GB, TB: Data Units Explained
  • 8 bits: fixed by the IBM System/360 in the 1960s and used by every modern computer since.
  • 256 values: 8 bits give 2⁸ = 256 combinations (0-255), enough for one ASCII character.
  • Nibble: half a byte (4 bits) = one hexadecimal digit (0-F); rare outside low-level work.
  • Uppercase B: the byte is written B, which is how file sizes and storage are measured.

What Are KB, MB, GB, TB, and PB?

KB, MB, GB, TB, and PB are bytes stacked in groups, each step about 1,000 times larger than the last:

Kilobyte (KB)

~1,000 bytes. A short paragraph of plain text. A 2,000-word page is about 12 KB.

Megabyte (MB)

~1,000 KB. A high-resolution photo, or about a minute of compressed audio.

Gigabyte (GB)

~1,000 MB. About 250 MP3 songs, or one standard-definition movie.

Terabyte (TB)

~1,000 GB. Hundreds of movies or hundreds of thousands of photos.

Petabyte (PB)

~1,000 TB. Data-center and large-archive scale – far beyond a single PC.

Each unit also has a binary twin (KiB, MiB, GiB…) counted in 1,024s, covered next. The full ladder up to the yottabyte is in the table below.

Complete Data Unit Table: Bit to Yottabyte

The table lists every unit from bit to yottabyte with its symbol and both the binary (1,024-based) and decimal (1,000-based) values:

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 is the base they count in: decimal prefixes use 1,000, binary prefixes use 1,024:

  • Decimal / SI (1,000): 1 KB = 1,000 bytes, 1 MB = 1,000 KB, 1 GB = 1,000 MB – used by drive makers and network speeds.
  • Binary / IEC (1,024): 1 KiB = 1,024 bytes, 1 MiB = 1,024 KiB, 1 GiB = 1,024 MiB – how computers actually address memory.
  • The IEC fix (1998-99): kibi/mebi/gibi/tebi were defined to end the old ambiguity where RAM used 1,024-based “MB” but disks used 1,000-based “GB”.
  • The catch: most operating systems still show 1,024-based values but label them “KB/MB/GB”, which keeps the confusion alive.
Quick ruleIf something is sold or advertised (a drive’s size, an internet plan), assume 1,000-based. If your computer is reporting used or free space, it is almost certainly 1,024-based, even when the label says “GB”.

Why Does a Hard Drive Show Less Space Than Advertised?

A drive shows less because the maker counts capacity in 1,000s while Windows counts in 1,024s – the same bytes, two labels:

  • On the box: a “1 TB” drive holds 1,000,000,000,000 bytes (decimal).
  • In Windows: that is divided by 1,073,741,824 and labeled “GB”, so it reads about 931 GB (really GiB).
  • Not lost space: the ~6.9% gap is a counting difference, not a defect or hidden partition; it grows with capacity.
  • macOS and Linux differ: since 2009 macOS reports decimal, so the same drive shows ~1,000 GB there.
How a “1 TB” drive is reported (GB)
On the box (decimal)1000 GB
In Windows (binary)931 GB

Real-World Data Size Examples

These examples map the units to everyday files so the scale is easy to picture:

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 AAA game install ≈ 50-150 GB.
  • 1 “1 TB” HDD displays as 931 GB in Windows (decimal vs binary).

Bits vs Bytes: Why Internet Speed and File Size Differ

Internet speed and file size use different units: speed is counted in bits, storage in bytes, and 8 bits = 1 byte:

  • Speed = bits (lowercase b): ISPs sell Mbps and Gbps – megabits and gigabits per second.
  • Storage = bytes (uppercase B): files and drives are in MB, GB, TB.
  • Convert: divide the bit figure by 8. 100 Mbps ÷ 8 = 12.5 MB/s max; 1 Gbps = 125 MB/s.
  • Real world: overhead, Wi-Fi loss, and server limits trim ~5-20%, so 100 Mbps lands near 10-12 MB/s in practice.
The common mistakeA 1 Gbps plan does not download at 1 GB/s. It is 1,000 megabits per second, which is 125 megabytes per second at best – eight times smaller than the number suggests.

Data Transfer Rate Units at a Glance

Transfer rates split by field: bits per second in networking, bytes per second in storage:

  • Mbps (megabits/s): ISP internet speeds. 100 Mbps downloads at 12.5 MB/s max, often over USB or Wi-Fi.
  • MBps (megabytes/s): storage device speeds. An SSD rated 500 MB/s moves 500 × 8 = 4,000 Mbps.
  • Gbps (gigabits/s): Ethernet links. 1 Gbps Ethernet = 125 MB/s maximum throughput.
Drive Real Capacity CalculatorSee why a drive shows less space than the box claims, and what your operating system actually reports

Last Thoughts on Bits, Bytes, and Data Units

Bits and bytes are the building blocks of all digital data: a bit is one 0 or 1, and 8 bits make a byte. The only real trap is counting – drive makers and network speeds use 1,000-based decimal units, while your operating system reports 1,024-based binary values under the same “KB/MB/GB” labels, which is why a 1 TB drive reads 931 GB. Keep two habits and the rest follows: divide Mbps by 8 to get MB/s, and remember that “advertised” size is decimal while “reported” size is binary.

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 (FAQs)

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.

Nizam Ud Deen

Muhammad Nizam Ud Deen Usman is the founder of theCoreiTech and the author of The Local SEO Cosmos. Nizam works as an SEO consultant and content strategy expert with more than a decade of experience in digital marketing and IT, and he also founded ORM Digital Solutions, a digital agency serving medium and large businesses. He holds a degree from the University of Education, Lahore (Multan Campus), and was listed among the top 20 SEO experts in Pakistan in 2024. Nizam started theCoreiTech in 2012 to make computers easier to understand and use for everyone. Connect with Nizam on LinkedIn (seoobserver), X (@SEO_Observer), or at nizamuddeen.com.

Leave a Reply

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

Back to top button