CS Fundamentals
Learn about data measurement units — bits, bytes, kilobytes, megabytes, gigabytes, terabytes. Understand how data size is measured in computing.
Introduction
How much data can a USB drive hold? How big is a song file? How much internet bandwidth do you have? To answer these questions, you need to understand data units — the system we use to measure digital information. It all starts with a single bit.
The Bit — Smallest Unit of Data
A bit (binary digit) is the smallest possible unit of data. It has exactly two possible values: 0 or 1. One bit alone can represent:
- Yes or No
- On or Off
- True or False
A single bit isn't very useful alone, but combine many bits together and you can represent anything.
The Byte — Fundamental Unit
A byte is 8 bits grouped together. One byte can represent:
- 2⁸ = 256 different values (0 to 255)
- One character of text (in ASCII)
- One color channel value (red, green, or blue intensity)
The byte is the fundamental addressable unit of computer memory — when we say a computer has "16 GB of RAM," we mean 16 gigabytes.
Data Size Units
| Unit | Abbreviation | Size | Practical Meaning |
|---|---|---|---|
| Bit | b | 1 bit | A single 0 or 1 |
| Byte | B | 8 bits | One character |
| Kilobyte | KB | 1,024 bytes | A short email |
| Megabyte | MB | 1,024 KB | A song (MP3) |
| Gigabyte | GB | 1,024 MB | A movie (720p) |
| Terabyte | TB | 1,024 GB | 250,000 photos |
| Petabyte | PB | 1,024 TB | Large data center |
| Exabyte | EB | 1,024 PB | Global internet traffic per day |
Why 1,024 instead of 1,000?
Computers work in binary (powers of 2). The closest power of 2 to 1,000 is 2¹⁰ = 1,024. So:
- 1 KB = 1,024 bytes (not exactly 1,000)
- 1 MB = 1,024 × 1,024 = 1,048,576 bytes
Note: Storage manufacturers use 1,000 (decimal) instead of 1,024. That's why a "500 GB" hard drive shows as ~465 GB in your operating system — both are correct, they just use different definitions.
Real-World File Sizes
| Data Type | Typical Size |
|---|---|
| A single text character | 1 byte |
| A page of text | 2-3 KB |
| A short email | 5-20 KB |
| A typical photo (phone) | 3-8 MB |
| An MP3 song (4 min) | 4-8 MB |
| A high-res RAW photo | 25-50 MB |
| A 1-hour podcast | 50-100 MB |
| A movie (1080p) | 2-5 GB |
| A video game (modern) | 50-150 GB |
| Windows OS installation | 20-40 GB |
Data Transfer Rates (Speed)
Internet and network speeds are measured in bits per second (not bytes):
- Mbps = Megabits per second (note: lowercase 'b' = bits)
- MBps = Megabytes per second (uppercase 'B' = bytes)
To convert: divide bits by 8 to get bytes.
- 100 Mbps internet = 12.5 MBps maximum download speed
- A 4 GB movie at 100 Mbps takes: 4,000 MB ÷ 12.5 MBps = ~5 minutes
Common internet speeds:
| Connection | Speed (Mbps) | Download 1 GB |
|---|---|---|
| Basic broadband | 25 Mbps | ~5 minutes |
| Fast broadband | 100 Mbps | ~80 seconds |
| Gigabit fiber | 1,000 Mbps | ~8 seconds |
| 5G mobile | 100-1,000 Mbps | 8-80 seconds |
Bits vs Bytes — Watch the Capitalization!
This causes endless confusion:
- b (lowercase) = bits
- B (uppercase) = bytes
So:
- 100 Mb = 100 megabits = 12.5 megabytes
- 100 MB = 100 megabytes = 800 megabits
Internet providers advertise in bits (bigger numbers look better in ads). File sizes are shown in bytes. This mismatch confuses many people.
How Much Storage Do You Need?
| Usage Pattern | Recommended Storage |
|---|---|
| Basic (email, documents, web) | 128-256 GB |
| Standard (photos, some games, apps) | 512 GB |
| Heavy (many games, video editing, large libraries) | 1-2 TB |
| Professional (video production, databases) | 4+ TB |
Key Takeaways
- The bit (0 or 1) is the smallest data unit; the byte (8 bits) is the fundamental unit
- Units scale by 1,024: KB → MB → GB → TB → PB → EB
- Storage manufacturers use 1,000; OS uses 1,024 — explaining the "missing" space
- Network speeds use bits per second; file sizes use bytes — divide by 8 to convert
- Watch capitalization: b = bits, B = bytes (big difference!)
- Understanding data units helps you make informed decisions about storage, internet plans, and file management
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Data Units.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Computer Fundamentals topic.
Search Terms
computer-fundamentals, computer fundamentals, computer, fundamentals, data, representation, units, data units
Related Computer Fundamentals Topics