Units of Computer Storage
Units of storage are used to measure the amount of digital data that a computer, smartphone or storage device can hold.
Just as distance is measured in metres and weight is measured in kilograms, computer data is measured in bits, bytes, kilobytes, megabytes, gigabytes and terabytes.
Common units of computer storage include:
- Bit
- Nibble
- Byte
- Kilobyte
- Megabyte
- Gigabyte
- Terabyte
- Petabyte
Understanding these units helps users compare RAM, storage devices, files, internet speeds and data plans.
What Is Digital Data?
Computers store and process data using binary numbers.
The binary number system contains only two digits:
- 0
- 1
Every document, image, video, application and operating system is ultimately represented as a sequence of zeros and ones.
These binary digits are grouped into larger units to make digital data easier to measure.
What Is a Bit?
Bit stands for Binary Digit.
A bit is the smallest basic unit of digital data. It can store only one of two possible values:
- 0
- 1
These values can represent electronic states such as:
- Off or on
- False or true
- No or yes
- Low voltage or high voltage
The lowercase letter b is commonly used to represent a bit.
Examples include:
- 1 bit
- 100 bits
- 25 Mbps
Bits are commonly used to measure network and internet speeds.
What Is a Nibble?
A nibble is a group of four bits.
1 nibble = 4 bits
For example:
1010
This binary sequence contains four bits, so it represents one nibble.
A nibble can represent 16 different values, ranging from 0000 to 1111. It is useful when working with hexadecimal numbers because one hexadecimal digit corresponds to four binary bits.
What Is a Byte?
A byte is a group of eight bits.
1 byte = 8 bits
For example:
10110110
This sequence contains eight bits, so it represents one byte.
The uppercase letter B is used as the symbol for a byte.
Bytes are commonly used to measure:
- File sizes
- Storage capacity
- RAM capacity
- Application sizes
- Data-transfer amounts
A basic English character often requires one byte in common character encodings, although many Unicode characters and emojis require multiple bytes.
Difference Between Bit and Byte
| Feature | Bit | Byte |
|---|---|---|
| Full Form | Binary Digit | Group of eight bits |
| Symbol | b | B |
| Size | Smallest basic data unit | 8 bits |
| Common Use | Internet and network speed | File and storage size |
| Example | 100 Mbps | 100 MB |
The capitalisation is important:
- Mb means megabits.
- MB means megabytes.
- Gb means gigabits.
- GB means gigabytes.
Because one byte contains eight bits:
1 byte = 8 bits
Therefore:
8 megabits = 1 megabyte
Basic Units of Computer Storage
As the amount of data increases, larger units are used.
The common decimal storage units are:
| Unit | Symbol | Decimal Value |
|---|---|---|
| Bit | b | One binary digit |
| Nibble | — | 4 bits |
| Byte | B | 8 bits |
| Kilobyte | kB or commonly KB | 1,000 bytes |
| Megabyte | MB | 1,000,000 bytes |
| Gigabyte | GB | 1,000,000,000 bytes |
| Terabyte | TB | 1,000,000,000,000 bytes |
| Petabyte | PB | 10¹⁵ bytes |
| Exabyte | EB | 10¹⁸ bytes |
| Zettabyte | ZB | 10²¹ bytes |
| Yottabyte | YB | 10²⁴ bytes |
| Ronnabyte | RB | 10²⁷ bytes |
| Quettabyte | QB | 10³⁰ bytes |
Under the decimal system, each larger unit is 1,000 times the previous unit.
What Is a Kilobyte?
A kilobyte is a small unit of digital data.
Under the decimal system:
1 kB = 1,000 bytes
A kilobyte can store a small amount of text or other basic data.
Examples of data measured in kilobytes include:
- Small text files
- Basic configuration files
- Small icons
- Short emails without attachments
The official SI symbol for kilo is lowercase k, so kB is the formal decimal symbol. However, KB is widely used by operating systems, applications and websites.
What Is a Megabyte?
A megabyte is larger than a kilobyte.
1 MB = 1,000 kB
1 MB = 1,000,000 bytes
Megabytes are commonly used to measure:
- Photos
- Audio files
- PDF documents
- Small applications
- Email attachments
- Short video clips
For example, a compressed photo may require several megabytes of storage.
What Is a Gigabyte?
A gigabyte is larger than a megabyte.
1 GB = 1,000 MB
1 GB = 1,000,000,000 bytes
Gigabytes are commonly used to measure:
- RAM capacity
- Smartphone storage
- Application sizes
- Games
- Videos
- SSD and HDD capacity
- Mobile data allowances
Common examples include:
- 8 GB RAM
- 128 GB smartphone storage
- 512 GB SSD
- 100 GB mobile data plan
What Is a Terabyte?
A terabyte is larger than a gigabyte.
1 TB = 1,000 GB
1 TB = 1,000,000,000,000 bytes
Terabytes are commonly used to measure:
- HDD capacity
- SSD capacity
- Computer backups
- Large video collections
- Server storage
- Security camera recordings
Examples include:
- 1 TB laptop SSD
- 2 TB external HDD
- 8 TB surveillance drive
What Is a Petabyte?
A petabyte is larger than a terabyte.
1 PB = 1,000 TB
1 PB = 10¹⁵ bytes
Petabytes are commonly associated with:
- Large organisations
- Cloud-service providers
- Data centres
- Scientific research
- Social media platforms
- Large backup systems
A normal personal computer does not usually require petabytes of storage.
What Is an Exabyte?
An exabyte is larger than a petabyte.
1 EB = 1,000 PB
1 EB = 10¹⁸ bytes
Exabytes are used when discussing extremely large amounts of global, business or internet data.
What Is a Zettabyte?
A zettabyte is larger than an exabyte.
1 ZB = 1,000 EB
1 ZB = 10²¹ bytes
Zettabytes are often used to describe worldwide internet traffic and global data production.
What Is a Yottabyte?
A yottabyte is larger than a zettabyte.
1 YB = 1,000 ZB
1 YB = 10²⁴ bytes
A yottabyte represents an extremely large amount of digital information.
Ronnabyte and Quettabyte
The International System of Units was expanded in 2022 with two larger decimal prefixes:
- Ronna represents 10²⁷.
- Quetta represents 10³⁰.
When combined with bytes:
- 1 RB = 10²⁷ bytes
- 1 QB = 10³⁰ bytes
These units are far larger than the storage capacities used by normal computers. They may become useful for describing extremely large quantities of global digital information in the future. The prefixes were officially added by the General Conference on Weights and Measures.
Decimal and Binary Storage Units
One of the most confusing parts of computer storage is the difference between decimal and binary units.
Decimal Units
Decimal units use powers of 1,000.
Examples include:
- 1 kB = 1,000 bytes
- 1 MB = 1,000,000 bytes
- 1 GB = 1,000,000,000 bytes
- 1 TB = 1,000,000,000,000 bytes
Storage manufacturers generally use decimal units when advertising HDDs, SSDs, USB drives and memory cards.
Binary Units
Computers operate using binary values. Binary storage units use powers of 1,024.
To clearly separate binary values from decimal values, special binary prefixes are used:
| Binary Unit | Symbol | Value |
|---|---|---|
| Kibibyte | KiB | 1,024 bytes |
| Mebibyte | MiB | 1,024 KiB |
| Gibibyte | GiB | 1,024 MiB |
| Tebibyte | TiB | 1,024 GiB |
| Pebibyte | PiB | 1,024 TiB |
| Exbibyte | EiB | 1,024 PiB |
| Zebibyte | ZiB | 1,024 EiB |
| Yobibyte | YiB | 1,024 ZiB |
The NIST explanation of binary prefixes distinguishes a kibibyte of 1,024 bytes from a decimal kilobyte of 1,000 bytes.
KB vs KiB
Under current standards:
- 1 kB = 1,000 bytes
- 1 KiB = 1,024 bytes
However, many older textbooks, operating systems and computer courses use “KB” to mean 1,024 bytes.
This creates two different conventions:
Traditional Textbook Convention
- 1 KB = 1,024 bytes
- 1 MB = 1,024 KB
- 1 GB = 1,024 MB
- 1 TB = 1,024 GB
Current Standard Convention
- 1 kB = 1,000 bytes
- 1 KiB = 1,024 bytes
- 1 MB = 1,000,000 bytes
- 1 MiB = 1,048,576 bytes
- 1 GB = 1,000,000,000 bytes
- 1 GiB = 1,073,741,824 bytes
For exams, students should follow the convention used in their syllabus or question paper. For technically precise writing, decimal and binary symbols should be kept separate.
Decimal vs Binary Units Comparison
| Decimal Unit | Decimal Value | Binary Unit | Binary Value |
|---|---|---|---|
| 1 kB | 1,000 bytes | 1 KiB | 1,024 bytes |
| 1 MB | 1,000,000 bytes | 1 MiB | 1,048,576 bytes |
| 1 GB | 1,000,000,000 bytes | 1 GiB | 1,073,741,824 bytes |
| 1 TB | 1,000,000,000,000 bytes | 1 TiB | 1,099,511,627,776 bytes |
The difference becomes larger as storage capacity increases.
Why Does a 1 TB Drive Show Less Space?
A storage manufacturer defines a 1 TB drive as:
1 TB = 1,000,000,000,000 bytes
If an operating system calculates the capacity using binary units, the same number of bytes is approximately:
931.3 GiB
Some operating systems may display this binary value using the label “GB,” which makes the drive appear smaller than advertised.
Additional space may also be used for:
- File-system information
- Recovery partitions
- Operating-system files
- Formatting
- Storage management
- Manufacturer-installed software
The advertised data has not simply disappeared. The difference is mainly caused by decimal and binary measurement methods, plus system usage.
Units Used for RAM and Storage
RAM and storage are often advertised using the same unit names, but their purposes are different.
Examples include:
- 16 GB RAM: Temporary memory used by active programs
- 512 GB SSD: Long-term storage for applications and files
- 2 TB HDD: Large-capacity permanent storage
RAM capacity has traditionally been based on binary hardware organisation, while storage-drive manufacturers normally advertise capacity using decimal units.
Common File Sizes
File sizes vary according to quality, length, format and compression. The following are only approximate examples:
| Type of Data | Approximate Size |
|---|---|
| Small text document | A few kilobytes |
| Web page | Hundreds of kilobytes to several megabytes |
| Smartphone photo | Around 2–15 MB |
| MP3 song | Around 3–15 MB |
| PDF document | Kilobytes to hundreds of megabytes |
| Mobile application | Megabytes to several gigabytes |
| HD movie | Several gigabytes |
| 4K video | Tens of gigabytes or more |
| Modern computer game | Several gigabytes to more than 100 GB |
Compression can significantly reduce a file’s size.
Storage Capacity vs Data-Transfer Speed
Storage capacity and data-transfer speed are different measurements.
Storage Capacity
Storage capacity measures how much data a device can hold.
It is measured in:
- MB
- GB
- TB
For example:
1 TB SSD
Data-Transfer Speed
Data-transfer speed measures how quickly data moves from one location to another.
It is measured in units such as:
- Mbps
- MB/s
- Gbps
- GB/s
For example:
- 100 Mbps internet connection
- 550 MB/s SATA SSD
- 5 Gbps USB connection
A drive can have a large capacity but a slow transfer speed. Similarly, a smaller drive may provide very high performance.
Mbps vs MB/s
Mbps means megabits per second.
MB/s means megabytes per second.
Because one byte contains eight bits:
8 Mbps = 1 MB/s
To convert megabits per second into megabytes per second:
MB/s = Mbps ÷ 8
For example:
100 Mbps ÷ 8 = 12.5 MB/s
Therefore, a 100 Mbps internet connection has a maximum theoretical transfer rate of approximately 12.5 MB/s.
Actual download speed may be lower because of:
- Network overhead
- Wi-Fi interference
- Server speed
- Network congestion
- Device performance
- Internet-provider limitations
Gbps vs GB/s
The same rule applies to gigabits and gigabytes.
8 Gbps = 1 GB/s
For example:
10 Gbps ÷ 8 = 1.25 GB/s
The lowercase b means bits, while the uppercase B means bytes.
How to Convert Storage Units
Bits to Bytes
To convert bits into bytes:
Bytes = Bits ÷ 8
Example:
64 bits ÷ 8 = 8 bytes
Bytes to Bits
To convert bytes into bits:
Bits = Bytes × 8
Example:
10 bytes × 8 = 80 bits
Decimal Megabytes to Gigabytes
To convert megabytes into gigabytes:
GB = MB ÷ 1,000
Example:
5,000 MB ÷ 1,000 = 5 GB
Decimal Gigabytes to Megabytes
To convert gigabytes into megabytes:
MB = GB × 1,000
Example:
4 GB × 1,000 = 4,000 MB
Binary Mebibytes to Gibibytes
To convert MiB into GiB:
GiB = MiB ÷ 1,024
Example:
2,048 MiB ÷ 1,024 = 2 GiB
Binary Gibibytes to Mebibytes
To convert GiB into MiB:
MiB = GiB × 1,024
Example:
8 GiB × 1,024 = 8,192 MiB
How to Estimate Download Time
An approximate download time can be calculated using:
Download time in seconds = File size in megabytes × 8 ÷ Internet speed in Mbps
For example, if a file is 1,000 MB and the internet speed is 100 Mbps:
1,000 × 8 ÷ 100 = 80 seconds
This is the ideal theoretical time. The real download may take longer because of network overhead and changing connection speeds.
What Is a Computer Word?
A word is a group of bits that a processor can handle as one unit.
Unlike a byte, the size of a word is not always fixed.
Examples include:
- 16-bit word
- 32-bit word
- 64-bit word
Word size depends on the processor architecture. A 64-bit processor is designed to work with 64-bit values and addresses in ways defined by its architecture.
A word is mainly related to CPU processing and should not be confused with standard storage units such as bytes, kilobytes and megabytes.
Why Are Larger Storage Units Needed?
Early computers stored very small amounts of data. Modern devices handle:
- High-resolution images
- 4K and 8K videos
- Large computer games
- Artificial intelligence datasets
- Cloud backups
- Scientific research data
- Business databases
- Global internet traffic
Using only bytes to describe these quantities would produce extremely large numbers. Units such as gigabytes, terabytes and petabytes make storage capacity easier to understand.
Instead of writing:
1,000,000,000,000 bytes
we can simply write:
1 TB
Common Mistakes With Storage Units
Confusing Bits and Bytes
A lowercase b represents a bit, while an uppercase B represents a byte.
Assuming Mbps Means Megabytes per Second
Mbps means megabits per second. Divide the value by eight to estimate megabytes per second.
Treating KB and KiB as Identical
Under current standards, a kilobyte contains 1,000 bytes, while a kibibyte contains 1,024 bytes.
Assuming Larger Capacity Means Faster Performance
Capacity measures how much data can be stored. It does not measure the speed of the device.
Thinking the Manufacturer Removed Storage
A drive may appear smaller because the manufacturer and operating system use different measurement systems.
Assuming Every File Has a Fixed Size
The size of an image, video or audio file depends on its resolution, duration, format, quality and compression.
Frequently Asked Questions
What is the smallest unit of computer storage?
A bit is the smallest basic unit of digital data.
How many bits are in one byte?
One byte contains eight bits.
How many bits are in one nibble?
One nibble contains four bits.
How many bytes are in one kilobyte?
Under the decimal standard, one kilobyte contains 1,000 bytes. One kibibyte contains 1,024 bytes.
How many megabytes are in one gigabyte?
Under the decimal system, one gigabyte contains 1,000 megabytes. Under the binary system, one gibibyte contains 1,024 mebibytes.
How many gigabytes are in one terabyte?
One decimal terabyte contains 1,000 gigabytes.
Which is larger, MB or GB?
A gigabyte is larger than a megabyte.
Which is larger, TB or GB?
A terabyte is larger than a gigabyte.
What is the difference between Mb and MB?
Mb means megabits, while MB means megabytes. Eight megabits are equal to one megabyte.
Why is internet speed measured in bits?
Network speeds have traditionally been measured in bits per second, while file sizes are normally measured in bytes.
Is 1 TB equal to 1,024 GB?
Under the decimal standard used by storage manufacturers, 1 TB equals 1,000 GB. The binary unit 1 TiB equals 1,024 GiB.
What comes after a terabyte?
The next decimal units are petabyte, exabyte, zettabyte, yottabyte, ronnabyte and quettabyte.
Conclusion
Units of computer storage measure the amount of digital information a device can hold or process.
The basic units include:
- Bit: One binary digit
- Nibble: Four bits
- Byte: Eight bits
- Kilobyte: Thousands of bytes
- Megabyte: Millions of bytes
- Gigabyte: Billions of bytes
- Terabyte: Trillions of bytes
Decimal units use multiples of 1,000, while binary units such as KiB, MiB and GiB use multiples of 1,024.
The most important rule to remember is:
A lowercase “b” means bit, while an uppercase “B” means byte. Eight bits are equal to one byte.
