Quick answer: to convert resolution to megapixels, multiply the image width by its height in pixels, then divide by 1,000,000. A 4000 × 3000 image has 12,000,000 pixels, so it is 12 MP. That is the whole method. Everything below shows how to apply it to photos, video frames, screens and prints without getting tripped up.
Whether you do the math by hand or use a resolution to megapixel calculator, the logic never changes, so it is worth understanding once.
Resolution to megapixel calculator: the formula
Megapixels = (width in pixels × height in pixels) ÷ 1,000,000
A megapixel is simply a million pixels, as the photography tutorial at Cambridge in Colour puts it. So converting pixels to megapixels is just a unit change, like converting metres to kilometres.
Example: a 6000 × 4000 photo has 24,000,000 pixels, which is 24 MP.
Two small rules keep you out of trouble:
- Use pixel dimensions, not inches or centimetres.
- The order of width and height does not matter. 4000 × 3000 and 3000 × 4000 give the same result.
Common resolutions in megapixels
Here is what the standard names actually add up to.
| Name | Resolution | Total pixels | Megapixels |
|---|---|---|---|
| HD (720p) | 1280 × 720 | 921,600 | 0.92 |
| Full HD (1080p) | 1920 × 1080 | 2,073,600 | 2.07 |
| QHD (1440p) | 2560 × 1440 | 3,686,400 | 3.69 |
| 4K UHD | 3840 × 2160 | 8,294,400 | 8.29 |
| 8K UHD | 7680 × 4320 | 33,177,600 | 33.18 |
| Typical 12 MP photo | 4000 × 3000 | 12,000,000 | 12.00 |
| Typical 24 MP photo | 6000 × 4000 | 24,000,000 | 24.00 |
A few things worth noticing:
- How many megapixels is 1080p? About 2 MP. Video is usually described as width × height rather than megapixels, and the “p” in 1080p does not stand for pixels.
- How many megapixels is 4K? Roughly 8.3 MP. The 3840 × 2160 and 7680 × 4320 sizes are the ones defined in the ITU-R BT.2020 recommendation for ultra-high-definition TV, both 16:9 with square pixels.
- A single 12 MP photo has more pixels than one 4K video frame. That surprises many people.
- Cinema “4K” (4096 × 2160) is a little wider than UHD and works out to about 8.85 MP.
Megapixels to resolution (the reverse)
Sometimes you know the megapixel count and need the pixel dimensions. You need the aspect ratio too, because the same total can be shaped differently.
Width = √(MP × 1,000,000 × ratio width ÷ ratio height), then height = width × ratio height ÷ ratio width.
Example for 12 MP at 4:3: √(12,000,000 × 4 ÷ 3) = √16,000,000 = 4000 wide, so 3000 high.
Spec sheets round these numbers. A 4032 × 3024 sensor is 12.19 MP, and it is sold as 12 MP.
Why aspect ratio changes the numbers
Twelve megapixels does not mean one fixed size:
- 4:3 → 4000 × 3000
- 3:2 → about 4243 × 2828
- 16:9 → about 4619 × 2598
This matters when you print. Cambridge in Colour points out that a 4:3 image printed at a 3:2 size such as 4 × 6 inches wastes about 11% of your pixels, because the extra area gets cropped.
From megapixels to print size
To find the largest print an image supports, divide each pixel dimension by your target PPI (pixels per inch). The standard for photo-lab prints is about 300 PPI, while magazines and newspapers can get by with less, according to the same Cambridge in Colour tutorial.
Here is the minimum image size for common prints at 300 PPI:
| Print size | Pixels needed | Megapixels |
|---|---|---|
| 4 × 6 in | 1200 × 1800 | 2.16 |
| 5 × 7 in | 1500 × 2100 | 3.15 |
| 8 × 10 in | 2400 × 3000 | 7.20 |
| 11 × 14 in | 3300 × 4200 | 13.86 |
| 16 × 20 in | 4800 × 6000 | 28.80 |
Big posters are the exception. They are viewed from farther away, so many are printed below 200 PPI. A 24 × 36 inch poster at 150 PPI needs 3600 × 5400 pixels, which is about 19.4 MP, instead of the 77.8 MP that 300 PPI would demand.
One more distinction: PPI describes the pixels in an image, while DPI describes printer dots. Printers often need several dots to make one pixel, so the two numbers are not interchangeable.
More megapixels does not always mean a better photo
Two cameras can share the same megapixel count and still perform differently. A larger sensor spreads the same number of pixels over more area, so each pixel is bigger. Bigger pixels gather more light, which usually means less noise and better dynamic range, as Cambridge in Colour explains.
Lens quality, focus accuracy and camera shake also decide how much real detail you end up with. Treat megapixels as the ceiling on detail, not a guarantee of it.
Mistakes to avoid
- Cropping without checking. Cropping a 6000 × 4000 photo to 3000 × 2000 leaves 6 MP, only a quarter of the original pixels.
- Upscaling to “add” megapixels. Resizing raises the pixel count but cannot invent detail that was never captured.
- Mixing up “4K” labels. UHD (3840 × 2160) and cinema 4K (4096 × 2160) are different sizes.
- Comparing rounded numbers. Always calculate from the actual width and height when accuracy matters.
FAQs
How do I convert resolution to megapixels?
Multiply width by height in pixels and divide by 1,000,000. For 1920 × 1080 that gives 2.07 MP.
How many megapixels is 4K?
A 3840 × 2160 UHD frame is about 8.29 MP.
How many megapixels do I need for an 8 × 10 inch print?
About 7.2 MP for a sharp print at 300 PPI.
Can I turn megapixels back into width and height?
Yes, but you must know the aspect ratio. Use the reverse formula above.
Does a higher megapixel count mean better image quality?
Not by itself. Sensor size, lens quality and technique matter just as much.
Disclaimer:
This article is for general educational purposes only. Megapixel values, pixel counts and print sizes are calculated from the standard formula and are rounded for readability, so real cameras, screens and printers may differ slightly because of manufacturer rounding, cropping, aspect ratio and device settings. Recommended print resolutions such as 300 PPI are common guidelines, not strict rules, and the right value depends on your printer, paper and viewing distance. External links point to third-party websites that we do not control, and their content may change over time. Always check your device specifications or consult your print provider before making a purchase or a print order.
Want to skip the manual math? Try the Resolution to Megapixel Calculator.