Image File Size Calculation

Test yourself on Images & Sound with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on Images & SoundGet your flashcardsBuild my revision planTrack my progress

Image File Size Calculation

Formula:

  File Size (bits) = Width × Height × Color Depth
  File Size (bytes) = (Width × Height × Color Depth) ÷ 8
  

Example 1: Simple Calculation

  Image: 800 × 600 pixels, 24-bit color depth
  
  Step 1: Calculate total pixels
  800 × 600 = 480,000 pixels
  
  Step 2: Calculate bits
  480,000 pixels × 24 bits = 11,520,000 bits
  
  Step 3: Convert to bytes
  11,520,000 bits ÷ 8 = 1,440,000 bytes
  
  Step 4: Convert to MB (optional)
  1,440,000 bytes ÷ 1,000,000 = 1.44 MB
  

Example 2: HD Photo

  Image: 1920 × 1080 pixels, 24-bit color depth
  
  1920 × 1080 = 2,073,600 pixels
  2,073,600 × 24 = 49,766,400 bits
  49,766,400 ÷ 8 = 6,220,800 bytes ≈ 6.2 MB
  

Example 3: Different Color Depths

  Same image (640 × 480 pixels) at different color depths:
  
  1-bit (B&W): 640 × 480 × 1 ÷ 8 = 38,400 bytes (38.4 KB)
  8-bit (256 colors): 640 × 480 × 8 ÷ 8 = 307,200 bytes (307.2 KB)
  24-bit (True Color): 640 × 480 × 24 ÷ 8 = 921,600 bytes (921.6 KB)
  
  24-bit is 24× larger than 1-bit!
  

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.