Hyperfocal Distance Calculator

Last Updated: October 20, 2026

Calculate the hyperfocal distance and near sharpness limit for any sensor, focal length, and f-stop, or find the aperture that keeps your foreground sharp.

Geometric sharpness estimate, not uniform or pixel-perfect focus. Default: full-frame circle of confusion 0.030mm and f/8. Sensor presets are conventional assumptions; output size, viewing distance, diffraction and your lens change acceptable sharpness.

Use actual focal length, not full-frame equivalent.

f/8 means enter8. Choose a suggestion or enter any positive f-number.

Hyperfocal Distance Formula

The calculator uses a geometric thin-lens model with distances referenced to the front principal plane. Sensor presets set a conventional acceptable blur circle; they are not universal sharpness standards. The full-frame default is 0.030 mm and the configurable aperture default is f/8. The hyperfocal distance formula is:

H = f^2 / (N * c) + f

When you focus the lens at H, the zone of acceptable sharpness starts at half the hyperfocal distance and extends to infinity:

NEAR LIMIT = H / 2

In the aperture solve mode, the calculator inverts the formula to find the f-number that places the near limit at your closest important object:

N = f^2 / (c * (2 * L - f))

Variables:

  • H is the hyperfocal distance in mm (the calculator converts it to meters and feet for you)
  • f is the lens focal length in mm (use the real focal length printed on the lens, not the full-frame equivalent)
  • N is the aperture f-number (f/8 means N = 8)
  • c is the circle of confusion in mm, set by your sensor choice (0.030 for full frame, 0.020 for APS-C, 0.015 for Micro Four Thirds)
  • L is the distance to the closest object that must be sharp

The first mode computes H and the near sharpness limit from your sensor, focal length, and f-stop, and also lists the hyperfocal distance at nearby full stops so you can see how much room each aperture change buys you. The second mode works backward: enter the closest object that must stay sharp, and the calculator returns the exact required f-number, the next setting in an illustrative f-number list that covers it, if present, and the foreground margin left over at that stop.

Quick Reference Distances and Focusing Methods

The table below lists the hyperfocal distance at f/11 for common wide-angle focal lengths. Focus at the listed distance and everything from half that distance to infinity is acceptably sharp. Full frame assumes a circle of confusion of 0.030 mm; APS-C assumes 0.020 mm.

Focal lengthFull frame at f/11APS-C (1.5x) at f/11
16 mm0.79 m (2.6 ft)1.18 m (3.9 ft)
20 mm1.23 m (4.0 ft)1.84 m (6.0 ft)
24 mm1.77 m (5.8 ft)2.64 m (8.7 ft)
28 mm2.40 m (7.9 ft)3.59 m (11.8 ft)
35 mm3.75 m (12.3 ft)5.60 m (18.4 ft)
50 mm7.63 m (25.0 ft)11.41 m (37.4 ft)

Hyperfocal focusing is one of several ways to set focus for a deep scene. The comparison below shows how it stacks up against the common field alternatives, including the double the distance rule, a quick approximation that needs no calculator at all.

MethodWhere you focusWhat stays sharpBest when
Hyperfocal focusingAt the hyperfocal distance HH/2 to infinityForeground detail and the horizon both matter and you want maximum total depth of field
Double the distance ruleAt twice the distance of your nearest important subjectNearest subject to infinity only when the chosen aperture and blur criterion give a hyperfocal distance no farther than that focus settingYou need a fast field estimate without a calculator or app
Focus at infinityOn the horizonFrom about H to infinity, close foreground goes softThere is no close foreground and distant subjects need peak sharpness
Focus on the subjectOn the subject itselfA band around the subject set by the depth of fieldThe subject should stand out and background sharpness does not matter

Example Problems

Example 1: where to focus. You shoot a full frame camera with a 24 mm lens at f/8, so c = 0.030 mm. H = 24^2 / (8 * 0.030) + 24 = 576 / 0.24 + 24 = 2424 mm, or about 2.42 m (7 ft 11 in). Focus at the unrounded 2.424 m value for the modeled near limit of 1.212 m through infinity. These are acceptable-blur limits, not uniform maximum sharpness.

Example 2: which aperture. You shoot a Canon APS-C body (c = 0.019 mm) with an 18 mm lens, and a rock 0.9 m away must stay sharp. N = 18^2 / (0.019 * (2 * 900 - 18)) = 324 / (0.019 * 1782) = 9.57. The next setting in the example list is f/10, if your lens provides it. At f/10 the hyperfocal distance is 324 / (10 * 0.019) + 18 = 1723 mm, so focus at about 1.72 m. The sharp zone then starts at 0.86 m, leaving a 4 cm margin in front of the rock.

Hyperfocal Distance FAQ

What happens if I focus slightly in front of the hyperfocal distance?

The far limit of sharpness collapses from infinity to a finite distance, so the horizon, stars, or distant peaks go soft. Overshooting is much safer: focus slightly beyond H and the sharp zone still reaches infinity, while the near limit moves back only a little. When in doubt, err on the far side, never the near side.

Why does sensor size change the hyperfocal distance?

A smaller sensor must be enlarged more to make the same size print, so its circle of confusion is smaller and the same lens and f-stop produce a longer hyperfocal distance. In practice you also use a shorter focal length on a crop body to frame the same scene, and once you compare equivalent framing, the crop sensor ends up with a closer hyperfocal distance and more depth of field at the same f-number.

Should I always use f/22 since it gives the closest hyperfocal distance?

No. Diffraction is present at all apertures and becomes more visible as the aperture narrows; there is no universal f/16 onset or optimum f-stop for every lens, sensor and viewing condition. Use the geometric threshold as a starting point, check your lens’s available settings and inspect the actual image. A different composition or focus stacking can help when a single exposure cannot meet your sharpness needs.

Hyperfocal Distance Calculator screenshot