Depth of Field Calculator

Near and far focus limits, total depth of field, and hyperfocal distance for any lens and sensor. Adjust aperture, focal length, and distance to see the zone of sharpness shift in real time.

Quick Setups
nearsubjectfar
3.45 m5.13 m10 m
Units

CoC: 0.03 mm  ·  Crop factor: 1×

50 mm
10 mm50 mm equivalent600 mm
f/8
f/1.0f/22
5.13 m
0.3 m1 km

Near Focus

3.45 m

Far Focus

10 m

Total DoF

6.57 m

Hyperfocal

10 m

Character

Deep

Wide zone of acceptable sharpness

Vertical Field of View

27.0°

About

Depth of field is the range of distance in a scene that appears acceptably sharp. It is controlled by three variables: focal length, aperture, and subject distance. Longer focal lengths, wider apertures (lower f-numbers), and closer subjects narrow it. Shorter focal lengths, smaller apertures, and greater distances widen it.

The hyperfocal distance is the closest focusing distance at which subjects at infinity still fall within the depth of field. Focusing at the hyperfocal distance maximizes sharpness across the entire scene, which is why it is widely used in landscape, architectural, and street photography.

The circle of confusion (CoC) is the largest blur spot that still reads as a sharp point in the final image. It scales with sensor size: larger sensors tolerate a larger CoC, which shifts depth of field calculations relative to smaller formats. This is why a medium format lens at f/8 behaves differently than the same focal length on a crop sensor.

Diffraction softening occurs at very small apertures when light bends around the lens diaphragm blades, reducing resolution even as depth of field increases. The f-stop at which diffraction becomes visible depends on the sensor's CoC: smaller sensors reach the diffraction limit at wider apertures than larger ones.