RP Photonics

Encyclopedia … combined with a great Buyer's Guide!

VLib
Virtual
Library

Depth of Field

Definition: the distance between the nearest and furthest objects that can be imaged with reasonably sharp focus for a given focus setting

German: Schärfentiefe, Tiefenschärfe

Categories: general optics, vision, displays and imaging

How to cite the article; suggest additional literature

Most imaging instruments can provide sharp images only in a limited range of observation distances. Perfect imaging to a certain image plane (e.g., the location of an image sensor in a photo camera) is only possible for an object plane which is conjugate to the image plane. Image of objects before or after that conjugate object plane will be more or less blurred. (An exception is the rarely used camera obscura.)

The width of the range of observation distances is called the depth of field. It must not be confused with the depth of focus, which is the corresponding quantity on the image side.

Criteria for Reasonable Focus

For a quantitative definition of the depth of field, one requires a criterion for what level of defocus is acceptable. Different criteria may be sensible, depending on the situation:

  • One may define the limits as the points where the imaging quality, measured for example with a point spread function, become significantly worse than in the focus. Such a criterion, however, may not be sensible if the imaging quality in the focus is much better than required or usable. For example, for an image sensor of a digital camera it would not matter if the circle of confusion rises from one tends to one third of the pixel spacing.
  • Therefore, one may alternatively define a certain diameter of the circle of confusion as the limit, irrespective of how small that circle can be for optimal focusing.

Calculation of the Field of Depth

Here we use the second kind of defocus criterion as explained above, with a maximum diameter C of the circle of confusion, as calculated from purely geometrical optics. One then obtains the following equations for the nearest and furthest observation distance, when the focus is set to the distance df:

nearest distance
furthest distance

where D is the diameter of the aperture stop. It is assumed that we have a thin lens, where the entrance and exit pupil coincide with the lens. The depth of field is the difference between maximum and minimum distance.

Note that the above equations hold only for small angles; that condition is usually reasonably well fulfilled in photography, for example, but not for microscopes.

Depth of Field Calculation

Focal length:
Aperture diameter:
Max. confusion diameter:
Focused distance:
Hyperfocal distance: calc
Min. distance: calc
Max. distance: calc
Depth of field: calc

Enter input values with units, where appropriate. After you have modified some values, click a "calc" button to recalculate the field left of it.

When focusing to short distances, the depth of field will be relatively small. When focusing to larger distances, it increases, and one eventually reaches the hyperfocal distance where the maximum distance becomes infinity. That is the situation where the depth of focus is the largest possible.

As is well known in photography, the depth of field can be increased by reducing the diameter of the aperture stop, which at the same time decreases the image brightness (or requires a correspondingly longer exposure time).

The presented equations hold only within the validity of geometrical optics, which is however usually given in the context of photography.

See also: imaging, imaging with a lens, hyperfocal distance, depth of focus
and other articles in the categories general optics, vision, displays and imaging

How do you rate this article?

Click here to send us your feedback!

Your general impression: don't know poor satisfactory good excellent
Technical quality: don't know poor satisfactory good excellent
Usefulness: don't know poor satisfactory good excellent
Readability: don't know poor satisfactory good excellent
Comments:

Found any errors? Suggestions for improvements? Do you know a better web page on this topic?

Spam protection: (enter the value of 5 + 8 in this field!)

If you want a response, you may leave your e-mail address in the comments field, or directly send an e-mail.

If you enter any personal data, this implies that you agree with storing it; we will use it only for the purpose of improving our website and possibly giving you a response; see also our declaration of data privacy.

If you like our website, you may also want to get our newsletters!

If you like this article, share it with your friends and colleagues, e.g. via social media:

arrow