Image File Size Calculator

How much storage space will your image files consume?

Calculate the file size of digital images based on width, height, color depth, and compression settings. Estimate storage requirements for photos, graphics, and digital artwork before creating or downloading them.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Digital images are grids of colored dots called pixels, like a mosaic made of tiny squares. Each pixel stores color information as numbers - more numbers mean more possible colors but also bigger files. Think of it like the difference between a children's 8-crayon drawing and an artist's palette with hundreds of color tubes.

Compression works by finding patterns and shortcuts in this color data. JPEG compression looks for areas where the human eye won't notice if similar colors get merged together, dramatically reducing file size at the cost of some detail. PNG compression finds exact patterns that can be described more efficiently, like saying 'repeat this blue 50 times' instead of storing each blue pixel individually.

The total file size depends on three main factors: how many pixels you have (width × height), how many colors each pixel can display (bit depth), and how much the compression algorithm can shrink the data without noticeable quality loss. A 4K photo has four times more pixels than HD, but JPEG compression might make it only twice as large in actual file size.

When To Use This
Right tool, right situation

Use this calculator when planning storage for photography projects, estimating bandwidth for image galleries, or deciding between file formats for different purposes. It's particularly valuable for wedding photographers calculating memory card needs, web developers optimizing page load times, and anyone moving large image collections to cloud storage.

The calculator works best for standard photography and graphics workflows. Don't rely on it for specialized formats like medical imaging DICOM files, scientific imagery with custom bit depths, or vector graphics that scale without pixel limitations. These formats use different compression algorithms and storage structures.

Avoid using these estimates for real-time applications where exact file sizes matter, such as automated backup systems or precise bandwidth calculations. Actual compression varies too much based on image content to guarantee the calculated sizes will match reality within tight tolerances.

Common Mistakes
Why results sometimes look wrong

The biggest mistake is assuming all images of the same resolution will have identical file sizes. A photo of a blue sky might compress to 200 KB while a detailed forest scene at identical dimensions reaches 800 KB, because compression efficiency depends entirely on image complexity and color variation.

Many people confuse image resolution with file size, thinking more megapixels always means bigger files. While resolution sets the upper limit, compression can dramatically reduce the actual storage needed. A 12-megapixel phone photo might be smaller than a 5-megapixel image saved without compression.

Another common error is ignoring metadata overhead when planning storage. Camera files include EXIF data, color profiles, and thumbnail images that can add 50-200 KB to each photo. When calculating storage for thousands of images, this overhead becomes significant and can throw off capacity planning by 10-20 percent.

The Math
Worked examples and deeper derivation

File size calculation starts with the raw pixel data: width × height × bytes per pixel. A 1920×1080 image with 24-bit color contains 2,073,600 pixels, each storing 3 bytes of color information (red, green, blue), totaling 6,220,800 bytes or about 6.2 MB uncompressed.

JPEG compression ratios depend on quality settings and image content. High quality (85-95%) typically achieves 10:1 to 15:1 compression, medium quality (70-85%) reaches 20:1 to 25:1, and lower settings can compress 40:1 or more. This means our 6.2 MB example becomes 400-600 KB at high quality, or 150-300 KB at medium quality.

PNG compression works differently, using lossless algorithms that typically achieve 3:1 to 5:1 compression ratios. The same 6.2 MB image would compress to roughly 1.2-2.0 MB as PNG. Uncompressed formats like BMP and TIFF store the full pixel data plus minimal headers, staying close to the calculated uncompressed size.

Wedding photographer planning storage
4000x3000 pixel photos, 24-bit color, JPEG at 95% quality
Each high-quality wedding photo will be about 1.8 MB. For a 500-photo wedding, you need roughly 900 MB of storage space.
Website designer optimizing load times
1920x1080 hero image, JPEG at 70% quality
The compressed image will be about 311 KB. This loads acceptably on most connections but consider further optimization for mobile users.
Digital artist planning print workflow
8000x6000 pixel artwork, 32-bit PNG for transparency
The uncompressed file would be 192 MB, but PNG compression brings it down to about 57.6 MB. Plan for longer upload and processing times.
Expert Unlock
The thing most explanations skip

Image compression efficiency correlates directly with spatial frequency - images with high-contrast edges and fine details resist compression, while gradual color transitions compress extremely well. This is why sunset photos compress smaller than architectural photography, even at identical resolutions and quality settings.

Why are my actual file sizes different?

Why is my JPEG smaller than calculated?
JPEG compression varies dramatically based on image content. Photos with large areas of similar colors compress much smaller than detailed textures or high-contrast edges. Our calculator uses average compression ratios that work for typical photography.
What makes PNG files larger than expected?
PNG files store additional metadata like color profiles, creation dates, and camera settings that can add 10-50 KB to the base file size. Images with transparency or complex patterns also compress less efficiently than simple graphics.
How accurate are these estimates for RAW camera files?
RAW files vary significantly between camera manufacturers and models, often ranging from 20-80 MB for the same resolution. Our calculations show the theoretical maximum, but actual RAW files include proprietary compression and sensor-specific data structures.

Need something this doesn't cover?

Suggest a tool — we'll build it →