Advertisement
Advertisement
IMAGE

Hyperfocal Distance Calculator — the focus point that maximises depth

Find the focus distance that stretches acceptable sharpness from half that distance all the way to infinity, using the same circle of confusion convention stated on screen.

The format sets the sensor diagonal, from which the circle of confusion is derived.
This is the same convention set used by the depth of field calculator, so the two pages agree.
Used only when the convention above is set to direct entry.
The actual focal length, not the full frame equivalent.
Focusing further out sacrifices foreground depth to pull infinity away from the edge of acceptability.
Hyperfocal distance
 
0
Near limit at hyperfocal
0
Margin focus distance
0
Near limit with margin
0
Circle of confusion
At f/4
At f/8
At f/16
Tip: the bars show how the hyperfocal distance for this lens shrinks as you stop down. Halving the aperture area — one full stop — roughly halves the hyperfocal distance, which is why a two-stop change moves the everything-sharp point far more than most photographers expect.
Advertisement

A hyperfocal distance calculator answers one specific question: where should I focus so that the largest possible slice of the scene, ending at infinity, is acceptably sharp? Focus at the hyperfocal distance and everything from half that distance out to the horizon falls inside the zone of acceptable sharpness. Focus anywhere nearer and you lose the horizon. Focus anywhere further and you gain nothing at infinity while giving up foreground.

Arb Digital publishes this alongside the depth of field calculator, and the boundary between the two is worth being explicit about. The depth of field calculator takes a focus distance you have already chosen and returns the near and far limits that result from it. This page runs the problem in the other direction: it returns the focus distance that maximises depth, given that infinity must be included. Same optics, opposite question. Both use the same circle of confusion conventions so their numbers reconcile.

What This Hyperfocal Distance Calculator Does

It computes the hyperfocal distance for a focal length, aperture and sensor format, and reports the near limit that results — which is always half the hyperfocal distance to within the width of a focal length. It also prints the circle of confusion it used, in millimetres, together with the convention that produced it, because that assumption is the hidden variable behind every hyperfocal figure published anywhere.

The default convention is the classic Zeiss criterion of sensor diagonal divided by 1500, the same default the depth of field calculator uses. On a full frame sensor that gives 0.0288mm, which is the derivation behind the 0.029mm and 0.030mm values found in most printed tables. Stricter and more lenient divisors are available, along with direct entry, and switching between them moves the hyperfocal distance by well over ten per cent.

A safety multiple is offered because focusing exactly at the hyperfocal distance places infinity precisely on the boundary of acceptability, with no margin whatsoever. The multiple lets you trade near-foreground depth for genuine sharpness at the horizon, and the page reports the near limit that results from that trade so the cost is visible rather than assumed.

The bars compare the hyperfocal distance for the same lens at f/4, f/8 and f/16, which makes the aperture relationship concrete: the distance is inversely proportional to the f-number, so each full stop of stopping down roughly halves it.

How to Use It

  1. Set the sensor format before anything else. It fixes the circle of confusion and therefore every distance on the page. The same 24mm lens at f/8 has a very different hyperfocal distance on full frame than on Micro Four Thirds.
  2. Match the convention to your output. Diagonal divided by 1500 assumes a modest print viewed from a normal distance. If the file will be inspected at one hundred per cent on a monitor, the stricter divided-by-1730 setting is closer to what you will actually perceive.
  3. Enter the true focal length and the aperture you intend to shoot. On a zoom, the hyperfocal distance changes with every twist of the barrel, so recalculate rather than carrying one number for the whole lens.
  4. Choose a safety multiple honestly. If the image is destined for a phone screen, 1× is fine. If it will be printed at a metre wide, 2× costs you foreground but keeps the horizon genuinely sharp.
  5. Focus by distance scale or by live view, then check. Set the focus distance the page reports, magnify live view on the nearest object that must be sharp, and confirm it holds before committing to the frame.

The Formula / How It's Calculated

The hyperfocal distance is the focus distance at which the far limit of acceptable sharpness first reaches infinity:

H = f² ÷ (N × c) + f, where f is the focal length in millimetres, N the f-number and c the circle of confusion in millimetres. The trailing + f is a refinement that matters only for short focal lengths and wide apertures, and many published tables drop it.

Focusing at H places the near limit at H ÷ 2 exactly, with the far limit at infinity. For any other focus distance s, the near limit is near = s(H − f) ÷ (H + s − 2f), which is what the safety multiple output uses. Focusing at 2H, for example, puts the near limit close to 2H ÷ 3.

Worked example, matching the values the page loads with. A full frame sensor has a diagonal of 43.267mm, so at the divided-by-1500 convention the circle of confusion is 0.028844mm. At 24mm and f/8, H = 576 ÷ (8 × 0.028844) + 24 = 576 ÷ 0.230755 + 24 = 2,496.2 + 24 = 2,520.2mm, or 2.520m. Focusing there puts the near limit at 1.260m, with everything beyond that acceptably sharp to infinity. Applying the 2× margin means focusing at 5.040m, which moves the near limit to 5,040.4 × 2,496.2 ÷ (2,520.2 + 5,040.4 − 48) = 1,675mm, or 1.675m — you give up about 41 centimetres of foreground and buy back real margin at the horizon. Stanford's CS178 notes on depth of field derive the same relationships interactively.

Advertisement

Hyperfocal Distance Versus Depth of Field — the Boundary

These two calculations are constantly confused, including by pages that claim to do both, so here is the distinction stated as plainly as possible.

Depth of field is a consequence. You point the lens, you focus on something, and the optics deliver a near limit and a far limit around that point. The depth of field calculator tells you what those limits are. It works for any subject at any distance, including subjects where infinity is completely irrelevant — a portrait at two metres, a still life at forty centimetres, a bird on a branch.

Hyperfocal distance is a target. It is the one focus distance, out of all possible focus distances, that produces the maximum total depth of field subject to the constraint that the far limit must reach infinity. It is only meaningful when infinity is part of your scene. For a portrait it is a number with no application.

They meet at a single point. Feed the hyperfocal distance into the depth of field calculator as the focus distance, and it will return a near limit of H/2 and a far limit of infinity. That is the check that the two pages agree, and it works because both are running the same equations from the same circle of confusion.

The practical consequence is that the two tools answer different planning questions. Ask the depth of field calculator "if I focus here, what will be sharp?" Ask this page "where must I focus to get everything sharp?" Neither can be substituted for the other without doing the substitution manually.

The Circle of Confusion Is a Choice, and It Moves the Answer a Long Way

Every hyperfocal distance ever published rests on an assumption about how much blur a viewer will tolerate, and that assumption is the circle of confusion. It is derived from four things: the resolving power of the human eye, the viewing distance, the size of the print, and therefore the enlargement factor from sensor to print. The classic derivation assumes normal vision resolving roughly five line pairs per millimetre at 250mm, viewing an eight by ten inch print. Run those numbers backwards through the enlargement from a 35mm frame and you get approximately diagonal divided by 1500.

Change any of those assumptions and the number moves. In the worked example above, switching from divided-by-1500 to divided-by-1730 shrinks the circle of confusion from 0.0288mm to 0.0250mm and pushes the hyperfocal distance from 2.52m out to about 2.90m — a fifteen per cent change from a setting most calculators never expose. The near limit moves from 1.26m to 1.45m with it.

There is a further complication that the classic derivation never anticipated. Modern sensors frequently out-resolve these criteria. When the pixel pitch is smaller than the circle of confusion, the traditional value permits blur that is plainly visible when the file is examined at one hundred per cent. Photographers who calculate a hyperfocal distance, shoot it carefully, and then find the foreground disappointing at pixel level have usually met this rather than made an error.

That is the reasoning behind the safety multiple. Focusing at twice the hyperfocal distance is functionally equivalent to halving the circle of confusion at infinity while keeping a usable near limit, and it is what many landscape photographers who print large do by habit. The alternative, focus stacking, removes the compromise entirely at the cost of multiple frames and post-processing time.

When Hyperfocal Focusing Is the Wrong Choice

Hyperfocal focusing is a compromise technique, and there are scenes where the compromise costs more than it saves.

The clearest case is when infinity itself is the subject. Distant mountains, stars, the detail on a far building — at the hyperfocal distance, infinity sits exactly at the maximum permitted blur. It is inside the zone of acceptable sharpness by definition, but only just. If the far detail is what the photograph is about, focus on it and accept a nearer foreground going soft.

The second case is diffraction. The formula implies that stopping down always shortens the hyperfocal distance and therefore always helps, and arithmetically it does. Physically, past roughly f/11 on smaller formats and f/16 on full frame, light bending at the edge of the diaphragm spreads each point into an Airy disc large enough to soften the entire frame, including the plane you focused on. Beyond that point you are expanding a zone of uniformly reduced sharpness, which is why photographers on small formats stack rather than simply stopping down. Stanford's CS178 notes on the operation of a thin lens set out the ray geometry that both the sharp plane and the blur circles around it come from.

The third case is any lens without a reliable distance scale. Setting 2.52m on a modern autofocus zoom with a coarse, unmarked focus ring is guesswork, and being one stop of distance out at the wide end is easy. Focusing manually in magnified live view on an object you know sits at roughly the right distance is far more reliable than trusting the barrel.

Finally, on very wide lenses the hyperfocal distance can be so short that it is barely worth the exercise. A 14mm lens at f/11 on full frame has a hyperfocal distance around 60 centimetres, at which point focusing on almost anything in the middle distance already includes infinity. The technique earns its keep between roughly 20mm and 50mm, where the hyperfocal distance is long enough to matter and short enough to be reachable.

Landscape or property photography that needs to sell online?

Arb Digital builds fast websites where large, detailed images load quickly, hold their quality and do not shift the layout while they arrive.

See Web Design Services Talk to Arb Digital

Common Mistakes to Avoid

  • Using one hyperfocal distance for a whole zoom range — the figure scales with the square of focal length, so 24mm and 35mm on the same lens differ by a factor of more than two.
  • Entering the full frame equivalent focal length on a crop body — pairing an equivalent figure with a crop sensor selection applies the crop factor twice and produces a hyperfocal distance far too long.
  • Quoting a hyperfocal distance without its circle of confusion — the same lens and aperture can yield figures fifteen per cent apart depending on the convention, so an unqualified number cannot be checked.
  • Focusing at the hyperfocal distance when infinity is the subject — the horizon sits exactly at the tolerance limit there, so distant detail is at maximum permitted blur rather than genuinely sharp.
  • Stopping down past the diffraction limit to shorten it — beyond about f/11 on smaller formats the whole frame softens, so the extra depth is bought with sharpness you cannot recover.

Related Free Tools From Arb Digital

Check the sharp zone around any chosen focus point with the depth of field calculator, work out framing and coverage with the camera field of view calculator, and convert a lens between bodies with the crop factor calculator. Balance shutter, aperture and ISO with the exposure value calculator, work through imaging geometry with the thin lens equation calculator, plan output size with the DPI and PPI calculator, and estimate card space with the image file size calculator. Everything else is in the free online tools hub.

Frequently Asked Questions

What is the difference between this and a depth of field calculator?

A depth of field calculator takes a focus distance you have chosen and returns the near and far limits that result. This page returns the focus distance itself — specifically, the one that maximises total depth while keeping infinity acceptably sharp. Feed the hyperfocal distance into a depth of field calculator and it will report a near limit of half that distance and a far limit of infinity.

Which circle of confusion convention does this use?

By default the classic Zeiss criterion of sensor diagonal divided by 1500, which gives 0.0288mm on full frame. That is the same default the depth of field calculator uses, so the two pages agree. Stricter and more lenient divisors are selectable and the value actually used is printed in the results grid.

Why is the near limit always half the hyperfocal distance?

It falls out of the geometry. Substituting the hyperfocal distance into the near limit equation collapses it to H divided by two, with only a focal-length-sized correction left over. That is the defining property of the hyperfocal distance rather than a coincidence.

Should I focus at twice the hyperfocal distance instead?

Many photographers who print large do. Focusing exactly at the hyperfocal distance places infinity precisely at the tolerance limit with no margin, so doubling the distance pulls the horizon well inside the zone at the cost of roughly a third of the foreground depth. The page reports both near limits so the trade is visible.

Does the hyperfocal distance change with focal length on a zoom?

Substantially. It scales with the square of focal length, so a 24 to 70mm lens at f/8 has a hyperfocal distance that runs from around two and a half metres at the wide end to over twenty metres at the long end. Recalculate whenever you change framing.

Does stopping down further always help?

Arithmetically yes, physically no. The hyperfocal distance is inversely proportional to the f-number, but past roughly f/11 on smaller formats and f/16 on full frame, diffraction softens the whole frame including the plane you focused on. Beyond that the extra depth is a zone of uniformly reduced sharpness.

Is hyperfocal focusing useful on very wide lenses?

Less than people assume. At 14mm and f/11 on full frame the hyperfocal distance is around sixty centimetres, so almost any middle-distance focus point already includes infinity. The technique is most valuable roughly between 20mm and 50mm, where the distance is long enough to matter.

How do I actually set the distance on a modern lens?

Distance scales on autofocus zooms are coarse and often unmarked, so the reliable method is to magnify live view on an object at approximately the calculated distance, focus manually until it snaps, then check the nearest object that must be sharp before shooting.

Advertisement
Advertisement

Take it further