Depth of Field Simulator

Preview foreground and background blur as you change aperture, focal length, and focus distance. Calculate near and far focus limits and hyperfocal distance.

Focal length50 mm
Focus distance4 m

Focus preview

Choose a target to focus at its distance.

Depth of field

Near limit
3.53 m
Far limit
4.61 m
Total depth
1.08 m
Hyperfocal distance
29.81 m

Compare depth of field at different apertures

Choose a sensor format, focal length, and aperture, then set the focus distance. You can select any of the three targets to focus on it. With a 50 mm lens on full frame focused at 4 m, f/2.8 gives an estimated sharpness range of 3.53 m to 4.61 m. At f/11, it widens to about 2.63 m to 8.36 m, bringing the background target into range.

Read the near and far focus limits

The near limit is the closest distance that appears acceptably sharp, and the far limit is the most distant. A wider aperture, shown by a smaller f-number, gives a shallower range. With the other settings fixed, a longer focal length or a shorter focus distance also narrows the range.

What counts as acceptably sharp

Sharpness changes gradually away from the focus distance. The calculator uses a thin-lens model and a typical circle of confusion for each sensor format. This sets the largest blur spot that counts as acceptably sharp for the calculation. The pattern preview illustrates the relative blur at three distances. Print size and viewing distance also affect how sharp a photo looks.

When the far limit reaches infinity

The hyperfocal distance is the closest focus distance that keeps infinity within the depth of field for the chosen aperture, focal length, and sensor. When you focus at that distance, the near limit is about half the hyperfocal distance. Use this reading to judge whether both the foreground and distant scenery can appear sharp in a landscape photo.

Show more related tools