Optical planning tool

Depth of Field Calculator

Calculate near and far focus limits, total depth of field and hyperfocal distance using conventional sensor-format or custom circle of confusion values.

Depth of field calculator inputs and results

Camera settings

Live results; distance is measured from the sensor plane.

Measurement units
Calculator mode
Current focus range 7 ft 9 in to 14 ft 6 ft 3 in DOF
mm

Use the actual focal length marked on the lens, not its full-frame equivalent.

f/
ft
Optical assumptions

Focus results

Your depth of field

CoC 0.030 mm · conventional thin-lens model

At 10 ft, your total depth of field is 6 ft 3 in.

Near limit
7 ft 9 in
Focus distance
10 ft
Far limit
14 ft
Total depth of field
6 ft 3 in
Focus range

Boundaries represent the selected CoC threshold; sharpness changes continuously. This does not predict lens rendering or bokeh.

Hyperfocal distance
34 ft 4 in
In front of subject
2 ft 3 in
Behind subject
4 ft
Horizontal field of view
39.6 degrees
Frame width at subject
7 ft 2 in
Full-frame equivalent
50 mm
Depth of field diagram showing the near limit, focus distance and far limit
Focus boundaries and total depth of field for a full-frame 50mm lens focused at 10 ft and f/8.

Using the depth of field calculator in the field

Select the sensor format, then enter the actual focal length marked on the lens, the working aperture and the distance from the sensor plane to the subject. The near and far limits mark where defocus reaches the selected circle of confusion, not where sharpness begins or ends abruptly.

Use Standard mode for a quick field calculation. Advanced mode exposes the sensor dimensions, CoC, field of view and framing results. For measured setups, take focus distance from the sensor-plane mark on the camera body rather than from the front of the lens.

Calculation assumptions

Circle of confusion

The sensor presets use conventional CoC values close to the sensor diagonal divided by 1,500. They describe typical enlargement and viewing conditions, not a universal sharpness standard.

Distance and focal length

Enter the physical focal length, without applying crop factor, and measure subject distance from the sensor plane. Equivalent-framing comparisons also require changes in focal length or camera position.

Thin-lens model

The calculation assumes a paraxial thin lens. It does not model field curvature, aberrations, focus breathing, diffraction, camera movement or subject movement.

Acceptable sharpness

Only the plane of focus is geometrically exact. Near and far limits are threshold crossings whose practical relevance depends on enlargement, cropping, viewing distance and visual acuity.

Using hyperfocal distance critically

At the calculated hyperfocal distance, the far limit reaches infinity and the near limit lies at approximately half that distance. Infinity is not at best focus: it sits exactly at the selected acceptable-sharpness threshold.

If distant detail has priority, focus beyond the calculated hyperfocal distance or select a smaller CoC in Advanced mode. Large prints, close viewing and substantial crops usually justify a stricter value. Confirm critical work at the intended output size rather than treating the calculated boundary as absolute.

Formula and practical limits

Hyperfocal distance is calculated as H = f2 / (N c) + f, where f is focal length, N is f-number and c is the selected CoC. The near and far limits are then derived from H and focus distance. When focus distance reaches or exceeds H, the far limit is reported as infinity.

Stopping down increases geometric depth of field but does not guarantee more resolved detail because diffraction also increases. At high macro magnification, effective aperture and pupil magnification become significant; use a macro-specific model or field testing when those factors matter.

Depth of field calculator FAQ

Why do depth of field calculators give different results?

Calculators may use different CoC values, exact sensor dimensions, rounding rules or lens equations. Compare the assumptions before comparing the output. Two calculators using the same focal length, aperture, focus distance and CoC should produce closely matching results.

Which circle of confusion should I use?

The presets are suitable for conventional viewing assumptions. Choose a smaller CoC for large prints, close inspection, heavy cropping or a more conservative focus tolerance. The correct value depends on the final presentation, not sensor size alone.

Is infinity perfectly sharp at the hyperfocal distance?

No. Infinity is exactly at the selected acceptable-sharpness limit. If the horizon or distant texture is more important than the nearest foreground, focus farther than H or use a stricter CoC.

Can I use this calculator for macro photography?

Use it only as an approximation at high magnification. Macro depth of field can depend on effective aperture and pupil magnification, which this thin-lens calculation does not include. Critical macro work should be tested directly or planned with a macro-specific focus-stacking calculation.