Worked example · Depth of field

35mm f/8 landscape focus on full frame

A foreground rock and distant skyline share the frame. Use 35mm at f/8 with the full-frame blur-circle preset and focus at 5.2 m.

See the worked calculation

Inputs

Enter 0 to use the selected sensor’s default.

Results

Runs on your device

Near limit
2.58 m
Far limit
∞ m
Hyperfocal distance
5.14 m
Total depth of field
∞ m
Circle of confusion
0.03 mm
Focus zone
Near limit 2.58 m, focus 5.2 m, far limit ∞ mNEARFOCUSFAR2.58 m5.2 m∞
The shaded band spans the modeled near and far limits. The brass line marks the plane of focus.

Worked calculation

  1. Solve H = 35² ÷ (8 × 0.030) + 35 = 5139.17 mm.
  2. At 5.2 m, q ≈ 1.0119, so near = 5.2 ÷ (1 + q) ≈ 2.58 m.
  3. A rock closer than about 2.58 m falls outside this modeled band even though the skyline is within it.

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 happens to the foreground if I set this 35mm lens to infinity?

The near limit tends toward the hyperfocal distance, about 5.14 m. Focusing around H extends the acceptable range closer to the camera.

How can I compare f/8 and f/11 before stopping down?

Keep the distance fixed and change the aperture to see the geometric near and far limits. Inspect fine detail for diffraction when choosing between them.