Boneyard Tools

Depth of Field Calculator

Enter your focal length, aperture, and focus distance to see exactly how much of the scene stays sharp. The calculator returns the near limit, the far limit, the total depth of field, and the hyperfocal distance, and it flags when the far limit reaches infinity. Pick a sensor preset so the circle of confusion matches your camera before you read the numbers.

How to use the depth of field calculator

  1. Click a sensor button (Full frame, APS-C, Micro 4/3, or 1 inch) to set the circle of confusion.
  2. Type the lens focal length in millimetres.
  3. Type the aperture as the f-number after f/.
  4. Type the focus distance to your subject in metres.
  5. Adjust the circle of confusion by hand if you want a stricter or looser sharpness standard.
  6. Read the near limit, far limit, total depth of field, and hyperfocal distance, then copy the summary.

Examples

50mm at f/8, focused at 3 m, full frame

focal = 50 mm, f/8, distance = 3 m, CoC = 0.029 mm
near 2.355 m, far 4.131 m, DoF 1.776 m, hyperfocal 10.83 m

24mm at f/16 past the hyperfocal distance

focal = 24 mm, f/16, distance = 5 m, CoC = 0.029 mm
near 0.9983 m, far Infinity, DoF unbounded (hyperfocal 1.265 m)

35mm at f/2.8 for a tighter band

focal = 35 mm, f/2.8, distance = 1.5 m, CoC = 0.029 mm
near 1.367 m, far 1.661 m, DoF 0.2941 m, hyperfocal 15.12 m

Frequently asked questions

What is depth of field?

Depth of field is the range of distances in a scene that looks acceptably sharp. It runs from the near limit to the far limit, straddling the distance you focused on.

What controls how deep the depth of field is?

Aperture, focal length, and focus distance. A smaller aperture (larger f-number), a wider lens, or a more distant subject each widen the sharp zone; opening up, zooming in, or moving closer narrows it.

Why does the far limit sometimes say Infinity?

Once your focus distance reaches or passes the hyperfocal distance, the far limit extends to infinity and everything from the near limit outward stays sharp. The tool shows Infinity and marks the depth of field as unbounded.

What circle of confusion should I choose?

Match it to your sensor. The presets use 0.029 mm for full frame, 0.018 mm for APS-C, 0.015 mm for Micro 4/3, and 0.011 mm for a 1 inch sensor. A smaller value is a stricter sharpness standard and shrinks the reported depth of field.

Why is the sharp zone not centred on the focus point?

Depth of field is asymmetric. At normal distances roughly a third falls in front of the subject and two thirds behind, and the rear portion grows faster as you focus farther away.

What is the hyperfocal distance and how do I use it?

It is the focus distance that keeps everything from half that distance to infinity acceptably sharp. Focusing there maximises depth of field for landscapes, which is why the tool always reports it.

Does the crop factor of my camera change the result?

It is captured through the circle of confusion. Smaller sensors use a smaller value, which is why the same focal length and aperture yield a shallower calculated depth of field on full frame than on Micro 4/3.

What units does the calculator use?

Focal length and circle of confusion are in millimetres, aperture is a unitless f-number, and focus distance plus every result are in metres. Results are shown to four significant figures.

Is my input sent to a server?

No. The formula runs entirely in your browser as you type, so nothing is uploaded. A JSON API is also available if you want the same calculation in a script.

Learn more

Related tools