Hyperfocal Distance Calculator
Finds the closest focus distance at which your lens keeps everything from half that distance to infinity acceptably sharp. Essential for landscape and street photographers who want maximum front-to-back sharpness.
About this calculator
Hyperfocal distance (H) is the focus distance that maximizes the depth of field so that everything from H/2 to infinity appears sharp. The formula is H = f² / (N × c), where f is the focal length in mm, N is the aperture f-number, and c is the circle of confusion in mm. When you focus exactly at H, the far limit of sharpness extends to infinity, and the near limit is H/2. This technique is especially valuable in landscape photography and street photography where you want everything sharp without continuously refocusing. The circle of confusion is sensor-size dependent — 0.03 mm for full-frame, 0.02 mm for APS-C, and around 0.015 mm for Micro Four Thirds.
How to use
Say you have a 24 mm lens at f/8 on a full-frame camera (c = 0.03 mm). Apply the formula: H = 24² / (8 × 0.03) = 576 / 0.24 = 2,400 mm = 2.4 m. Focus your lens at 2.4 m, and everything from 1.2 m (half of H) to infinity will be acceptably sharp. This is ideal for a wide-angle landscape shot where you want both a nearby rock in the foreground and distant mountains to appear in focus simultaneously.
Frequently asked questions
What is hyperfocal distance and why should photographers use it?
Hyperfocal distance is the shortest focus distance at which a lens renders subjects from half that distance all the way to infinity as acceptably sharp. By focusing at exactly this point you extract the maximum possible depth of field from any given focal-length and aperture combination. It removes the guesswork of 'how far should I focus for everything to be sharp?' Landscape, architecture, and street photographers rely on it to ensure both foreground and background subjects are in focus in a single exposure.
How does sensor size affect the hyperfocal distance calculation?
Sensor size affects the circle of confusion (CoC) value used in the formula, which in turn changes the calculated hyperfocal distance. A larger sensor requires a larger CoC because prints are enlarged less, so the same blur is less visible — this yields a longer hyperfocal distance. A smaller sensor uses a smaller CoC, producing a shorter hyperfocal distance and more apparent depth of field. In practice, a full-frame camera uses c ≈ 0.03 mm, APS-C uses c ≈ 0.02 mm, and Micro Four Thirds uses c ≈ 0.015 mm.
How does changing the aperture shift the hyperfocal distance?
Aperture and hyperfocal distance are inversely proportional: doubling the f-number (e.g., from f/4 to f/8) halves the hyperfocal distance, bringing the near edge of sharpness closer. This means a smaller aperture lets you achieve front-to-back sharpness while focusing at a shorter distance. However, very small apertures introduce diffraction softening, which can negate the theoretical gain in sharpness. Most photographers find a sweet spot between f/8 and f/11 for landscapes where diffraction is not yet a limiting factor.