Optics

Depth of Field & Hyperfocal Distance Calculator

Find out how much of the scene will look sharp and where to focus when you need the far limit to reach infinity.

Inputs

Enter 0 to use the selected sensor’s default.

Results

Runs on your device

Near limit
2.95 m
Far limit
3.05 m
Hyperfocal distance
172.11 m
Total depth of field
0.1 m
Circle of confusion
0.03 mm
Focus zone
Near limit 2.95 m, focus 3 m, far limit 3.05 mNEARFOCUSFAR2.95 m3 m3.05 m
The shaded band spans the modeled near and far limits. The brass line marks the plane of focus.

How the calculation works

Hyperfocal distance

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

Use millimeters for focal length f, circle of confusion c and focus distance s. N is the displayed f-number.

Near and far limits

q = (s − f) ÷ (H − f), near = s ÷ (1 + q), far = s ÷ (1 − q)

The far limit is infinite at or beyond H. The model measures distances from the ideal lens principal plane.

Questions and answers

What is the difference between depth of field and depth of focus?

Depth of field is the acceptable-sharpness range in front of the lens. Depth of focus describes how far the image plane can move behind the lens.

How should I choose a circle of confusion for a large print?

Start with the preset, then enter a smaller blur circle if you expect a large enlargement or close viewing. The same optical blur is more visible when enlarged.