ES EN FR PT DE IT

Hyperfocal Distance Calculator

Calculate hyperfocal distance to maximize depth of field.

The Hyperfocal Distance Calculator is a free photography calculator. Calculate hyperfocal distance to maximize depth of field. Optimize your photographic settings with precise optical formulas for better results.
Inputs
Physical Parameters
Technical Parameters
Result
Enter values and press Calculate

What is Hyperfocal Distance?

Hyperfocal distance is the focus distance that maximizes depth of field, rendering everything from half that distance to infinity acceptably sharp. When you focus a 24mm lens at f/11 at its hyperfocal distance of 2.5 meters, everything from 1.25 meters to the horizon will be in focus.

Landscape photographers use hyperfocal focusing to ensure sharp foreground rocks and distant mountains in the same shot. Instead of focusing on infinity (which wastes DOF behind infinity), they focus at the calculated hyperfocal point to use all available sharpness efficiently.

Street photographers shooting at 35mm and f/8 can pre-focus at the hyperfocal distance of about 5 meters and know that anything from 2.5 meters to infinity will be sharp. This zone focusing technique lets them shoot without autofocus delay.

Hyperfocal Distance Formulas with Worked Calculations

The hyperfocal distance formula is:

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

Where H is hyperfocal distance, f is focal length in millimeters, N is the f-number (aperture), and c is the circle of confusion in millimeters.

Worked example: 35mm lens at f/8 on a full-frame camera (c = 0.03mm).

f² = 35² = 1,225 mm²

N × c = 8 × 0.03 = 0.24 mm

(f²) / (N × c) = 1,225 / 0.24 = 5,104 mm

H = 5,104 + 35 = 5,139 mm ≈ 5.14 meters

When you focus at 5.14 meters, everything from 2.57 meters (half the hyperfocal) to infinity will be acceptably sharp.

The simplified formula (ignoring the small +f term) is:

H ≈ (f²) / (N × c)

For the same example: H ≈ 1,225 / 0.24 = 5,104 mm ≈ 5.1 meters — close enough for practical use.

How to Calculate Hyperfocal Distance: 6 Steps

  1. Identify your focal length: Your lens is set to 20mm. Write this down in millimeters. Wide-angle lenses have shorter hyperfocal distances than telephotos.
  2. Set your aperture: You plan to shoot at f/11 for maximum sharpness. This is your N value. Smaller apertures (larger f-numbers) reduce hyperfocal distance.
  3. Determine circle of confusion: Full-frame cameras use c = 0.03mm. APS-C (Canon) uses c = 0.019mm. APS-C (Nikon/Sony) uses c = 0.02mm. Micro Four Thirds uses c = 0.015mm.
  4. Square the focal length: 20² = 400 mm². This is the numerator of the hyperfocal formula.
  5. Multiply aperture by CoC: 11 × 0.03 = 0.33 mm. This is the denominator.
  6. Divide and add focal length: 400 / 0.33 = 1,212 mm. Add f: 1,212 + 20 = 1,232 mm ≈ 1.23 meters. Focus at 1.23 meters, and everything from 0.62 meters to infinity will be sharp.

5 Hyperfocal Distance Examples

Example 1 — Ultra-wide landscape: 14mm lens at f/16, full-frame (c = 0.03mm). H = (14²) / (16 × 0.03) + 14 = 196 / 0.48 + 14 = 408 + 14 = 422 mm ≈ 0.42 meters. Focus at 42 cm, and everything from 21 cm to infinity is sharp. This enables extreme foreground compositions with grass or flowers inches from the lens.

Example 2 — Standard street photography: 50mm lens at f/5.6, full-frame (c = 0.03mm). H = (50²) / (5.6 × 0.03) + 50 = 2,500 / 0.168 + 50 = 14,881 + 50 = 14,931 mm ≈ 14.9 meters. Focus at 15 meters, and everything from 7.5 meters to infinity is sharp. Good for street scenes where subjects are rarely closer than 7 meters.

Example 3 — APS-C landscape: 18mm lens (27mm equivalent) at f/11, APS-C Nikon (c = 0.02mm). H = (18²) / (11 × 0.02) + 18 = 324 / 0.22 + 18 = 1,473 + 18 = 1,491 mm ≈ 1.49 meters. Focus at 1.5 meters for sharpness from 0.75 meters to infinity. Crop sensors have slightly deeper DOF at the same aperture.

Example 4 — Micro Four Thirds: 12mm lens (24mm equivalent) at f/8, MFT (c = 0.015mm). H = (12²) / (8 × 0.015) + 12 = 144 / 0.12 + 12 = 1,200 + 12 = 1,212 mm ≈ 1.21 meters. Focus at 1.2 meters for sharpness from 0.6 meters to infinity. The small sensor enables very deep DOF even at moderate apertures.

Example 5 — Telephoto landscape compression: 85mm lens at f/11, full-frame (c = 0.03mm). H = (85²) / (11 × 0.03) + 85 = 7,225 / 0.33 + 85 = 21,894 + 85 = 21,979 mm ≈ 22 meters. Focus at 22 meters for sharpness from 11 meters to infinity. Not suitable for foreground interest, but works for distant mountain ranges where nothing is closer than 11 meters.

4 Common Hyperfocal Mistakes

  • Using the wrong circle of confusion: Applying full-frame c = 0.03mm to an APS-C camera produces hyperfocal distances 50% too long. An APS-C shooter using 0.03mm would focus at 7.7 meters instead of the correct 5.1 meters for a 35mm f/8 setup, leaving foreground elements soft.
  • Focusing at infinity instead: Many photographers twist the lens to the infinity symbol, wasting the depth of field that extends behind infinity. For a 24mm f/11 setup, focusing at infinity makes everything from 3 meters to infinity sharp, but focusing at hyperfocal (2.5m) makes everything from 1.25 meters to infinity sharp — gaining 1.75 meters of foreground sharpness.
  • Not accounting for lens markings: Older lenses have DOF scales showing hyperfocal distances for various apertures. At f/11, align the infinity symbol with the f/11 mark on the DOF scale, and the focus index automatically points to the hyperfocal distance. Modern lenses often omit these scales.
  • Ignoring diffraction: Stopping down to f/22 to minimize hyperfocal distance introduces diffraction softening. A 24mm lens at f/22 has H ≈ 0.7 meters, but the entire image is slightly soft from diffraction. Better to shoot at f/11 (H ≈ 1.4m) and focus stack if you need closer foreground sharpness.

5 Tips for Hyperfocal Focusing

  • Use the double-the-distance method: Estimate the distance to the nearest object you want sharp, then focus at twice that distance. If you need a rock at 1 meter sharp, focus at 2 meters. This approximates hyperfocal without calculation and works well for quick shooting.
  • Check with live view zoom: After focusing at the calculated hyperfocal distance, use live view at 10× magnification to check both the nearest foreground element and a distant object. If either is soft, adjust focus slightly closer and recheck.
  • Mark your lens: Once you calculate hyperfocal for your favorite lens/aperture combinations, use a small piece of gaffer tape or a dry-erase marker to mark the focus distance on the lens barrel. For a 24mm f/11 setup, mark 2.5 meters for instant hyperfocal focusing.
  • Use smartphone apps: Apps like PhotoPills, Hyperfocal Pro, or DOF Calculator compute hyperfocal distance instantly for your specific camera. Point your phone at the scene, and the app shows exactly where to focus using augmented reality.
  • Bracket your focus: When hyperfocal distance is critical, take three shots: one focused at the calculated hyperfocal, one focused 0.5 meters closer, and one focused 0.5 meters farther. Review at 100% later and keep the sharpest, or blend them in post-processing.

4 Hyperfocal Distance FAQs

The +f term accounts for the distance from the lens's rear nodal point to the sensor. For wide-angle lenses at close focus distances, this matters. For a 14mm lens, adding 14mm to 408mm changes the result by 3.3%. For telephoto lenses, the +f term is negligible (adding 200mm to 50,000mm is only 0.4%).

Technically yes, but it's counterproductive. Portraits benefit from shallow DOF that isolates the subject. Hyperfocal focusing maximizes DOF, keeping the background sharp — the opposite of what portrait photographers want. Use hyperfocal for landscapes, architecture, and street photography where you want maximum sharpness.

No. Hyperfocal distance depends only on focal length, aperture, and circle of confusion — not on where you're currently focused. It's a fixed property of your lens/camera/aperture combination. Once calculated, you simply rotate the focus ring to that distance.

Use focus stacking. Take one shot focused at the hyperfocal distance for midground to infinity, then another focused on the close foreground element. Blend them in Photoshop or use dedicated stacking software. This technique overcomes the physical limits of DOF without stopping down to diffraction-limited apertures.

Written and reviewed by the CalcToWork editorial team. Last updated: 2026-04-29.

Frequently Asked Questions

The +f term accounts for the distance from the lens's rear nodal point to the sensor. For wide-angle lenses at close focus distances, this matters. For a 14mm lens, adding 14mm to 408mm changes the result by 3.3%. For telephoto lenses, the +f term is negligible (adding 200mm to 50,000mm is only 0.4%).
Technically yes, but it's counterproductive. Portraits benefit from shallow DOF that isolates the subject. Hyperfocal focusing maximizes DOF, keeping the background sharp — the opposite of what portrait photographers want. Use hyperfocal for landscapes, architecture, and street photography where you want maximum sharpness.
No. Hyperfocal distance depends only on focal length, aperture, and circle of confusion — not on where you're currently focused. It's a fixed property of your lens/camera/aperture combination. Once calculated, you simply rotate the focus ring to that distance.
Use focus stacking. Take one shot focused at the hyperfocal distance for midground to infinity, then another focused on the close foreground element. Blend them in Photoshop or use dedicated stacking software. This technique overcomes the physical limits of DOF without stopping down to diffraction-limited apertures.