Calculator Inputs
Example Data Table
This sample table shows how different setups change near focus, far focus, and total sharpness range.
| Scene | Sensor | Focal Length | Aperture | Distance | Near Limit | Far Limit | Total DOF |
|---|---|---|---|---|---|---|---|
| Portrait | Full Frame (36 × 24 mm) | 85 mm | f/2.8 | 2.00 m | 1.96 m | 2.04 m | 0.09 m |
| Product | Full Frame (36 × 24 mm) | 50 mm | f/8.0 | 1.20 m | 1.08 m | 1.34 m | 0.26 m |
| Desk Flat Lay | APS-C Nikon / Sony | 35 mm | f/11.0 | 1.50 m | 1.19 m | 2.03 m | 0.84 m |
| Outdoor Scene | Micro Four Thirds | 25 mm | f/16.0 | 6.00 m | 1.83 m | Infinity | Infinity |
Formula Used
Hyperfocal Distance: H = (f² / (N × c)) + f
f = focal length, N = aperture, c = circle of confusion.
Near Focus Limit: Dn = (H × s) / (H + (s − f))
s = subject distance from the lens plane.
Far Focus Limit: Df = (H × s) / (H − (s − f))
When H is less than or equal to s − f, the far limit becomes infinity.
Total Depth of Field: DOF = Df − Dn
Front DOF is subject distance minus near limit. Rear DOF is far limit minus subject distance.
This method is widely used for practical lens planning. It helps estimate acceptable sharpness, not perfect optical resolution.
How to Use This Calculator
- Choose your camera sensor preset first.
- Enter focal length in millimeters.
- Enter the working aperture value.
- Type your subject distance and unit.
- Leave custom circle of confusion blank, unless needed.
- Select your preferred result display unit.
- Press the calculate button.
- Review hyperfocal distance, near limit, far limit, and total depth of field.
- Use the graph to compare sharpness changes across common f-stops.
- Download CSV or PDF for reporting, planning, or client notes.
FAQs
1) What does f-stop control in this calculator?
The f-stop controls aperture size. Smaller numbers create shallower depth of field. Larger numbers usually increase the sharp zone, but diffraction can reduce crispness at very small apertures.
2) Why does sensor size matter?
Sensor size changes the circle of confusion assumption. That affects hyperfocal distance and the perceived acceptable sharpness range for the same framing and shooting conditions.
3) What is circle of confusion?
It is the blur diameter still considered acceptably sharp in the final image. Different sensor formats usually use different practical values.
4) Why can the far limit become infinity?
When your focus distance reaches or exceeds the hyperfocal condition, the far boundary no longer has a practical end point. Everything farther away remains acceptably sharp.
5) Is depth of field the same as perfect focus?
No. Depth of field estimates acceptable sharpness. Lens quality, motion, diffraction, subject movement, and viewing size still affect real image clarity.
6) Should I use a custom circle of confusion?
Use a custom value when your workflow demands stricter output control, unusual viewing distances, or specific print standards. Otherwise, the preset value is usually sufficient.
7) How does focal length affect depth of field?
Longer focal lengths often reduce depth of field at the same distance and aperture. Wider lenses generally keep more of the scene acceptably sharp.
8) Why is this useful for web images and SEO?
Sharper product, hero, and editorial images improve clarity, trust, and visual consistency. Better image planning can support stronger engagement on pages that depend on photography.