← Back to Data Units

Trace: File Size Calculations

Work through calculations step by step

Exercise 1: Trace an Image File Size Calculation

Problem

Calculate the file size of a 1280 × 720 pixel image with 24-bit colour.

Express the final answer in megabytes (MB).

Complete each step:

Step 1 Calculate total pixels

Formula: Width × Height

1280 × 720 = ?

Step 2 Calculate size in bits

Formula: Total pixels × Colour depth

921,600 × 24 = ?

Step 3 Convert bits to bytes

Formula: Bits ÷ 8

22,118,400 ÷ 8 = ?

Step 4 Convert bytes to MB

Formula: Bytes ÷ 1,000,000

2,764,800 ÷ 1,000,000 = ?

Exercise 2: Trace an Audio File Size Calculation

Problem

Calculate the file size of a 2-minute stereo audio recording with:

  • Sample rate: 44,100 Hz
  • Bit depth: 16 bits

Express the final answer in megabytes (MB).

Complete each step:

Step 1 Convert duration to seconds

2 minutes = ? seconds

Step 2 Calculate mono size (bits)

Formula: Sample rate × Duration × Bit depth

44,100 × 120 × 16 = ?

Step 3 Calculate stereo size (bits)

Stereo = mono × 2 channels

84,672,000 × 2 = ?

Step 4 Convert to bytes

169,344,000 ÷ 8 = ?

Step 5 Convert to MB

21,168,000 ÷ 1,000,000 = ?

Exercise 3: Unit Conversion Chain

Problem

Convert 5 GB through all the smaller units down to bits.

Complete the conversion chain:

Step 1 GB to MB

5 GB × 1,000 = ? MB

Step 2 MB to KB

5,000 MB × 1,000 = ? KB

Step 3 KB to Bytes

5,000,000 KB × 1,000 = ? bytes

Step 4 Bytes to Bits

5,000,000,000 bytes × 8 = ? bits

Exercise 4: Work Backwards

Problem

An image file is 3.6 MB. If the image has 24-bit colour and is 1500 pixels wide, how many pixels tall is it?

Work backwards through the formula:

Step 1 Convert MB to bytes

3.6 MB × 1,000,000 = ? bytes

Step 2 Convert bytes to bits

3,600,000 bytes × 8 = ? bits

Step 3 Calculate total pixels

Total bits ÷ Colour depth = Total pixels

28,800,000 ÷ 24 = ? pixels

Step 4 Calculate height

Total pixels ÷ Width = Height

1,200,000 ÷ 1,500 = ? pixels