Hyperfocal Distance Calculator
Last updated: 2026-08-24
TL;DR: To calculate the hyperfocal distance, divide the square of your lens's focal length by the product of your aperture (f-stop) and the circle of confusion (CoC) for your camera’s sensor, then add the focal length: H = (f² / (N × c)) + f, where H is the hyperfocal distance in millimeters, f is the focal length, N is the aperture, and c is the circle of confusion.
What Is the Hyperfocal Distance Calculator?
The hyperfocal distance calculator is a specialized tool for photographers who need to maximize depth of field in a single shot. Hyperfocal distance is the closest distance at which a lens can be focused while keeping objects at infinity acceptably sharp. When you focus your lens at this precise point, everything from half that distance to infinity will appear in acceptable focus. This is a critical technique for landscape photographers, architectural photographers, and anyone shooting street scenes where they want both foreground elements and distant background details to remain crisp without having to stop down to extreme apertures.
This calculator uses three primary inputs — focal length, aperture, and sensor size (represented as circle of confusion) — to output a single distance in meters or feet. For example, a 24mm lens at f/8 on a full-frame camera yields a hyperfocal distance of roughly 2.7 meters. This means if you focus on a point 2.7 meters away, everything from 1.35 meters to the horizon will be sharp. Without this calculation, photographers often waste time with focus bracketing, or they miss critical shots because they focused too close or too far.
Understanding hyperfocal distance is also essential for filmmakers using manual focus, drone operators capturing sweeping vistas, and even product photographers who want a consistent plane of focus. While modern mirrorless cameras have focus-peaking aids, none of them show the exact hyperfocal point. A calculator remains the most reliable, repeatable method to determine this value, especially when you are working with wide-angle lenses where the hyperfocal distance is short enough to make precise manual focusing practical.
How to Use the Calculator
Using the hyperfocal distance calculator requires only three values. Follow these steps to get immediate results:
- Enter the Focal Length: Type the focal length of your lens in millimeters (e.g., 24, 35, 50, 70). Use the actual focal length, not the equivalent focal length for a cropped sensor. If you are using a zoom lens, use the specific focal length you intend to shoot at.
- Enter the Aperture (f-stop): Input the aperture value you plan to use (e.g., 5.6, 8, 11, 16). Do not include the letter 'f' – just the number. Ensure you are using the same aperture value you will actually set on the lens, as changing the aperture after calculation invalidates the result.
- Select the Sensor Size / Circle of Confusion: Choose your camera's sensor format from the dropdown menu. The calculator automatically assigns a standard circle of confusion value (typically 0.030 mm for full-frame, 0.020 mm for APS-C, and 0.015 mm for Micro Four Thirds). If your camera offers a custom CoC setting, you may override it, but the standard values are recommended for print viewing.
- Click 'Calculate': Press the calculate button. The result will display the hyperfocal distance in both meters and, when relevant, feet. The calculator also displays the near limit of acceptable focus (which is exactly half the hyperfocal distance) so you know the total depth of field range.
- Set Your Lens Focus: Manually set your lens focus ring to the calculated distance using the distance scale on the lens barrel. If your lens lacks a distance scale, focus on an object at that distance, or use the camera's focus peaking feature to confirm.
Formula and Calculation Method
The standard optical formula for hyperfocal distance is presented below, followed by a plain-language explanation.
H = (f² / (N × c)) + f
Where:
- H = Hyperfocal distance (in millimeters)
- f = Focal length of the lens (in millimeters)
- N = Aperture f-number (the f-stop, e.g., 8 for f/8)
- c = Circle of confusion (in millimeters, typically 0.030 for full-frame, 0.020 for APS-C)
The formula works on a simple principle: shorter focal lengths, smaller apertures (higher f-numbers), and larger circles of confusion all produce a shorter hyperfocal distance. The initial term f² / (N × c) gives you the approximate hyperfocal distance, and the final '+ f' is a precise correction that accounts for the distance between the lens's rear nodal point and the sensor. In practice, for most focal lengths above 20mm, the '+ f' addendum shifts the result by less than one percent, but the calculator includes it for mathematical accuracy.
Worked Example: Suppose you are using a 35mm lens on a full-frame camera at f/11. The circle of confusion is 0.030 mm. First, square the focal length: 35 × 35 = 1225. Next, multiply the aperture (11) by the CoC (0.030): 11 × 0.030 = 0.33. Now divide 1225 by 0.33: 1225 / 0.33 = 3712.12 mm. Add the focal length: 3712.12 + 35 = 3747.12 mm. Convert to meters: 3747.12 / 1000 = 3.75 meters (approximately 12.3 feet). This means focusing at 3.75 meters gives you sharpness from 1.87 meters to infinity.
The calculation is computationally trivial, but the difficulty lies in trusting the output. Many photographers are surprised by how short the hyperfocal distance is for wide-angle lenses. A 16mm lens at f/16 on full-frame has a hyperfocal distance of just 0.55 meters — you could be holding the camera with the lens near the ground and still get everything from 0.27 meters to infinity sharp.
Practical Examples
The following table shows realistic shooting scenarios and their corresponding hyperfocal distances. Note how the values change dramatically with each input.
| Scenario | Focal Length (mm) | Aperture (f-stop) | Sensor CoC (mm) | Hyperfocal Distance | Near Limit of Sharp Focus |
|---|---|---|---|---|---|
| Landscape on full-frame | 24 | 8 | 0.030 | 2.42 meters (7.9 ft) | 1.21 meters |
| Street photo on APS-C | 35 | 5.6 | 0.020 | 10.99 meters (36.1 ft) | 5.49 meters |
| Architectural on full-frame | 16 | 11 | 0.030 | 0.79 meters (2.6 ft) | 0.39 meters |
| Half-frame or MFT camera | 25 | 4 | 0.015 | 10.43 meters (34.2 ft) | 5.21 meters |
Scenario 1 – Landscape: Using a 24mm lens at f/8 on full-frame, your hyperfocal distance is 2.42 meters. If you place a foreground rock at 1.3 meters and want the mountains behind it sharp, focusing at 2.42 meters will accomplish this. You have a depth of field range from 1.21 meters to infinity.
Scenario 2 – Street Photography: A 35mm lens at f/5.6 on an APS-C camera yields a hyperfocal distance of about 11 meters. This is impractical for most street scenes because subjects are often within 5 meters. You would be better off using a wider lens or stopping down to f/11, which would bring the hyperfocal distance down to 5.5 meters.
Scenario 3 – Architecture: A 16mm ultra-wide lens at f/11 gives you a hyperfocal distance under one meter. This means you can focus on the bottom edge of a column in front of you, and the entire facade of a building 100 meters away will still be critically sharp. This is why ultra-wide lenses are so forgiving with focus.
Tips for Accurate Results
To ensure your calculated hyperfocal distance matches what you see in your final image, follow these technical guidelines. The most common mistake is using the wrong circle of confusion. If you are shooting on an APS-C camera, you must use 0.020 mm, not the 0.030 mm that applies to full-frame. Using 0.030 on an APS-C sensor will give you a hyperfocal distance that is 50% too far, meaning you focus beyond where you should, and your near foreground may be soft.
Always verify your focal length is the true optical focal length, not the "35mm equivalent" that many crop-sensor camera manufacturers advertise. A 24mm lens on an APS-C camera is still physically 24mm for the purposes of hyperfocal distance calculation; the crop factor changes the field of view, but not the physical focal length. Ignoring this will produce a result that is correct for the wrong lens, causing you to focus at the wrong point.
Never round intermediate results during the calculation. If you take 35² and round 1225 to 1200, you will shift the result by roughly 2%. Instead, let the calculator handle the precision, and only round the final output to a practical focus ring increment. Also, be aware that zoom lenses often have slightly different physical focal lengths and breathing effects, so if you are calculating for a zoom lens, re-enter the exact focal length after adjusting the zoom ring.
Verify the validity range of the formula. The hyperfocal distance formula assumes you are working in the far-field approximation, meaning the subject is significantly farther than the focal length. If you are calculating for a 200mm telephoto lens or a macro shot, the formula's accuracy degrades because the assumptions of geometric optics change. For lenses longer than 135mm, the hyperfocal distance becomes so large (often over 100 meters) that it is rarely useful for general photography, so treat those results with caution.
Finally, always account for your intended viewing medium. The circle of confusion is tied to print size and viewing distance. The standard 0.030 mm for full-frame assumes a 8×10 inch print viewed at arm's length. If you plan to enlarge to 24×36 inches or pixel-peep at 100%, you should use a smaller CoC (0.015 mm). Some landscape photographers intentionally use a CoC of 0.025 mm or even 0.020 mm on full-frame to ensure absolutely critical sharpness at large display sizes.
Frequently Asked Questions
What is the difference between hyperfocal distance and depth of field?
Hyperfocal distance is a specific point of focus, while depth of field is the range of acceptable sharpness around that focus point. When you focus at the hyperfocal distance, your depth of field extends from half the hyperfocal distance to infinity. This is the maximum possible depth of field for a given aperture and focal length. For any focus point closer than the hyperfocal distance, the far limit of sharpness is a finite distance, meaning infinity will be blurred. For any focus point farther than the hyperfocal distance, you sacrifice near sharpness. In short, hyperfocal distance is the sweet spot that gives you the deepest possible focus range; depth of field is the zone that results from that focus choice.
How does the crop factor affect hyperfocal distance?
The crop factor does not directly enter the hyperfocal distance formula, but it influences the result through two indirect effects. First, a smaller sensor uses a smaller circle of confusion. An APS-C sensor (CoC 0.020 mm) at the same focal length and aperture as a full-frame sensor (CoC 0.030 mm) will have a hyperfocal distance that is 1.5 times larger. For example, a 50mm lens at f/8 on full-frame has a hyperfocal distance of 10.5 meters; on APS-C it is 15.7 meters. Second, because a crop sensor captures a narrower field of view with the same lens, photographers often use a shorter focal length on APS-C to match the framing, which reduces the hyperfocal distance. The net practical effect is that crop-sensor cameras often produce shorter hyperfocal distances in real-world shooting because you use shorter lenses for the same field of view, but if you physically use a 50mm lens, the hyperfocal distance will be greater on the crop sensor.
Should I use autofocus or manual focus to set the hyperfocal distance?
You should always use manual focus when setting the hyperfocal distance. Autofocus relies on contrast detection or phase detection, which measures sharpness at the autofocus points, but it cannot lock onto the mathematically defined hyperfocal point. The distance scale on your lens barrel is the most precise mechanical indicator, and many photographer-grade lenses mark the hyperfocal distance for specific apertures. If your lens lacks a distance scale, you can focus on any object that is at the hyperfocal distance, or you can use the camera's live view to magnify an object at that measured distance. Modern mirrorless cameras with focus peaking can help, but you still need a reference point. One common technique is to set the lens to infinity focus, then rotate the ring backward slightly until the distance scale aligns with the calculated hyperfocal distance. Do not rely on the lens's focus-by-wire indication, as it is often inaccurate at wide angles.
Related Calculators
FAQ
What exactly does the Hyperfocal Distance Calculator compute?
The calculator determines the hyperfocal distance for a given camera sensor size, lens focal length, and aperture (f-stop). This is the nearest focus distance at which everything from that point to infinity appears acceptably sharp in the final image, based on a chosen circle of confusion (CoC) value.
How should I set the circle of confusion (CoC) value in the calculator?
For most modern digital cameras, a CoC of 0.02 to 0.03 mm (full-frame) or 0.015 to 0.02 mm (APS-C) works well as a starting point. You can also use the 'auto' option if available, which picks a CoC based on your camera model and sensor size, or manually input a custom value if you have specific print size or viewing distance requirements.
Why does my calculated hyperfocal distance change when I zoom my lens or change aperture?
Because hyperfocal distance scales with the square of the focal length and inversely with the aperture (f-number). A longer focal length or a wider aperture (smaller f-number) will push the hyperfocal distance further away, meaning you need to focus farther to achieve the same depth of field. Conversely, a shorter focal length or a narrower aperture brings the hyperfocal distance closer to the camera.
Can I use this calculator for landscape photography, and are there any limitations?
Yes, it's primarily designed for landscape photographers who want to maximize depth of field, but it's also useful for street and architecture shots where you want near-to-far sharpness. The main limitation is that it assumes a perfect lens and ignores diffraction, which can soften the overall image at very small apertures like f/16 or f/22, so you may want to balance hyperfocal settings against diffraction softening in practice.