keisoku

Depth of Field Calculator

From focal length, f-stop, subject distance, and circle of confusion, calculate the front, rear, and total in-focus range plus the hyperfocal distance.

Input

Calculate the in-focus range (depth of field) and hyperfocal distance from focal length, f-stop, subject distance, and circle of confusion. Use the results as a guide when planning a shot.

mm
m
Circle of confusion (sensor size)

Result

Depth of field (total)

60.1 cm

Front depth of field

27.1 cm

Rear depth of field

33.0 cm

Hyperfocal distance

29.81 m

In-focus range details (circle of confusion 0.03 mm)

ItemDistance
Near focus limit (near point)2.73 m
Far focus limit (far point)3.33 m
Depth of field (total)60.1 cm

How it works

  • Enter the focal length (mm), f-stop (aperture), distance to the subject (m), and circle of confusion (mm) to calculate the range that appears in focus. The circle of confusion defaults to about 0.03 mm for full frame and can be chosen by sensor size.
  • The hyperfocal distance is H = f² ÷ (N × c) + f (f: focal length, N: f-stop, c: circle of confusion, all in mm). Focusing at this distance keeps everything from there to infinity within the depth of field.
  • The near focus limit is Dn = s(H − f) ÷ (H + s − 2f) and the far focus limit is Df = s(H − f) ÷ (H − s), where s is the subject distance. The total depth of field is Df − Dn.
  • When the subject distance reaches or exceeds the hyperfocal distance, the far point becomes infinity and the rear depth of field is shown as theoretically infinite.
  • Stopping down (a larger f-stop), using a shorter focal length, or moving farther from the subject deepens the depth of field; the opposite makes it shallower and easier to blur the background.
  • The displayed values are calculated estimates that assume an ideal lens. Real results vary with lens aberrations and sensor characteristics, so treat them as a reference.