By Mudasir Ahsan (Founder) · Updated 10 November 2026
On this page
- How to use the megapixel calculator
- How to calculate megapixels
- How many pixels is 12MP? Megapixels of common sizes
- Megapixel to pixel converter: width and height from a megapixel count
- Megapixels to print size
- What the megapixel count does not tell you
- Camera megapixel calculator: reading a spec sheet
- Questions and answers
- Related calculators
How to use the megapixel calculator
- Start from what you 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 have the megapixel count, switch to the second mode and choose the camera's aspect ratio: 4:3 for phones and compact cameras, 3:2 for DSLR and mirrorless cameras, 16:9 for video frames.
- Type the numbers. Commas are fine, so 4,032 and 4032 both work.
- Read the result. You get 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 choose Tools › Show Inspector. Phones hide the same figures in different places, and our guide to reading photo metadata shows where.
How to calculate megapixels
Megapixels = width × height ÷ 1,000,000
A megapixel is one million pixels (Pixel: megapixel on Wikipedia), so you multiply the two sides and divide by 1,000,000. That is all an image resolution calculator does in this direction:
- 4032 × 3024 = 12,192,768 pixels, which is 12.19 MP. Most 12 MP phone cameras produce this size.
- 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.
- 3840 × 2160 = 8,294,400 pixels, so a frame of 4K video is 8.29 MP.
- 1000 × 1000 = 1,000,000 pixels: a 1000-pixel square is exactly 1 MP.
Both sides multiply, so doubling the width and the height gives four times the megapixels. It also means a 24 MP camera has only about 1.4 times the width of a 12 MP camera with the same shape.
The figure is decimal: 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", the sensor pixels used to form the picture, and the JPEG you 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
By definition 12 MP is 12,000,000 pixels. In practice it is a 4000 × 3000 or a 4032 × 3024 photo, because the megapixel resolution of a picture depends on its shape as well as its pixel count. The table lists the sizes you are most likely to meet, with the exact total for each.
| Megapixels | Typical size (px) | Total pixels | Shape | Where you see it |
|---|---|---|---|---|
| 0.92 MP | 1280 × 720 | 921,600 | 16:9 | 720p HD video |
| 2.07 MP | 1920 × 1080 | 2,073,600 | 16:9 | Full HD video, 1080p screenshots |
| 3.69 MP | 2560 × 1440 | 3,686,400 | 16:9 | 1440p (QHD) monitors |
| 8.29 MP | 3840 × 2160 | 8,294,400 | 16:9 | 4K UHD video and TVs |
| 12 MP | 4000 × 3000 | 12,000,000 | 4:3 | Many compact cameras and drones |
| 12.19 MP | 4032 × 3024 | 12,192,768 | 4:3 | 12 MP phone cameras |
| 24 MP | 6000 × 4000 | 24,000,000 | 3:2 | Entry and mid-range interchangeable-lens cameras |
| 33.18 MP | 7680 × 4320 | 33,177,600 | 16:9 | 8K UHD video |
| 45 MP | 8192 × 5464 | 44,761,088 | 3:2 | High-resolution full-frame cameras |
| 60.2 MP | 9504 × 6336 | 60,217,344 | 3:2 | 61 MP full-frame cameras |
A phone that lists 48 MP but saves 12 MP photos by default is using 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 from megapixels back to pixels needs the aspect ratio. Twelve million pixels can be arranged as a 4000 × 3000 rectangle, a 3464 × 3464 square or a 4619 × 2598 widescreen frame. The megapixel to pixel converter mode uses this formula:
Width = √(megapixels × 1,000,000 × ratio), where ratio = width ÷ height of the shape, and height = width ÷ ratio.
- 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.
An image can only have whole pixels, so the result is rounded. The pixel total can land a few thousand either side of the round megapixel figure. Real cameras do the same thing.
Megapixels to print size
Print size is pixels divided by pixels per inch, so a megapixels to print size answer always needs a PPI. Pick it by viewing distance. If the print will be held in the hand, use 300 PPI; at that density the 12.19 MP phone photo makes about 13.4 × 10.1 inches. If it hangs on a wall and people see it from a meter or more, 150 PPI looks just as sharp from there, and the same photo stretches to about 26.9 × 20.2 inches. 240 PPI sits between the two. Every PPI appears in the calculator, and this table gives the largest prints for the common counts:
| Megapixels (shape) | Pixels | Largest print at 300 PPI | At 150 PPI |
|---|---|---|---|
| 2.07 MP (16:9) | 1920 × 1080 | 6.4 × 3.6 in | 12.8 × 7.2 in |
| 8.29 MP (16:9) | 3840 × 2160 | 12.8 × 7.2 in | 25.6 × 14.4 in |
| 12 MP (4:3) | 4000 × 3000 | 13.3 × 10 in | 26.7 × 20 in |
| 12.19 MP (4:3) | 4032 × 3024 | 13.44 × 10.08 in | 26.9 × 20.2 in |
| 24 MP (3:2) | 6000 × 4000 | 20 × 13.3 in | 40 × 26.7 in |
| 45 MP (3:2) | 8192 × 5464 | 27.3 × 18.2 in | 54.6 × 36.4 in |
For a specific print such as 8 × 10 or A4, the print size calculator tells you whether a photo has enough pixels and how much gets cropped when the shapes differ. For a large wall print, the poster size calculator also takes viewing distance into account.
What the megapixel count does not tell you
Megapixels count the pixels in a photo. They don't say how good those pixels are, and two 12 MP photos can look very different.
Sensor size matters most. A full-frame sensor has 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 come next: a soft lens or a missed focus wastes pixels, and the file is still 12 MP even though the detail isn't there. Heavy compression does the same quietly. A squeezed JPEG keeps its pixel dimensions but loses fine texture.
Nor do megapixels fix the size in MB. A 12 MP JPEG is typically 2–6 MB, depending on the scene and the compression level, while the same photo saved as uncompressed 8-bit RGB is 12.19 million × 3 bytes = 36.6 MB. The image size calculator estimates file sizes, and the photo storage calculator plans a phone or a card.
Online, most of those megapixels are wasted, because a 4K screen shows at most 8.3 MP and a phone screen far less. So if a photo is only going on the web, resize it first: our image resizer shrinks it to the pixels you need, and the image compressor then cuts the file size without changing the dimensions. Keep the full-size original, though. You can't get pixels back once they're gone, and a print needs them. If the photo is headed for Reddit, save the smaller copy as JPG or PNG, which are among the safest formats there; the guide to posting images on Reddit walks through the upload.
Camera megapixel calculator: reading a spec sheet
When the result doesn't match the number on the camera's box, check which figure you compared. A spec sheet quotes total pixels, which is every photosite on the sensor, including the masked edge pixels used for calibration. It also quotes effective pixels, the ones that form the picture, and sometimes recorded pixels, the actual file size. Used as a camera megapixel calculator, the formula above gives only the last of the three. Video modes are different again: a camera that shoots 4K video records 3840 × 2160 frames, 8.29 MP, whatever its stills resolution is.
