Hyperfocal Distance Calculator

The hyperfocal distance is one of the most useful concepts in landscape and travel photography. It tells you exactly where to focus your lens to maximize sharpness across the entire scene, from the nearest foreground element to the distant horizon. Instead of guessing or simply focusing on infinity, setting your lens to the hyperfocal distance ensures you are getting the absolute most out of your depth of field.

Hyperfocal Distance Calculator
Photo: Great Sand Dunes Sunrise by Duncan Rawlinson

Many photographers lose foreground sharpness by focusing too far away, or sacrifice background clarity by focusing too close. The hyperfocal distance is the sweet spot. When you focus at this distance, everything from half that distance to infinity falls within acceptable sharpness. It is a mathematical certainty based on your focal length, aperture, and sensor size.

This calculator gives you the exact hyperfocal distance for any combination of settings, plus the nearest distance that will appear sharp when focused at that point. Use it at home to plan your shooting parameters, or reference it in the field when you need precise focus placement for a critical landscape image.

Understanding hyperfocal focusing is especially important when shooting scenes with strong foreground interest. A wildflower field leading to a mountain range, rocks on a beach stretching toward a sunset, or a winding path through a forest all benefit from maximizing depth of field through hyperfocal technique.

Hyperfocal Distance Calculator





Results

Hyperfocal Distance
Nearest Sharp Distance
Sharp Range
Focus Zone When Set to Hyperfocal

Camera

Infinity

What Is the Hyperfocal Distance?

The hyperfocal distance is the focus distance that maximizes the depth of field for a given focal length and aperture. When your lens is focused at the hyperfocal distance, everything from half that distance to infinity is rendered acceptably sharp. It represents the optimal focus point for maximizing sharpness across the entire depth of your scene.

Think of it this way. If you focus on infinity, you are "wasting" depth of field behind your focus point (beyond infinity, which does not exist). By pulling your focus closer to the hyperfocal distance, you reclaim that wasted zone and extend sharpness closer to the camera without losing sharpness at infinity.

The Formula

The hyperfocal distance is calculated as: H = (f squared) / (N times CoC) + f, where f is the focal length in millimeters, N is the f-number (aperture), and CoC is the circle of confusion for your sensor size. The circle of confusion represents the maximum blur spot diameter that still appears sharp to the human eye at a standard viewing distance. For a full-frame sensor, the standard CoC is 0.03mm. Smaller sensors have smaller CoC values because the image must be magnified more to reach the same viewing size.

When to Use Hyperfocal Focusing

Hyperfocal focusing is most valuable in landscape photography and any situation where you want maximum depth of field. Here are the most common scenarios where this technique shines.

Classic landscape compositions. When shooting a scene with a strong foreground element (rocks, flowers, patterns in sand) leading to a distant background (mountains, sky, ocean horizon), hyperfocal focusing ensures both near and far elements are sharp. Without it, you might focus on the mountains and lose the foreground, or focus on the rocks and soften the background.

Street photography. Many street photographers pre-focus their lens at or near the hyperfocal distance and shoot at f/8 or f/11. This technique, sometimes called zone focusing, means they do not need to autofocus for each shot. Everything within a predictable range will be sharp, allowing for faster reaction times and more candid captures.

Astrophotography foregrounds. When shooting the Milky Way with an interesting foreground, photographers often need both the stars and nearby terrain to be sharp. Hyperfocal focusing (or a technique close to it) helps achieve this in a single exposure without focus stacking.

Travel and documentary work. When you cannot predict exactly where the subject will be, setting your lens to the hyperfocal distance with a moderate aperture ensures a wide range of distances will be acceptably sharp.

How to Set Hyperfocal Distance in the Field

Knowing the hyperfocal distance is only useful if you can actually set your lens to that focus point. Here are several practical methods.

  • Lens distance scale. Many prime lenses and some zooms have a distance scale printed on the barrel. Switch to manual focus and rotate the focus ring until the scale reads your calculated hyperfocal distance. This is the fastest method when the scale is available.
  • Live view magnification. Use your camera's live view mode, zoom into a subject at roughly the hyperfocal distance, and manually focus until it is sharp. This is more precise than the lens barrel scale on most modern lenses.
  • Focus and recompose. Find an object at the hyperfocal distance in your scene. Autofocus on it, then switch to manual focus to lock it in place. Recompose and shoot.
  • Tape or mark your lens. If you frequently use the same focal length and aperture for landscapes (for example, 24mm at f/11 on full frame), calculate the hyperfocal distance once, find it on the focus ring, and mark it with a small piece of tape for instant reference.

Common Hyperfocal Distances for Full Frame Cameras

To give you a practical reference, here are approximate hyperfocal distances for common landscape setups on a full-frame camera.

  • 16mm at f/8: approximately 1.1 meters (3.5 feet)
  • 16mm at f/11: approximately 0.8 meters (2.6 feet)
  • 24mm at f/8: approximately 2.4 meters (7.9 feet)
  • 24mm at f/11: approximately 1.7 meters (5.7 feet)
  • 35mm at f/8: approximately 5.1 meters (16.8 feet)
  • 35mm at f/11: approximately 3.7 meters (12.2 feet)
  • 50mm at f/8: approximately 10.4 meters (34.2 feet)
  • 50mm at f/11: approximately 7.6 meters (24.9 feet)

Notice how dramatically the hyperfocal distance changes with focal length. At 16mm, everything beyond about a meter is sharp at f/8. At 50mm, you need to focus at over 10 meters, and foreground subjects closer than 5 meters will be soft. This is one of the core reasons ultra-wide lenses are preferred for landscape work with strong foreground elements.

Hyperfocal Distance and Crop Sensors

Crop sensor cameras (APS-C, Micro Four Thirds) have smaller circles of confusion, which means the calculated hyperfocal distance is actually farther away for the same focal length and aperture. However, crop sensor users typically use shorter focal lengths to achieve the same field of view, which more than compensates. A 16mm lens on Micro Four Thirds gives a 32mm equivalent field of view with a hyperfocal distance much closer than what a 32mm lens on full frame would provide.

Limitations and Real-World Considerations

The hyperfocal distance is a theoretical value based on geometric optics. In practice, several factors affect your results.

Diffraction. At very small apertures (f/16, f/22), diffraction softens the entire image. Even though the depth of field is maximized, overall sharpness decreases. For most lenses, f/8 to f/11 offers the best balance between depth of field and peak sharpness.

Viewing conditions. The circle of confusion assumes a standard print size viewed at a standard distance. If you plan to make very large prints or your audience will pixel-peep on a 4K monitor, the actual zone of acceptable sharpness will be narrower than calculated. Some photographers use a stricter CoC (perhaps half the standard value) for critical sharpness in large prints.

Focus accuracy. Autofocus systems and manual focus precision both have tolerances. Being a few centimeters off from the exact hyperfocal distance is rarely noticeable, but significant errors can shift the near or far limits enough to matter. Double-check your focus using live view magnification when precision is critical.

Modern high-resolution sensors. Cameras with 40, 50, or 60+ megapixel sensors reveal more detail and more blur than lower-resolution cameras. The same shot that looked sharp everywhere at 24 megapixels might show soft corners at 60 megapixels. Some landscape photographers using high-resolution bodies prefer to focus stack rather than rely solely on hyperfocal distance.

Hyperfocal Focusing vs. Focus Stacking

Focus stacking involves taking multiple images at different focus distances and combining the sharpest parts of each in post-processing. It produces results that are sharper than any single hyperfocal-focused shot because each part of the scene is captured at its optimal focus point.

However, focus stacking requires a tripod, a static scene, post-processing time, and software. Hyperfocal focusing works in a single shot, in any conditions, with no post-processing required. For most landscape work, hyperfocal focusing produces excellent results. Reserve focus stacking for scenes where extreme near-to-far sharpness is critical and conditions allow it, such as tripod-mounted compositions in calm light.