Hyperfocal Distance Calculator
Formula: H = f² / (N × c) + f
What is hyperfocal length?
Hyperfocal length (more accurately, hyperfocal distance) is the focus distance that gives you the greatest possible depth of field for a specific lens, aperture, and camera format. When you focus at this distance, everything from roughly half that distance all the way to infinity appears acceptably sharp.
Landscape photographers use this concept constantly because it lets them keep both foreground and background in focus without guesswork. If you have ever struggled to make near flowers and distant mountains sharp in the same frame, hyperfocal distance is the practical solution.
How this calculator works
This tool computes hyperfocal distance using the classic formula:
H = f² / (N × c) + f
- H = hyperfocal distance
- f = focal length of the lens (in mm)
- N = f-number (aperture)
- c = circle of confusion (in mm)
The calculator also supports an optional focus distance. If you enter one, it estimates near and far depth-of-field limits using the same optical model.
How to use the hyperfocal length calculator
1) Select your sensor preset
Choose a sensor format to automatically fill the circle of confusion value. If you use a custom workflow or a stricter sharpness standard, pick Custom CoC and enter your own value.
2) Enter focal length and aperture
Input your actual focal length in millimeters and aperture as an f-number (for example, 5.6, 8, 11, or 16). Wider lenses and smaller apertures generally produce shorter hyperfocal distances.
3) Optional: enter current focus distance
If you want to evaluate a specific focus point in the field, enter the distance where your lens is focused. The calculator then estimates near and far limits so you can decide whether to refocus.
4) Press Calculate
You get results in meters and feet, plus a practical interpretation: if you focus at the hyperfocal distance, your nearest acceptably sharp point is about half that distance.
Practical examples
Example A: 24mm lens at f/8 on full frame
With a 0.030mm circle of confusion, hyperfocal distance is around 2.4m. Focus there and your depth of field extends from about 1.2m to infinity. This is a common setup for travel and landscape scenes.
Example B: 35mm lens at f/11 on APS-C
Because APS-C typically uses a smaller circle of confusion, hyperfocal distance can be longer than many photographers expect. This is one reason foreground planning and tripod technique still matter, even at smaller apertures.
Tips for sharper landscape photos
- Use live view magnification: verify focus on a high-contrast detail near your target distance.
- Avoid extreme diffraction: stopping down too far (such as f/22 on many cameras) may reduce overall sharpness.
- Balance aperture and shutter speed: in wind or low light, a slightly wider aperture may produce a sharper final image than a tiny aperture with motion blur.
- Watch foreground distance: if your closest subject is much nearer than half the hyperfocal distance, it may not be sharp.
- Consider focus stacking: when scenes are extremely deep, stacking multiple focus points can outperform any single hyperfocal setting.
Choosing the right circle of confusion
Circle of confusion values are conventions, not physical constants. A larger print viewed up close needs a stricter sharpness criterion (smaller CoC), which increases calculated hyperfocal distance. If your output is high-resolution printing, commercial work, or heavy cropping, a custom smaller CoC may give better real-world results.
In short, use presets for speed, then tune based on how you actually deliver photos.
Common mistakes to avoid
- Assuming hyperfocal distance always means “everything is tack sharp.” It means “acceptably sharp” under a chosen CoC standard.
- Ignoring subject distance in the foreground. Hyperfocal techniques are less helpful if important details are extremely close.
- Forgetting focal length changes when zooming. Recalculate when you change zoom position.
- Using very small apertures by default. Diffraction can cancel the theoretical depth-of-field gain.
Frequently asked questions
Is hyperfocal distance only for landscape photography?
No. It is useful in street photography, documentary work, and any situation where fast shooting with broad depth of field is valuable.
Why does hyperfocal distance increase with longer focal lengths?
Because the formula includes focal length squared. A moderate increase in focal length can produce a large increase in hyperfocal distance.
Can I trust infinity marks on modern autofocus lenses?
Not always. Many focus-by-wire systems and temperature changes can shift behavior. It is better to check with magnified live view or use tested distance marks if available.
Final takeaway
Hyperfocal distance is one of the most practical techniques in photography. With the calculator above, you can quickly determine where to focus for maximum depth of field, reduce trial-and-error in the field, and produce more consistently sharp images from foreground to horizon.