AI Tools Free

Depth Of Field Calculator

Enter your lens focal length, f-stop aperture, subject focus distance, and Circle of Confusion (CoC) in the Depth Of Field Calculator below to compute total depth of field, near and far sharpness limits, front/rear distribution, and hyperfocal distance.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate Depth of Field.

Optical focal length printed on the lens (e.g. 24, 35, 50, 85, 200 mm).

Selected f-stop number (e.g. 1.4, 2.8, 5.6, 8, 11, 16).

Distance from the camera sensor plane to the point of focus in meters.

Sensor CoC limit (0.030 mm Full Frame, 0.020 mm APS-C, 0.015 mm Micro 4/3).

Your result
Enter your details

Result will appear here

How Depth Of Field Calculator works

The Depth Of Field Calculator first computes the exact hyperfocal distance H = (f^2 / (N * c)) + f in millimeters, then evaluates the exact near limit (Dn) and far limit (Df) around your focus distance s, reporting all distances in both meters/centimeters and feet.

H = f^2 / (N * c) + f; Dn = s*(H - f) / (H + s - 2f); Df = s*(H - f) / (H - s) [if s < H, else Infinity].

Also calculates the exact percentage of DoF in front of the subject vs. behind the subject so you do not have to guess with the 1/3-2/3 rule.

Depth Of Field Calculator workflow overview
Workflow overview for Depth Of Field Calculator.

Depth Of Field Calculator Quick Reference & Input Guide

Review the input parameters, allowed value ranges, and worked reference cases for the Depth Of Field Calculator below before running your calculation.

Parameter / ScenarioDefault / Sample ValueRule or Allowed RangeOutput / Usage Note
Input: Actual lens focal length50Range: 1 to 2000Required workspace parameter
Input: Lens aperture (f-number)2.8Range: 0.7 to 128Required workspace parameter
Input: Subject focus distance3Range: 0.05 to 10000Required workspace parameter
Input: Circle of Confusion (CoC)0.03Range: 0.003 to 0.5Required workspace parameter
Worked Case 1: Portrait setup: 50 mm lens at f/2.8, 3.0 m focus distance, 0.030 mm CoC (Full Frame)Preloaded / test valuesHyperfocal H = (f^2 / (N * c)) + f; Near Limit Dn = (s * (H - f)) / (H + s - 2*f); Far Limit Df = (s * (H - f)) / (H - s) for s < H else InfinityHyperfocal distance H is 29.81 m (97.81 ft). Near limit is 2.73 m and Far limit is 3.33 m, giving a Total Depth of Field of 0.60 m (60.1 cm / 1.97 ft), split 45.0% in front (27.1 cm) and 55.0% behind (33.0 cm).
Worked Case 2: Landscape hyperfocal setup: 24 mm lens at f/8, 3.0 m focus distance, 0.030 mm CoCPreloaded / test valuesHyperfocal H = (f^2 / (N * c)) + f; Near Limit Dn = (s * (H - f)) / (H + s - 2*f); Far Limit Df = (s * (H - f)) / (H - s) for s < H else InfinityHyperfocal distance H is 2.42 m (7.95 ft). Because the 3.0 m focus distance exceeds H (2.42 m), Depth of Field is Infinite, keeping everything from 1.34 m (4.40 ft) to infinity in focus.

How to use Depth Of Field Calculator step by step

Select your actual lens focal length, f-stop, and sensor CoC before shooting portraits, landscapes, or product close-ups.

Enter physical focal length and aperture f-number

Input your lens's actual optical focal length in mm (e.g., 50 mm) and selected f-stop (e.g., f/2.8).

Depth Of Field Calculator step 1: Enter physical focal length and aperture f-number
Step 1 workflow overview for Depth Of Field Calculator.

Set subject focus distance in meters

Enter the distance from your camera's focal plane mark to the subject in meters.

Depth Of Field Calculator step 2: Set subject focus distance in meters
Step 2 workflow overview for Depth Of Field Calculator.

Enter sensor CoC and inspect DoF and hyperfocal limits

Set your Circle of Confusion (0.030 mm Full Frame, 0.020 mm APS-C, 0.015 mm MFT) and click Calculate Depth of Field.

Depth Of Field Calculator step 3: Enter sensor CoC and inspect DoF and hyperfocal limits
Step 3 workflow overview for Depth Of Field Calculator.

Worked examples for Depth Of Field Calculator

Compare a 50mm f/2.8 portrait setup against a 24mm f/8 hyperfocal landscape setup.

Portrait setup: 50 mm lens at f/2.8, 3.0 m focus distance, 0.030 mm CoC (Full Frame)

Hyperfocal distance H is 29.81 m (97.81 ft). Near limit is 2.73 m and Far limit is 3.33 m, giving a Total Depth of Field of 0.60 m (60.1 cm / 1.97 ft), split 45.0% in front (27.1 cm) and 55.0% behind (33.0 cm).

Depth Of Field Calculator example 1: Portrait setup: 50 mm lens at f/2.8, 3.0 m focus distance, 0.030 mm CoC (Full Frame)
Worked example 1 for Depth Of Field Calculator.

Landscape hyperfocal setup: 24 mm lens at f/8, 3.0 m focus distance, 0.030 mm CoC

Hyperfocal distance H is 2.42 m (7.95 ft). Because the 3.0 m focus distance exceeds H (2.42 m), Depth of Field is Infinite, keeping everything from 1.34 m (4.40 ft) to infinity in focus.

Depth Of Field Calculator example 2: Landscape hyperfocal setup: 24 mm lens at f/8, 3.0 m focus distance, 0.030 mm CoC
Worked example 2 for Depth Of Field Calculator.

Customizing CoC for large exhibition prints

If you need a custom CoC for a specific print size and viewing distance, calculate it first in our Circle Of Confusion Calculator.

Depth Of Field Calculator example 3: Customizing CoC for large exhibition prints
Worked example 3 for Depth Of Field Calculator.

How to interpret the Depth Of Field Calculator output

Check both Total Depth of Field and the Front/Rear split when placing your focus point on a group or landscape.

The headline result displays Total Depth of Field (in meters/cm and feet, or Infinite when s >= H). Breakdown cards show Near acceptable sharpness limit, Far acceptable sharpness limit, Front vs. Rear DoF split, Hyperfocal distance H, and Hyperfocal near limit (H / 2).

How to interpret Depth Of Field Calculator results
Result interpretation guide for Depth Of Field Calculator.

Input limits, assumptions, and related tools

Note that focus distance must be greater than the lens focal length.

Focus distance is measured from the camera's sensor plane (marked with a phi symbol on the camera body), not the front glass element of the lens. Standard thin-lens equations assume symmetrical pupil magnification.

Scope limits and assumptions for Depth Of Field Calculator
Assumptions and input boundaries for Depth Of Field Calculator.

Depth Of Field Calculator: common questions

Answers about using Depth Of Field Calculator and understanding its results.

What is hyperfocal distance and how do I use it for landscape photography?

Hyperfocal distance (H) is the closest focus distance at which a lens can be focused while keeping objects at infinity acceptably sharp. When you focus precisely at H, everything from half of H (H / 2) all the way to infinity falls within your depth of field.

Is depth of field always split 1/3 in front of the subject and 2/3 behind?

No, the '1/3 front, 2/3 rear' rule of thumb is only true at one specific moderate distance. At close portrait or macro distances, depth of field is split nearly 50% in front and 50% behind the subject; near the hyperfocal distance, almost 100% of the depth of field extends behind the subject.

What Circle of Confusion (CoC) value should I enter for my camera sensor?

Standard defaults are 0.030 mm (or 0.025 mm Zeiss) for 35mm Full Frame, 0.020 mm for Nikon/Sony/Fuji APS-C, 0.019 mm for Canon APS-C, 0.015 mm for Micro Four Thirds, and 0.011 mm for 1-inch sensors.

Why does stopping down to f/22 sometimes make the photo look softer even though DoF is deeper?

While a larger f-number increases geometric depth of field, stopping down past f/11 or f/16 causes optical diffraction (Airy disk blur) to exceed your Circle of Confusion across the entire frame.

Try your own values

Choose another tool for your next calculation, conversion, or text task.

Calculate Depth of Field