What Is A Megapixel?

A close-up of a heron's head showing fine feather detail, a yellow eye and a long orange bill
Photo: Heron Close Up by Duncan Rawlinson. 400mm, f/5.6, 1/2500, ISO 800. Fine feather detail like this is where extra megapixels show, especially when cropping or printing large.

A megapixel is one million pixels. It counts the light-sensing sites on a camera’s sensor, or the pixels in a finished photo: a frame 6,000 pixels wide and 4,000 tall holds 24 million pixels, so it is a 24 megapixel image. The number tells you how large you can print and how hard you can crop before detail runs out, and very little else.

Wondering how pixel count fits with sharpness, viewing distance and real detail? Resolution in photography covers the whole subject.

What the number tells you

Megapixels measure area, but the detail you see runs along the edges of the frame. Doubling the megapixels adds only about 41 percent more pixels along each side, because the square root of 2 is 1.41. Going from 24 to 48 megapixels takes a 3:2 frame from 6,000 to about 8,500 pixels wide. That is a real gain, but it is not twice the detail.

Where the count matters in practice:

  • Printing. Divide the pixel width by the print resolution. At 300 pixels per inch, the usual standard for a print held in the hand, 6,000 pixels makes a print 20 inches wide. A print on a wall, seen from a few feet away, looks fine at 150 pixels per inch, so the same file can go to 40 inches. DPI vs PPI explains the units.
  • Cropping. Cropping to half the width and half the height keeps a quarter of the pixels: a 24 megapixel frame becomes 6 megapixels. More megapixels give you more room to crop a distant subject and still print it.
  • Screens. A 4K display shows 3,840 by 2,160 pixels, about 8.3 megapixels. Almost any camera has more than a screen can show, so for photos viewed online the count hardly matters.

How large will your megapixels print? How large you can enlarge answers it by viewing distance, and the megapixel table turns any count into pixel dimensions.

What the number does not tell you

A megapixel count is the most detail a file can hold, not what it does hold. A soft lens, missed focus, camera shake, or diffraction at small apertures all limit detail before the pixel count does. More pixels also make every flaw easier to see at 100 percent, so a high megapixel camera can need a faster shutter speed to look sharp when you zoom in to pixel peep.

On most sensors each pixel records only red, green or blue, through a colored filter above it. The camera estimates the two missing colors at every pixel from its neighbors, a step called demosaicing. A 24 megapixel color photo is built from 24 million single-color measurements.

Megapixels are not megabytes. The pixel count is fixed by the sensor; the file size depends on the format, bit depth and compression. The same 24 megapixel frame might be around 10 MB as a JPEG and two to three times that as a raw file.

What more pixels cost

On a sensor of the same size, more megapixels means smaller pixels. Each small pixel collects less light and looks noisier at 100 percent, but when you view the whole photo at the same print or screen size, the difference in noise is small. Camera sensor sizes explains why sensor size matters more than pixel size. The costs you will notice are bigger files, more storage, slower editing and, on some cameras, a slower burst rate.

Phones often advertise a large count and then combine each group of four or more neighboring pixels into one, a technique called binning. The photo you get is a quarter of the headline number or less, and it is cleaner in dim light for it.

Want to check you can tell megapixels, resolution and file size apart? Try the image resolution and file sizes quiz.