Understanding Depth of Field

Depth of field is the zone between two focal planes where objects render acceptably sharp in your image. Anything closer or farther than this zone appears blurred. In practice, this means you can position your subject within the DoF boundaries and maintain critical sharpness, while elements outside these limits progressively lose focus.

Three factors govern DoF:

  • Aperture size — Smaller openings (higher f-numbers like f/16) extend DoF across a scene; larger openings (f/2) compress it dramatically.
  • Focal length — Longer lenses (telephoto) naturally produce shallower DoF; wide-angle lenses allow deeper DoF at the same aperture.
  • Focus distance — The closer you focus to your subject, the narrower your zone of sharpness becomes.

Understanding these relationships lets you design images intentionally rather than discovering depth issues during post-processing.

Circle of Confusion Explained

The circle of confusion is a fundamental optical concept that defines the threshold between acceptable sharpness and noticeable blur. When light from a point on your subject enters the camera, it converges to form a point on the sensor at your focus distance. Light from points nearer or farther away spreads into small circles instead.

Once these circles exceed a critical diameter—the circle of confusion limit—the human eye perceives them as out of focus. This limit depends on:

  • How the final image will be viewed (print size and viewing distance)
  • The viewer's visual acuity (typically 0.3 mm of blur per millimeter of print, viewed at 25 cm)
  • The sensor's diagonal measurement and how much the image is enlarged

Professional cameras often use a CoC of 0.029–0.030 mm as a standard, though larger prints or closer viewing distances may require smaller values for the illusion of sharpness to hold.

Depth of Field Calculation

The core DoF formula expresses the total zone of sharpness as the distance between its near and far boundaries. Both boundaries are calculated from the hyperfocal distance, a key parameter that represents the optimal focus point for maximum overall sharpness when you need deep field coverage.

H = f + (f² ÷ (N × C))

DoF near = (H × u) ÷ (H + (u − f))

DoF far = (H × u) ÷ (H − (u − f))

DoF = DoF far − DoF near

  • H — Hyperfocal distance: the focus point yielding maximum depth of field.
  • f — Focal length of the lens in millimetres.
  • N — Aperture f-number (e.g. 4 for f/4, 16 for f/16).
  • C — Circle of confusion limit in millimetres, typically 0.029–0.030 mm.
  • u — Focus distance from sensor to subject in millimetres.

Practical DoF Adjustment

On a digital or film camera, you control DoF through deliberate choices at the moment of exposure.

To deepen your field: Stop down to a smaller aperture (f/11, f/16, f/22). This restricts light to a narrower cone, allowing objects at multiple distances to focus acceptably. You'll need longer shutter speeds or higher ISO to compensate for reduced light.

To shallow your field: Open the aperture wide (f/1.4, f/1.8, f/2.8) and use a longer focal length (70–200 mm). Move closer to your primary subject. Wide lenses and distant focus points naturally preserve sharpness throughout, so this combination requires active effort to isolate a subject.

Focus placement matters: The near and far limits are not symmetrical. Roughly one-third of DoF extends in front of your focus point, and two-thirds extends behind it—particularly at larger apertures. Knowing this prevents focusing on a subject's eyes only to find the ears unsharp.

Common DoF Pitfalls and Solutions

Avoid these frequent mistakes that ruin sharpness or waste potential background separation.

  1. Confusing aperture with shutter speed — Widening the aperture to collect light in dim conditions improves sharpness of moving subjects, but it automatically shallows your DoF. If you need both fast shutter and deep field, raise ISO instead of relying on aperture alone.
  2. Ignoring sensor crop factor — A crop-sensor camera (APS-C, Micro Four Thirds) multiplies the effective focal length. An 85 mm lens on a crop sensor acts like a 127 mm full-frame equivalent, producing shallower DoF than the same lens on full-frame—a trap when comparing portrait lenses across camera types.
  3. Misjudging hyperfocal distance — Focusing at the hyperfocal distance maximises landscape coverage but places the focus plane at a specific distance, not at infinity. For critical infinity sharpness (astrophotography, distant mountains), focus just beyond hyperfocal or accept slightly softer near elements.
  4. Forgetting about diffraction limits — Ultra-small apertures (f/32, f/45) exceed your lens's diffraction limit and paradoxically degrade sharpness. Most lenses perform best between f/4 and f/11; stopping down further introduces soft-focus artifacts that no post-processing fully recovers.

Frequently Asked Questions

What happens to depth of field when you change from an f/2.8 to f/16 aperture?

Stopping down from f/2.8 to f/16 multiplies your depth of field by roughly 64 (the square of the aperture ratio change). If f/2.8 yields only 5 cm of sharpness, f/16 might produce 3–4 meters. Light requirements increase dramatically, so you'll need a tripod and longer exposures or a brighter environment to maintain handheld shutter speeds.

Why does a 200 mm telephoto lens produce shallower depth of field than a 50 mm standard lens at the same aperture?

Longer focal lengths magnify the image more, which increases the angular size of the circle of confusion on your subject. At f/4, both lenses admit light cones of the same angular width, but the telephoto's magnification makes these blurs appear much larger relative to your subject. The result is visibly softer out-of-focus areas despite identical f-stops.

How does focusing distance affect the sharpness range in a photo?

The closer you focus, the shallower your depth of field becomes, even at the same aperture and focal length. A macro lens focused at 10 cm might have only 2 mm of sharpness; the same lens focused at 1 meter could have 15 cm. This inverse relationship grows more pronounced as focal length increases, making close-up telephoto work extremely demanding.

Can you achieve shallow depth of field with a smartphone camera?

Smartphone cameras have tiny sensors and short focal lengths, both of which encourage deep depth of field. Even at the widest aperture (typically f/1.5–f/1.8), most phones keep everything from 20 cm to infinity reasonably sharp. Computational photography (background blur simulation) mimics shallow DoF by blurring the background in software after capture, not through optical means.

Does increasing the print size of your final image change the circle of confusion limit?

Yes, enlarging your print effectively tightens the circle of confusion limit. A larger print viewed at normal distance introduces more visible blur, so the acceptable CoC must shrink. A camera setting that produces acceptably sharp 10×15 cm prints might yield noticeably soft edges in 40×60 cm exhibition prints, requiring smaller apertures or revised focus strategy for larger formats.

More other calculators (see all)