Hyperfocal Distance Calculator
Hyperfocal distance is the key to maximum depth of field in photography. When you focus your lens at the hyperfocal distance (H), depth of field stretches from half that distance all the way to infinity. This means a landscape with a foreground subject 2 metres away and mountains on the horizon can both appear sharp in the same shot, without any focus stacking or compositing. The hyperfocal distance depends on three factors: focal length, aperture (f-stop), and the circle of confusion for your sensor format. Shorter focal lengths, narrower apertures (higher f-numbers), and smaller circle-of-confusion values all reduce the hyperfocal distance, making it easier to achieve infinite depth of field. Wide-angle primes at mid-range apertures are particularly effective: a 24 mm lens at f/8 on a full-frame camera has a hyperfocal distance of only about 25 metres, so anything from 12.5 metres to infinity will be acceptably sharp. This calculator covers four common sensor formats and lets you quickly find the hyperfocal distance and its corresponding near focus limit for any combination of focal length and aperture.
Hyperfocal distance: -- m
How hyperfocal distance is calculated
The formula is derived from the depth-of-field equation by setting the far limit to infinity and solving for subject distance. When the far limit is infinity, the denominator of the far-limit formula equals zero, which occurs when the subject distance equals the hyperfocal distance.
H (mm) = f² / (N × c)
H (m) = H (mm) / 1000
Near limit when focused at H = H / 2
where: f = focal length (mm), N = f-number (aperture), c = circle of confusion (mm)
Worked example
24 mm lens, f/8, full-frame sensor (c = 0.029 mm):
- H = 24² / (8 × 0.029) = 576 / 0.232 = 2,483 mm = 2.48 m
- Wait: that seems very short. Let us check: 24 mm wide-angle, yes, this is correct. A 24 mm lens focused at 2.48 m at f/8 keeps everything from 1.24 m to infinity sharp.
- Near limit = H / 2 = 2,483 / 2 = 1,241 mm = 1.24 m
- Focus range: 1.24 m to infinity
Second worked example (50 mm at f/8, full frame)
- H = 50² / (8 × 0.029) = 2,500 / 0.232 = 10,776 mm = 10.78 m
- Near limit = 10,776 / 2 = 5,388 mm = 5.39 m
- Focus range: 5.39 m to infinity
Hyperfocal distance reference table (full frame, f/8)
| Focal length | Hyperfocal distance (m) | Near limit (m) |
|---|---|---|
| 14 mm | 8.44 | 4.22 |
| 16 mm | 11.03 | 5.52 |
| 20 mm | 17.24 | 8.62 |
| 24 mm | 24.83 | 12.41 |
| 28 mm | 33.79 | 16.90 |
| 35 mm | 52.80 | 26.40 |
| 50 mm | 107.76 | 53.88 |
| 85 mm | 311.42 | 155.71 |
| 100 mm | 431.03 | 215.52 |
| 200 mm | 1,724.14 | 862.07 |
Values computed as H = f² / (N × c) with N = 8 and c = 0.029 mm (full-frame CoC). Rounded to 2 decimal places.
Tips for using hyperfocal distance in the field
Many photographers memorise the hyperfocal distance for their most-used lens and aperture combination. For a 24 mm lens at f/8 on full frame, it is roughly 25 m. For a 35 mm lens at f/8, it is roughly 53 m. A few key pointers:
- Use the distance scale on the lens barrel if it has one. Focus so that the infinity mark sits at the edge of the depth-of-field bracket for your aperture.
- If your lens has no distance scale, focus on a subject at the calculated hyperfocal distance, then switch to manual focus to lock the position.
- Stopping down to f/11 or f/16 shortens the hyperfocal distance and makes it easier to achieve front-to-back sharpness, but watch for diffraction softening at very narrow apertures.
- On APS-C and Micro Four Thirds cameras, the crop factor works in your favour for depth of field: smaller CoC means a shorter hyperfocal distance at equivalent angles of view.
- For the most precise results, use the depth-of-field calculator on this site to verify near and far limits once you have chosen a focus distance.
Hyperfocal distance calculator: frequently asked questions
What is hyperfocal distance?
Hyperfocal distance (H) is the shortest focus distance at which a lens renders objects at infinity as acceptably sharp. When you focus at exactly the hyperfocal distance, depth of field extends from H/2 (half the hyperfocal distance) all the way to infinity. This gives you the maximum possible depth of field for a given focal length and aperture combination. It is especially useful in landscape, street, and documentary photography.
How do you use hyperfocal distance in practice?
Set your aperture and focal length, then calculate the hyperfocal distance. Focus your lens at that distance, either by reading the focus distance scale on the lens barrel, using autofocus to lock on something at that distance and then switching to manual, or by measuring the distance with a rangefinder. Once focused at H, everything from H/2 to infinity will be acceptably sharp. If your camera's minimum focus is beyond H, simply focus as close as possible to get the deepest practical depth of field.
Which focal length gives the shortest hyperfocal distance?
Shorter focal lengths produce a shorter hyperfocal distance. A 14 mm ultra-wide at f/8 on a full-frame sensor has a hyperfocal distance of roughly 3.4 m, meaning almost everything beyond about 1.7 m will be sharp. A 50 mm lens at the same aperture has a hyperfocal distance of about 43 m, and a 200 mm telephoto at f/8 has a hyperfocal distance of over 690 m, making it nearly impossible to get infinity and foreground sharp simultaneously.
When does hyperfocal distance matter most?
Hyperfocal distance matters most when you want both a close foreground element and an infinitely distant background in sharp focus at the same time. Classic use cases include landscape photography with a rock or flowers in the foreground and distant mountains in the background, street photography where you want to shoot without constantly adjusting focus, architectural exteriors, and travel and documentary photography where fast capturing is critical. In portrait or product photography, where background blur is desirable, hyperfocal distance is usually irrelevant.
What is circle of confusion and how does it affect hyperfocal distance?
Circle of confusion (CoC) is the maximum blur-spot diameter that still looks like a sharp point to the human eye at typical viewing conditions. A smaller CoC means stricter sharpness standards, which pushes the hyperfocal distance further away (making it harder to get everything sharp). Larger sensors have larger CoC values because the image is magnified less to reach the final print size. Full-frame cameras use a CoC of about 0.029 mm, APS-C about 0.019 mm, Micro Four Thirds about 0.015 mm, and 1-inch sensors about 0.011 mm.
Sources
- Wikipedia: Hyperfocal distance.
- Cambridge in Colour: Understanding hyperfocal distance.
Reviewed by the CalculatorHub team, edited by James Graham, 14 June 2026. See our methodology. For professional optical engineering work, consult a qualified optical physicist.