Megapixel Calculator

Find an image's megapixel count.

How it is calculated

The tool multiplies the image width by its height, both in pixels, to get the total pixel count, then divides by one million: MP = width × height / 1,000,000. It shows the megapixels with two decimals and the exact total pixel count.

Both numbers must be greater than zero. It uses the decimal million (1,000,000), the convention used on camera and phone spec sheets, not 1,048,576. Megapixels only describe how many pixels there are; they say nothing about lens quality, sensor size or noise. To go from megapixels to a print size you also need a resolution in pixels per inch.

Worked example

A photo that is 4,000 pixels wide and 3,000 pixels high, as many phone cameras produce. Total pixels = 4,000 × 3,000 = 12,000,000 px. Divided by 1,000,000, that gives 12.00 MP, the figure you would see on a spec sheet.

Try this example →

Common mistakes

  • Entering dimensions in inches or centimetres. The tool needs pixels; physical size is not the same as pixel size.
  • Believing twice the megapixels means twice the sharpness. Doubling pixels raises linear resolution by only about 41%, because width and height each grow by √2.
  • Comparing megapixels between sensors of very different sizes. A small phone sensor and a large camera sensor with the same count do not gather the same light.
  • Entering a width and height in the wrong aspect ratio from a cropped image; use the dimensions of the file you actually have.

About this calculator

This calculator finds an image's megapixel count as width × height (in pixels) divided by one million — the standard unit camera and phone specs are marketed in. More megapixels mean more detail captured and more room to crop without losing sharpness or to print at a larger size, but megapixel count alone doesn't determine image quality: sensor size, lens quality, and pixel size all affect how much real detail and low-light performance a given megapixel count actually delivers.

Photographers and videographers use it to compare cameras beyond the marketing spec sheet and to check whether a sensor's resolution suits their intended print or crop needs; everyday consumers use it when comparing phone or camera specs before a purchase; and print shops use it to verify that a submitted image has enough resolution for the requested print size.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Megapixels shrink quickly when you crop. Keeping half the width and half the height leaves only a quarter of the pixels, so a 12 MP photo becomes a 3 MP one. On the display side, a 3840 by 2160 screen is only 8.29 MP, so a photo above that already fills it. Are you working out a crop, a screen size or a print?

Popular calculators

All Calculators