Audited ·Last updated ·7 citations·Tier 1·0 uses

Hyperfocal Distance Calculator

Free hyperfocal distance calculator. Enter sensor format, focal length and f-number to find where to focus for sharpness from half that distance to infinity.

Hyperfocal Distance Calculator

What do you want to work out?
Sensor format
Only used when the format above is set to Custom. Use the imaging-area width from your camera's specification sheet, not the sensor package size.
mm
Only used when the format above is set to Custom. A 1"-type compact or drone sensor is usually quoted as 13.2 × 8.8 mm — check your own specification sheet before relying on it.
mm
The focal length engraved on the lens, not the 35 mm equivalent. A 12 mm Micro Four Thirds lens is 12 mm here — the sensor selection already accounts for the format.
mm
Used when solving for the hyperfocal distance. Enter 11 for f/11, 5.6 for f/5.6. Use the aperture the exposure is actually made at.
f/
Used when solving for the f-number. The closest thing in the frame that must still look sharp — the nearest rock, the front of the flower bed, the edge of the foreground.
m
Sharpness standard
Hyperfocal distance
1.8394
H = f²/(N·c) + f. Focus here and the far limit of acceptable sharpness reaches infinity — the shortest focus distance for which that is true.
Near limit when focused at H
0.9197 m
Near limit if you focus at infinity
1.8154 m
f-number
f/11
Circle of confusion used
0.0288 mm
Entrance pupil diameter
2.1818 mm

Background.

The hyperfocal distance is the shortest distance you can focus at and still have the far limit of acceptable sharpness reach infinity. Focus there and everything from half that distance to the horizon falls inside your sharpness tolerance — the single most useful focusing shortcut in landscape, architecture and street photography. This calculator returns it from three things you already know: your sensor format, the focal length engraved on the lens, and the f-number you are shooting at.

It also answers the question the other way round, which is usually the one you actually have in the field. You are not normally choosing an aperture and then asking where to focus; you are looking at a rock two metres in front of you, deciding it has to be sharp, and asking how far you need to stop down. Switch the first dropdown to "f-number needed for a target near limit", type in that near distance, and the page inverts the identity for you. It works because focusing at the hyperfocal distance puts the near limit at exactly half of it, so a target near limit of 1.5 m simply means a hyperfocal distance of 3 m, and the f-number follows.

Every hyperfocal number depends on an assumption most calculators hide: the circle of confusion, the largest blur disc on the sensor that a viewer will accept as a point. It is a viewing-conditions decision, not a property of the lens. This page uses the convention published by Carl Zeiss in their technical article on depth of field and bokeh — the sensor diagonal divided by 1500, which is 0.0288 mm on full frame and matches the 0.03 mm figure the industry has used since the film era. A stricter option divides the diagonal by 3000, which the same paper calls the strictest sensible requirement, for when you will inspect the file at 100 % or print very large. Choosing it roughly doubles the hyperfocal distance. The value actually used is reported as an output so you can trace any disagreement with another calculator rather than guess at it.

The page also reports something most hyperfocal calculators leave out, and it is the number that justifies the whole technique: the near limit you would get by simply racking the lens to its infinity stop instead. That comes out at exactly H minus the focal length, which is about twice as far away as the hyperfocal near limit. In other words, hyperfocal focusing buys you a factor of two in usable foreground for no cost in aperture, shutter speed or ISO. If the two numbers look close together on your settings, the technique is not worth the fiddling; if they are far apart, it is.

There is a physical picture behind the algebra, and Zeiss's derivation makes it unusually clear. The entrance pupil of a lens has diameter f divided by the f-number. Light arriving from an infinitely distant point enters as a parallel bundle exactly that wide. The hyperfocal distance is simply the distance at which the acceptable object-side blur circle has grown to the same diameter as that entrance pupil — which is why the entrance pupil is reported here as an output too, and why the front edge of the sharp zone sits geometrically at the halfway point.

Below the widget you will find the exact equations with the focal-length term retained, a worked 24 mm f/11 example computed by hand at twenty significant digits, why the traditional infinity-focus habit costs you half your foreground, where the thin-lens model stops describing real internally-focusing lenses, and why stopping down past the aperture this page suggests will start to cost you sharpness to diffraction rather than gain it.

What is hyperfocal distance calculator?

The hyperfocal distance H is the nearest focus distance whose depth of field extends to infinity. It is set by three quantities: the focal length f, the f-number N, and the circle of confusion c — the largest blur diameter on the sensor that will still read as a point under stated viewing conditions. The relation is H = f²/(N·c) + f. Carl Zeiss's technical article on depth of field and bokeh derives it from first principles in three steps: the entrance pupil has diameter EP = f/N; a bundle of light from an infinitely distant point is parallel and therefore exactly EP wide; and the hyperfocal distance is the distance at which the acceptable object-side circle of confusion has grown to equal EP. Since object-side and image-side blur are related by the magnification M ≈ Dist/f, that gives Dist ≈ f²/(z'·k) in Zeiss's notation, where z' is the circle of confusion and k the f-number. The trailing + f in the version used here is the exact form and matters only at macro distances. Two consequences follow exactly, not approximately, from the standard near-limit expression Dn = s(H − f)/(H + s − 2f). Focus at s = H and the near limit becomes H(H − f)/(2(H − f)) = H/2 — Zeiss's own statement that "the front end of the depth of field is located at half of the hyperfocal distance". Focus at infinity instead and the near limit becomes H − f. Everything on this page is a thin-lens, symmetric-pupil model with distances measured from the front principal plane, and it describes defocus blur only: it says nothing about diffraction, field curvature or focus breathing, all of which can make the real result worse than the calculated one.

How to use this calculator.

  1. Choose the question. Use "hyperfocal distance for a given f-number" when you have already picked an aperture. Use "f-number needed for a target near limit" when the foreground dictates the shot — that is the field workflow.
  2. Pick your sensor format. This sets the circle of confusion and is the single most consequential choice on the page. If your camera is not listed, choose Custom and enter the imaging-area width and height in millimetres from your camera's specification sheet.
  3. Enter the focal length engraved on the lens, in millimetres, not the 35 mm equivalent. The sensor selection already handles the format difference, so entering an equivalent would apply the crop factor twice.
  4. In hyperfocal-distance mode, enter the working f-number: 11 for f/11, 5.6 for f/5.6. In target-near-limit mode, enter instead how close the nearest object that must be sharp actually is, in metres — measure or pace it rather than guessing.
  5. Choose the sharpness standard. Use Standard for prints and normal screen viewing; use Critical if you will pixel-peep at 100 % or print beyond about A2. Critical roughly doubles the hyperfocal distance, so it is a meaningful decision, not a formality.
  6. Focus at the hyperfocal distance the page returns. Since almost no modern lens has a usable distance scale, the practical method is to autofocus on something you can range at about that distance — a person, a fence post, a stretch of path — then switch to manual so the camera cannot refocus.
  7. Check the near limit. Everything from that distance to the horizon is inside tolerance. Compare it with the "near limit if you focus at infinity" figure to see exactly what the technique is buying you on these settings.
  8. Round the f-number up, not down, when the page solves for it. Lenses click at whole or third stops, and the calculated value is a minimum. But do not chase the last stop: past roughly f/11 on full frame, f/8 on APS-C and f/5.6 on Micro Four Thirds, diffraction starts to soften the whole frame faster than the extra depth of field helps.

The formula.

H = f² ⁄ (N · c) + f · Dn(H) = H ⁄ 2 · Dn(∞) = H − f · N = f² ⁄ ((H − f) · c)

Work in millimetres throughout, then convert once at the end.

First the circle of confusion:

c = sensor diagonal / 1500 (standard, print viewing) c = sensor diagonal / 3000 (critical, 100 % inspection)

Full frame's diagonal is √(36² + 24²) = √1872 = 43.266615 mm, so c = 0.0288444 mm standard and 0.0144222 mm critical. Carl Zeiss's own depth of field charts are labelled "Format 24 x 36, z = 0.029 mm, D/1500", which is the same number, and the accompanying text states that 1/1500 of the diagonal "corresponds approximately to the often used 0.03 mm circle of confusion for the 35 mm format".

Then the hyperfocal distance:

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

The derivation is physical, not algebraic. The entrance pupil has diameter EP = f/N. A bundle of rays from an infinitely distant point arrives parallel, so its diameter at the lens is exactly EP. Zeiss: "The hyperfocal distance is therefore the distance where the acceptable object-side circle of confusion diameter is as large as the entrance pupil." Object-side blur Z and image-side blur c are linked by the magnification M ≈ Dist/f, so setting Z = EP gives Dist ≈ f²/(c·N). The + f term is the exact correction and is negligible beyond a few hundred focal lengths.

The two companion results are exact consequences of the standard near-limit expression Dn = s(H − f)/(H + s − 2f):

focus at s = H → Dn = H(H − f) / (2H − 2f) = H/2 focus at s = ∞ → Dn = H − f

The first is the classic result. The second is the one worth internalising: racking to infinity is not a small compromise, it costs you a factor of two in foreground, every time. On a 24 mm f/11 full-frame shot that is the difference between sharp from 0.92 m and sharp from 1.82 m.

Inverting for the f-number is then trivial. A target near limit x implies H = 2x, and

N = f² / ((H − f) · c)

Note what this equation does and does not promise. It gives the aperture at which x is exactly on the edge of tolerance, so it is a minimum, not a recommendation — round up to the next marked stop. It also assumes you will actually focus at H; focusing anywhere else invalidates it.

The scaling laws follow directly. H goes as f², so doubling the focal length quadruples the hyperfocal distance — this is why wide lenses make hyperfocal focusing practical and long lenses make it useless. H goes as 1/N, so every stop down halves it. And H goes as 1/c, so a format with half the diagonal has half the hyperfocal distance at the same focal length; combine that with the shorter lens a small format needs for the same framing and the small-format hyperfocal distance collapses, which is why phone cameras behave as though everything past a metre is in focus.

What the model leaves out: diffraction, which past roughly f/11 on full frame softens the entire frame including the plane of focus; field curvature, which means the sharp zone is not a flat slab; pupil magnification, which shifts the effective aperture on strongly asymmetric designs; and focus breathing on internally-focusing lenses, whose focal length shortens as they focus closer. A hyperfocal figure is a planning number with a tolerance, not a guarantee — which is why many landscape photographers deliberately focus slightly beyond H, trading a little foreground for certainty at infinity.

A worked example.

Example

A full-frame camera with a 24 mm lens at f/11, using the standard diagonal ÷ 1500 criterion — the classic landscape setup. The full-frame diagonal is √(36² + 24²) = √1872 = 43.266615 mm, so the circle of confusion is 43.266615 / 1500 = 0.0288444 mm. The hyperfocal distance is H = 24² / (11 × 0.0288444) + 24 = 576 / 0.3172885 + 24 = 1815.38 + 24 = 1839.38 mm, or 1.84 m. Focus there and the near limit sits at exactly half that: 0.92 m. Everything from 0.92 m to the horizon is inside the blur tolerance. The entrance pupil is f/N = 24 / 11 = 2.18 mm, and Zeiss's derivation says the hyperfocal distance is precisely where the acceptable object-side blur circle grows to that same 2.18 mm. Now the comparison that makes the case for the technique: rack the same lens to its infinity stop instead and the near limit becomes H − f = 1815.38 mm, or 1.82 m. Focusing at 1.84 m rather than at infinity moves the near edge of sharpness from 1.82 m to 0.92 m — you gain a metre of usable foreground for nothing. Run the page the other way to see the field workflow. Switch to "f-number needed for a target near limit" and say the nearest rock is 1.50 m away. That fixes H = 2 × 1.50 = 3.00 m, and N = 576 / ((3000 − 24) × 0.0288444) = 576 / 85.84 = 6.71. So f/6.7 is the theoretical minimum; you would set f/8, focus at 3 m, and have margin in hand. And if you switched the criterion to Critical because this frame is destined for a large print, the circle of confusion halves to 0.0144 mm and the same 24 mm f/11 shot has a hyperfocal distance of 3.65 m with a near limit of 1.83 m — the same aperture, twice the distance, half the foreground. That single dropdown is why two hyperfocal calculators can disagree by a factor of two and both be right.

aperture11
sensor FormatfullFrame
sharpness Standardstandard
custom Sensor Height24
target Near Limit1.5
solve Fordistance
custom Sensor Width36
focal Length24

Frequently asked questions.

What exactly is the hyperfocal distance?
It is the shortest distance you can focus at while the far limit of acceptable sharpness still reaches infinity. Focus any closer and distant detail falls out of tolerance; focus any further and you gain nothing at the far end while pushing the near limit away from you. The value is H = f²/(N·c) + f, where f is focal length, N is the f-number and c is the circle of confusion. Zeiss's physical description is the clearest one: light from an infinitely distant point arrives as a parallel bundle exactly as wide as the entrance pupil, f/N, so the hyperfocal distance is simply the distance at which the acceptable object-side blur circle has grown to that same diameter. Because the acceptable blur circle grows linearly with distance while the entrance pupil is fixed, the front edge of the sharp zone lands geometrically at the halfway point — hence the near limit of exactly H/2.
Why does the near limit come out at exactly half the hyperfocal distance?
It falls out of the general near-limit expression Dn = s(H − f)/(H + s − 2f) when you set the focus distance s equal to H. The numerator becomes H(H − f) and the denominator becomes H + H − 2f = 2(H − f), so the (H − f) factors cancel and Dn = H/2 exactly — no approximation and no dependence on focal length or aperture beyond what is already inside H. Zeiss reach the same conclusion geometrically: the cone of light whose rear extension is as wide as the entrance pupil at the hyperfocal plane has its apex exactly midway between the entrance pupil and that plane. This is why the rule of thumb "focus at H, sharp from H/2 to infinity" is not folklore but an identity.
Is it not easier to just focus at infinity?
Easier, but it costs you half your foreground and this page shows you exactly how much. Focusing at infinity gives a near limit of H − f, while focusing at H gives H/2. Since f is tiny compared with H at normal focal lengths, that is very close to a factor of two. On the default settings — full frame, 24 mm, f/11 — infinity focus is sharp from 1.82 m while hyperfocal focus is sharp from 0.92 m. If your composition has nothing closer than 2 m, the distinction is academic and infinity focus is the more robust choice. If you have a rock, a flower or a fence in the near foreground, hyperfocal focusing is what makes the shot possible without stopping down two more stops into diffraction.
What circle of confusion does this calculator use, and why does it change the answer so much?
Standard mode uses the sensor diagonal divided by 1500: 0.0288444 mm on full frame, 0.0188413 mm on Nikon DX, 0.0178429 mm on Canon APS-C, 0.0144267 mm on Micro Four Thirds and 0.0365200 mm on 44 × 33 medium format. Critical mode uses the diagonal divided by 3000. The 1500 divisor comes from Carl Zeiss's article on depth of field and bokeh, which states that a circle of confusion of 1/1500 of the diagonal, viewed at a visual angle of two arc minutes, still provides satisfying sharpness and corresponds approximately to the 0.03 mm figure long used for 35 mm. It matters because H is inversely proportional to c: halve the circle of confusion and you roughly double the hyperfocal distance. Two calculators using 0.025 mm and 0.035 mm for full frame will disagree by 40 % while both being internally correct, which is why this page reports the value it used.
Should I enter my real focal length or the 35 mm equivalent?
The real one, engraved on the lens barrel. If you shoot a 12 mm lens on Micro Four Thirds, enter 12 and select Micro Four Thirds. Entering 24 (its 35 mm equivalent) with the Micro Four Thirds sensor would apply the crop factor twice and roughly quarter the hyperfocal distance. The equivalence is a framing convenience, not an optical property: a 12 mm lens refracts light like a 12 mm lens whatever sits behind it. The sensor dropdown already handles the format, through the circle of confusion. If you think in equivalents, convert back to a real focal length with the crop factor calculator first.
How do I actually focus at 1.84 m when my lens has no distance scale?
Three practical methods, in order of reliability. First, autofocus on something you can range at roughly the right distance and then switch the lens or the camera to manual so it cannot refocus — a companion standing on the path, a fence post, a specific rock. Second, use live view magnified to 100 % and rack focus manually until the object at that distance snaps in; on mirrorless bodies this is fast and exact. Third, if your lens does have a scale, remember that the marks are usually measured from the sensor plane (the ⊖ symbol on the top plate) while the equations here measure from the front principal plane; at landscape distances the difference is negligible. Whatever you do, do not trust a lens's infinity hard stop — many modern lenses focus past infinity to allow for thermal expansion, so the stop is not actually infinity.
Why does the calculator sometimes tell me f/6.7 when my lens only has f/5.6 and f/8?
Because the inversion gives the exact aperture at which your target near limit sits precisely on the edge of tolerance, and lenses click at whole or third stops. Always round up to the next smaller aperture — f/8 rather than f/5.6 in that example — because the calculated value is a minimum. Rounding down leaves your target slightly outside tolerance. That said, do not over-insure: each extra stop halves the hyperfocal distance but also grows the diffraction spot, and past roughly f/11 on full frame, f/8 on APS-C and f/5.6 on Micro Four Thirds the diffraction blur approaches the circle of confusion, so the whole frame softens even as the nominal depth of field grows. If you need more depth than a moderate aperture provides, focus stacking beats f/22.
Why is the hyperfocal distance so much shorter on a small sensor?
Two effects, both pointing the same way once you hold framing constant. Directly, H is inversely proportional to c, and a smaller sensor gets a proportionally smaller circle of confusion, which on its own would make H longer. But to frame the same scene the small sensor needs a shorter lens, and H goes as f², so halving the focal length divides H by four while only doubling it through c — a net halving per stop of crop factor. Concretely, full frame at 24 mm f/11 gives H = 1.84 m; Micro Four Thirds at 12 mm f/11, which frames identically, gives about 0.92 m. This is why compact and phone cameras appear to have everything in focus past arm's length, and why hyperfocal focusing is a large-format and full-frame preoccupation rather than a small-sensor one.
Does the hyperfocal distance depend on where the focus distance is measured from?
Slightly, and it is worth knowing the difference even though it rarely matters. The equations here measure from the front principal plane of the lens, an abstract plane inside the optical system whose position manufacturers almost never publish. Camera focus scales are marked from the sensor plane instead, and the offset is the internal length of the lens plus the flange distance — a few centimetres on a typical lens. At a hyperfocal distance of 1.84 m that offset is a couple of percent, comfortably inside the tolerance implied by the circle of confusion. At macro distances it would dominate, but hyperfocal focusing is not a macro technique. The model also assumes a symmetric pupil, which is a good approximation for normal lenses and a poorer one for strong retrofocus wide angles.
Why do hyperfocal charts printed on old lenses disagree with this calculator?
Because the depth of field scales engraved on manual-focus lenses were computed for the viewing standards and enlargement sizes of their era, usually with a circle of confusion of 0.03 mm or looser — 1950s tables for 35 mm frequently used 0.05 mm, which is 1/865 of the diagonal, as Zeiss note. Those marks assume a modest print viewed from a comfortable distance and were never intended for a 45-megapixel file examined at 100 %. Set the sharpness standard here to Critical and you will get numbers roughly twice as conservative as the engraved scale, which is much closer to what a modern high-resolution sensor demands. The equation has not changed since the 1930s; only the tolerance has.

References& sources.

  1. [1]Nasse, H. H. (2010). 'Depth of Field and Bokeh.' Carl Zeiss Camera Lens Division. Derives the hyperfocal relation used here: EP = f'/k, 'The hyperfocal distance is therefore the distance where the acceptable object-side circle of confusion diameter is as large as the entrance pupil', M ≈ Dist/f', hence Dist_hyperfocal ≈ f'²/(z'·k); and states 'Looking at the cones of light we can easily see that the front end of the depth of field is located at half of the hyperfocal distance.' The same paper gives the circle-of-confusion convention: '1/3000 of the picture diagonal is the strictest sensible requirement... A circle of confusion twice as large, 1/1500 of the diagonal, viewed at a visual angle of 2 arc minutes, still provides a satisfying sharpness... this requirement corresponds approximately to the often used 0.03 mm circle of confusion for the 35 mm format.'
  2. [2]Canon Inc. EOS R6 Product Manual, Specifications — Image Sensor. Gives the full-frame sensor size as 'Approx. 35.9×23.9 mm', the measured dimension behind the nominal 36 × 24 mm 135-format frame used for the full-frame preset.
  3. [3]Nikon Corporation. D7500 Online Manual, Technical Notes — Specifications. Gives the Nikon DX imaging area as '23.5 × 15.7 mm CMOS sensor' and states that DX lenses are 'equivalent to approx. 1.5×' the 35 mm-format angle of view, the cross-check used to validate the diagonal-derived circle of confusion for that preset.
  4. [4]Canon Inc. EOS R7 Product Manual, Specifications. Gives the Canon APS-C sensor size as 'Approx. 22.3 × 14.8 mm' and the angle-of-view conversion as 'Approx. 1.6 times the focal length indicated on the lens'.
  5. [5]OM Digital Solutions. OM SYSTEM OM-1 Mark II Specifications, Image Sensor. Lists 'Aspect ratio & area 4:3 / 17.3 x 13.0 mm' for the Four Thirds imaging area used by the Micro Four Thirds preset.
  6. [6]FUJIFILM Corporation. GFX100 II Specifications. Lists the image sensor as '43.8mm×32.9mm', the dimensions used for the medium-format preset.
  7. [7]Ray, S. F. (2002). Applied Photographic Optics: Lenses and Optical Systems for Photography, Film, Video, Electronic and Digital Imaging, 3rd ed. Focal Press. Standard reference for the exact near-limit expression Dn = s(H − f)/(H + s − 2f), from which both Dn(H) = H/2 and Dn(∞) = H − f are derived, and for the pupil-magnification correction this thin-lens model omits.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 590 calculators remain free
  • No billing is enabled
Coming soon