Depth of Field Calculator

Near and far limits, hyperfocal distance and a visual diagram, for any camera and lens

๐Ÿ“– How to Use This Calculator
Show Guide
  1. Select Your Camera Body
    Choose your camera from the dropdown. This fills in the sensor height, from which the calculator works out the sensor diagonal and the circle of confusion (diagonal รท 1500, 0.029 mm on full frame).
  2. Enter Lens Settings
    Input your focal length (e.g., 50mm, 85mm, 200mm) and select the aperture set on the lens (f/1.4 to f/22). If you use a teleconverter, select 1.4ร— or 2.0ร—, and the calculator multiplies both the focal length and the f-number.
    ๐Ÿ’ก Quick Tip: Wider apertures (f/1.4, f/2.8) create shallow DOF for portraits. Smaller apertures (f/11, f/16) maximize DOF for landscapes.
  3. Set Focus Distance
    Enter how far away your subject is from the camera. You can use meters or feet.
  4. Calculate & Visualize
    Click "Calculate DOF" to see your depth of field range, hyperfocal distance, and a visual diagram showing exactly what will be in focus.

๐ŸŽฏ Quick Presets

One-click settings for common photography scenarios

โš™๏ธ Advanced Settings Show

๐Ÿ“Š Depth of Field Results

Visual Depth of Field Preview
๐Ÿ“ท
Camera Position
Out of Focus
Acceptable
SHARP ZONE
Acceptable
Out of Focus
0m Near Limit
0m Focus Point
0m Far Limit
Total Depth of Field ?
-
-
Near Limit (Sharpness Starts) ?
-
-
Far Limit (Sharpness Ends) ?
-
-
Hyperfocal Distance ?
-
-
DOF Distribution
In front of focus: -
Behind focus: -

๐Ÿ’ก Photography Tip: Adjust your settings and see how it affects your depth of field!

Depth of field in short

Depth of field is the distance between the nearest and farthest points that look acceptably sharp. Four things set it: the aperture, the focal length, the distance to the subject and the sensor size. A wider aperture, a longer lens, a closer subject or a larger sensor at the same framing all make it shallower. The examples below come from the same formulas the calculator uses, with the standard circle of confusion.

Worked examples (circle of confusion: 0.029 mm on full frame, 0.019 mm on APS-C)
SetupSensorNear limitFar limitTotal depthHyperfocalCalculator
50 mm at f/2.8, subject at 3 mFull frame2.74 m3.32 m57.7 cm31.00 mOpen
85 mm at f/1.4, subject at 2.5 mFull frame2.47 m2.53 m6.8 cm179.00 mOpen
35 mm at f/8, subject at 3 mFull frame1.92 m6.80 m4.87 m5.34 mOpen
24 mm at f/11, focused at the hyperfocal distanceFull frame92.0 cmโˆžโˆž1.84 mOpen
300 mm at f/4 with a 1.4x teleconverter, subject at 20 mFull frame19.65 m20.37 m71.7 cm1092.49 mOpen
50 mm at f/2.8, subject at 3 mAPS-C (1.5x)2.83 m3.20 m37.3 cm47.67 mOpen

For a quick reference without the calculator, the hyperfocal distance chart lists full frame, APS-C and Micro Four Thirds lenses in metres and feet.

How the calculator works

It uses the standard thin-lens depth of field formulas. The hyperfocal distance is H = fยฒ / (N ร— c) + f, where f is the focal length, N the f-number and c the circle of confusion. With the subject at distance s, the near limit is s(H โˆ’ f) / (H + s โˆ’ 2f), and the far limit is s(H โˆ’ f) / (H โˆ’ s), or infinity once s reaches H.

The circle of confusion is the sensor diagonal divided by 1500, the convention for an 8ร—10 inch print viewed from about 25 cm. That gives 0.029 mm on full frame, about 0.019 mm on Nikon, Sony and Fujifilm APS-C, 0.018 mm on Canon APS-C and 0.014 mm on Micro Four Thirds. The camera list stores the sensor height, and the calculator works out the diagonal from the format's aspect ratio. A teleconverter multiplies both the focal length and the f-number, so a 300 mm f/4 lens with a 1.4x converter is treated as 420 mm at f/5.6. The circle of confusion guide explains where the standard comes from.

Questions

What circle of confusion does the calculator use?

The sensor diagonal divided by 1500: 0.029 mm on full frame. If you print large or inspect pixels closely, set a smaller value under Advanced Settings. Halving the circle of confusion halves the depth of field and doubles the hyperfocal distance.

Why do other calculators give different numbers?

Mostly because they use a different circle of confusion. Some use 0.030 mm or 0.025 mm for full frame, and some base it on the sensor height instead of the diagonal. Depth of field scales with the circle of confusion, so check which value a calculator assumes before comparing results.

Does a teleconverter change depth of field?

Yes. At the same distance, a 1.4x converter makes the zone about 1.4 times shallower: a 300 mm f/4 lens at 20 m has about 1.0 m in focus, and with a 1.4x converter about 0.72 m. At the same framing it behaves like a native lens of the new focal length and f-number. The teleconverter guide has the details.

How accurate are the results?

The formulas are accurate at normal distances. In close-up and macro work, where the subject is within a few focal lengths of the lens, use the magnification-based formula in the focus stacking guide, and remember that many lenses change their focal length slightly at close focus. Treat every result as a starting point and check a test frame.

Depth of field guides

Each guide explains one part of depth of field, with the numbers behind it. Browse all guides.

Fundamentals

Landscape, night and street

Portraits and background blur

Close-up, video and lenses

โ˜• Buy me a coffee @ivancorax