Hyperfocal Distance Calculator
Finds the closest focus distance at which a lens keeps everything from half that distance to infinity acceptably sharp. Essential for landscape and street photographers seeking maximum front-to-back sharpness.
Last updated: May 2026
Compare with similar
About this calculator
Hyperfocal distance (H) is the focus distance that maximizes depth of field so that everything from H/2 to infinity appears acceptably sharp. The formula is H = f² / (N × c), where f is focal length in millimeters, N is the aperture f-number, and c is the circle of confusion in millimeters. Variables: focal length is fixed by the lens, aperture is chosen by the photographer, and the CoC depends on the sensor format — full-frame ≈ 0.03 mm, APS-C ≈ 0.02 mm, Micro Four Thirds ≈ 0.015 mm. The output is in millimeters; divide by 1000 to convert to meters. When you focus the lens exactly at H, the near limit of sharpness falls at H/2 and the far limit extends to infinity, giving the deepest possible DoF for that focal length and aperture. Edge cases: focusing slightly beyond H (rather than slightly short) is safer because the near limit moves only modestly while the far limit stays at infinity; very small apertures introduce diffraction that softens even the in-focus zone; the formula assumes a standard viewing distance and CoC — critical prints may require smaller CoC values and longer H. Long telephoto lenses produce very large H values that make the technique impractical (a 400 mm at f/8 on full-frame has H = 666 m).
How to use
Example 1: 24 mm lens at f/8 on a full-frame body (c = 0.03 mm). Step 1: square the focal length — 24² = 576. Step 2: multiply aperture and CoC — 8 × 0.03 = 0.24. Step 3: divide — 576 / 0.24 = 2400 mm = 2.4 m. Focus the lens at 2.4 m; everything from 1.2 m (H/2) to infinity will be acceptably sharp. Verify: this matches published hyperfocal tables for 24 mm at f/8 on full-frame within rounding. Example 2: 50 mm lens at f/11 on a full-frame body. Step 1: 50² = 2500. Step 2: 11 × 0.03 = 0.33. Step 3: 2500 / 0.33 ≈ 7576 mm ≈ 7.58 m. Focus at 7.58 m; sharp range runs from 3.79 m to infinity. Verify: doubling focal length quadruples H, so going from 24 mm to 48 mm at the same aperture would multiply H by 4 — moving from f/8 to f/11 reduces it by the ratio 8/11, giving roughly the result we calculated.
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 to infinity as acceptably sharp. By focusing exactly at this point you extract the maximum possible depth of field from any given focal-length and aperture combination. It removes the guesswork of 'where do I focus for everything to be sharp?' before composing the shot. Landscape, architecture, and street photographers rely on it to keep foreground and background subjects sharp in a single exposure without bracket-and-stack workflows. Pre-calculated hyperfocal charts taped to a camera body are a long-standing tradition for film photographers and remain useful for any zone-focused shooting style.
How does sensor size affect the hyperfocal distance calculation?
Sensor size determines the CoC value, which in turn changes the hyperfocal distance. A larger sensor uses a larger CoC because prints from it are enlarged less, so the same blur is less visible — this gives a longer H. A smaller sensor needs a smaller CoC, producing a shorter H and apparently deeper DoF. Full-frame uses c ≈ 0.03 mm, APS-C ≈ 0.02 mm, Micro Four Thirds ≈ 0.015 mm, and 1-inch ≈ 0.011 mm. Always confirm the CoC for your specific sensor; using the wrong value can shift H by 30–50%.
How does changing the aperture shift the hyperfocal distance?
Aperture and hyperfocal distance are inversely proportional: doubling the f-number (e.g., 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 that becomes visible at f/16 and beyond on most full-frame sensors, and earlier on smaller formats. Most landscape photographers find a sweet spot between f/8 and f/11, where DoF is generous but diffraction has not yet reduced acuity. Stopping down beyond f/16 to chase a shorter H usually produces a net loss of perceived sharpness.
What are common mistakes when applying hyperfocal focusing?
Using the full-frame CoC value (0.03 mm) on an APS-C or Micro Four Thirds body overstates H by 50–100%, leading to a focus distance that leaves the foreground soft. Focusing slightly short of H (rather than slightly beyond) pulls the far limit back from infinity, blurring distant mountains; err on the long side. Forgetting that very large apertures (f/2 and wider) make H so large that the technique is useless for nearby foreground subjects. Focusing past H gains nothing — the far limit remains at infinity but the near limit moves further away. Finally, modern lenses with very flat fields and aspheric elements may have different effective CoC behavior than classic glass.
When should I NOT use hyperfocal focusing?
Telephoto wildlife and sports photography require the subject to be tack-sharp, not just 'acceptably' sharp; use autofocus on the subject's eye instead. Portrait work with shallow DoF deliberately blurs the background, so maximum DoF is the opposite of what you want. Video shooting with shifting focus needs to track a moving subject rather than fix focus at one distance. Critical landscape work intended for very large prints (billboard size) may require a smaller CoC than standard charts assume, making H larger than the calculator suggests. Focus-stacking workflows produce sharper near-to-far results than hyperfocal can, at the cost of extra exposures and post-processing.