Hyperfocal Distance Explained: Aperture, Focal Length, and the Formula

The hyperfocal distance formula, how aperture and focal length change the result, and typical circle-of-confusion values, with worked examples.

What is hyperfocal distance?

Hyperfocal distance is the specific focus distance where everything from half that distance out to infinity appears acceptably sharp. It's a technique used in landscape and street photography to keep both near and far subjects sharp without refocusing for every shot.

The hyperfocal distance formula

Hyperfocal distance H is calculated as H = f^2 / (N x c) + f, where f is the lens's focal length in mm, N is the f-number (aperture), and c is the circle of confusion in mm -- the largest blur spot still considered acceptably sharp. Because f is squared, longer focal lengths push the hyperfocal distance out much faster than the aperture does.

A worked example (50mm, f/8, full frame)

Using 0.03mm, a common circle-of-confusion value for full-frame sensors, a 50mm lens at f/8 gives H = 50^2 / (8 x 0.03) + 50 = 2500 / 0.24 + 50, roughly 10,466.67mm, or about 10.47 meters. Focusing at that distance keeps everything from about 5.23 meters (half the hyperfocal distance) out to infinity acceptably sharp.

How aperture changes the hyperfocal distance

Since the f-number sits in the denominator, stopping down (using a larger f-number) shortens the hyperfocal distance. Keeping the same 50mm lens but switching to f/16 gives 50^2 / (16 x 0.03) + 50 = 2500 / 0.48 + 50, about 5,258.33mm (roughly 5.26 meters) -- nearly half the distance of the f/8 example.

How focal length changes the hyperfocal distance

Because f is squared in the numerator, a longer focal length stretches the hyperfocal distance out sharply. Wide-angle lenses have a short hyperfocal distance, which is why they're easy to use for front-to-back sharpness in landscapes, while telephoto lenses have a very long one, making the technique far less practical.

Circle of confusion (CoC) and sensor size

The circle of confusion is a stand-in for "how much blur still looks sharp," based on assumptions about print size and viewing distance; roughly 0.03mm is a commonly used representative value for full-frame sensors. Smaller sensors, like APS-C, typically use a smaller CoC (around 0.018-0.02mm), since reaching the same print size requires more magnification, tightening what counts as acceptably sharp.

Frequently asked questions

If I focus at the hyperfocal distance, what range stays sharp?

Roughly from half the hyperfocal distance out to infinity.

What happens to hyperfocal distance when I stop down (raise the f-number)?

It gets shorter, since the aperture value sits in the denominator of the formula.

What is circle of confusion (CoC)?

A representative value for the largest blur spot still considered sharp, based on print size and viewing distance. Roughly 0.03mm is a common figure for full-frame sensors.

Related tools