Hyperfocal Distance Calculator
- H = f + f^2 / (N x c) = 24 + 24^2 / (8.0 x 0.029) mm.
- = 2,506.8 mm = 2.51 m.
- Focus at 2.51 m and everything from about 1.25 m to infinity is acceptably sharp.
A hyperfocal distance calculator tells you the one focus distance that maximizes depth of field for a given lens, aperture, and sensor. Focus at that distance and everything from half that distance to infinity will be acceptably sharp. Enter your focal length, f-number, and circle of confusion, and the hyperfocal distance calculator returns the hyperfocal distance H along with the near limit, the point from which sharpness begins. For example, a 24 mm lens at f/8 on full frame gives H = 2.51 m, so focus at 2.51 m and sharpness runs from 1.25 m to infinity. A 50 mm lens at f/1.8 on full frame gives H = 47.94 m, showing how a fast fifty wide open has almost no depth of field to spare. On APS-C, 35 mm at f/5.6 gives H = 12.19 m, with a near limit of 6.09 m.
This calculator uses the standard formula H = f + f^2 / (N x c), where f is the focal length, N is the f-number, and c is the circle of confusion for the sensor. Full frame uses 0.029 mm, APS-C about 0.018-0.020 mm, and Micro Four Thirds 0.015 mm. This formula is the accepted standard because it directly links aperture and focal length to depth of field: stopping down shrinks H quickly since N is in the denominator, and wide-angle lenses have short hyperfocal distances, which is why landscape photographers live by this number. This page shows the formula, step-by-step workings, worked examples, and sources.
Worked examples
Landscape wide angle, f/8
Primary result: 2.51 m — focus at 2.51 m and sharpness runs from 1.26 m to infinity. (24 mm · 8 · Full frame (0.029 mm))
| Hyperfocal distance | 2.51 m |
| Near limit of sharpness | 1.25 m |
| Hyperfocal distance | 8.22 ft |
50 mm wide open, f/1.8
Primary result: 47.94 m — a fast fifty at f/1.8 pushes the hyperfocal point far down the street. (50 mm · 1.8 · Full frame (0.029 mm))
| Hyperfocal distance | 47.94 m |
| Near limit of sharpness | 23.97 m |
| Hyperfocal distance | 157.29 ft |
APS-C street setup, 35 mm f/5.6
Primary result: 12.19 m — focus there and sharpness runs from about 6.09 m to infinity. (35 mm · 5.6 · APS-C, Nikon/Sony (0.018 mm))
| Hyperfocal distance | 12.19 m |
| Near limit of sharpness | 6.09 m |
| Hyperfocal distance | 39.99 ft |
What hyperfocal distance buys you
What hyperfocal distance buys you is simple: it is the focus point that puts infinity exactly at the far limit of acceptable sharpness, doubling usable depth of field versus focusing at infinity. The hyperfocal distance is the focus distance that maximizes depth of field. Focus there and everything from half that distance to infinity is acceptably sharp. Focus at infinity instead and you throw away the entire near half of that range, because depth of field no longer extends past infinity — it simply ends there. A hyperfocal distance calculator does the trigonometry for you so you can set the lens and shoot.
The formula behind the result is H = f + f^2 / (N x c), where f is the focal length, N is the f-number, and c is the circle of confusion for the sensor. Typical circle of confusion values are 0.029 mm for full frame, about 0.018 to 0.020 mm for APS-C, and 0.015 mm for Micro Four Thirds. Because N sits in the denominator, stopping down shrinks H quickly. Wide-angle lenses have short hyperfocal distances, which is why landscape photographers live by this number.
Consider a 24 mm lens at f/8 on full frame: H = 2.51 m. Focus at 2.51 m and sharpness runs from 1.25 m to infinity. Focus at infinity and you lose everything between the camera and 2.51 m — the entire foreground band that makes wide landscapes feel deep. Same lens, same aperture, same sensor; only the focus point changes, and the usable depth of field doubles.
Swap to a fast fifty and the math tightens. A 50 mm lens at f/1.8 on full frame gives H = 47.94 m. A fast fifty wide open has almost no depth of field to spare, so hyperfocal technique mainly pays off with shorter focal lengths or stopped-down apertures. On APS-C, 35 mm at f/5.6 with c = 0.018 mm gives H = 12.19 m, with a near limit of 6.09 m — still useful, but the near limit is farther than many photographers expect, which is why checking the numbers beats guessing.
The formula and the circle of confusion
The hyperfocal distance formula is H = f + f² / (N × c). Break it down term by term and each piece has a clear meaning. The first term, f, is simply the focal length of your lens, measured in millimeters. The second term, f² / (N × c), does the heavy lifting: f² is the focal length squared, N is the f-number you have dialed in, and c is the circle of confusion for your sensor. The circle of confusion is the largest blur spot that still looks acceptably sharp to a typical viewer at normal viewing distance. A hyperfocal distance calculator plugs your inputs into this formula so you do not have to run the arithmetic yourself.
The circle of confusion depends on sensor size, and that relationship drives a key practical point. Full-frame sensors use a c value of 0.029 mm. APS-C sensors sit at about 0.018 to 0.020 mm. Micro Four Thirds uses 0.015 mm. Because c sits in the denominator of the formula, a smaller c produces a larger H for the same focal length, f-number, and framing. In other words, smaller sensors push the hyperfocal distance farther away for an equivalent shot, which is why sensor format matters when you are working out where to focus.
Stopping down shrinks H quickly because N is in the denominator of the fraction. Double your f-number and the second term drops dramatically, pulling the entire hyperfocal distance closer. Wide-angle lenses have short hyperfocal distances, which is why landscape photographers live by this number. A few worked examples make the behavior concrete. On full frame, 24 mm at f/8 gives H = 2.51 m; focus at 2.51 m and sharpness runs from 1.25 m to infinity. Step up to 50 mm at f/1.8 on the same sensor and H jumps to 47.94 m, confirming that a fast fifty wide open has almost no depth of field to spare. On APS-C with c = 0.018 mm, 35 mm at f/5.6 yields H = 12.19 m, with a near limit of 6.09 m.
| Sensor format | Circle of confusion (c) |
|---|---|
| Full frame | 0.029 mm |
| APS-C | 0.018-0.020 mm |
| Micro Four Thirds | 0.015 mm |
Worked examples
A hyperfocal distance calculator turns the formula into something you can use in the field without doing arithmetic in your head. The formula is H = f + f^2 / (N x c), where f is the focal length, N is the f-number, and c is the circle of confusion for your sensor. Full frame uses a circle of confusion of 0.029 mm, APS-C runs about 0.018 to 0.020 mm, and Micro Four Thirds uses 0.015 mm. Plug in your own lens, aperture, and sensor and the calculator returns a single number you can set on your lens.
Consider a classic landscape setup: 24 mm at f/8 on full frame. The calculator gives H = 2.51 m. Focus at 2.51 m and everything from half that distance to infinity is acceptably sharp, so your near limit is 1.25 m. That single setting keeps everything from about 1.25 m to the distant horizon acceptably sharp, which is why wide-angle lenses have short hyperfocal distances and why landscape photographers live by this number.
Now take a fast fifty wide open: 50 mm at f/1.8 on full frame. The calculator gives H = 47.94 m. Focus at 47.94 m and sharpness runs from 23.97 m to infinity. A fast fifty wide open has almost no depth of field to spare, so you need to be roughly 48 m from your subject for the hyperfocal trick to work at all. Stopping down shrinks H quickly because N is in the denominator, so f/4 or f/5.6 brings that number back to something practical.
On APS-C the circle of confusion is smaller, which pushes H out for the same lens and aperture. Take 35 mm at f/5.6 on APS-C with c = 0.018 mm. The calculator gives H = 12.19 m, with a near limit of 6.09 m. Focus at 12.19 m and everything from 6.09 m to infinity is acceptably sharp. Compare that with the 24 mm full-frame case above and you can see how sensor size, focal length, and aperture interact through the same formula.
Field technique
Once your hyperfocal distance calculator has given you a number, the next challenge is setting focus to match it in the field. Three reliable methods cover almost any situation. The simplest is the distance scale on your lens barrel: many prime lenses still carry markings in feet and meters, so you can turn the focus ring until the indicator lines up with the computed distance. This is fast and works well in poor light, though scale accuracy varies from lens to lens.
When the distance scale is absent or imprecise, live-view magnification offers a more exact alternative. Switch to live view, magnify the image at the point you want to use as your focus target, and focus manually until that point is sharp. The key is choosing a target that sits at the calculated hyperfocal distance. You can measure to an object at that range using a laser distance meter, a tape, or by pacing it off. Focus on that object, then recompose without touching the focus ring.
The worked examples from a hyperfocal distance calculator show why this technique matters and where it runs into limits. A 24 mm lens at f/8 on full frame gives H = 2.51 m, so focus at 2.51 m and sharpness runs from 1.25 m to infinity. That is a forgiving setup, easy to nail by scale or by eye. By contrast, a 50 mm lens at f/1.8 on full frame gives H = 47.94 m, a fast fifty wide open has almost no depth of field to spare, and setting focus by guesswork is almost hopeless. The 35 mm at f/5.6 on APS-C example, with c = 0.018 mm, gives H = 12.19 m and a near limit of 6.09 m, a more workable but still precise distance that rewards careful technique.
Stopping down shrinks H quickly because N is in the denominator, so it is tempting to use f/16 or f/22 to push the near limit closer and gain depth of field. Wide-angle lenses have short hyperfocal distances, which is why landscape photographers live by this number. But diffraction at very small apertures is the practical limit. Beyond about f/11 on full frame, or f/8 on smaller sensors, overall image sharpness begins to soften even as depth of field increases. The gain in depth of field comes at the cost of peak resolution, so the sharpest overall result is usually found at a moderate aperture where the near limit is just close enough for the scene.
FAQs
What is hyperfocal distance?
Hyperfocal distance is the focus distance at which the far edge of the depth of field reaches infinity. When you focus at this distance, everything from half that distance forward is acceptably sharp. For example, the hyperfocal distance is 2.51 m for a 24 mm lens at f/8 on full frame.
How do you calculate hyperfocal distance?
Use the formula H = f + f^2 / (N x c). For a 24 mm lens at f/8 with a circle of confusion of 0.029 mm, H = 24 + 576 / 0.232 = 2,506.8 mm, which is about 2.51 m. Here f is focal length, N is aperture, and c is the circle of confusion.
What is the near limit when focused at the hyperfocal distance?
The near limit is half the hyperfocal distance. In the 24 mm full frame example, the near limit is 1.25 m. In the APS-C example, the near limit is 6.09 m. Everything from this near limit to infinity will be acceptably sharp when the lens is focused at the hyperfocal distance.
Why does sensor size matter?
Sensor size matters because the circle of confusion is smaller for smaller sensors. For example, it is 0.018 mm for APS-C versus 0.029 mm for full frame. A smaller circle of confusion lengthens the hyperfocal distance for the same lens and aperture, meaning you must focus farther away to reach infinity sharpness.
Should I always focus at the hyperfocal distance?
No. Focus at the hyperfocal distance only when you need foreground-to-infinity sharpness, such as in landscape photography. For portraits and isolating subjects, a wide aperture and subject focus are the point. Using hyperfocal distance in those situations would unnecessarily bring background elements into focus.
Does stopping down always help?
Stopping down helps up to a point. Smaller apertures shorten the hyperfocal distance, expanding depth of field. However, diffraction softens the whole frame beyond about f/11 to f/16 on high-resolution sensors. Beyond that range, the loss of sharpness from diffraction can outweigh the depth-of-field gains from stopping down further.