What a megapixel counts

A megapixel is one million pixels. Camera makers, phone vendors and print shops quote image size in megapixels because it summarizes how many individual picture elements an image contains. To find it, multiply the width in pixels by the height in pixels and divide by 1,000,000. The default of 6000 by 4000 pixels gives 24,000,000 pixels, which is 24 megapixels. The page works for any image or sensor output, whether you are reading dimensions from a file property, a camera specification sheet or an export dialog. Both inputs are pixel counts, not physical lengths, so no unit conversion is needed.

Decimal millions, not binary ones

The prefix mega in this setting means 10^6, matching the SI prefix. Some computing contexts use 1,048,576 for a binary mega, but image size uses the decimal definition, so 24 MP is exactly 24 million pixels. This keeps the figure consistent across vendors. A common confusion is with file size, where megabytes measure storage, not pixels. A 24 MP image can take a few megabytes as a compressed JPEG or tens of megabytes as an uncompressed or raw file, depending on bit depth and compression. The megapixel count says nothing about file size by itself. Lossless raw files store the sensor data with little compression, while JPEG discards detail to shrink the file, so two images with the same pixel count can differ many times over in size.

More worked examples

A camera that records 8256 by 5504 pixels has 45,441,024 pixels, or about 45.44 megapixels. An image of 5472 by 3648 pixels has 19,961,856 pixels, about 19.96 MP. A 7952 by 5304 image gives about 42.18 MP. Video frames are small by comparison: 1920 by 1080 is 2,073,600 pixels, about 2.074 MP, and 3840 by 2160 (often called 4K UHD) is 8,294,400 pixels, about 8.294 MP. A 4000 by 3000 image gives exactly 12 MP. Comparing a still camera with a video frame shows why a frame grab from 4K video holds about a third of the pixels of a 24 MP photograph.

Resolution grows with the square root

Doubling the megapixel count does not double the detail along each side. Pixel count is the product of width and height, so linear resolution grows with the square root. Going from 12 MP to 24 MP multiplies the width and height by about 1.414, not 2. To double the linear resolution you need four times the pixels, as in going from 6 MP to 24 MP. This is why modest steps in megapixel count can look small in practice. A jump from 20 MP to 24 MP adds only about 10 percent to the linear dimensions, a difference that is hard to see in an unmagnified print.

From megapixels to print size

Pixel count and print size are linked by pixels per inch. At 300 pixels per inch, a common target for sharp prints, a 6000 by 4000 image prints at 20 by 13.33 inches. At 150 pixels per inch, the same file covers 40 by 26.67 inches, with each pixel spread twice as wide. Use the pixels to inches calculator on this site for a single dimension. The best viewing distance grows with print size, so large prints viewed from afar can use fewer pixels per inch. As a rule, the megapixel number is a ceiling on what the file can show at a given size, not a promise that the print will look sharp. Upscaling a smaller file to reach a target size adds interpolated pixels, not new detail.

Sensor pixels and image pixels

A camera quotes its sensor resolution, but the files it records may differ. Some modes crop the sensor for video, reduce the size for smaller JPEGs, or combine pixels to lower noise. Phone cameras often produce a binned image with a quarter of the sensor pixel count by default. Enter the dimensions of the file you are actually working with, not the headline figure on the box. Another difference is that most sensors record one color per pixel and the camera interpolates the rest, so the effective color detail is a little lower than the nominal count suggests.

Pixel count is not optical resolving power

More pixels do not guarantee a sharper picture. The lens, focus accuracy, motion blur, diffraction at small apertures and sensor noise all limit how much detail reaches the file. A cheap lens on a high-resolution sensor may resolve little more than it would on a lower-resolution one. Likewise, a small sensor with many tiny pixels collects less light per pixel and can look noisier at high sensitivity settings. The page counts pixels and nothing else, and it should be read as a description of the file or sensor grid, not of image quality or lens performance.

Choosing a size for a purpose

Different uses need different counts. A web page image of 1600 by 1067 pixels is about 1.7 MP and is plenty for a screen. An 8 by 10 inch print at 300 pixels per inch needs 2400 by 3000 pixels, which is 7.2 MP. A 24 by 36 inch poster at 150 pixels per inch needs 3600 by 5400 pixels, about 19.4 MP. Estimating from the required print size shows how much resolution you actually need, and often reveals that a modest sensor suffices. Cropping reduces the count: cutting a 24 MP image to half its area leaves 12 MP. A 4:5 social media crop from a 6000 by 4000 frame uses a 3200 by 4000 region, which is 12.8 MP, so planning the crop first shows whether the result still meets the output size.

What a megapixel count does not tell you

The result is a scalar educational figure and must be finite. It multiplies the numbers you enter and does not read files, check aspect ratios or account for cropping, interpolation or pixel binning. Dimensions should be whole numbers of pixels. Adobe documents how image size and resolution relate in its Photoshop help, which is a useful reference for the connection between pixel dimensions and print size. If you need physical dimensions, convert each side separately using pixels per inch rather than using the megapixel total. Two images with the same count can have very different shapes, such as 6000 by 4000 and 4800 by 5000, both 24 MP, and they would print at different dimensions.