Enter the distance to an object, the f-number, the circle of confusion, and the focal length into the calculator to determine the depth of field.

Depth of Field Formula

The following formula is used to calculate the depth of field.

DOF = 2*u*N*c/f^2 
  • Where DOF is the depth of field
  • u is the distance to the subject
  • N is the f-number
  • c is the circle of confusion
  • f is the focal length

To calculate the depth of field, multiply 2 by the distance, f-number, and circle of confusion, then divide by the focal length squared.

Depth of Field Definition

A depth of field is defined as the distance between the nearest and furthest distances that are the acceptably sharp focus in an image.

Depth of Field Example

How to calculate a depth of field?

  1. First, determine the distance of the subject.

    Measure the distance of the subject.

  2. Next, determine the f-number.

    Calculate the f-number of the lens.

  3. Next, determine the circle of confusion.

    Calculate the total circle of confusion.

  4. Next, determine the focal length.

    Measure or calculate the focal length.

  5. Finally, calculate the depth of field.

    Calculate the depth of field using the equation above.

FAQ

What factors affect the depth of field in photography?
The depth of field in photography is influenced by three main factors: the aperture size (f-number), the distance to the subject, and the focal length of the lens. A larger aperture (smaller f-number) and closer focusing distance decrease the depth of field, making the background more blurred. Conversely, a smaller aperture (larger f-number), greater focusing distance, and shorter focal length increase the depth of field, making more of the image appear in focus.

How does the circle of confusion impact depth of field calculations?
The circle of confusion refers to a measure of the optical imperfection that defines how much light is dispersed to form a “point” on the image sensor or film. It significantly impacts depth of field calculations because it determines the threshold at which the level of detail is considered acceptably sharp in an image. A larger circle of confusion value allows for a greater depth of field, assuming all other factors remain constant, because it tolerates more blur before an object appears unacceptably out of focus.

Can the depth of field be controlled in post-processing?
While the depth of field is primarily determined at the time of shooting by the camera settings and lens characteristics, certain aspects of it can be manipulated in post-processing through software. Techniques such as focus stacking, where multiple images at different focus distances are combined, can artificially extend the depth of field. Additionally, blurring the background digitally can simulate a shallower depth of field. However, these methods cannot fully replicate the effects of in-camera depth of field control and are best used to enhance or correct the depth of field subtly.

depth of field calculator
depth of field formula