Depth of Field Calculator

Hyperfocal distance equals f squared divided by N times C, plus f. Near limit equals u times H minus f, divided by H plus u minus 2f. Far limit equals u times H minus f, divided by H minus u.

Total Depth of Field

2.04 ft

Hyperfocal Distance

97.8 ft

Near Limit

9.08 ft

Far Limit

11.1 ft

Total DoF

2.04 ft
Share:

How Depth of Field Works

Depth of field (DoF) is the distance between the nearest and farthest objects in a scene that appear acceptably sharp in a photograph. A camera lens can only focus precisely on one plane, but there is a range around that plane where objects still look sharp to the human eye.

This apparent sharpness is defined by the circle of confusion (CoC) — the maximum size of a blur spot that still looks like a point to a viewer. Canon uses specific CoC constants for each sensor format: 0.030 mm for full-frame, 0.019 mm for APS-C, and 0.023 mm for APS-H sensors.

Three factors control depth of field: aperture (wider apertures like f/1.8 produce shallower DoF), focal length (longer lenses compress DoF), and subject distance (closer subjects have thinner DoF). The hyperfocal distance is the focus distance that maximizes DoF — everything from half the hyperfocal distance to infinity will appear sharp.

Example: Portrait at 85mm f/1.8

You're shooting a portrait with an 85mm lens at f/1.8 on a full-frame camera. Your subject is standing 8 feet (about 2.4 meters) away.

Focal Length = 85 mm

Aperture = f/1.8

Subject Distance = 8 ft (2,438 mm)

Sensor = Full Frame (CoC = 0.030 mm)

Hyperfocal Distance = 134,028 mm ≈ 440 ft

Near Limit ≈ 7.85 ft

Far Limit ≈ 8.15 ft

Total DoF ≈ 0.30 ft (3.6 inches)

With only about 3.6 inches of depth of field, you need precise focus on your subject's eyes. This razor-thin DoF is what creates the creamy background blur (bokeh) that portrait photographers love.

When To Use a Depth of Field Calculator

  • Portraits — determine exactly how thin your depth of field will be at a given aperture and distance, ensuring sharp eyes with pleasing background blur
  • Landscape photography — find the hyperfocal distance to maximize sharpness from foreground to infinity without stopping down too far and losing sharpness to diffraction
  • Macro and close-up photography — at very close distances, depth of field becomes extremely thin; knowing the exact range helps plan focus stacking
  • Video and filmmaking — cinematographers use DoF calculations to plan focus pulls and ensure subjects stay within the sharp zone during movement
  • Lens comparison — compare the DoF characteristics of different focal lengths and apertures before purchasing or renting a lens

Frequently Asked Questions

What is circle of confusion?

The circle of confusion (CoC) is the largest blur spot on a camera sensor that still appears as a sharp point to the human eye when the image is printed or displayed at normal viewing distance. It depends on sensor size — smaller sensors use a smaller CoC threshold because the image must be magnified more to reach the same print size.

How does aperture affect depth of field?

A wider aperture (lower f-number like f/1.8) produces a shallower depth of field, isolating the subject from the background. A narrower aperture (higher f-number like f/16) produces a deeper depth of field, keeping more of the scene in focus. However, extremely small apertures (f/22 and beyond) can reduce overall sharpness due to diffraction.

What is hyperfocal distance?

The hyperfocal distance is the closest focus distance at which objects at infinity still appear acceptably sharp. When you focus at the hyperfocal distance, everything from half that distance to infinity falls within the depth of field. Landscape photographers use this technique to maximize sharpness throughout an entire scene.

Does sensor size affect depth of field?

Yes. A larger sensor (full-frame) produces shallower depth of field than a smaller sensor (APS-C) at the same focal length, aperture, and framing. This is because the larger sensor uses a larger CoC threshold and requires a longer focal length or closer distance to achieve the same framing, both of which reduce DoF.

Can depth of field be infinite?

Yes. When the subject is focused at or beyond the hyperfocal distance, the far limit of the depth of field extends to infinity. This means everything from the near limit to the horizon will appear sharp. This is common in landscape photography with wide-angle lenses at narrow apertures.

Related Calculators

Related Sites