Depth of Field Calculator
Find a photo's hyperfocal distance and the near/far limits of acceptably sharp focus from focal length, aperture, subject distance, and circle of confusion.
- Hyperfocal distance
- 10.47 m
- Near limit of sharp focus
- 3.39 m
- Far limit of sharp focus
- 9.53 m
- Total depth of field
- 6.14 m
How it works
Depth of field comes from thin-lens optics: only objects at the exact focused distance form a perfectly sharp point on the sensor, but points somewhat nearer or farther still land within an acceptably small blur spot (the circle of confusion) rather than a visibly soft one. The hyperfocal distance H — the focus distance beyond which everything out to infinity stays acceptably sharp — is H = f²/(N·c) + f, where f is focal length, N is the f-number, and c is the circle of confusion.
Once H is known, the near and far limits of acceptable sharpness for a lens focused at subject distance s follow from the same thin-lens defocus relationship: near limit = s(H − f) ÷ (H + s − 2f), and far limit = s(H − f) ÷ (H − s). The far-limit formula's denominator reaches zero exactly when s equals H, which is why focusing at the hyperfocal distance sends the far limit to infinity — and it also means the near limit at that exact focus distance always comes out to precisely H ÷ 2.
Focal length and circle of confusion are entered directly in millimeters regardless of the unit toggle, since photographers worldwide specify both that way by convention; only subject distance — the one field you're likely to think of in meters or feet depending on where you are — switches with the toggle.
FAQ
What circle of confusion should I use?
0.03mm (the default) is the standard reference value for a full-frame 35mm-format sensor, viewed at a normal size and distance. A smaller sensor needs a proportionally smaller circle of confusion to look equally sharp when the two images are displayed at the same size — roughly 0.02mm for APS-C, or about 0.015mm for Micro Four Thirds. Check your camera's sensor format and adjust the field if it isn't full-frame.
Why did my far limit come out as 'infinite'?
That happens whenever your subject distance is at or beyond the hyperfocal distance shown above it — by definition, focusing anywhere from the hyperfocal distance to infinity keeps everything out to infinity acceptably sharp. Move your focus point closer than the hyperfocal distance if you need a finite far limit.
Related calculators
- Tip Calculator & Bill Splitter
- Password Entropy Calculator
- Paint Coverage Calculator
- Unit Price Comparison Calculator (Better Buy)
- Roman Numeral Converter
- Sleep Cycle Calculator
- Dilution Calculator (C₁V₁ = C₂V₂)
- 4-Band Resistor Color Code Calculator
- Chmod / Unix File Permissions Calculator
- Grade Needed Calculator
- Stair Calculator
- Great-Circle Distance Calculator
- Wind Chill Calculator
- Tire Size & Speedometer Error Calculator
- Delay Time Calculator (BPM to Milliseconds)
- Baseball Batting Stats Calculator (AVG, OBP, SLG, OPS)
- Concrete Calculator (Volume & Bags Needed)
- Golf Course Handicap Calculator
- Crosswind & Headwind Component Calculator
- Bicycle Gain Ratio Calculator
- Homebrew ABV Calculator
- Rowing Split & Power Calculator
- Guitar Fret Position Calculator
- Heat Index Calculator
- True Wind Calculator (Sailing)
- Knitting Gauge Calculator
- Baker's Percentage Calculator (Bread Dough Formula)
- Board Foot Calculator (Lumber Volume)
- Naismith's Rule Hiking Time Calculator
- Arrow Kinetic Energy & Momentum Calculator
- Wheelchair Ramp Slope Calculator (ADA Compliance)
- 3D Print Filament Weight & Cost Calculator
- Coffee Extraction Yield Calculator (SCA Brewing Chart)
- Candle Fragrance Load Calculator
- Climbing Fall Factor Calculator
- Cricket Net Run Rate (NRR) Calculator
- Density Altitude Calculator (Pilot Preflight)
- SMPTE Timecode Calculator
- Angle of View / Crop Factor Calculator
- Roof Pitch & Rafter Length Calculator
- Displacement Hull Speed Calculator
- Firewood Cord Calculator
- Scuba SAC Rate Calculator
- Guitar String Tension Calculator
- Wallpaper Calculator (Rolls Needed)
- Vehicle Braking Distance Calculator
- Fence Calculator (Posts, Rails & Pickets)