Depth of field calculator
This depth of field calculator shows how far the sharp zone of your photo reaches: near limit, far limit, total depth and hyperfocal distance – from sensor size, focal length, aperture and subject distance.
Example: Sensor format: Full frame (35 mm, 36 × 24 mm) · Focal length 50 mm · F-number 2.8 · Distance to subject (focus) 10 ft / m · Distance unit: Feet → Sharp zone: Sharp from 9.08 ft to 11.1 ft. Source: Wikipedia – Hyperfocal distance (H = f²/(N·c) + f; Beispiel 50 mm, f/8, c = 0,03 mm). Updated: .
How it is calculated
At 50 mm, f/8 and 5 m on full frame, everything from about 3.4 m to 9.5 m is sharp, and the hyperfocal distance is around 10.5 m. The depth of field calculator takes your shooting data and shows the sharp zone.
How it is calculated
First the hyperfocal distance H = f² ÷ (f-number × c) + f, with focal length f and circle of confusion c. On a 35 mm sensor c is 0.03 mm and for other sensors it is divided by the crop factor. The limits of the sharp zone follow: near limit = s × (H − f) ÷ (H + s − 2f), far limit = s × (H − f) ÷ (H − s) for focus distance s. If s is as large as H or larger, sharpness extends to infinity.
What affects depth of field
- Aperture: a larger f-number (smaller opening) increases depth of field.
- Focal length: longer focal lengths reduce it at the same distance.
- Distance: the closer the subject, the shallower the depth of field.
- Sensor size: smaller sensors have a smaller circle of confusion, so less depth at the same focal length and aperture.
More photo tools: the aspect ratio, the pixel calculator, the EXIF viewer for your shooting data and the image sizes.
Frequently asked questions
How do I calculate depth of field?
With sensor format, focal length, aperture and distance. The calculator derives the hyperfocal distance and the near and far limit of the sharp zone.
What is the hyperfocal distance?
The distance you focus on so that everything from half that distance to infinity is sharp. At 50 mm and f/8 on full frame that is about 10.5 m (34 ft).
How does aperture affect depth of field?
A larger f-number such as f/16 makes the sharp zone deeper, f/1.8 makes it shallow. Very small openings lose overall sharpness through diffraction, though.
Why does sensor size matter?
Because the circle of confusion that still counts as sharp shrinks with sensor size. The calculator divides 0.03 mm by the crop factor.
How accurate is the calculation?
It is a guideline based on the standard value of 0.03 mm for 35 mm. Your result also depends on viewing distance and print size; when pixel peeping or printing large, real depth of field is smaller.
Sources and legal basis
- Wikipedia – Hyperfocal distance (H = f²/(N·c) + f; Beispiel 50 mm, f/8, c = 0,03 mm)
- Wikipedia – Depth of field (near and far limit, circle of confusion)
As of: · Editorial policy
Related tools
- Aspect Ratio CalculatorCalculate the aspect ratio from width and height (1920 × 1080 = 16:9), find the missing side, decimal value, nearest standard ratio and CSS aspect-ratio.
- Pixels to cmConvert pixels to cm with the right resolution: pixels to cm, mm and inches, length to pixels, and the print size your photo reaches at 300 dpi.
- View and remove EXIF dataView and remove EXIF data from photos: camera, date taken and GPS location. Lossless without re-encoding, for JPG and PNG – right in your browser, no upload.
- Social Media Image Sizes 2026Image sizes for Instagram, Facebook, YouTube, LinkedIn, X, Pinterest and Threads – official specs only, each with source. Copy dimensions, calculate height.
- Length ConverterLength converter for mm, cm, m, km, inches, feet, yards, miles and nautical miles: instant result, all units compared, feet and inches, and the factor used.
- kg to lbs converterConvert kg to lbs and back: 1 kg = 2.2046 lb. Shows pounds and ounces, stone and pounds, grams, tons and a kg to lbs chart – exact to the legal definition.
- Flash Guide Number Calculator: Aperture, Distance and ISOFlash guide number calculator: work out the right aperture from guide number, ISO, flash power and distance, and read the flash range for every aperture. Free.
- mm to feet and feet to mm convertermm to feet: divide by 304.8, so 2,400 mm = 7.874 ft. Type millimeters for feet and for feet-and-inches, or go back from feet to mm, with sheet-size examples.
- oz to cups and cups to oz converteroz to cups: 8 fluid ounces = 1 US cup, but 8 oz of flour is 1.814 cups. Choose liquid or an ingredient, type ounces and get cups and the nearest cup fraction.