• Foundation
  • About 12 min
  • 5 practice questions

Bits, bytes and storage units

Convert between bit, nibble, byte, KB, MB, GB and TB, and solve simple storage and file-count questions.

If something looks wrong, please tell us.

Everything stored in a computer is a pattern of bits, so every file size is measured in units built from the bit. Questions on storage units are a regular, easy source of marks, provided you know the ladder of units and the multiplier between steps.

The ladder of units

A bit is a single binary digit, 0 or 1. A group of 4 bits is a nibble, and one nibble is exactly one hexadecimal digit. A group of 8 bits is a byte. Larger units are built on the byte, and each step up multiplies by 1024, which is 2 to the power 10.

Units of digital information
UnitMeaningEquals
BitOne binary digit0 or 1
Nibble4 bitsHalf a byte
Byte8 bitsOne character in a simple one-byte code
Kilobyte (KB)1024 bytes2 to the power 10 bytes
Megabyte (MB)1024 KB2 to the power 20 bytes
Gigabyte (GB)1024 MB2 to the power 30 bytes
Terabyte (TB)1024 GB2 to the power 40 bytes

In most exam questions the multiplier is 1024. Some storage sellers use 1000 instead, so if a question states a multiplier, use the stated one. To move up the ladder (for example KB to MB) divide by 1024. To move down (for example GB to MB) multiply by 1024.

Worked examples

Example 1. Express 3 MB in KB. Moving down one step multiplies by 1024: 3 × 1024 = 3072 KB.

Example 2. Express 2 GB in MB. 2 × 1024 = 2048 MB. Going the other way, 4096 KB divided by 1024 is 4 MB.

Example 3. How many photos of 512 KB each fit in 8 MB of space? First put both in the same unit: 8 MB = 8 × 1024 = 8192 KB. Then 8192 divided by 512 = 16 photos.

Example 4. A text file holds 2048 characters, with one byte per character. How big is the file? 2048 bytes divided by 1024 = 2 KB. In bits that is 2048 × 8 = 16384 bits.

Example 5. A song file is 5 MB and a pen drive has 2 GB of free space. How many such songs fit? 2 GB = 2048 MB, and 2048 divided by 5 = 409.6. Only whole songs can be stored, so 409 songs fit, with a little space left over. Questions of this kind usually ask for the whole number below the answer.

Same unit first, then divide. Up the ladder divide by 1024; down the ladder multiply by 1024.

Common traps

  • A byte is 8 bits, not 4 and not 16. A nibble is 4 bits.
  • Do not mix MB and KB in one calculation; convert first.
  • Capital B means byte; small b means bit. A speed of 8 Mb per second is 1 MB per second.
  • One byte can hold 256 different values, from 0 to 255.

Key takeaways. Bit, nibble (4 bits), byte (8 bits), then KB, MB, GB, TB each 1024 times the one before. Always convert to a common unit before dividing, and watch capital and small b.

Check your understanding

  1. 1. How many bits are there in 3 bytes?

    1. 12
    2. 24
    3. 32
    4. 16
    Show answer

    Answer: B. One byte is 8 bits, so 3 bytes are 3 × 8 = 24 bits.

  2. 2. How many kilobytes are there in 2 MB, taking 1 MB = 1024 KB?

    1. 1024
    2. 2000
    3. 2048
    4. 4096
    Show answer

    Answer: C. 2 × 1024 = 2048 KB.

  3. 3. A hexadecimal digit corresponds to how many bits?

    1. 8
    2. 4
    3. 2
    4. 16
    Show answer

    Answer: B. Each hexadecimal digit stands for exactly four bits, which is a nibble.

  4. 4. How many 512 KB photos fit into 8 MB if 1 MB = 1024 KB?

    1. 8
    2. 32
    3. 64
    4. 16
    Show answer

    Answer: D. 8 MB = 8192 KB. Then 8192 divided by 512 = 16 photos.

  5. 5. A file is 4096 KB. What is its size in MB?

    1. 4
    2. 40
    3. 16
    4. 64
    Show answer

    Answer: A. Moving up one step divides by 1024: 4096 divided by 1024 = 4 MB.

Sign in to keep track of the lessons you finish.

Next lesson → Final self-assessment: number systems

Privacy · Terms · Refunds · Delivery