Meaning and assumptions
Raw size of an uncompressed raster image is pixel count times bits per pixel. For PCM audio, multiply sampling rate, duration, channel count and bits per sample per channel. Eight bits make one byte; headers, metadata, padding and compression are separate format issues.[1]
Fixed uniform raster or constant-rate PCM with specified sample width. This does not predict JPEG or MP3 file size. Audio sample count must match the specified duration; the calculation covers payload data only.[1]
Why the approach works
A W by H raster contains WH pixels. If the model stores each pixel using b bits, it contains WH equal-sized bit groups. For audio each channel produces fs samples per second, giving fsTC samples across T seconds and C channels. Bit depth here is specified per channel. RGB with three8-bit channels uses24 bits per pixel rather than8. Convert bits into bytes at the end by dividing by8. Decimal MB and binary MiB then use different divisors.[1]
Two complete worked examples
A small RGB image
- Given
- W=640, H=480; RGB with8 bits per channel, no alpha or header.
- Find
- Result
Find pixel count and full colour depth.
Calculate raw bits and divide by8.
Result: Result:921600 B=0.9216 MB=0.87890625 MiB of raw data.
Check: Each pixel needs3 B;307200×3=921600 B.
Ten seconds of stereo PCM
- Given
- fs=48000 Hz, T=10 s, C=2, b=16 bits per sample per channel.
- Find
- Result
Count channel samples.
Multiply by2 bytes per16-bit sample.
Result: Result:1.92 MB of PCM payload.
Check: Each second contains48000×2×16=1536000 bits; ten seconds gives15360000 bits.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Five exercises with solutions
Calculate · Application
How many raw bytes does a100×100 image at8 bits per pixel require?
Show hint
State the approach and assumptions before substituting.
Learning goal: How many raw bytes does a100×100 image at8 bits per pixel require?
Show solution and calculation
100×100×8/8=10000 B.
Calculate · Application
How large is5 s mono PCM at8000 Hz and16 bits?
Show hint
State the approach and assumptions before substituting.
Learning goal: How large is5 s mono PCM at8000 Hz and16 bits?
Show solution and calculation
8000×5×1×16/8=80000 B.
Interpret · Application
Both image dimensions double. What happens to raw size at unchanged colour depth?
Show hint
State the approach and assumptions before substituting.
Learning goal: Both image dimensions double. What happens to raw size at unchanged colour depth?
Show solution and calculation
Pixel count and raw size both quadruple.
Error analysis · Application
Why are1 MB and1 MiB different?
Show hint
State the approach and assumptions before substituting.
Learning goal: Why are1 MB and1 MiB different?
Show solution and calculation
1 MB=1000000 B;1 MiB=1048576 B.
Prefixes change the displayed value, not stored byte count.
Transfer · Challenge
Can the exact size of a640×480 JPEG be found from dimensions alone?
Show hint
State the approach and assumptions before substituting.
Learning goal: Can the exact size of a640×480 JPEG be found from dimensions alone?
Show solution and calculation
No.
Content, quality settings, encoding and metadata affect compressed file size.
The raw-size formula does not guarantee file size.
Check your understanding with the formula’s reference test.
7 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Related next steps
Related foundations: Two’s-complement signed integer, Nyquist–Shannon sampling limit, Bandwidth-delay product (BDP).
Sources for this explanation
Quanta · Updated November 6, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Locally authored DE/EN article with two original examples, five exercises, model limits and a native diagram.
Cite this reference page
Quanta. Uncompressed image and audio data size. Updated November 6, 2026. https://quanta-study.de/en/formula-sheet/datenmenge-bild-audio
When citing a specific scientific statement, also cite the specialist source linked to that statement.