back to top

Understand Camera Resolution and Megapixels (Easy Guide)

Last updated: November 21, 2023 - 16 min read
ExpertPhotography is supported by readers. Product links on ExpertPhotography are referral links. If you use one of these and buy something, we make a little money. Need more info? See how it all works here.
Subscribe Below to Download the Article Immediately

You can also select your interests for free access to our premium training:

Your privacy is safe! We will never share your information.

More often than not, camera manufacturers market their products with their megapixels.

Indeed, the average digital camera resolution is continually increasing.

You can find 20MP sensors in smartphones. With the Sony A7R IV, you can even take 240MP photos by sensor shifting.

But what does the camera resolution mean to you? Do you need a high megapixel count? Today, we’ll find out.

High Megapixel Count
Sony A7R IV
Sony A7R IV
Discover the ultimate tool for capturing stunning images with unbeatable camera resolution. Get the information you need to achieve the highest level of detail in your photography.

Why Does Camera Resolution Matter?

Let’s try to see through the marketing slogans. Megapixel and camera resolution have become catchwords.

It’s cool, indeed, that even your phone is capable of shooting 20-megapixel photos. But how does that translate to real detail? Not so well.

And more importantly, do you need it?

A very general answer is no; you probably don’t.

There are two applications where you do need high resolution: extensive cropping (digital zooming) and large printing. And even in those situations, you need detail, not necessarily high megapixels.

What Is Pixel Count?

Camera resolution is not equal to pixel count, although they often get mixed up, and used interchangeably. Film also has a resolution – referring to the level of detail it can resolve.

Pixels are the smallest component of a digital camera sensor. They record light. There are millions of them – one by one, and they build a coherent image.

Their number is of importance, but it does not tell us everything about the resolution of a camera.

Pixel count is in the form of megapixels. One megapixel (MP) is one million pixels. So, when someone says a camera has a 20MP camera resolution, they refer to the 20 million pixels on its sensor.

Indeed, pixel count poses a limit to how detailed an image can be. But in itself, it doesn’t set a minimum level for detail. It doesn’t mean anything until we don’t know other factors.

The only thing that a high pixel count surely promises is less moiré.

Calculating Image Size in Pixels

Camera sensors are rectangular. The pixels on them are not scattered randomly – they are in a grid.

The dimensions of the two sides are comparable. Their aspect ratio ranges from 1:1 (square) to 16:9 in some video-oriented cameras.

The most used aspect ratios are 3:2 and 4:3.

For example, my Canon 5D MkIII has a 3:2 aspect ratio. Its sensor measures 5760 pixels on the long side, and 3840 pixels on the short side.

You can multiply the two sides to get the total pixel count. 5760 x 3840 is equal to 22,118,400. (So, the 5D MkIII has a 22.1MP sensor.)

I can still achieve different aspect ratios, but only by cropping. That’s also what the camera is doing when I set a different aspect ratio in the menu. Cropping reduces the resolution.

blue pixelated image
Image by hongkha from Pixabay

What Is Camera Resolution?

When we say resolution in the context of cameras, we mean spatial resolution. That is the technically correct term, but it’s probably the first and last occasion you’ve read it.

Camera resolution tells us the level of detail cameras can provide. In other words, it’s the “ability of the imaging modality to differentiate two objects” (Wikipedia).

The resolution depends on several factors.

When the recording surface is film, it’s determined by:

  • Film size. Evidently, with a bigger size comes more detail
  • Grain levels. Lower ISO films generally have less grain and thus provide a cleaner, more detailed image.
  • Lens sharpness. However big and noiseless a piece of film may be, if the camera uses a low-quality lens, the camera resolution will remain low.
  • Diffraction. The value of the relative aperture (f-stop) limits how small the smallest unit of detail can be. It is always present, though, to a varying degree.

In the era of digital sensors, this slightly changes to:

Additionally, external circumstances also influence the clarity of an image.

  • Focus. If the image is misfocused, it won’t be as detailed as it could be.
  • Camera shake and motion blurDepending on the shutter speed you choose, motion blur, or even your shake might appear on the photo. It diminishes resolution, especially at telephoto focal lengths and high pixel counts.
  • Atmospheric blur. If you photograph a subject from a considerable distance, the atmosphere itself starts to have a negative impact on detail. This impact is most noticeable on telephoto shots. Fog, rain, and other weather phenomena also have an effect.
  • Condition of equipment. You might have the sharpest lens in the world, but if you don’t keep it clean, it won’t perform at its best. Also, after sudden temperature changes, condensation tends to form on lenses. It results in a hazy image.

Let’s discuss some of these in detail.

Pixel Pitch and Pixel Size

It’s self-evident that smaller pixels demand better optical quality from a lens.

An 8μm (micrometre) pixel has four times the area and twice the pixel pitch of a 4μm pixel.

This means that if the lens is just sharp enough to provide detail for the 8μm pixels, it will fail to produce enough sharpness for the 4μm pixels.

Now, where can you find small pixels?

In two places:

  • Large sensors with very high pixel counts. A Canon 5Ds R has a pixel pitch of around 4µm. It’s a 51MP full frame camera.
  • Smaller sensors with normal pixel counts. An iPhone XR had a 12MP camera. But its sensor is so small that pixels only measure 1.3µm. Its pixels are thus nine times smaller than the 5Ds R’s pixels.

In turn, the Canon 5D (the original one) has a 12MP pixel count on a full frame sensor. The pixel pitch is 8µm. Its pixels are 36 times bigger than the pixels on the iPhone!

Smaller pixels also mean less light falling onto a single pixel.

However, both large and small pixels need to be brought up to the same level. Otherwise, the image consisting of small pixels would be a lot darker.

This results in more noise because when you brighten an image, you also brighten its noise.

With smaller pixels, diffraction is also more pronounced. It starts to have a noticeable effect at low apertures, sometimes already at f/2.8.

But what is diffraction?

Understanding Diffraction

It’s hard to explain diffraction without going very scientific. If you’re an expert in physics – please forgive my simplification.

You’re probably familiar with diffraction in water. When you place a barrier with a small hole in the way of water, the flow bends near the hole. The smaller the hole is, the more bending.

This is what happens with light, too. At smaller apertures (higher f-stops) diffraction harms sharpness and resolution.

Due to diffraction, there is a very measurable, physical limit on resolution. No matter how good your lens is, it’s always true. It’s given with this formula:
p = (1.22 λ A) / 2
Here, p is the smallest pixel that can receive pixel-level information from the lens. λ is the wavelength of incoming light, and is the f/stop.

Let’s calculate with the iPhone XR‘s camera. We open up the aperture all the way to f/1.8 to get the least amount of diffraction.

The wavelength of visible light is about 0.5µm.
p = (1.22 * 0.5µm * 1.8) / 2
The resulting p is 1.1µm.

What this means is that the iPhone XR (with its 1.3µm pixel pitch) is very close to being diffraction-limited.

So, even if the lens is optically perfect, free of all aberrations, it’s at its peak. It can’t accommodate smaller pixels.

Take another example.

At f/16, the resulting is 7.3µm. This means that cameras with a pixel pitch around this value are only affected by diffraction above f/16.

So, the original 5D with its 8µm pixel pitch only gets diffraction-limited after f/16.

This coincides with my experiences. When I use the old 5D, I tend to get away even with f/16 without a decrease in sharpness. On the 5D MkIII and MkIV, it’s more like f/11 and f/9.

Take a look at this illustration I shot with the Canon 5D MkIV and the Canon 100mm f/2.8L macro lens. Both shots are in perfect focus; the softening is due to diffraction.

animated gif showing the effect of diffraction on resolution
The effect of diffraction on resolution

How Does Lens Sharpness Affect Resolution?

So, for diffraction to not pose a threat to image resolution, you need to stay at or below f/8 on most cameras.

But wide apertures can also affect sharpness to the worse – especially on cheaper lenses, but lenses generally don’t perform the best wide open.

Please note that here I’m only talking about sharpness and not other aspects of image aesthetics. Sharpness is an important quality of a lens, but not a primary deciding factor, at least for me.

A great measurement of lens sharpness are MTF charts. They show you the resolution of a lens, irrespective of sensor size and pixel count.

But you can check your lenses just in real-life usage, too. In the end, if they are sharp enough for you, you’re good to go.

The upper limit of lens sharpness is pixel-level sharpness. It means that a lens is so sharp it can resolve image data to every single pixel, without affecting the neighbouring pixel.

This not only depends on the lens but also on the pixel pitch of the cameras you use it on.

My 85mm f/1.8 lens is sharp enough to provide pixel-level sharpness on the 12MP Canon 5D.

Not so much on the 30MP Canon 5D MkIV, but it still performs decently there. And I love that lens anyway.

This also proves that smaller pixels demand more from lenses.

Note that when you view both images at the same size (say, on your monitor), you won’t notice a difference. You will only see it when you examine them zoomed-in.

What Causes Atmospheric Blur?

We all know that when light passes through glass, it refracts. But this is not a supernatural power of glass only.

Light refracts in every substance, including air.

You don’t notice it at short distances. It becomes apparent when you shoot far-away subjects with a telephoto lens.

Take a look at this photo. I shot it with a 400mm f/2.8 lens (a bit excessive for this task, I know) at f/8. The closest buildings are 5km (3mi) away, so everything is in focus. But notice the difference between the buildings in the foreground and the hills in the background.

The foreground is nice and sharp. It’s close enough not to be significantly affected by atmospheric blur.

The hills are more than three times further away from the camera. At this distance, the light starts to split. Different wavelengths are differently shifted. This shift causes blur.

The softening effect of atmospheric blur. Shot on a 400mm lens, both snippets are in perfect focus
The softening effect of atmospheric blur. Shot on a 400mm lens, both snippets are in perfect focus

How to Achieve the Highest Resolution

Now, I won’t say to go out and buy the highest megapixel camera you can find. Megapixel and pixel count, as I mentioned earlier, mean nothing without the proper settings and technique to support them.

It’s important to note that very often your aim is not to capture the absolute highest amount of detail you could theoretically capture.

Photography is not all about sharpness. It’s about communicating a story or feeling. Or to please aesthetically.

Still, there are applications where you want to highest resolution. It might be that you want to crop it later (“digitally zoom in”). Large prints also require highly detailed images.

So, what can you do to achieve the highest resolution with your photography equipment?

Know your lens. Know it’s sharp and weak points. Examine what apertures it performs best at. Check if close-up focusing results in a blurrier image, this is often an issue. Check sharpness at different focal lengths throughout the zoom range.

Know your camera. Know the ISO levels that you can dial in without affecting the image too much.

Shoot at proper shutter speed. Experiment with shutter speeds at all focal lengths. We all know the inverse focal length rule, but there’s more to it. When I photograph people, I tend not to go slower than 1/400s, to freeze motion. (Unless I want a creative motion blur effect.)

Set it up properly. Set it to full aspect ratio, and best quality JPG. Or, just set it to RAW, so you have more choices when post-processing. Also, check your in-camera sharpening settings. It doesn’t provide more but emphasizes the existing detail. Oversharpening, however, can hurt detail in a photo.

Clean your cameras and lens. Make sure there’s little to no dust in it. If your lens has fungus, get it removed. Clean the sensor.

Check your filters. If you’re using filters, be sure that they don’t degrade image quality. Some cheaper filters tend to decrease sharpness.

Focus accurately. Excercise autofocusing, make it behave how you want it. If necessary, make AF micro-adjustments. Be aware of focus shift in your lens and focus accordingly. If you shoot steady subjects on a tripod, use manual focus.

Be aware of external circumstances. Hazy days, although promising a lot for creative photography, don’t help sharpness.

Be aware of diffraction. Check the pixel pitch on your camera, and try to avoid apertures that are affected by diffraction.

Resolution and Cropping

A primary reason for shooting high-detail images is the option to crop in later.

It gives you flexibility and creative freedom. You can change your composition, your main subject, your focal point, and communicate something else by cropping.

Note that “digital zooming” is the same process as cropping, but it happens in-camera, with no option to later reveal cropped out parts. I recommend avoiding the digital zoom. Crop your images during post-processing, instead.

I don’t like shooting with zooms. I appreciate extra light over versatility. So, I often carry just a 24mm and an 85mm lens when traveling.

Most of the time, I change framing by moving closer with the 24mm. It also gives a perspective that I like better.

However, in the photograph below, I had to crop in later. I couldn’t go closer. To be fair, I like both versions equally, but the cropped image places more attention on the boy, and less on the surroundings.

I could do this because I had plenty of resolution.

street scene taken in Skopje, North-Macedonia, on a Canon 5D MkIII and a 24mm f/1.4 II lens at 1/400s, f/2.
Taken in Skopje, North-Macedonia, on a Canon 5D MkIII and a 24mm f/1.4 II lens at 1/400s, f/2.

How to Avoid Pixelation When Upscaling

Upscaling or enlarging small images rarely yields the results you’d like. Adobe Photoshop and other editing programs offer algorithms to make upscaled photos less pixelated, but the outcome is far from sharp.

However, in the past few years, the options became much more sophisticated. This is due to the rise and evolution of machine learning algorithms.

Photoshop‘s tool has improved significantly, but there are web-based services for advanced upscaling.

Check out this video from PiXimperfect to learn more about them.

Also, consider the previous points. A photo that is close to pixel-level sharp is easier to upscale than a blurry, softer one.

Resolution and Printing

The other reason for really high-resolution images is printing.

Now, I don’t mean printing at home with the printer that you use for printing documents.

I mean professional photo printing, magazines, books, and posters.

Printing works similarly to digital imaging. Printers paint tiny dots on the paper – those dots are the smallest unit of detail in printing.

Digital pixels can be directly translated to dots. And just like pixels, dots also don’t tell you a lot about detail.

However, printing services ask for files with specific pixel dimensions. This is because they assume that the files you submit contain pixel-level information, and are detailed.

During printing, there’s a new unit you will encounter: DPI. It stands for dots per inch. 

DPI tells you how densely the dots are printed onto the paper. The denser they are, the more detailed the print can be.

Magazines, books and smaller prints look good above 300 DPI, generally.

Posters, larger prints are made with slightly lower dot densities. This is because there’s often not enough resolution for supplying 300 DPI.

Calculating Print Size

Let’s suppose that you’d like an 8″ x 10″ print size. It’s a standard, medium-sized format.

Just multiply the desired DPI (in this case, 300 DPI) with the length of the sides.

It turns out that for this print, you’ll need to submit an image that is 2400 x 3000 pixels.

If you translate that to megapixels, it’s not a lot: only 7.2MP.

Now, make a calculation the other way around. If I use the full pixel count on my 22.1 megapixel camera, what size can I print at different densities?

The images are 5760 x 3840. They have an aspect ratio of 3:2. Let’s see the sizes:

Dots Per Inch
Final Size
600 DPI{{column-name-2}}: 9.6" x 6.4"
300 DPI{{column-name-2}}: 19" x 13"
200 DPI{{column-name-2}}: 29" x 20"
100 DPI{{column-name-2}}: 58" x 38"
10 DPI{{column-name-2}}: 14m x 10m

Resolution and Digital Use

Digital display of images doesn’t require a lot of resolution.

The images that you find on websites are tiny. For example, on our site, we use images that are 700 pixels on their longer side.

That’s still enough for seeing what’s in the image. But it’s also small enough to load quickly.

The full resolution of monitors and TVs is not a lot bigger, either. The most popular display sizes are HD and FullHD, with 4K gaining more and more share.

But what are those exactly?

HD refers to 1280 x 720, or 1366 x 768 pixels. These are around 1 megapixel!

FullHD is twice as large, at 1920 x 1080 pixels. That’s 2 megapixels.

4K is a significant step, it’s four times larger than FullHD, at around 3840 x 2160. It’s close to 8 megapixels.

Higher resolution displays are rare.

Images on a computer screen
Photo by Designecologist from Pexels

Conclusion

So, do you need high resolution?

If you do, you now also know that detail and resolution are not all about megapixels. Other technical and human factors contribute to a high-res photograph.

Hopefully, you’re now able to bring the sharpest image out of your camera gear.

Good luck, and thank you for reading ExpertPhotography!