A practical tool

Depth of field,
worked out.

Choose a sensor, lens, aperture and focus distance. See where acceptable sharpness starts and ends, how much falls in front of and behind your subject, and where to focus to reach infinity.

Depth of field

How much will look sharp?

The focal length marked on the lens, not a 35 mm equivalent.
Circle of confusion: 0.029 mm
Try a starting point
Total depth of field1.76 m64 cm in front of the focus point · 1.12 m behind
Near limit2.36 mClosest acceptably sharp distance
Far limit4.12 mFarthest acceptably sharp distance
Hyperfocal distance10.9 m
Zone of acceptable sharpness between the near and far limits, with the focus point in the centreNear 2.36 mFar 4.12 mFocus 3.00 m∞

Focused at 3.00 m with a 50 mm lens at f/8 on full frame, acceptable sharpness extends from about 2.36 m to 4.12 m.

What this calculator assumes

The calculator uses the standard thin-lens depth-of-field model. Hyperfocal distance H = f² ÷ (N × c) + f. Focused at distance s, the near limit is s(H − f) ÷ (H + s − 2f) and the far limit is s(H − f) ÷ (H − s), reaching infinity once s is at or beyond H. Distances are treated as measured from the lens.

The circle of confusion c is the largest blur spot still treated as a point. It depends on the sensor size, how much the image is enlarged and how closely it is viewed: diagonal ÷ 1500 is a common standard for ordinary prints and screens; diagonal ÷ 3000 suits large prints or close inspection. Sharpness falls off gradually, so the limits are a useful guide rather than a hard edge.

The model ignores diffraction, lens design, focus breathing and pupil magnification. It becomes less reliable at close-up and macro distances. The diagram compresses distance so the focus point always sits in the centre.

How depth of field is calculated.

The calculator first finds the hyperfocal distance, H = f² ÷ (N × c) + f, where f is the focal length, N the f-number and c the circle of confusion. Focused at distance s, acceptable sharpness runs from s(H − f) ÷ (H + s − 2f) to s(H − f) ÷ (H − s). Written without H, the same limits are f²s ÷ (f² ± N·c·(s − f)), the form used in Berkeley's camera and lens lecture.

The circle of confusion is the key judgement in the model: the largest blur spot that still looks like a point once the picture is enlarged and viewed. This calculator uses the sensor diagonal ÷ 1500 (0.029 mm for full frame) or a stricter diagonal ÷ 3000 for large prints and close inspection.

What changes depth of field?

Aperture. With the lens, distance and viewing standard fixed, a smaller opening (a larger f-number) extends the zone. For a 50 mm lens on full frame focused at 3 m:

ApertureNear limitFar limitTotal
f/1.82.83 m3.20 m37 cm
f/42.64 m3.47 m83 cm
f/82.36 m4.12 m1.76 m
f/161.94 m6.59 m4.65 m

Distance. Moving the focus point farther away deepens the zone quickly; close-up work leaves very little in focus. Focal length. From the same position, a longer lens gives a shallower zone, partly because it magnifies the subject more.

Using the hyperfocal distance.

Focus at the hyperfocal distance and the zone runs from about half that distance to infinity. A 24 mm lens at f/11 on full frame has a hyperfocal distance of about 1.84 m, so everything from about 92 cm onward meets the standard. Use the Focus here button to set it.

At the hyperfocal distance, the farthest detail only just meets the chosen standard. When distant detail matters most, focus slightly beyond it, choose the critical standard, or check a magnified preview.

Why there is often more behind than in front.

At ordinary distances the zone extends farther behind the focus point than in front of it; the calculator shows the actual split. The familiar “one-third in front, two-thirds behind” rule only holds at particular distances. At close range the split approaches equal, and beyond the hyperfocal distance the far side reaches infinity.

Does sensor size change depth of field?

It depends on what stays the same. Keep the same 50 mm lens at f/4 and 3 m: on Micro Four Thirds the image must be enlarged more, the circle of confusion is smaller, and the zone shrinks from 83 cm to 41 cm, but the frame is also much tighter. Match the framing with a 25 mm lens instead, and the Micro Four Thirds zone grows to 1.78 m. That is why smaller formats usually give deeper focus for the same composition and f-number.

Treat every result as a guide. Sharpness fades gradually rather than stopping at a line, and real lenses differ from the thin-lens model.

Keep the useful pieces

The ideas behind the numbers.

Glossary A–Z ↗
Concept / 01

Depth of field

Depth of field is the distance range that appears acceptably sharp around the focused subject.

Explore ↗
Concept / 02

Aperture

Aperture is the lens opening that regulates how much light passes through.

Explore ↗
Concept / 03

Focus

Focusing sets the distance at which a lens renders the subject most sharply.

Explore ↗
Concept / 04

Focal length

Focal length is an optical lens property, normally stated in millimetres.

Explore ↗
Concept / 05

Sensor size

Sensor size is the physical area of the camera surface that records light.

Explore ↗
Concept / 06

Bokeh

Bokeh describes the visual character of out-of-focus areas.

Explore ↗