Hyperfocal Distance Calculator
Find the hyperfocal distance for maximum depth of field.
Focus at the hyperfocal distance to keep everything from half that distance to infinity sharp.
The math behind it
H = focal^2 / (aperture x circle of confusion) + focal. The circle of confusion is about 0.03 mm for full frame.
Worked example
35 mm at f/8 gives a hyperfocal distance of about 5.1 m.
FAQ
Why focus there?
It maximises depth of field for landscapes.