Calculate depth of field for your photography. Find near focus, far focus, hyperfocal distance, and understand how aperture, focal length, and sensor size affect your images.
Calculate depth of field based on focal length, aperture, and subject distance
Formula
DoF = Far Focus - Near FocusDepth of field depends on focal length, aperture, subject distance, and sensor size
Depth of field (DoF) is the distance between the nearest and farthest objects in a photo that appear acceptably sharp. A shallow DoF creates background blur (bokeh), while a deep DoF keeps more of the scene in focus.
A wider aperture (smaller f-number like f/1.8) creates a shallower depth of field with more background blur. A narrower aperture (larger f-number like f/16) creates a deeper depth of field with more of the scene in focus.
Hyperfocal distance is the closest distance at which a lens can be focused while keeping objects at infinity acceptably sharp. When focused at the hyperfocal distance, everything from half that distance to infinity will be in focus.
Larger sensors (like full-frame) produce shallower depth of field at the same field of view compared to smaller sensors (like APS-C or Micro Four Thirds). This is because larger sensors require longer focal lengths for the same framing.
Circle of confusion (CoC) is the largest blur spot that will still appear as a point to the human eye. It varies by sensor size and determines what is considered "acceptably sharp" in depth of field calculations.