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
- Click a sensor button (Full frame, APS-C, Micro 4/3, or 1 inch) to set the circle of confusion.
- Type the lens focal length in millimetres.
- Type the aperture as the f-number after f/.
- Type the focus distance to your subject in metres.
- Adjust the circle of confusion by hand if you want a stricter or looser sharpness standard.
- 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
- Depth of field explained: the three settings that control sharpness
How aperture, focal length, and focus distance trade against each other, plus the near and far formulas this calculator uses.
Related tools
Hyperfocal Distance Calculator
Find the hyperfocal distance for any lens and aperture. Focus there for the deepest depth of field, sharp from half that distance to infinity.
Field of View Calculator
Calculate the angle of view and subject coverage for any lens and sensor. Get horizontal, vertical and diagonal angles plus the scene width at a distance. Free.
Crop Factor Calculator
Find your sensor crop factor versus full frame and the 35mm-equivalent focal length and f-number. Works for APS-C, Micro 4/3 and any sensor size. Free.
Aperture Area Calculator
Calculate the physical aperture diameter and area from focal length and f-number. See how area scales with the square of the f-stop. Free and instant.
Exposure Value Calculator
Calculate exposure value from aperture and shutter speed, adjusted for ISO. Get EV at ISO 100 and at your ISO to compare exposures by stops. Free and instant.
F-Stop Calculator
Calculate the stops of light between two f-stops and the light ratio. See which aperture is brighter and by how much. Free and instant.