Depth of Field Calculator
Find the near and far focus limits and total depth of field.
Depth of field is the range of distances that appear acceptably sharp.
The math behind it
From the hyperfocal distance H, the near limit is Hs/(H+(s-f)) and the far limit Hs/(H-(s-f)).
Worked example
50 mm at f/2.8 focused at 3 m gives roughly 0.3 m of depth of field.
FAQ
How do I get more depth of field?
Use a smaller aperture (higher f-number), shorter focal length, or focus farther away.