Megapixel calculator

Type a width and height in pixels to get the megapixels, for example 4032 × 3024 = 12.19 MP, or start from a megapixel count and an aspect ratio to get the image resolution in pixels, along with the biggest print that many pixels can make.

px
px

Megapixels

12.19 MP

4,032 × 3,024 = 12,192,768 pixels ÷ 1,000,000

Total pixels
12,192,768
Aspect ratio
4:3
Largest print at 300 PPI
13.44 × 10.08 in (34.14 × 25.6 cm)
Largest print of 4,032 × 3,024 px at each resolution
ResolutionPrint size (in)Print size (cm)
300 PPI13.44 × 10.08 in34.14 × 25.6 cm
240 PPI16.8 × 12.6 in42.67 × 32 cm
200 PPI20.16 × 15.12 in51.21 × 38.4 cm
150 PPI26.88 × 20.16 in68.28 × 51.21 cm

Calculated in your browser; nothing you type is sent or stored. Spotted a wrong result? Tell us.

By Ahsan Khowaja · Updated 27 October 2026

How to use the megapixel calculator

  1. Pick what you already know. Most people have a width and height in pixels (from the photo's file properties or a camera spec sheet) and want the megapixels. If you only know the megapixel count, switch to the second mode and choose the aspect ratio of the camera: 4:3 for phones and compact cameras, 3:2 for DSLR and mirrorless cameras, 16:9 for video frames.
  2. Type the numbers. Commas are fine, so 4,032 and 4032 both work.
  3. Read the result: the megapixels (or the width and height), the exact pixel count, the aspect ratio, and the largest print at 300, 240, 200 and 150 PPI.

On Windows the pixel dimensions are under right-click › Properties › Details; on a Mac, open the photo in Preview and use Tools › Show Inspector. Our guide to reading photo metadata shows where phones hide the same figures.

How to calculate megapixels

A megapixel is one million pixels. Multiply the width by the height to get the total number of pixels, then divide by 1,000,000:

Megapixels = width × height ÷ 1,000,000

  • 4032 × 3024 = 12,192,768 pixels, which is 12.19 MP. This is the size most 12 MP phone cameras produce.
  • 1920 × 1080 = 2,073,600 pixels, so a Full HD frame is 2.07 MP.
  • 6000 × 4000 = 24,000,000 pixels, exactly 24 MP, the file size of many 24 MP cameras.
  • 1000 × 1000 = 1,000,000 pixels: a 1000-pixel square is exactly 1 MP.

The figure is decimal, so 1 MP means 1,000,000 pixels and not 1,048,576 (2²⁰). Camera makers count the same way. Their spec sheets list "effective pixels", which is the number of sensor pixels used to form the picture; the JPEG you actually get can be a little smaller or larger than the headline number. A camera sold as 24.2 MP typically writes 6000 × 4000 files, which is 24.0 MP.

How many pixels is 12MP? Megapixels of common sizes

The megapixel resolution of a photo depends on its shape as well as its pixel count. This table lists the sizes you are most likely to meet, with the exact pixel total for each.

MegapixelsTypical size (px)Total pixelsShapeWhere you see it
0.92 MP1280 × 720921,60016:9720p HD video
2.07 MP1920 × 10802,073,60016:9Full HD video, 1080p screenshots
3.69 MP2560 × 14403,686,40016:91440p (QHD) monitors
8.29 MP3840 × 21608,294,40016:94K UHD video and TVs
12 MP4000 × 300012,000,0004:3Many compact cameras and drones
12.19 MP4032 × 302412,192,7684:312 MP phone cameras
24 MP6000 × 400024,000,0003:2Entry and mid-range interchangeable-lens cameras
33.18 MP7680 × 432033,177,60016:98K UHD video
45 MP8192 × 546444,761,0883:2High-resolution full-frame cameras
60.2 MP9504 × 633660,217,3443:261 MP full-frame cameras

So "how many pixels is 12MP" has two answers: 12,000,000 pixels by definition, and in practice a 4000 × 3000 or 4032 × 3024 photo. If a phone lists 48 MP but saves 12 MP photos by default, that is pixel binning: four sensor pixels are combined into one output pixel, and the saved file is still 4000 × 3000 or thereabouts.

Megapixel to pixel converter: width and height from a megapixel count

Going the other way needs the aspect ratio, because 12 million pixels can be arranged as a 4000 × 3000 rectangle, a 3464 × 3464 square or a 4619 × 2598 widescreen frame. The calculator uses this megapixel to pixel converter formula:

Width = √(megapixels × 1,000,000 × ratio), where ratio = width ÷ height of the shape, and height = width ÷ ratio.

Worked examples:

  • 12 MP at 4:3: width = √(12,000,000 × 1.333) = √16,000,000 = 4000 px; height = 4000 × 3 ÷ 4 = 3000 px.
  • 24 MP at 3:2: width = √(24,000,000 × 1.5) = √36,000,000 = 6000 px; height = 6000 × 2 ÷ 3 = 4000 px.
  • 8 MP at 16:9: width = √(8,000,000 × 1.778) = √14,222,222 = 3771.2, height = 3771.2 × 9 ÷ 16 = 2121.3, so 3771 × 2121 px after rounding to whole pixels.

The result is rounded because an image can only have whole pixels, so the pixel total can land a few thousand pixels either side of the round megapixel figure. That is normal; real cameras do the same thing.

Megapixels to print size

Print size is pixels divided by pixels per inch, so the megapixels to print size question always needs a PPI. 300 PPI is the usual target for prints held in the hand; 240 PPI still looks sharp; 150 PPI is fine for posters viewed from a metre or more. The calculator shows all of them, and here are the largest prints at 300 PPI for the common counts:

Megapixels (shape)PixelsLargest print at 300 PPIAt 150 PPI
2.07 MP (16:9)1920 × 10806.4 × 3.6 in12.8 × 7.2 in
8.29 MP (16:9)3840 × 216012.8 × 7.2 in25.6 × 14.4 in
12 MP (4:3)4000 × 300013.3 × 10 in26.7 × 20 in
12.19 MP (4:3)4032 × 302413.44 × 10.08 in26.9 × 20.2 in
24 MP (3:2)6000 × 400020 × 13.3 in40 × 26.7 in
45 MP (3:2)8192 × 546427.3 × 18.2 in54.6 × 36.4 in

To see whether a particular photo can make a specific print such as 8 × 10 or A4, including how much gets cropped when the shapes differ, use the print size calculator. For large wall prints, the poster size calculator also takes viewing distance into account.

What the megapixel count does not tell you

Megapixels measure how many pixels a photo has, not how good they are. Two 12 MP photos can look very different:

  • Sensor size. A full-frame sensor is many times the area of a phone sensor, so at the same 12 MP each of its pixels is far larger, collects more light and shows less noise in dim scenes. The crop factor calculator compares sensor sizes.
  • Lens and focus. A soft lens or a missed focus wastes pixels: the file is still 12 MP, but the detail isn't there.
  • Compression. A heavily compressed JPEG keeps its pixel dimensions but loses fine texture. The megapixel count stays the same; the quality doesn't.
  • File size. Megapixels do not fix the file size in MB. A 12 MP JPEG is typically 2–6 MB depending on the scene and compression level, while the same photo saved as uncompressed 8-bit RGB is 12.19 million × 3 bytes = 36.6 MB. Use the image size calculator for file-size estimates and the photo storage calculator to plan a phone or card.

For sharing online, the extra megapixels are mostly wasted: a 4K screen shows at most 8.3 MP, and a phone screen far less. Our image resizer shrinks a photo to the pixels you actually need, and the image compressor reduces the file size without changing the dimensions.

Camera megapixel calculator: reading a spec sheet

When a camera megapixel calculator result doesn't match the box, check which figure you compared. Spec sheets quote total pixels (every photosite on the sensor, including masked edge pixels used for calibration), effective pixels (the ones that form the picture) and sometimes recorded pixels (the actual file size). Only the last one is what the formula above gives you. Video modes are different again: a camera that shoots 4K video records 3840 × 2160 frames, 8.29 MP, whatever its stills resolution is.

Questions and answers

How do I calculate megapixels?

Multiply the image width in pixels by its height in pixels, then divide by one million. A 3000 × 2000 photo is 6,000,000 pixels, or 6 MP. If you only know the megapixels, take the square root of (megapixels × 1,000,000 × aspect ratio) to get the width, then divide by the ratio for the height.

How many pixels is 12MP?

12 megapixels is 12,000,000 pixels. In a 4:3 photo that is 4000 × 3000 pixels; most 12 MP phone cameras actually save 4032 × 3024, which is 12,192,768 pixels or 12.19 MP. In a 3:2 photo, 12 MP is about 4243 × 2828 pixels.

How big is 25 megapixels?

25 MP is 25,000,000 pixels. In the 3:2 shape of most interchangeable-lens cameras that works out to about 6124 × 4082 pixels, enough for a 20.4 × 13.6 inch print at 300 PPI or a 40.8 × 27.2 inch print at 150 PPI. In a 4:3 shape it would be about 5774 × 4330 pixels.

How much is 1 megapixel equal to?

One megapixel is exactly 1,000,000 pixels, such as a 1000 × 1000 square or a 1155 × 866 rectangle in 4:3. For comparison, a 720p video frame (1280 × 720) is 0.92 MP and a 1280 × 800 laptop screen is 1.02 MP.

Is 1920 × 1080 two megapixels?

Almost: 1920 × 1080 = 2,073,600 pixels, which is 2.07 MP. It is often rounded to "2 MP", which is why security cameras that record 1080p are sold as 2 MP cameras.

How many megapixels do I need to print an 8 × 10?

At 300 PPI an 8 × 10 inch print needs 2400 × 3000 pixels, which is 7.2 MP. Any 12 MP phone photo has enough pixels, although it will be cropped slightly because 4:3 is not the same shape as 8:10. At 200 PPI, 1600 × 2000 pixels (3.2 MP) is enough.

Do more megapixels mean a better camera?

Not on their own. More megapixels let you print larger or crop harder, but sensor size, lens quality and processing decide how clean and detailed each pixel is. A 12 MP photo from a large sensor usually beats a 48 MP photo from a tiny one in low light.

All image, photo and design calculators