Hyperfocal Distance Calculator

Focal length, aperture and sensor CoC to maximum depth of field — solve any variable.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

The hyperfocal distance is the single most useful number in landscape photography: focus your lens there and you achieve the deepest possible sharpness — everything from roughly half that distance all the way out to infinity falls within the acceptable circle of confusion. This calculator solves the full formula for any of the four variables, and shows a complete depth-of-field table so you can see exactly how sharpness evolves at every focus distance.

The physics behind the formula

When a camera focuses at a finite distance, the image of every other distance forms a blur disc on the sensor rather than a perfect point. Sharpness is a matter of degree: a blur disc smaller than the circle of confusion (CoC) threshold looks sharp in the final print. The CoC threshold depends on sensor size and the intended output size; manufacturers conventionally use the sensor diagonal divided by 1500, giving approximately 0.030 mm for full-frame, 0.019–0.020 mm for APS-C and 0.015 mm for Micro Four Thirds.

The exact hyperfocal formula is:

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

where f is focal length in mm, N is the f-number and c is the CoC in mm. The trailing + f term is often dropped in simplified tables but matters for longer focal lengths. When the lens is focused at H, the near limit of acceptable sharpness is:

Dn = H / 2

The near limit when focused exactly at H is always H/2 (from the standard DoF formula Dn = H · d / (H + d) evaluated at focus distance d = H). The far limit is infinity by definition. This calculator always applies the exact forms.

Worked example

50 mm lens on full-frame (c = 0.030 mm) at f/11:

  1. f² = 50² = 2500 mm²
  2. N · c = 11 × 0.030 = 0.330 mm
  3. f² / (N·c) = 2500 / 0.330 = 7,576 mm
  4. H = 7,576 + 50 = 7,626 mm = 7.63 m
  5. Near limit = H / 2 = 7,626 / 2 = 3,813 mm = 3.81 m

So focus the 50 mm at 7.63 m and everything from 3.81 m to infinity is acceptably sharp. Compare: at f/8 the hyperfocal stretches to 10.5 m; at f/16 it shortens to 5.24 m.

Focal lengthf-numberSensorHyperfocalNear limit
24 mmf/8Full-frame2.43 m1.22 m
35 mmf/8Full-frame5.15 m2.57 m
50 mmf/11Full-frame7.63 m3.81 m
24 mmf/8APS-C3.79 m1.89 m
12 mmf/8MFT1.21 m0.60 m

Solve-for-any-variable mode

Switch the Solve for dropdown to rearrange the formula for any of the four variables:

  • Focal length: given a target H, aperture and CoC, solves the quadratic f² + N·c·f − N·c·H = 0
  • Aperture: given H, f and c, returns N = f² / (c · (H − f))
  • Circle of confusion: given H, f and N, returns c = f² / (N · (H − f))

This is useful for shot planning — for example, if you want everything sharp from 3 m to infinity with a 35 mm lens on full-frame, enter H = 6 m (twice the near limit), f = 35, c = 0.030 and solve for the required aperture.

All calculations are performed locally in your browser — no data ever leaves your device.

Ad placeholder (rectangle)