Hyperfocal Distance Calculator
Calculate hyperfocal distance, depth of field, and near/far sharp limits for any lens and aperture combination.
Hyperfocal Distance Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: H = (fยฒ / (N ร c)) + f
Worked example โ Hyperfocal = 1.77m | Everything from 0.88m to infinity is sharp
Formula
H = (fยฒ / (N ร c)) + f
Hyperfocal distance (H) equals the focal length squared divided by the product of the f-number and circle of confusion, plus the focal length. When focused at H, everything from H/2 to infinity is acceptably sharp.
Worked Examples
Example 1: Landscape with 24mm Wide-Angle Lens
Problem:Find the hyperfocal distance for a 24mm lens at f/11 on a full-frame camera (CoC = 0.03mm).
Solution:H = (fยฒ / (N ร c)) + f H = (24ยฒ / (11 ร 0.03)) + 24 H = (576 / 0.33) + 24 H = 1745.45 + 24 = 1769.45mm H = 1.77 meters (5.8 feet) Near sharp limit = H/2 = 0.88 meters
Result:Hyperfocal = 1.77m | Everything from 0.88m to infinity is sharp
Example 2: Street Photography with 50mm Lens
Problem:Calculate hyperfocal distance for a 50mm lens at f/8 on a full-frame camera (CoC = 0.03mm), with subject at 5m.
Solution:H = (50ยฒ / (8 ร 0.03)) + 50 H = (2500 / 0.24) + 50 H = 10416.67 + 50 = 10466.67mm H = 10.47 meters (34.3 feet) Near limit at 5m = (5000 ร (10467 - 50)) / (10467 + 5000 - 100) = 3.40m Far limit = (5000 ร (10467 - 50)) / (10467 - 5000) = 9.53m
Result:Hyperfocal = 10.47m | At 5m: DOF from 3.40m to 9.53m (6.13m range)
Frequently Asked Questions
What is hyperfocal distance in photography?
Hyperfocal distance is the closest focusing distance at which a lens can be focused while keeping objects at infinity acceptably sharp. When you focus your lens at the hyperfocal distance, everything from half the hyperfocal distance to infinity will be within acceptable sharpness. This concept is crucial for landscape photography where you want maximum depth of field. The hyperfocal distance depends on three factors: focal length, aperture (f-stop), and the circle of confusion value for your camera sensor. Shorter focal lengths and smaller apertures (higher f-numbers) produce shorter hyperfocal distances, giving you greater depth of field coverage.
How does aperture affect hyperfocal distance?
Aperture has a direct and significant impact on hyperfocal distance. A smaller aperture (larger f-number like f/16 or f/22) reduces the hyperfocal distance, meaning you can achieve sharp focus from a closer point all the way to infinity. Conversely, a wider aperture (smaller f-number like f/2.8 or f/4) increases the hyperfocal distance dramatically. For example, a 50mm lens at f/8 might have a hyperfocal distance of about 10 meters, while the same lens at f/16 would have a hyperfocal distance of roughly 5 meters. However, be cautious with very small apertures like f/22 because diffraction can reduce overall sharpness even though the depth of field is maximized.
What is the circle of confusion and which value should I use?
The circle of confusion (CoC) is the maximum diameter of a blurred point of light that still appears acceptably sharp to the human eye when viewed in a final print. Different sensor sizes use different CoC values because larger prints from smaller sensors require more enlargement. For full-frame 35mm sensors, the standard CoC is 0.03mm. For APS-C crop sensors (Canon), use 0.019mm, and for APS-C (Nikon/Sony) use 0.02mm. Micro Four Thirds cameras use 0.015mm. Medium format cameras use approximately 0.043mm. Using the correct CoC for your sensor ensures your depth of field calculations match real-world results.
Does focal length affect depth of field and hyperfocal distance?
Yes, focal length is one of the primary factors affecting both depth of field and hyperfocal distance. Longer focal lengths produce greater hyperfocal distances and shallower depth of field at any given aperture and distance. A 24mm wide-angle lens at f/8 might have a hyperfocal distance of only 2.4 meters, while a 100mm telephoto at the same aperture would have a hyperfocal distance of about 42 meters. This is why wide-angle lenses are favored for landscape photography where maximum depth of field is desired. The relationship is quadratic: doubling the focal length roughly quadruples the hyperfocal distance, making telephoto lenses much harder to use for front-to-back sharpness.
How are the near and far sharp limits found when I focus closer than the hyperfocal distance?
The near limit is s times (H minus f) divided by (H plus s minus 2f), and the far limit is s times (H minus f) divided by (H minus s), with s the subject distance and all terms in the same units. The far expression is what defines the hyperfocal point: as s approaches H the denominator goes to zero and the far limit runs to infinity. Focused nearer than H, both limits stay finite and the depth of field is simply the difference between them.
What happens if I deliberately focus beyond the hyperfocal distance?
The far limit remains at infinity, so nothing is lost at the horizon, while the near limit moves outward. Focusing at twice H puts the near limit at roughly two thirds of H rather than half of it. Many landscape photographers do this on purpose, because the standard circle of confusion is a lenient print-viewing criterion and distant detail focused exactly at H is only marginally acceptable. You trade some foreground sharpness for genuinely resolved background.
At what point does diffraction cancel the depth of field gained by stopping down?
Every aperture produces an Airy disc whose diameter grows in proportion to the f-number, so closing down blurs the plane of focus at the same time as it extends the zone around it. On full frame the two effects roughly balance somewhere past f/11, and smaller formats reach that crossover at wider apertures because their circle of confusion is stricter. Beyond it, moving from f/16 to f/22 shortens the hyperfocal distance but softens the entire frame, which is rarely a good trade.
Can hyperfocal focusing hold a very close foreground and the horizon at once?
Hyperfocal focusing works when the nearest element you care about sits beyond half the hyperfocal distance. If a foreground rock is at 0.4 m and H over 2 is 0.9 m, no single focus point can hold both it and the horizon at the working aperture, and stopping down further runs into diffraction. Focus stacking, several frames at stepped focus distances blended later, solves that case and also lets you shoot at the sharpest aperture of the lens. It requires a static scene and a tripod.
Why do hyperfocal results look soft when I inspect the file at 100 percent?
The circle of confusion is a viewing convention, not a physical measurement. The 0.03 mm value for full frame assumes a modest enlargement viewed at a normal distance, which is a far more forgiving standard than examining pixels on a monitor. Halving the circle of confusion doubles the hyperfocal distance, so if you routinely judge sharpness at 100 percent, enter a stricter value such as 0.015 mm for full frame and accept the longer focus distance it demands.
How does the hyperfocal distance differ from the infinity mark on the lens?
The infinity mark is the focus position at which parallel rays converge on the sensor, giving maximum sharpness at the horizon and wasting the depth of field that would otherwise extend behind it. Focusing at the hyperfocal distance instead keeps infinity just inside the acceptable blur threshold while pulling the near limit in to half of H. On modern autofocus lenses the barrel often rotates past infinity to allow for thermal expansion, so the mark itself is not a reliable hard stop.
References
Background & Theory
History
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer ยท Editorial policy
Related Calculators
๐งฎFlash Guide Number Calculator
Calculate flash guide number, distance, and aperture relationship for off-camera flash.
๐งฎLens Focal Length Calculator
Calculate the required focal length from subject distance, sensor size, and desired framing.
๐งฎDepth of Field Calculator
Calculate depth of field with interactive inputs and clear steps.
๐งฎField of View Calculator (camera)
Calculate field of view (camera) with interactive inputs and clear steps.
๐งฎShutter Speed to Freeze Motion Calculator
Calculate shutter speed to stop motion with interactive inputs and clear steps.
๐งฎExposure Value (ev) Calculator
Calculate exposure value (ev) with interactive inputs and clear steps.
๐งฎNeutral Density Filter Stop Calculator
Calculate neutral density filter stop with interactive inputs and clear steps.
๐งฎPanorama Overlap and Frames Calculator
Calculate panorama overlap and frames with interactive inputs and clear steps.