Camera Math Calculators

Free Calculator · Any Sensor Format · Live Results

Hyperfocal distance — focus here for front-to-infinity sharpness

The hyperfocal distance is the closest point you can focus your lens so that depth of field extends from half that distance all the way to infinity. It is the landscape photographer's most powerful tool: focus at H and everything from H/2 to the horizon appears acceptably sharp in a single shot. Enter your focal length, aperture, and sensor format and the calculator returns the exact hyperfocal distance and near sharp limit using the standard optical formula, with every constant shown and labeled.

DSLR & mirrorless · 5 sensor formats · All formulas shown
Who this is for Landscape, architecture, and street photographers who want front-to-infinity sharpness without guessing. The calculator works for any still-image camera system. It computes the theoretical hyperfocal distance; real-world results also depend on diffraction (which limits useful apertures to roughly f/5.6–f/16 on full frame) and on how accurately you can set focus distance on your lens.

The calculator

Hyperfocal distance for your lens

Change any input and results update instantly. Focus your lens at the hyperfocal distance shown and everything from the near sharp limit to infinity will appear acceptably sharp.

In millimeters — the number printed on your lens (e.g. 24, 35, 50).

The f-stop you are shooting at — e.g. 5.6, 8, 11.

Selects the circle-of-confusion constant for your sensor — see the CoC table below.

How it works — the formula in full

These are the exact equations the calculator runs — the standard thin-lens approximations used in optical engineering and photography references. Every variable is defined; every constant is labeled. All lengths are in millimeters; the calculator converts to meters for display.

Variable definitions

What each symbol means

f — focal length, in millimeters (mm). The number printed on your lens.

N — the f-number (aperture). A dimensionless ratio of focal length to entrance pupil diameter.

c — circle of confusion (CoC) in millimeters. The maximum diameter of a blur spot on the sensor that still reads as a sharp point when the image is viewed at a normal distance. Depends on sensor size — see the CoC table below.

H — hyperfocal distance, in millimeters. The focus distance that places the far limit of DoF at infinity.

Equations

Hyperfocal distance H = f² / (N × c) + f

All lengths in mm. Focusing at H places the far limit of depth of field at infinity and the near limit at H/2. This is the maximum-DoF focus point for a given focal length and aperture.

Near sharp limit (when focused at H) Near limit = H / 2

When your lens is focused at the hyperfocal distance H, everything from H/2 to infinity falls within acceptable depth of field. H/2 is the closest point that appears sharp; focusing any closer than H pulls the far limit back from infinity.

Far limit (when focused at H) Far limit = ∞

By definition, focusing at the hyperfocal distance places the far limit of depth of field at optical infinity. All distances from the near limit onward appear sharp.

Circle of confusion by sensor format

The CoC value is derived from the sensor's diagonal dimension divided by a conventional enlargement factor (typically around 1500, accounting for a standard print viewed at a normal distance). These are the industry-standard values used by major DoF calculators and optical references. The calculator uses the CoC for the format you select — the active row is highlighted.

Sensor format Crop factor Sensor diagonal (approx.) CoC (mm) — used by this calculator
Full frame (35 mm) 43.3 mm 0.029 mm
APS-C 1.5× (Nikon, Sony, Fuji) 1.5× 28.4 mm 0.019 mm
Canon APS-C 1.6× 1.6× 26.7 mm 0.018 mm
Micro Four Thirds 2× 21.6 mm 0.015 mm
1-inch sensor 2.7× 2.7× 15.9 mm 0.011 mm

CoC values are industry-standard constants derived from each sensor's diagonal. Smaller sensors require a tighter CoC, which results in a longer hyperfocal distance — meaning you must focus farther away to achieve front-to-infinity sharpness.

Worked example — step by step

A 24 mm lens at f/8 on a full-frame camera. These are the calculator's default inputs; every figure below can be reproduced by hand.

Inputs

24 mm · f/8 · Full frame (CoC 0.029 mm)

f = 24 mm  |  N = 8  |  c = 0.029 mm (full frame)

Step 1 — Compute f²

f² = 24² = 576 mm²

Step 2 — Compute N × c (the denominator)

N × c = 8 × 0.029 = 0.232 mm

Step 3 — Apply the hyperfocal formula

H = f² / (N × c) + f
H = 576 / 0.232 + 24
H = 2482.76 + 24
H = 2506.76 mm ≈ 2.51 m

Step 4 — Find the near sharp limit

Near limit = H / 2
Near limit = 2506.76 / 2 = 1253.38 mm ≈ 1.25 m

Step 5 — Interpret the result

Focus your 24 mm lens at approximately 2.51 m (about 8.2 feet). Everything from 1.25 m (roughly 4 feet) onward — all the way to the horizon — will appear acceptably sharp. This is why wide-angle lenses at moderate apertures are the landscape photographer's go-to combination: the hyperfocal distance is close enough to set easily, and the near limit is close enough to include a strong foreground.

Common mistakes with hyperfocal distance

Hyperfocal shooting looks simple — focus at H and you're done. In practice, these are the errors that cause blurry landscapes and missed shots.

Confusing the hyperfocal distance with the near sharp limit

The hyperfocal distance H is where you focus your lens. The near sharp limit — H/2 — is the closest point that will appear sharp in the final image. They are not the same. If you focus at H/2, you are focusing closer than the hyperfocal distance, and the far limit of depth of field will pull back from infinity — distant objects will not be sharp. Always focus at H, not at the near limit.

Not recalculating when you change aperture or focal length

The hyperfocal distance changes every time you change your f-stop or zoom your lens. Stopping down from f/8 to f/11 shortens the hyperfocal distance; zooming from 24 mm to 35 mm lengthens it substantially. Many photographers memorize one value and apply it across a shoot — which only works if they stay on one focal length and aperture. Recalculate (or bookmark the calculator on your phone) whenever you change either setting.

Chasing hyperfocal sharpness at very small apertures, triggering diffraction

Stopping down to f/22 or f/32 gives a very short hyperfocal distance — it looks ideal on paper. But those apertures introduce diffraction softness that affects the entire frame regardless of focus distance. On a full-frame camera, diffraction becomes noticeable around f/16 and progressively degrades sharpness beyond that. On smaller sensors the threshold is even lower. The practical sweet spot for hyperfocal shooting is usually f/8 to f/11 on full frame — enough depth of field without sacrificing lens resolution to diffraction.

Using the wrong CoC for your sensor format

The circle-of-confusion constant depends on your sensor size. Using the full-frame CoC (0.029 mm) for a Micro Four Thirds camera (which needs 0.015 mm) will underestimate the hyperfocal distance by nearly half — meaning you will focus too close and lose infinity sharpness. Always select your actual sensor format in the calculator.

Expecting pixel-level sharpness throughout the entire depth of field

"Acceptably sharp" in the DoF formula means sharp enough when printed and viewed at a normal distance using the conventional CoC derivation. At 100% pixel-level zoom on a high-resolution sensor, points near the edges of the depth of field will show visible softness. The hyperfocal technique is calibrated for real-world print and display viewing, not for pixel-peeping. If you are delivering for large-format prints at close viewing distances, you may need to stop down further or accept a more conservative effective CoC.

Frequently asked

The hyperfocal distance (H) is the closest focus distance at which your depth of field extends from H/2 all the way to infinity. Focusing at H gives you the maximum possible depth of field for a given focal length and aperture — everything from the near sharp limit (half the hyperfocal distance) through to the horizon appears acceptably sharp. It is the landscape and street photographer's key tool for achieving front-to-infinity sharpness in a single frame without needing focus stacking.
Sensor format sets the circle-of-confusion (CoC) constant used in the formula. Larger sensors tolerate a bigger CoC (the same scene detail is spread across more sensor area before looking blurry), which makes the hyperfocal distance shorter — meaning you can focus closer and still get sharpness to infinity. Smaller sensors require a tighter CoC threshold, pushing the hyperfocal distance farther away. With the same 24 mm f/8 lens, a full-frame shooter has a hyperfocal distance of about 2.51 m; a Micro Four Thirds shooter has one of about 4.83 m.
When your lens is focused exactly at the hyperfocal distance H, the depth of field extends from H/2 (half the hyperfocal distance) to infinity. "Sharp" here means within the circle-of-confusion threshold — the conventional standard for acceptable sharpness when an image is printed and viewed at a normal distance. If you are shooting for pixel-level inspection at 100%, elements near H/2 may show slight softness, but they will look sharp in a print or screen display at typical viewing distances.
Focusing at H maximizes depth of field and guarantees infinity sharpness, but it is not always the best compositional choice. If a strong foreground element sits closer than H/2, it will fall outside the sharp zone. In those cases, focus slightly beyond H/2 toward H so the foreground just clears the near limit — you maintain sharpness at the subject distance and still achieve infinity sharpness if the focus point is at or beyond H. The hyperfocal distance is a starting point for field decisions, not a rule to follow without judgment.
A smaller aperture opening (larger f-number) reduces the hyperfocal distance, letting you focus closer while still keeping infinity sharp. f/11 gives a shorter hyperfocal distance than f/4 at the same focal length. However, there is a practical ceiling: stopping down beyond about f/11–f/16 on full frame (or f/8 on Micro Four Thirds) begins introducing diffraction softness that degrades resolution across the entire frame. The useful range for hyperfocal shooting is roughly f/5.6 to f/16 on full frame, f/4 to f/11 on APS-C, and f/4 to f/8 on Micro Four Thirds.
The circle of confusion (CoC) is the maximum diameter of a blur spot on the sensor that still reads as a sharp point when the image is printed and viewed at a normal distance. It defines "acceptably sharp." The value depends on sensor size: Full frame — 0.029 mm; APS-C 1.5× (Nikon, Sony, Fuji) — 0.019 mm; Canon APS-C 1.6× — 0.018 mm; Micro Four Thirds — 0.015 mm; 1-inch — 0.011 mm. Select your actual sensor in the calculator. Using the wrong CoC will shift the hyperfocal distance significantly — the full-frame CoC gives a hyperfocal distance nearly twice as short as the Micro Four Thirds CoC for the same lens and aperture.