Depth Of Field Calculator

Depth of field (DOF) refers to the area in a photograph where subjects appear sharp and in clear focus. It is the distance between the nearest and farthest points in the image that look acceptably sharp. For example, in the photo below, only the fourth, fifth, and sixth people from the left fall within the sharp focus zone, while the others appear blurred.
Depth of field can be creatively controlled depending on the style of photography you want to achieve. In portrait photography, a shallow depth of field is often preferred so that only the subject’s face is in focus and the background appears soft and blurred (bokeh). This draws attention to the subject and minimizes distractions. In landscape photography, however, a deep depth of field is ideal so that everything from the foreground to distant mountains remains sharp.
In the example below, the red lines illustrate the physical distance from the camera that falls within the focused area. Four key factors determine depth of field:
- Camera sensor size
- Aperture (f-stop) value
- Lens focal length
- Distance from the subject
By adjusting these settings, you can control where sharpness begins, where it ends, and the total depth of field. The calculator on the right estimates these values to help you plan focus and achieve the desired look in your photos.
Depth of Field Calculator

Frequently Asked Questions (FAQ)
What is depth of field in photography?
What are the four factors that affect depth of field?
How do I calculate depth of field?
What aperture gives the best depth of field for portraits?
What aperture should I use for landscape photography?
Does sensor size affect depth of field?
What is the difference between depth of field and bokeh?
How does focal length affect depth of field?
What is hyperfocal distance?
Can I preview depth of field before taking a photo?
Keep exploring
Travel Guides
Day-by-day photographic guides with maps, gear notes, and the photos shot along the way.
Photo Galleries
1,300+ travel photos from 50 countries, organized by destination with EXIF and GPS.
About the Photographer
Years behind the lens, gear philosophy, and the story behind the portfolio.
Get in Touch
Questions about prints, licensing, or a shoot? Reach out and start a conversation.