Hyperfocal Distance Calculator

Hyperfocal Distance Calculator

Growing AI Skill PRO

Enter Calculation

Formula

H=Focal Length2Aperture×CoC+Focal LengthH = \frac{\text{Focal Length}^{2}}{\text{Aperture} \times \text{CoC}} + \text{Focal Length}

Example

H=5028×0.03+50≈10,466.67H = \frac{50^{2}}{8 \times 0.03} + 50 \approx 10{,}466.67
Usage stats

Advertisement

Results

Hyperfocal Distance
10.47
meters
Hyperfocal distance (mm) 10,466.67 mm
Near focus limit 5.23 m

Report an error on this page

What Is Hyperfocal Distance?

The hyperfocal distance is the closest focusing distance at which a lens keeps objects from that distance all the way to infinity acceptably sharp. Focusing at the hyperfocal distance gives you the maximum possible depth of field for a given focal length and aperture, which is why landscape and architecture photographers rely on it constantly.

Diagram showing a camera focused at the hyperfocal distance with the in-focus zone extending from half that distance to infinity
Focusing at the hyperfocal distance keeps everything from half that distance out to infinity acceptably sharp.

How to Use This Calculator

Enter three values: your lens focal length in millimeters, your aperture as an f-number (e.g. 8 for f/8), and the circle of confusion in millimeters. The circle of confusion depends on your sensor size — common values are 0.03 mm for full-frame, 0.02 mm for APS-C, and 0.015 mm for Micro Four Thirds. The calculator returns the hyperfocal distance in meters and millimeters, plus the near focus limit.

The Formula Explained

The hyperfocal distance is computed as:

$$H = \frac{\text{Focal Length}^{2}}{\text{Aperture} \times \text{CoC}} + \text{Focal Length}$$

where f is focal length, N is the aperture f-number, and c is the circle of confusion. Larger focal lengths and wider apertures (smaller f-numbers) push the hyperfocal distance farther away, while stopping down brings it closer.

Advertisement
Labeled diagram of the hyperfocal distance formula variables: focal length, aperture, and circle of confusion
The hyperfocal distance depends on focal length (f), aperture (N), and circle of confusion (c).

Worked Example

For a 50 mm lens at f/8 on a full-frame camera (c = 0.03 mm):

$$H = \frac{50^{2}}{8 \times 0.03} + 50 = \frac{2500}{0.24} + 50 = 10416.67 + 50 = 10466.67 \text{ mm} \approx 10.47 \text{ m}$$ Focusing here keeps everything from about 5.23 m to infinity sharp.

Circle of Confusion by Sensor Format

The circle of confusion (CoC) is the largest blur spot that is still treated as a sharp point. The table lists commonly used conventional values. Enter the CoC in millimetres, in the same unit as the focal length.

Format Typical sensor size (mm) Diagonal (mm) Diagonal/1500 (mm) Common CoC (mm)
Full-frame 35 mm 36 × 24 43.3 0.029 0.030
APS-C (Nikon/Sony/Fuji) 23.5 × 15.6 28.2 0.019 0.020
APS-C (Canon) 22.3 × 14.9 26.8 0.018 0.019
Micro Four Thirds 17.3 × 13 21.6 0.014 0.015
1-inch type 13.2 × 8.8 15.9 0.011 0.011
Medium format 44 × 33 44 × 33 55.0 0.037 about 0.039

Common derivation: divide the sensor diagonal by a fixed number. A divisor of about 1500 gives the values above, and some tools round up or down. Another widely quoted rule is diagonal/1730 (often attributed to Zeiss). It gives a stricter value, about 0.025 mm for full-frame. Full-frame 0.030 mm corresponds to a divisor of about 1440.

These are conventions, not physical constants. They assume a particular print size (roughly an 8×10 inch print), a normal viewing distance of about 25 cm, and a visual acuity of about one arcminute. Sensor sizes also vary slightly between manufacturers. Changing the viewing assumptions changes the appropriate CoC, so treat the table as a starting point.

Advertisement

Interpreting Your Hyperfocal Result

The calculator uses \(H = \dfrac{f^{2}}{N \times c} + f\), where \(f\) is the focal length, \(N\) the f-number and \(c\) the circle of confusion. For example, 24 mm at f/8 with \(c = 0.030\) mm gives \(H = \dfrac{24^{2}}{8 \times 0.030} + 24 = 2400 + 24 = 2424\) mm, or about 2.4 m.

  • Near limit: if you focus at distance \(H\), everything from \(H/2\) to infinity is acceptably sharp. In the example, that is from about 1.2 m outward.
  • "Acceptable" is not absolute: only the focus plane is truly sharp. Sharpness falls off gradually, and "acceptable" means the blur stays within the chosen CoC.
  • Compared with focusing at infinity: focusing at \(H\) instead of infinity gives up a little sharpness at the far horizon. In return, the near limit moves much closer. Focusing at infinity wastes the depth of field that would fall beyond infinity.
  • Demanding output: pixel-peeping, high-resolution sensors and large prints viewed closely may call for a smaller CoC. A smaller CoC gives a larger \(H\) and a more distant near limit. Many photographers focus slightly beyond \(H\) for extra margin.
  • Diffraction: stopping down increases \(H\)'s depth of field but also adds diffraction blur. Softening often becomes noticeable beyond roughly f/11 to f/16, depending on sensor pixel size, so the sharpest overall aperture is often a compromise.
  • Theory versus practice: the result is a theoretical value. Real lenses differ, focus scales and distance marks on lenses are approximate, and focus-by-wire lenses may not be accurate at the extremes. Verify important shots by checking the image at magnification.

FAQ

What circle of confusion should I use? Use 0.03 mm for full-frame, 0.02 mm for APS-C, and 0.015 mm for Micro Four Thirds as good defaults.

Where should I focus? Set focus exactly at the hyperfocal distance; everything from half that distance to infinity will appear sharp.

Does aperture matter most? Both aperture and focal length strongly affect the result. Stopping down (higher f-number) and using shorter focal lengths reduce the hyperfocal distance and increase usable depth of field.

Last updated:

Most popular in Physics and Engineering

View all Physics and Engineering calculators