✳ FREE CALCULATOR

Megapixel calculator

Convert width × height into total pixels and megapixels, with the aspect ratio alongside. Enter the width and height in pixels to see both results.

Megapixels
12.19 MP
Total pixels
12,192,768
Aspect ratio
4:3
At 300 DPI this prints
13.4 × 10.1 inches

Calculated as: megapixels = width × height ÷ 1,000,000

How it is calculated

megapixels = width × height ÷ 1,000,000

Worked example with the starting values (Width: 4,032 px; Height: 3,024 px): megapixels 12.19 MP; total pixels 12,192,768; aspect ratio 4:3; at 300 dpi this prints 13.4 × 10.1 inches.

Key takeaways

  • Megapixels = width × height ÷ 1,000,000: 12.19 MP for a 12,192,768 pixel phone photo.
  • Megapixels do not set the file size: our four test pictures saved as JPEG at 70% were 66 to 108 KB per megapixel.

What megapixels do and do not tell you

Megapixels count pixels, not quality. A larger sensor, better lens and better light matter as much as the count, and a file size depends on the detail in the picture.

For printing, divide the pixel sizes by the print resolution: at 300 DPI each inch needs 300 pixels. The calculator shows the size that results.

Scenarios

ScenarioMegapixelsAspect ratioAt 300 DPI this prints
4032 × 3024 (phone)12.19 MP4:313.4 × 10.1 inches
6000 × 4000 (24 MP camera)24.00 MP3:220.0 × 13.3 inches
1920 × 10802.07 MP16:96.4 × 3.6 inches
3840 × 2160 (4K frame)8.29 MP16:912.8 × 7.2 inches
1080 × 13501.46 MP4:53.6 × 4.5 inches

Measured: JPEG bytes per megapixel

Four public domain pictures saved as JPEG at 70% quality with the browser encoder (the image compressor's default).

PictureSizeMegapixelsJPEG at 70%Per megapixel
NASA3840 × 387714.9 MP1.60 MB108 KB
NASA2122 × 26445.6 MP505 KB90 KB
Gettysburg Address3827 × 15886.1 MP563 KB93 KB
NASA5380 × 543229.2 MP1.92 MB66 KB

The spread comes from the content: smooth areas compress far better than fine detail.

Quick answers

How many megapixels is 4K?

8.29 MP for a 3840 × 2160 frame.

What this assumes