Crafts, Textiles, 3D Printing & Photography Photography, Optics & Printing Circle of confusion = sensor diagonal ÷ 1500 (classic convention)

Hyperfocal Distance Calculator

Focus a lens at its hyperfocal distance and everything from half that distance out to infinity records as acceptably sharp. It is the largest depth of field any given focal length and aperture can deliver, which is why it is the standard technique for landscape, architecture and interiors. This calculator gives you the hyperfocal distance in metres and feet, the near sharp limit that comes with it, the circle of confusion your sensor format implies, and — working the formula backwards — the aperture you need if a specific foreground has to be sharp.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Focal lengthThe actual focal length engraved on the lens, not a full-frame equivalent — the equivalence is already handled by the sensor format below.24 mm
Aperture (f-number)The f-number you will actually shoot at. Intermediate values such as f/9 or f/7.1 are fine.8 f/
Sensor or film formatSets the sensor diagonal, from which the circle of confusion is derived. Larger formats tolerate a larger blur circle for the same print.Full frame / 35 mm (36 × 24 mm)
Custom sensor diagonalSquare root of (width² + height²) in millimetres for your format. A 6 × 7 cm roll-film frame is about 92 mm.43.2666 mm
Sharpness standardThe divisor that turns the sensor diagonal into a circle of confusion. Use the critical setting for large prints or heavy cropping.Standard — diagonal ÷ 1500
Nearest object that must be sharpThe distance from the sensor to your closest foreground element. The calculator reports the aperture that brings the near limit back to it.1.5 m

It returns

  • Hyperfocal distance — Focus here and everything from half this distance to infinity is acceptably sharp.
  • Hyperfocal distance in feet
  • Near sharp limit
  • Near sharp limit in feet
  • Aperture needed for your foreground — Set this f-number, then focus at twice your foreground distance.
  • Circle of confusion used

The formula

H=f2Nc+f
Dnear=H2
N=f2c(2df)
c=d1500

In plain text: H = f² / (N · c) + f

  • HHyperfocal distance, measured from the sensor plane (mm)
  • fFocal length of the lens (mm)
  • Nf-number the lens is set to (dimensionless)
  • cCircle of confusion — the largest blur spot still read as a point (mm)

Every term is in millimetres, so divide the result by 1,000 for metres. The +f term only matters for macro and very short subject distances, but it costs nothing to keep.

Updated Category Photography, Optics & Printing Verified against published test cases Reading time 12 min

What the hyperfocal distance actually is

A lens focuses sharply at exactly one distance. Everything else is blurred, and depth of field is simply the zone in which that blur is small enough that a viewer reads it as sharp. The hyperfocal distance is the focus setting at which the far edge of that zone lands precisely at infinity — the closest you can focus while still holding the horizon.

The consequence is the useful part. Focus there and the near edge of the sharp zone sits at exactly half the hyperfocal distance. Focus any closer and you lose infinity; focus any further and you throw away foreground you could have had. It is, by construction, the deepest depth of field available at that focal length and aperture. That is why it is the default technique for landscape, architecture, real estate interiors and street photography with a pre-set lens.

The exact half relationship is not an approximation. Take the standard near-limit expression for a subject at distance s, which is s(H − f) ÷ (H + s − 2f), and substitute s = H: the numerator becomes H(H − f) and the denominator 2(H − f), leaving H ÷ 2 exactly. That is worth knowing because it makes field use trivial — you only ever have to halve one number.

The word doing the heavy lifting is acceptably. Sharpness here is a judgement about viewing, not a property of the optics, and it is encoded in a single number called the circle of confusion.

The formula, and the number everyone argues about

H = f² ÷ (N · c) + f. Each term behaves the way intuition suggests once you see it. Focal length enters squared, so doubling it quadruples the hyperfocal distance — a 50 mm lens needs four times the focusing distance of a 25 mm to hold infinity at the same aperture. The f-number enters in the denominator, so stopping down two stops from f/4 to f/8 halves the f²/(N·c) term, and with it the near limit. The trailing + f is a correction of a few tens of millimetres that only matters in macro work, but there is no reason to drop it — it is also why the halving is not quite exact. A 24 mm lens at c = 0.03 mm gives 576 ÷ (4 × 0.03) + 24 = 4,824 mm at f/4 and 576 ÷ (8 × 0.03) + 24 = 2,424 mm at f/8: the 4,800 mm term halves to 2,400 mm, while the 24 mm is added to both, so the total falls by slightly less than half.

The circle of confusion is the contested term. It is the diameter of the largest blur spot on the sensor that a viewer will still perceive as a point. It is not a property of the lens or the sensor; it is a property of how the picture will be looked at — print size, viewing distance and the observer's eyesight. Because a print is an enlargement of the sensor, a smaller sensor must be enlarged more, so its tolerable blur spot is proportionally smaller. That is why the value scales with the sensor diagonal.

The classic convention divides the diagonal by 1500, which corresponds roughly to a print viewed at a distance about equal to its diagonal by an observer resolving about one arcminute. For 35 mm film that gives 43.27 ÷ 1500 = 0.0288 mm, which is why you see 0.03 mm quoted everywhere. Divide by 1730 instead — the value Zeiss uses in its depth-of-field literature — and you get a stricter standard suited to large prints and heavy cropping. Divide by 1300 and you get a relaxed one for screen viewing.

None of these is right in an absolute sense. What matters is that you know which one you used, because a hyperfocal distance calculated with a relaxed standard and then examined at 100% on a monitor will look soft at the near limit. If you routinely pixel-peep, pick the critical setting and accept the longer focusing distances it produces.

Worked example: 24 mm at f/11 on full frame

You are shooting a coastal landscape with a 24 mm lens at f/11 on a full-frame body, using the standard sharpness convention.

  1. Circle of confusion. The 36 × 24 mm sensor has a diagonal of √(36² + 24²) = √1872 = 43.27 mm. Divide by 1500: c = 0.02884 mm.
  2. Focal length squared. 24² = 576 mm².
  3. Denominator. N · c = 11 × 0.02884 = 0.31729.
  4. Divide. 576 ÷ 0.31729 = 1,815.4 mm.
  5. Add the focal length. 1,815.4 + 24 = 1,839.4 mm, which is 1.84 m, or 6 ft 0 in.
  6. Near limit. 1.84 ÷ 2 = 0.92 m, about 3 ft.

So: set the lens to f/11, focus on something 1.8 m away, and everything from roughly 0.9 m to the horizon records as sharp by that standard. If your foreground rock is at 0.6 m instead, run the reverse formula: N = 576 ÷ (0.02884 × (2 × 600 − 24)) = 576 ÷ 33.93 = f/17. At that point you are close enough to diffraction on a high-resolution full-frame sensor that focus stacking is usually the better answer — the depth of field calculator lets you check the near and far limits for a stack.

How to use the number in the field

Focus by distance, not by hoping. Very few modern lenses have usable distance scales, and their focus-by-wire rings do not hold a setting reliably. The practical method is to autofocus on something you can identify at roughly the right distance — a rock, a fence post, a person you have paced out — then switch to manual so nothing moves. Pacing is accurate enough: hyperfocal focus is forgiving, and being 20% long costs you a little foreground rather than the horizon.

Err on the far side. If you are unsure, focus slightly beyond the hyperfocal distance rather than slightly inside it. Focusing too close is the expensive error, because it pulls the far limit in from infinity and softens the horizon, which is usually the most conspicuous part of a landscape. Focusing a little too far only nudges the near limit outward.

Do not stop down reflexively. The chart on this page shows the hyperfocal distance falling as the f-number rises, but the sharpness you gain at the near limit is traded against diffraction across the entire frame. The Airy disc diameter is 2.44 λ N; at 550 nm that is 0.0134 mm at f/10 and 0.0295 mm at f/22 — which at f/22 already exceeds the full-frame circle of confusion. The calculator flags the point where the two cross for your settings.

Know when hyperfocal is the wrong tool. If nothing is close, focusing at infinity gives a sharper horizon than hyperfocal focusing does, and there is no reason to compromise it. If something is very close and the horizon also matters, no single focus distance serves both and you should stack. Hyperfocal focusing occupies the middle ground, and that middle ground covers most wide-angle landscape work.

Hyperfocal distance in metres, full frame, c = 0.0288 mm

Computed from H = f²/(N·c) + f with the 36 × 24 mm diagonal divided by 1500. Halve each figure for the near sharp limit.
Focal lengthf/4f/8f/11f/16
16 mm2.23 m1.13 m0.82 m0.57 m
24 mm5.02 m2.52 m1.84 m1.27 m
35 mm10.65 m5.34 m3.90 m2.69 m
50 mm21.72 m10.88 m7.93 m5.47 m
85 mm62.71 m31.40 m22.86 m15.74 m

On an APS-C body the circle of confusion is smaller, so the same lens at the same aperture has a longer hyperfocal distance than these figures. Change the format above and read the table the calculator generates for your camera.

Mistakes that undo the technique

  • Entering a full-frame equivalent focal length. The formula wants the real focal length engraved on the lens. The format is accounted for separately, through the circle of confusion. Enter 24 mm for a 24 mm lens on APS-C, not 36 mm.
  • Assuming the near limit is a third of the way in. The "focus a third into the scene" rule is a corruption of the fact that the near limit is half the focus distance. The two are not the same claim, and the one-third version has no derivation behind it.
  • Trusting the depth-of-field scale on an old lens. Those scales were engraved for the print sizes and viewing habits of their era, generally a relaxed standard. They will look optimistic on a 45-megapixel sensor.
  • Using one circle of confusion for every output. A frame destined for a metre-wide print and one destined for a phone screen do not deserve the same standard. Change the divisor rather than the technique.
  • Forgetting that focus breathing changes the focal length. Many zooms and some primes shorten their true focal length as they focus closer. At hyperfocal distances the effect is small; in macro it is not.
  • Stopping down past the diffraction crossover to gain a few centimetres of foreground. Beyond that point you soften everything to sharpen one thing. Stack instead.

Hyperfocal distance is measured from the sensor

The distance in the formula runs from the film or sensor plane — the marked φ symbol on most camera bodies — not from the front element. On a wide-angle lens at a hyperfocal distance of several metres the difference is immaterial. On a long lens focused close, or in macro work, it is not, and it is the same convention your camera's own distance readout uses.

Related tools and where each one belongs

The hyperfocal distance is one point on the depth-of-field curve, the point where the far limit reaches infinity. For any other focus distance you need the general near and far limits, which is what the depth of field calculator gives. If you shoot more than one format and want to compare framing rather than sharpness, the crop factor and equivalent focal length calculator converts between them, and the field of view calculator turns focal length into an angle and a subject width at a given distance.

Landscape work rarely stops at focus. Long exposures for water and cloud need the ND filter exposure calculator; night skies have their own constraint on shutter speed, handled by the 500 rule calculator. And when the file finally becomes a print, the circle of confusion you chose here should match the output you are actually making — the print size and DPI calculator tells you the resolution that print will really have.

One historical note worth keeping in mind: the hyperfocal technique was designed around film, contact prints and a viewer at arm's length. Sensors now out-resolve those assumptions comfortably, so the classic 1/1500 standard describes a good print rather than a good 100% view on screen. If your work is judged at pixel level, use the critical divisor and treat the resulting distances as the honest ones.

Key terms

Circle of confusion
The diameter of the largest blur spot on the sensor that a viewer still perceives as a point. Derived from print size and viewing distance, then scaled by the sensor diagonal.
Near limit
The closest distance rendered acceptably sharp for a given focus setting. When focused at the hyperfocal distance it is exactly half of it.
Airy disc
The diffraction pattern a point source forms through a circular aperture. Its diameter is 2.44 λN, so it grows as you stop down and eventually sets the limit on detail.
Focus stacking
Shooting several frames at different focus distances and blending the sharp regions. The standard answer when one aperture cannot cover the depth you need.

Frequently asked questions

What is the hyperfocal distance for a 24 mm lens at f/8?

About 2.5 m on a full-frame camera using the standard sharpness convention, giving a near limit of about 1.26 m. The arithmetic is 24² ÷ (8 × 0.0288) + 24 = 2,520 mm. On an APS-C body the same lens and aperture give roughly 3.8 m, because the smaller sensor implies a smaller circle of confusion. Change the format above to see your camera's figure.

Should I focus at the hyperfocal distance or at infinity?

Focus at infinity when nothing important is close, because the horizon is then as sharp as the lens can render it. Use hyperfocal focusing when you have a foreground that must also hold up — it is the only single focus setting that keeps infinity acceptably sharp while pulling the near limit as close as possible. When the foreground is closer than half the hyperfocal distance, neither works and you should focus stack.

Is the "focus one third into the scene" rule the same thing?

No, and it has no derivation behind it. What is true is that when you focus at the hyperfocal distance, the sharp zone extends from half that distance to infinity, so the focus point sits one third of the way through the finite part of the zone. That is a description of the result, not a method — applied as a focusing rule to arbitrary scenes it gives arbitrary answers.

Why does a crop sensor have a longer hyperfocal distance?

Because its circle of confusion is smaller. A smaller sensor must be enlarged more to reach the same print size, so a blur spot that was invisible on full frame becomes visible. Dividing a smaller diagonal by 1500 gives a smaller c, and since c sits in the denominator of the formula, H rises. With the same lens and f-number, an APS-C body needs roughly 1.5 times the focusing distance of full frame.

What circle of confusion should I use?

The diagonal divided by 1500 is the standard convention and suits normal print viewing — 0.029 mm on full frame, 0.019 mm on APS-C, 0.014 mm on Micro Four Thirds. Use the 1730 divisor if you make large prints or crop heavily, since it demands a smaller blur spot and therefore longer focusing distances. The choice is about how the picture will be viewed, not about the camera.

Does stopping down further always help?

It always shortens the hyperfocal distance, but past a point it costs more in diffraction than it returns in depth of field. The Airy disc diameter is 2.44 × wavelength × f-number, which at 550 nm reaches about 0.0295 mm at f/22 — already larger than the full-frame circle of confusion. The calculator tells you where that crossover falls for your settings, and beyond it stacking is the better route.

Is the distance measured from the sensor or the front of the lens?

From the sensor plane, marked on most camera bodies with a circle-and-line symbol. This is the same reference your camera's distance display and any lens distance scale use. For wide-angle landscape work at several metres the difference is irrelevant; for close focusing and macro it is not.

How do I set the hyperfocal distance on a lens with no distance scale?

Autofocus on an object you can identify at approximately the right distance, then switch the lens to manual so nothing shifts when you recompose. Pacing out the distance is accurate enough — a stride is close to 0.75 m for most people. If you must guess, guess long: focusing slightly beyond the hyperfocal distance costs you a little foreground, while focusing short softens the horizon.

References

  • Applied Photographic Optics, 3rd ed. — Focal Press (Sidney F. Ray)
  • The Manual of Photography, 10th ed. — Focal Press (Allen and Triantaphillidou, eds.)
  • Depth of Field and Bokeh (technical article) — Carl Zeiss AG (H. H. Nasse)