Skip to main content
Redmoon Converters
📷

Hyperfocal Distance: How to Get a Landscape Sharp Front to Back

What hyperfocal distance means, the formula that finds it, how circle of confusion and sensor size change the answer, and why focusing at the hyperfocal distance gives you the deepest depth of field for any aperture.

PhotographyDepth of FieldLandscape

You set up a wide-angle shot of a valley: a fence post a couple of metres away in the foreground, mountains on the horizon. You focus on the post and the mountains go soft; you focus on the mountains and the post turns to mush. Stopping down to f/16 helps, but now the whole frame is a touch fuzzy from diffraction and you’ve lost shutter speed. The thing you actually want — sharp from the nearest rock to infinity — has a name and a number behind it. That number is the hyperfocal distance, and once you can find it you stop guessing where to focus.

What “sharp” really means here

Depth of field is a polite fiction. A lens focuses on exactly one distance; everything in front of and behind that plane is technically out of focus. What saves us is that the eye can’t tell the difference below a certain blur size. A point of light that lands on the sensor as a tiny disc rather than a perfect point still reads as “sharp” as long as that disc is small enough. The largest disc we’ll accept is the circle of confusion (CoC), and it’s the hidden variable in every depth-of-field calculation.

CoC isn’t a property of the lens — it’s a property of the sensor and how big you’ll view the final image. The convention is roughly the sensor’s diagonal divided by 1500, which is why the value changes with format. A full-frame sensor uses about 0.030 mm; APS-C lands near 0.020 mm; Micro Four Thirds around 0.015 mm; a 1-inch sensor near 0.011 mm; and large medium-format backs go the other way, up around 0.038–0.044 mm. Smaller sensors demand a smaller acceptable blur because the image gets enlarged more to reach the same print size. Keep that in mind: the same lens at the same aperture gives a different depth of field on a different body, and it’s the CoC doing the work.

The hyperfocal distance, defined

The hyperfocal distance is the closest focus distance at which everything from half that distance out to infinity is acceptably sharp. Focus there and infinity sits exactly at the far edge of your depth of field — you waste none of it behind the horizon. It is the single most efficient place to focus when you want maximum front-to-back sharpness.

The formula is short:

H = f² / (N × c) + f

where f is the focal length, N is the f-number (aperture), and c is the circle of confusion — all in the same units. The trailing + f is small and often dropped, but it’s there for completeness. The shape of the equation tells you everything about the trade-offs before you plug in a single number.

Reading the formula

Focal length is squared in the numerator, so it dominates. Double the focal length and the hyperfocal distance roughly quadruples. This is exactly why wide lenses feel like they have “more depth of field” — a 16 mm lens has a tiny hyperfocal distance, so even focused fairly close everything snaps into the deep zone. A 100 mm lens has a hyperfocal distance far down the field, which is why telephoto landscapes are so much fussier about focus.

Aperture sits in the denominator, so stopping down shrinks the hyperfocal distance: f/16 brings it closer than f/8, pulling more of the foreground into the sharp zone. But this is where judgement comes in — past roughly f/11 to f/16 on most lenses, diffraction starts softening the entire frame, and you can lose more sharpness to diffraction than you gain in depth of field. The hyperfocal trick is what lets you hit the deep-focus look at a moderate aperture like f/8 or f/11 instead of cranking to f/22 and paying the diffraction tax.

The near and far limits

Once you know H, you can find the depth of field at any focus distance s:

Near limit = (H × s) / (H + (s − f))
Far  limit = (H × s) / (H − (s − f))

When the far-limit denominator drops to zero or below, the far limit is infinity — which is precisely the condition that defines the hyperfocal distance. Focus at s = H and the near limit collapses to H / 2. That’s the rule worth memorising: focus at the hyperfocal distance and you’re sharp from half of it to infinity. Focus a little past it and you push the near limit out without gaining anything at the far end, since you can’t get sharper than infinity. Focus short of it and infinity itself goes soft — the classic mistake of focusing on the foreground and watching the mountains blur.

A worked example

Take a full-frame body (c = 0.030 mm), a 24 mm lens, and f/8:

H = 24² / (8 × 0.030) + 24 = 576 / 0.24 + 24 ≈ 2424 mm ≈ 2.4 m

Focus at 2.4 m and everything from about 1.2 m to infinity is acceptably sharp. Stop down to f/11 and H drops to about 1.8 m, so the sharp zone starts near 0.9 m — useful if you have a foreground element close to the camera. Switch the same 24 mm lens and f/8 onto an APS-C body (c = 0.020 mm) and H jumps to about 3.6 m, because the smaller sensor’s tighter circle of confusion demands more precision. Same lens, same aperture, different answer — which is the whole reason a calculator beats a memorised rule of thumb.

How to use it in the field

You don’t need to compute this on a ridge in failing light. Work out the hyperfocal distance for the focal lengths and apertures you actually shoot, then focus by feel: for a wide lens at a middling aperture, the hyperfocal distance is often just a couple of metres, so focusing roughly a third of the way into the scene gets you close. The “focus one-third in” maxim is a crude approximation of this exact maths — it works at wide angles and breaks down badly with longer lenses, which is the failure mode the formula explains. When precision matters — a foreground you need tack-sharp, or a long lens where the margin is thin — punch the real numbers in.

The Hyperfocal Distance & Depth of Field Calculator does all of this for you: pick your sensor format, enter focal length, aperture and focus distance, and it returns the hyperfocal distance plus the exact near and far limits, with a table comparing apertures side by side so you can see what one stop actually buys you. Pair it with the Crop Factor calculator when you’re comparing lenses across formats, or the Exposure Triangle calculator to balance the aperture you chose against shutter speed and ISO. Get the focus point right once and the rest of the shot is just light.

Try the tools from this guide