How to calculate
Divide focal length squared by the aperture f-number times the circle of confusion. Add the focal length to get the hyperfocal focus distance. Under the thin-lens model, focusing there puts the near limit at half that distance and the far limit at infinity.
Worked example
Use Actual focal length (mm) 50 · Aperture f-number 8 · Circle of confusion (mm) 0.03125 · Distance unit Meters. The result is 10.05 m.
Input and result notes
Choose a circle of confusion that suits how the photo will be viewed. A smaller value requires a longer hyperfocal distance. Infinity focus also has its own near limit, shown in the results.
University of Arizona camera optics and depth of field