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 = 5238 x 4000 = 20,952,000 pixels
  • Pixel count = 20.95 million pixels
  • Resolution = 20.95 mega pixels
  • A full frame sensor would be 31.4 x 24 mm (1.31)
  • Pixel density would be 146 pixels/mm or 3700 pixels/inch (dpi)
  • Pixel pitch: 6.9 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.18 MB
Lossless JPEG31.43 MB
Canon sRAW CR218.33 MB
Canon mRAW CR227.5 MB
Nikon NEF 14-bit uncompressed36.67 MB
Nikon NEF 14-bit lossless compressed20.35 MB
Nikon NEF 14-bit compressed17.69 MB

Compare to

Barco DP4K-32B 4K projectorDCP 2K flatDCP 2K full frameDCP 2K scopeDCP 4K full frameDCP 4K scopeHD 16:9Sony SRX-R320 4K projector

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