Hyperfocal Distance Calculator — Maximize Depth of Field
Find the hyperfocal distance for any focal length, aperture, and sensor size. Focus at this distance to keep everything from H/2 to infinity sharp — essential for landscape photography.
✓ Free · ✓ No upload · ✓ Works offline in your browser
Results
Hyperfocal Distance
2.5 m
Focus at this distance for maximum depth of field
Near Focus Limit (H/2)
1.3 m
When focused at hyperfocal, everything from this distance to ∞ is sharp
Far Focus Limit
∞ (infinity)
Formula: H = f² / (N × c) + f
24mm · f/8 · CoC 0.029mm
Hyperfocal Distance in Landscape Photography
Landscape photographers rely on hyperfocal distance to ensure the foreground, midground, and background are all sharp in a single exposure. Instead of guessing where to focus, calculate the exact hyperfocal distance for your lens and aperture, then set your focus there.
A 24mm lens at f/8 on a full-frame camera has a hyperfocal distance of about 2.5 meters. Focused at 2.5m, everything from 1.25 meters to infinity will appear sharp — perfect for dramatic foreground-to-sky landscape compositions.
Practical tips
- Use Live View and manual focus to set focus at the hyperfocal distance precisely
- Use f/8–f/11 for maximum sharpness (avoids diffraction at f/16+)
- Wider lenses have shorter hyperfocal distances — easier to achieve full-scene sharpness
- Bookmark this calculator for your most-used lenses and apertures
Frequently Asked Questions
What is hyperfocal distance?
Hyperfocal distance is the closest focusing distance at which objects at infinity are still acceptably sharp. When you focus at the hyperfocal distance, everything from half that distance to infinity is in sharp focus — giving you the maximum possible depth of field.
How do I use the hyperfocal distance?
Set your camera to the focal length and aperture you plan to use, find the hyperfocal distance from this calculator, then manually focus your lens to that distance. Everything from H/2 (half the hyperfocal distance) to infinity will be sharp.
What aperture is best for hyperfocal distance in landscape photography?
f/8 to f/11 is the sweet spot for most lenses — small enough for a deep depth of field but not so small that diffraction softens the image. Wider lenses (14-24mm) at f/8 give hyperfocal distances of just 1-4 meters, making infinity sharpness easy to achieve.
What is the hyperfocal distance formula?
H = f² / (N × c) + f, where f is focal length in mm, N is the aperture f-number, and c is the circle of confusion in mm (typically 0.029mm for full frame). The near limit is H/2.
Does sensor size affect hyperfocal distance?
Yes. Larger sensors have a larger circle of confusion, which gives a shorter hyperfocal distance at the same focal length and aperture (making it easier to get everything in focus). Smaller sensors like phone sensors have a tiny CoC and very deep depth of field by default.