Depth of Field Calculator: Find Your Sharp Zone
How much of the scene will be sharp
Try the calculator
Math runs in your browser. No sign-up.
Millimetres from the camera. Closest point still acceptably sharp.
At 50mmmm f/f/2.8 focused at 3,000mmmm, sharpness runs from 2,729.9 to 3,329.5 mm.
Depth of field runs between near and far limits derived from the hyperfocal distance, f²/(N×c) + f. A 50 mm lens at f/2.8 focused at 3 m on full-frame is sharp from about 2.73 m to 3.33 m — roughly 60 cm of depth.
Depth of field is the zone in front of and behind your focus point that still looks acceptably sharp. It is governed by three things you control — focal length, aperture and focus distance — plus one convention, the circle of confusion, which defines how much blur counts as still sharp for a given sensor size. The relationships are strongly non-linear: depth of field grows roughly with the square of focus distance, so moving back a little widens it considerably, while doubling focal length cuts it to about a quarter. Depth is also not symmetric around the focus point; roughly a third sits in front and two-thirds behind at normal distances, which is why focusing on the nearest subject rather than the middle usually gives the best result.
What is a depth of field?
Calculate the near and far limits of acceptable sharpness from focal length, aperture, focus distance and sensor circle of confusion. The calculator also reports hyperfocal distance — focus there and everything from half that distance to infinity renders sharp, which is the standard landscape technique. Depth of field grows with the square of focus distance and shrinks sharply with focal length, and the zone is asymmetric: roughly a third in front of the focus point and two-thirds behind.
The formula
Source: Standard hyperfocal depth-of-field equations (thick-lens approximation).
Worked examples
1A portrait at 50 mm, wide open
A 50 mm lens at f/2.8 focused at three metres on full-frame is sharp from 2.73 m to 3.33 m — about 60 cm of depth. Enough for one person comfortably, but a second subject standing half a metre behind would fall outside it. Note the asymmetry: 27 cm in front of the focus point, 33 cm behind.
2A landscape at 24 mm, stopped down
At 24 mm and f/8 the hyperfocal distance is only 2.42 m. Focusing at 1.5 m gives sharpness from 0.93 m to 3.84 m. Focusing instead at the hyperfocal 2.42 m would render everything from 1.21 m to infinity acceptably sharp — the standard landscape technique, and far more useful than focusing on the horizon.
How to use this calculator
- Focal length (default: 50)
- Aperture (f-number) (default: 2.8)
- Focus distance — Distance to the subject in millimetres. Three metres is 3000.
- Circle of confusion — 0.03 mm for full-frame, 0.02 for APS-C, 0.015 for Micro Four Thirds.
- Read the result. Use the worked examples below to sanity-check against a known scenario.
Common mistakes and edge cases
Using the wrong circle of confusion
Applying the full-frame 0.03 mm to an APS-C or Micro Four Thirds camera overstates depth of field considerably. Match the value to your sensor.
Mixing units
The formula requires every distance in the same unit. Entering focus distance in metres while focal length is in millimetres produces nonsense — use millimetres throughout.
Assuming the sharp zone is centred on the focus point
At normal distances roughly a third sits in front of the focus point and two-thirds behind. Focusing on the middle of a group typically leaves the front row soft.
Stopping down indefinitely
Smaller apertures increase depth of field but diffraction progressively softens the whole frame. Most lenses are visibly diffraction-limited beyond f/11 on APS-C and f/16 on full-frame, so extra depth comes at the cost of overall sharpness.
Frequently asked questions
how do I calculate depth of field
what circle of confusion should I use
what is hyperfocal distance
why is the sharp zone not centred on my subject
should I just use the smallest aperture
Depth of Field glossary
How we built this calculator
Methodology
Everything derives from the hyperfocal distance: f² divided by the product of the f-number and the circle of confusion, plus the focal length. This is the focus distance at which depth of field extends from half that distance all the way to infinity, and it is the single most useful number in landscape work.
Sources & references
Every numeric assumption traces to a primary source.
- ISO 12233 — Photography, Electronic still picture imaging, Resolution measurementsINT
- Smithsonian Institution — Optics and Photographic Technology collectionsUSA
- Kodak — Optical Formulas and Their Application (technical publication)USA
- Numora Editorial Policy. numora.net/editorial-policy