Hyperfocal Distance Calculator
Enter your focal length, aperture, and sensor size to find the hyperfocal distance - the closest focus point that keeps everything from half that distance to infinity acceptably sharp. The calculator also shows your near and far depth-of-field limits for any focus distance you choose. Switch between meters and feet, pick from eight sensor presets or enter a custom circle of confusion, and let the step-by-step panel walk you through the math.
What is hyperfocal distance?
The hyperfocal distance is the shortest focus distance at which a lens can be set while keeping objects at infinity within the acceptable depth of field. When you focus your lens exactly at the hyperfocal distance, everything from half that distance all the way to infinity appears acceptably sharp in your photo. This makes it a valuable technique in landscape, street, astrophotography, and any situation where you want maximum depth of field without stopping down so far that diffraction softening becomes a problem. The concept dates back to the early 20th century and is still a cornerstone of zone-focusing - setting focus manually to a known distance and shooting without adjusting autofocus between frames.
The hyperfocal distance formula
The standard (precise) formula is: H = f + f² / (N x c) where H is the hyperfocal distance in mm, f is the focal length in mm, N is the aperture f-number, and c is the circle of confusion diameter in mm. For example, a 24 mm lens at f/8 on a full-frame sensor (c = 0.030 mm): H = 24 + (24 x 24) / (8 x 0.030) = 24 + 576 / 0.240 = 24 + 2400 = 2424 mm = 2.42 m Focusing at 2.42 m keeps everything from 1.21 m to infinity sharp. An older, simplified version drops the final + f term; that approximation works when the hyperfocal distance is much larger than the focal length (telephoto lenses), but the precise form is used here for short focal lengths where the difference matters.
Near and far depth-of-field limits
Focusing exactly at the hyperfocal distance H is not always practical, so this calculator also shows you the depth-of-field limits for any focus distance you choose. The near limit (D_near) is the closest point that appears sharp, and the far limit (D_far) is the furthest: D_near = (s x H) / (H + s - f) D_far = (s x H) / (H - s + f) where s is your actual focus distance in mm. When s is greater than or equal to H, the far limit extends to infinity. The total depth of field is simply D_far - D_near. In practice, set your focus distance to the subject and use these limits to decide whether you need to stop down further or move the camera.
Circle of confusion and sensor size
The circle of confusion (CoC) is the key variable that ties depth of field to your specific camera. It is the largest blur spot that the human eye still perceives as a point when viewing a print at a standard distance (typically an 8x10 inch print at 25 cm / 10 inches). Because a smaller sensor requires a higher enlargement to produce the same final image size, the permissible CoC on a small sensor is smaller than on a full-frame camera. Full-frame cameras use c = 0.030 mm, APS-C (Nikon/Sony) use 0.020 mm, Micro Four Thirds use 0.015 mm. A smaller CoC results in a longer hyperfocal distance - meaning you need a wider aperture or wider focal length to achieve the same depth-of-field effect as a larger sensor. This is the mathematical reason why small-sensor cameras appear to have more depth of field "for free" at the same framing: their longer equivalent focal length is offset by the smaller CoC.
Standard circle of confusion (CoC) values by sensor
| Sensor / format | Typical CoC (mm) | Crop factor |
|---|---|---|
| Medium format (645) | 0.050 | 0.8x |
| 35 mm full-frame | 0.030 | 1.0x |
| APS-H (Canon 1D) | 0.026 | 1.3x |
| APS-C (Nikon/Sony) | 0.020 | 1.5x |
| APS-C (Canon) | 0.019 | 1.6x |
| Micro Four Thirds | 0.015 | 2.0x |
| 1-inch (compact) | 0.011 | 2.7x |
CoC is the maximum blur diameter (in mm) that still appears as a point when an 8x10 inch print is viewed at 25 cm. Smaller sensors need a smaller CoC because the image is enlarged more.
Frequently asked questions
What happens if I focus at exactly the hyperfocal distance?
Everything from half the hyperfocal distance to infinity will appear acceptably sharp. For example, if the hyperfocal distance for your setup is 4 m, focusing at 4 m keeps everything from 2 m to infinity in acceptable focus. This is the classic zone-focusing technique used in street photography and landscape work.
Does a larger aperture (smaller f-number) increase or decrease hyperfocal distance?
A larger aperture (smaller f-number such as f/2.8) produces a longer hyperfocal distance, meaning you need to focus further away to get infinity sharp. A smaller aperture (larger f-number such as f/16) results in a shorter hyperfocal distance, so you can focus closer and still get infinity in the depth-of-field zone. Stopping down always shortens the hyperfocal distance.
How does focal length affect hyperfocal distance?
Hyperfocal distance scales roughly with the square of the focal length. Doubling your focal length - for example from 24 mm to 48 mm - approximately quadruples the hyperfocal distance at the same aperture. This is why wide-angle lenses are so well suited to zone focusing: a 24 mm lens at f/8 on a full-frame sensor has a hyperfocal distance around 2.4 m, while a 50 mm lens at the same aperture has a hyperfocal distance around 10.4 m.
What is the circle of confusion and how do I choose it?
The circle of confusion (CoC) is the maximum diameter of a blur spot that still looks like a point to the naked eye in a final print or display. Use the sensor preset that matches your camera body; the calculator fills in the accepted standard value. If you are shooting for large-format print or pixel-peeping on a high-resolution screen, you may want to use a smaller CoC (say 0.020 mm instead of 0.030 mm for full-frame) to ensure sharpness holds up under close inspection.
Can I use hyperfocal distance for astrophotography?
Yes. For wide-field Milky Way shots, you typically want stars sharp to infinity with the foreground in focus. Set your widest practical aperture (f/2.8 to f/4 to avoid severe coma or astigmatism), find the hyperfocal distance for that setup, and focus there. Because star trails limit your exposure time anyway, you will be wide open, so the hyperfocal distance will be quite long - manual focus using live view magnification on a bright star is usually more reliable than calculated zone focusing for astrophotography.
What is zone focusing?
Zone focusing means setting your lens to a pre-calculated focus distance (often the hyperfocal distance) and the corresponding aperture, then shooting without re-focusing. Older manual lenses printed depth-of-field scales on the barrel so photographers could see at a glance what range was sharp. It is still widely used in street, documentary, and action photography where speed matters more than precision - you know everything in a certain zone will be sharp, so you can shoot without waiting for autofocus to confirm.