Megapixel calculator

A "megapixel" is one million (1.000.000) pixels. Enter the pixel dimensions of your photo, camera, screen or tv, and calculate how many megapixels that is.

Calculate megapixels

  • Size = 5120 x 4096 = 20,971,520 pixels
  • Pixel count = 20.97 million pixels
  • Resolution = 20.97 mega pixels
  • A full frame sensor would be 30 x 24 mm (1.25)
  • Pixel density would be 142 pixels/mm or 3610 pixels/inch (dpi)
  • Pixel pitch: 7 micron (fine)

Calculate (file) size

Compressed image formats (estimated size)

JPG 100% 24bit/pixel4.28 MB
JPG 90% 24 bit/pixel2.14 MB
GIF 8bit/pixel, 255 colors6.42 MB
PNG losless 24bit/pixel12.19 MB
Lossless JPEG31.46 MB
Canon sRAW CR218.35 MB
Canon mRAW CR227.53 MB
Nikon NEF 14-bit uncompressed36.7 MB
Nikon NEF 14-bit lossless compressed20.37 MB
Nikon NEF 14-bit compressed17.71 MB

Compare to

4K TV (16:9)4K TV (21:9)5K (16:9)8K TV (16:9)HD TV (16:9)HSXGA (5:4)QSXGA (5:4)QVGA (4:3)QXGA (4:3)SVGA (4:3)SXGA (5:4)SXGA+UXGA (4:3)VGA (4:3)WHSXGA (16:10)WQSXGA (16:10)WQSXGA2 (16:10)WQXGA (16:10)WSXGA (16:10)WSXGA+WUXGA (16:10)WVGA (16:9)WXGA (16:9)XGA (4:3)

Background

For decades, advances in camera technology have been measured in 'megapixels', although more pixels doesn't always mean better quality. The same metric can also be used to describe the resolution of photos, or digital screens. This megapixel calculator brings it all together. Calculate, compare, visualise and estimate.

References

Photo calculators & converters

Aspect ratio
Image Width x Height → aspect ratio
Aspect Fit
Fit an image on a screen
Composition Calculator
Focal length, distance, crop factor → image composition
Depth-of-Field Calculator
Aperture, focal length, distance, crop → depth-of-field
DPI calculator
Print Width x Height and dpi → megapixels
Image filesize calculator
Image Width x Height JPG/RAW/PNG → bytes
Light calculator (EV)
Aperture, shutter time, ISO → Exposure Value
Megapixel calculator
Image Width x Height → megapixels
Megapixel Aspects
See megapixels in different aspect ratios
Portrait distance
portrait distance, composition, crop factor, focal length