Understanding Depth of Field (and Hyperfocal Distance)
Want to compute this yourself? Use the Depth of Field & Hyperfocal Calculator.
A lens focuses light from one specific distance to a single sharp plane on the sensor. Everything else in the frame — nearer or farther than that plane — is technically out of focus. Depth of field is the practical answer to a question that follows immediately from that fact: how far can something be from the true focus plane before a viewer actually notices the blur? The answer turns out to depend on four things, and understanding why each one matters is more useful than memorizing a chart.
The Circle of Confusion Is the Whole Trick
A point of light that isn't perfectly focused doesn't render as a point — it renders as a small disc, called the circle of confusion. A point exactly at the focus plane produces an infinitesimally small disc; a point further from the focus plane produces a progressively larger one. The entire concept of depth of field rests on a single practical compromise: below some disc size, a viewer looking at a normal print or screen simply can't tell the difference between that disc and a true point. Depth of field is the range of distances over which the circle of confusion stays below that threshold.
This is why depth of field isn't a hard physical boundary — it's a judgment call about what counts as "acceptably sharp," baked into a single number (the maximum acceptable circle of confusion) that then drives every other depth-of-field calculation. This site uses the diagonal/1500 convention: divide your sensor's diagonal measurement by 1500 to get the maximum acceptable circle of confusion in the same units. Other sources use 1442 or 1730 instead, producing slightly different — but not wildly different — hyperfocal and depth-of-field numbers. None of these conventions is more "correct" in an absolute sense; they encode slightly different assumptions about viewing distance and print size.
Why Sensor Size Changes Depth of Field
This is the piece that trips up more photographers than anything else in this topic, and it's easy to get backwards, so it's worth being precise about which comparison is being made. Holding the REAL focal length, aperture and subject distance identical, a smaller sensor's smaller acceptable circle of confusion is a stricter sharpness threshold, which on its own actually narrows depth of field, not widens it — a 25mm lens at f/8 on Micro Four Thirds has LESS depth of field than the same 25mm lens at f/8 on full frame, because Micro Four Thirds demands a smaller blur disc before calling something sharp. But that's rarely the comparison photographers actually mean. What people usually mean by "smaller sensors have more forgiving depth of field" is the same SHOT — matched field of view — which requires a shorter real focal length on the smaller sensor (a separate crop-factor effect covered in the crop-factor guide). That shorter real focal length widens depth of field more than the stricter circle of confusion narrows it, and the combination is why a Micro Four Thirds camera framing a scene the same way a full-frame camera would at f/8 genuinely does end up with more forgiving depth of field — it's a real, physical consequence of the geometry, just one that depends on comparing equivalent framing, not equivalent focal length.
Why Aperture Changes Depth of Field
A smaller aperture (a higher f-number) narrows the cone of light rays converging toward the focus plane. A narrower cone means the disc of confusion grows more slowly as you move away from perfect focus, so a given acceptable-blur threshold is reached at a greater distance from the focus plane in both directions. This is the straightforward, intuitive part of depth of field, and it's why "stop down for more depth of field" is reliable general advice — right up until diffraction starts working against you at very small apertures, typically somewhere around f/11 to f/16 depending on your sensor's pixel density, where the sharpness gained from more depth of field starts being offset by the sharpness lost to diffraction blur across the whole frame.
Why Focal Length and Distance Change Depth of Field
Longer focal lengths and closer subject distances both narrow depth of field, and they interact with each other in a way that surprises people who only think about focal length in isolation. A 200mm lens focused on a subject 50 meters away and a 50mm lens focused on a subject 12.5 meters away — framing the subject identically, since the focal-length-to-distance ratio is the same — will actually produce very similar depth of field. It's the combination of focal length and distance, via magnification, that drives the effect, not focal length alone. This is also why macro photography has such famously razor-thin depth of field: extremely close focus distances push depth of field down to millimeters even at moderate apertures.
Hyperfocal Distance: The Useful Special Case
Hyperfocal distance is simply the focus distance at which the far limit of depth of field extends exactly to infinity. Focus any closer than that and your far limit becomes a finite distance instead of infinity; focus exactly at it and you get the maximum possible depth of field for that focal length and aperture combination, running from half the hyperfocal distance all the way to infinity.
Worked Example
At 24mm, f/8, on full frame, the hyperfocal distance works out to roughly 2.5 meters. Focus at 2.5 meters and everything from about 1.25 meters to infinity reads as acceptably sharp — which is exactly the reasoning behind the old advice to "focus a third of the way into the scene" for a wide-angle landscape shot at a moderate aperture; it's a rough mental approximation of finding the hyperfocal point without doing the math.
Where the Standard Advice Breaks Down
Hyperfocal focusing maximizes depth of field, but maximizing depth of field isn't always what a photo actually needs. If your nearest important element is much closer than the hyperfocal near limit, you have three real options: focus closer (accepting that infinity is no longer sharp, which often doesn't matter if there's nothing important at infinity anyway), use a smaller aperture (running into the diffraction ceiling eventually), or use a wider focal length (which itself increases depth of field for a given aperture and distance, independent of the hyperfocal calculation). Understanding why each of these works — rather than just which chart to consult — is what lets you make the right call in a specific scene instead of blindly applying a rule of thumb that doesn't fit.
A Note on Focus Stacking
When depth of field genuinely can't cover what you need — extreme macro work, or a landscape with something very close in the foreground and detail far in the background at an aperture too wide open to bridge the gap — focus stacking sidesteps the problem entirely by taking multiple exposures at different focus distances and combining the sharp regions of each in post-processing. It's a different tool for a different situation than choosing a smaller aperture, and it avoids the diffraction penalty that stopping down too far incurs.
Depth of Field Is Not the Same as Sharpness
It's worth separating two things that get conflated constantly: depth of field describes the RANGE of distances that read as acceptably sharp, while overall sharpness (sometimes called resolving power or acutance) describes how crisp the in-focus plane itself looks. A lens can have excellent sharpness at its focus plane and a very shallow depth of field, or middling sharpness with generous depth of field — the two properties are largely independent, driven by different aspects of lens design and different parts of this calculation entirely. A soft photo isn't necessarily a depth-of-field problem, and a photo with the wrong things blurry isn't necessarily a sharpness problem.
Practical Takeaways
- Depth of field depends on sensor size, aperture, focal length and subject distance — never on resolution or megapixel count, which is a separate axis entirely.
- Hyperfocal focusing maximizes total depth of field for a given focal length and aperture, but isn't automatically the right choice if your nearest subject sits closer than the resulting near limit.
- Circle of confusion is a stated convention, not a fixed physical constant — check which one a calculator uses before comparing its output to another source.
- Diffraction sets a practical ceiling on how far stopping down can usefully extend depth of field, typically somewhere around f/11 to f/16 depending on sensor resolution.
Frequently Asked Questions
Is a shallower depth of field always more desirable for portraits?
Not universally — a very shallow depth of field on a portrait can throw an ear or the far side of a face out of focus if you're not careful about the plane of focus relative to the subject's angle to the camera. Shallow depth of field is a strong aesthetic tool, but it needs to be aimed deliberately, not maximized by default.
Does depth of field depend on print size or screen size?
The circle-of-confusion threshold this whole calculation is built on is itself an assumption about typical viewing conditions — a much larger print, or viewing an image at 100% pixel zoom on a screen, will reveal softness that would have read as acceptably sharp at a smaller size or a more typical viewing distance. The numbers here use a standard convention, not a guarantee for every viewing scenario.
Why do two lenses at the same focal length and aperture sometimes look different in depth of field?
The math here describes an idealized thin lens; real lens designs, especially complex zooms, can deviate slightly from the idealized prediction, and factors like field curvature or the specific rendering of out-of-focus areas (often discussed as bokeh quality) can make two lenses with identical focal length and aperture look meaningfully different even when the underlying depth-of-field numbers are the same.