Depth of Field Calculator
Find the in-focus range of your shot from focal length, aperture and distance.
Result
How it is calculated
Inputs: focal length f in mm, f-number N, focus distance s in meters and the sensor crop factor. The circle of confusion is c = 0.029 ÷ crop mm, so a full-frame sensor (crop 1) uses 0.029 mm. Hyperfocal distance is H = f² ÷ (N × c) + f. The near limit is s × (H − f) ÷ (H + s − 2f) and, when s is less than H, the far limit is s × (H − f) ÷ (H − s). Depth of field is far minus near. If the focus distance reaches or passes H, the far limit and depth of field show ∞. Results are in meters with two decimals. If crop is empty or not above zero, 1 is used. The model uses a fixed sharpness criterion and does not allow for diffraction or print size.
Worked example
A full-frame camera with a 50 mm lens at f/8, focused at 5 m. The circle of confusion is 0.029 mm. Hyperfocal: 50² ÷ (8 × 0.029) + 50 = 2,500 ÷ 0.232 + 50, about 10,826 mm, shown as 10.83 m. Near limit: 5,000 × 10,776 ÷ (10,826 + 5,000 − 100), about 3,426 mm, shown as 3.43 m. Far limit: 5,000 × 10,776 ÷ (10,826 − 5,000), about 9,248 mm, shown as 9.25 m. Depth of field: 9.25 − 3.43 gives 5.82 m, so roughly everything from 3.43 m to 9.25 m looks sharp.
Common mistakes
- Typing the focus distance in feet or centimeters. The field is in meters; 5 ft is about 1.52 m.
- Leaving the crop factor at 1 on an APS-C or Micro Four Thirds camera. The sharp zone is then overstated; use about 1.5 or 2.
- Entering the 35 mm-equivalent focal length instead of the real one printed on the lens. Use the real focal length together with the crop factor.
- Treating the near and far limits as razor-sharp edges. Sharpness falls off gradually, and the limits are only the point where blur becomes noticeable at the assumed standard.
- Expecting a finite far limit when focusing beyond the hyperfocal distance. Above H the far limit is infinity.
About this calculator
This calculator finds a lens's depth of field (DoF) — the zone in front of and behind the focus point that appears acceptably sharp — along with the near and far focus limits and the hyperfocal distance (H = f² / (N·c), where f is focal length, N is the aperture, and c is the circle of confusion). Focusing at the hyperfocal distance maximizes the sharp range, from half that distance to infinity.
Photographers and cinematographers use it when planning landscape shots that need everything sharp from foreground to horizon, portraits that need a blurred background, or macro and product shots where the sharp zone is only millimeters deep.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
For landscapes, try focusing exactly at the hyperfocal distance shown. With a 24 mm lens at f/11 on full frame it is 1.83 m, and the near limit then lands at about 0.91 m, half of it, with everything beyond sharp to infinity. Focusing a little short of that keeps a finite far limit, which is useful when you want to know where the background starts to soften. Which lens and aperture combination do you shoot most?