💾 Megapixel & File Size Estimator

Enter your image's pixel dimensions to calculate its megapixel count and estimated file sizes for common formats.

Pixels first, then bytes per pixel

Megapixels are just the pixel count in millions. The three size rows all hang off one uncompressed figure of three bytes per pixel - 8 bits each for red, green and blue:

MP           = w × h / 1,000,000
uncompressed = w × h × 3 / 1,048,576   MB
JPEG         ≈ uncompressed / 10        (10:1)
RAW          ≈ uncompressed × 0.5      (1.5 bytes/px)

The default 6000 × 4000 sensor is 24,000,000 pixels, so 24.0 MP, 68.7 MB uncompressed, about 6.9 MB as a JPEG and about 34.3 MB as a raw. Note the mixed convention: megapixels count in millions of 1,000,000 while the megabytes are binary, divided by 1024 twice.

Reading the estimates honestly

Only the megapixel row is exact - the rest are fixed ratios that take no account of what is in the frame. A blank sky compresses far past 10:1; foliage at high ISO barely reaches 5:1. Common dimensions:

DimensionsMPJPEG est.
1920 × 10802.10.6 MB
4000 × 300012.03.4 MB
6000 × 400024.06.9 MB
8256 × 550445.413.0 MB
The raw estimate assumes 1.5 bytes per pixel, which matches a losslessly compressed 12-14 bit file. Switch your camera to uncompressed raw and the real file is roughly double what is shown.

Frequently asked questions

How many megapixels is 6000 x 4000?

24 MP exactly. Multiply the two numbers for 24 million pixels and divide by a million. The 3:2 shape does not enter into it - 4899 × 4899 is also 24 MP.

How many photos fit on a 64GB card?

At 24 MP, roughly 9,000 JPEGs or 1,800 raw files. Shooting raw plus JPEG gives about 1,500. Formatting and the card's advertised-versus-real capacity take a few percent off those numbers.

Why is my JPEG smaller than the estimate?

The 10:1 ratio here is a middling quality setting. Cameras set to a normal or basic JPEG run at 20:1 or more, and web exports at quality 80 are smaller again, so a 24 MP frame can land at 2 MB.