// depth-of-field console

Hyperfocal distance, solved

Enter focal length, aperture and sensor. Get the focus distance that keeps everything from half that point to infinity sharp.

$ input --lens

smaller = stricter sharpness
2.42 m
hyperfocal distance — focus here
  • Hyperfocal distance2.42 m
  • Near limit of sharpness1.21 m
  • Far limit of sharpnessInfinity
  • Focus at H/2 for max depth1.21 m
ApertureH (24 mm)NearFar

What Hyperfocal Distance Actually Is

Focus your lens at the hyperfocal distance and everything from half that distance to infinity falls within acceptable sharpness. It is the landscape photographer's superpower: one focus setting that maximizes depth of field, no focus stacking required. Focus at 2.4 meters with a 24mm lens at f/8, and everything from 1.2 meters to the horizon is sharp. The calculator above computes it live from your focal length, aperture, and sensor — and draws the sharp zone so you can see exactly what you are getting.

The formula is disarmingly simple: H = f² / (N × c) + f, where f is focal length, N the f-number, and c the circle of confusion. The "+ f" at the end is often dropped in casual versions, but it matters at close distances and the tool includes it. Everything else on this page is about understanding the three inputs — because the formula is only as honest as the numbers you feed it.

The Circle of Confusion: How Blurry Is "Sharp"?

No photograph is perfectly sharp everywhere — sharpness is a judgment about how big a blurry point can be before your eye notices. That threshold is the circle of confusion (CoC): the largest blur spot still perceived as a point. The standard values — 0.030 mm for full frame, 0.020 mm for APS-C, 0.015 mm for Micro Four Thirds — assume an 8×10 inch print viewed at arm's length by normal vision. They are conventions, not physics.

This is why the tool lets you override CoC. Printing large? Pixel-peeping at 100%? Shooting for a billboard? Shrink the CoC (try half the standard value) and watch the hyperfocal distance grow — stricter sharpness demands more conservative focus. Conversely, for social-media-sized output, the standard values are already conservative. The CoC you choose is a statement about your final image, so choose it deliberately.

Focal Length: Why Wide Angles Forgive

Hyperfocal distance grows with the square of focal length — double the focal length, quadruple H. A 24mm lens at f/8 (full frame) hyperfocuses at about 2.4 m; a 50mm at the same aperture needs 10.4 m; a 200mm needs an absurd 167 m. This is why landscape photography lives at wide angles: short focal lengths deliver enormous depth of field almost for free, while telephotos isolate subjects precisely because their depth of field is razor-thin.

The practical consequence: with an ultra-wide lens (14–20mm), the hyperfocal distance is often under 2 meters, and the near limit under 1 meter — you can practically set focus once and shoot all day. With a 70–200mm zoom at the long end, hyperfocal technique is essentially useless; focus on your subject and let the background melt, which is the point of the long lens anyway.

Aperture: The f/8–f/11 Sweet Spot

Stopping down (higher f-number) shrinks H linearly — f/16 halves the hyperfocal distance versus f/8. But diffraction, the bending of light through a small aperture, softens the entire image past a point. On modern high-resolution full-frame sensors, diffraction visibly bites from about f/11–f/16; on smaller sensors and denser pixels, even earlier. The landscape consensus of f/8 to f/11 is the truce between depth of field and diffraction: enough depth to matter, not so much aperture shrinkage that everything gets mushy.

The field table above shows the tradeoff directly: compare f/8 and f/16 rows for your lens. The near limit creeps closer as you stop down — but ask whether the gain is worth the diffraction cost and the slower shutter speed (hello, tripod). For most scenes, f/8 at the hyperfocal distance beats f/16 focused carelessly.

How to Focus at the Hyperfocal Distance in the Field

Knowing H is 2.4 meters is useless if you cannot focus at 2.4 meters. Field methods, easiest first: 1) Use the tool before you leave — print the table or screenshot it. 2) Focus on an object roughly at H (a rock, a fence post at the right distance — pace it off). 3) Use your camera's distance scale: many lenses (especially manual and vintage ones) print depth-of-field scales; align the infinity mark with your f-stop. 4) Live-view magnification: focus on the nearest important foreground object, note the distance, then focus slightly beyond it — the "double the distance" method: focus at twice the distance of your nearest subject, which approximates hyperfocal.

Modern shortcut: mirrorless cameras with focus peaking and distance readouts in the viewfinder make this nearly painless — dial the focus ring until the readout matches H. And when in doubt, focus slightly beyond H rather than short of it: errors on the far side cost you a little foreground, while errors on the near side cost you infinity.

When Hyperfocal Is the Wrong Tool

Hyperfocal maximizes depth of field, but maximum depth is not always the goal — and sometimes it is not even achievable. Close foregrounds: if your nearest subject is closer than H/2, no single focus setting gets everything; that is what focus stacking is for. Portraits and isolation: shoot wide open and focus on the eyes; depth is the enemy. Very long lenses: as computed above, H can exceed the scene itself. Critical sharpness on a specific subject: hyperfocal spreads "acceptable" sharpness everywhere, which means peak sharpness nowhere — if the mountain matters most, focus on the mountain.

A useful refinement: the "optimal" focus for many scenes is slightly beyond hyperfocal, trading a little foreground softness for crisper distant detail, since viewers forgive soft foregrounds more readily than soft horizons. The diagram above shows the acceptable zone; your artistic judgment picks the point inside it.

Sensors, Crop Factors, and Phone Cameras

Smaller sensors have smaller CoC values, which lengthens hyperfocal distance — but they also use shorter focal lengths for the same field of view, which shortens it quadratically. Net effect: at equivalent framing and f-number, smaller sensors give more depth of field (this is why phone photos look sharp front-to-back effortlessly). The presets above encode standard CoC values per sensor; if you shoot a phone (roughly 0.005 mm CoC, ~26mm-equivalent lenses at f/1.8–2.8), try the custom CoC field — you will find H measured in tens of centimeters, which is why phones barely need to focus for landscapes.

One caution for adapted/vintage lenses: the CoC standard assumes the final print size, not the sensor. If you crop heavily (wildlife, "digital zoom"), you are effectively enlarging more — use a smaller CoC to compensate, or the "sharp" background will disappoint at full size.

Focus Stacking: The Precision Alternative

When the scene exceeds what hyperfocal can deliver — a flower at 30 cm with mountains behind — focus stacking takes over: shoot a series of frames focused at increasing distances, then blend the sharp slices in software. The hyperfocal math still helps — it tells you how many slices you need and where to place them. A good rule: step focus by roughly the depth of field at each distance (the tool's near/far logic generalizes), overlapping slices by ~30%. Most modern mirrorless cameras now offer in-camera stacking for macro work.

For pure landscapes, though, stacking is often overkill. A 20mm lens at f/9 focused at H covers nearly everything a landscape asks for. Reserve stacking for the extreme near-far compositions — and even then, try hyperfocal first. Simplicity is a feature when the light is changing fast.

Take the Table Into the Field

The aperture table above recomputes for your focal length and sensor — the current aperture is highlighted. Hit print for a pocket card, or screenshot it for your phone. Tape the card inside your lens cap or save it as your phone's lock screen on shoot days. After a few outings, the numbers become instinct: 24mm, f/8, focus ~2.5 m. That instinct — knowing, without thinking, where sharpness lives — is the real product of understanding hyperfocal distance. The calculator just gets you there faster.

Frequently asked questions

What is hyperfocal distance in simple terms?

It is the focus distance that gives maximum depth of field: focus there, and everything from half that distance to infinity is acceptably sharp. For a 24mm lens at f/8 on full frame, it is about 2.4 m — so 1.2 m to infinity stays sharp.

How do you calculate hyperfocal distance?

H = f² / (N × c) + f, where f is focal length, N the f-number, and c the circle of confusion for your sensor. The calculator above runs this live and also shows the near and far sharpness limits.

What is the circle of confusion?

The largest blur spot your eye still perceives as a sharp point — the definition of “acceptably sharp.” Standards are 0.030 mm (full frame), 0.020 mm (APS-C), 0.015 mm (Micro 4/3), based on an 8×10 print viewed at arm's length. Use a smaller value for large prints or pixel-peeping.

Where should I focus for landscape photography?

Usually at the hyperfocal distance for your lens and aperture — or use the double-the-distance trick: focus at twice the distance of your nearest important subject. If a specific subject matters most, focus on it instead of maximizing depth.

Why is f/8 to f/11 best for landscapes?

It balances depth of field against diffraction: stopping down increases sharp depth, but past ~f/11–f/16 diffraction softens the whole image on modern sensors. f/8–f/11 is the sweet spot where both effects are well controlled.

Does hyperfocal distance work for phone cameras?

The math works, but phones barely need it: tiny sensors and wide lenses give hyperfocal distances of tens of centimeters, so nearly everything is sharp anyway. Enter a 0.005 mm circle of confusion in the custom field to see your phone's numbers.