Estimate how big an image, audio or video file will be, from its dimensions, sample rate or bitrate.
File size formulas
Image (uncompressed) = width × height × bit depth ÷ 8 bytes
Audio (uncompressed PCM) = sample rate × bit depth × channels × seconds ÷ 8 bytes
Video = (video bitrate + audio bitrate) × seconds ÷ 8 bytes
Results are shown in decimal units (1 MB = 1,000,000 bytes) and binary units (1 MiB = 1,048,576 bytes).
Worked examples
Image: a 1920 × 1080 photo at 24 bits per pixel is 2,073,600 pixels × 24 = 49,766,400 bits ÷ 8 = 6,220,800 bytes, or 6.22 MB (5.93 MiB) before compression.
Audio: CD-quality audio is 44,100 samples a second, 16 bits, 2 channels: 44,100 × 16 × 2 = 1,411,200 bits a second. Three minutes (180 s) is 254,016,000 bits ÷ 8 = 31.75 MB.
Video: one hour at 8 Mbps is 8,000,000 × 3,600 = 28,800,000,000 bits ÷ 8 = 3.6 GB.
Limitations
- JPEG, PNG, MP3, AAC and most video formats are compressed, so real files are usually much smaller than the uncompressed size. The uncompressed size is still what an image takes up in memory once it's opened.
- File headers, metadata and container formats add a little on top.
- Video with a variable bitrate only averages out to its stated bitrate, so the final size can differ.
Sources
How we checked this
Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:
- 1920 × 1080 at 24-bit: 6,220,800 bytes = 6.22 MB (5.93 MiB) ✓
- 3 minutes of CD audio (44.1 kHz, 16-bit, stereo): 31.75 MB ✓
- 1 hour of video at 8 Mbps: 3.6 GB ✓
- Edge: 0 audio channels is rejected ✓
Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.
Questions people ask
How do I calculate image file size?
Multiply width × height × bit depth and divide by 8 for bytes. A 4000 × 3000 image at 24-bit is 36,000,000 bytes, or 36 MB uncompressed.
How big is a minute of CD-quality audio?
44,100 × 16 × 2 × 60 ÷ 8 = 10,584,000 bytes, about 10.6 MB (10.09 MiB) per minute as uncompressed WAV.
How do I estimate video file size from bitrate?
Multiply the bitrate in bits per second by the length in seconds and divide by 8. 5 Mbps for 30 minutes is 5,000,000 × 1,800 ÷ 8 = 1.125 GB.
Why is my JPEG smaller than this?
This calculator gives the uncompressed size. JPEG compression usually shrinks photos many times over, depending on the quality setting and the image.
Why does my computer show a different number?
Many systems show binary units (MiB, GiB) while labeling them MB or GB. 6.22 MB is 5.93 MiB.