TTKTheTextKit

Depth of Field Calculator

Enter the focal length of the lens in millimeters, the f-number, the distance you focus on in meters or feet and the circle of confusion. The calculator gives the near limit and the far limit of the sharp zone, the total depth of field and the hyperfocal distance. Buttons set the circle of confusion for full frame, APS-C and Micro Four Thirds sensors. Everything runs in your browser.

Near limit
2.82 m
0.180 m in front of the subject
Far limit
3.20 m
0.204 m behind the subject
Total depth of field
0.384 m
Hyperfocal distance
46.35 m
Focus there and the sharp zone runs from 23.17 m to infinity

The hyperfocal distance is the focal length squared divided by the f-number times the circle of confusion, plus the focal length. With the subject at distance s, the near limit of the sharp zone is s times (H minus f) divided by (H plus s minus 2f), and the far limit is s times (H minus f) divided by (H minus s), which is infinite once s reaches H. The circle of confusion is the largest blur spot that still looks like a point, and the result depends on it entirely: 0.03 mm is the value given for 35 mm photography, and the buttons divide it by the crop factor for smaller sensors. Distances are measured from the lens, and the formulas assume a thin lens, so treat the numbers as a guide for planning a shot. A larger print or a closer look calls for a smaller circle of confusion. Everything runs in your browser.

Related Tools

[5 suggestions]

About the Depth of Field Calculator

The hyperfocal distance is the focal length squared divided by the f-number times the circle of confusion, plus the focal length. With the subject at distance s, the near limit is s times (H minus f) divided by (H plus s minus 2f), and the far limit is s times (H minus f) divided by (H minus s), which is infinite once s reaches H. A 50 mm lens at f/8 with a circle of confusion of 0.03 mm has a hyperfocal distance of 10,467 mm, about 10.5 m, so focused there everything from about 5.2 m to infinity is acceptably sharp. The same lens at f/1.8 focused at 3 m has a sharp zone from 2.82 m to 3.20 m, a depth of field of 0.384 m, and closing it to f/8 widens that to 2.34 m to 4.19 m. A 24 mm lens at f/11 has a hyperfocal distance of 1.77 m. The circle of confusion is the largest blur spot that still looks like a point, and the answer depends on it entirely. 0.03 mm is a typical value for 35 mm photography, and the sensor buttons divide it by the crop factor, so APS-C at 1.5 gives 0.02 mm. A bigger print or a closer look calls for a smaller circle. Distances are measured from the lens and the formulas assume a thin lens, so use the numbers for planning a shot.

What is the hyperfocal distance?▾

It is the closest distance you can focus on while keeping everything out to infinity acceptably sharp. It equals the focal length squared divided by the f-number times the circle of confusion, plus the focal length. For 50 mm at f/8 and 0.03 mm it is about 10.5 m.

How do I calculate depth of field?▾

Find the hyperfocal distance H, then the near limit s times (H minus f) over (H plus s minus 2f) and the far limit s times (H minus f) over (H minus s), where s is the distance you focus on. The difference is the depth of field.

What circle of confusion should I use?▾

0.03 mm is a typical value for 35 mm photography. For a smaller sensor divide it by the crop factor, for example 0.02 mm for APS-C at 1.5. Use a smaller value for large prints or critical viewing.

Why is the far limit infinity?▾

When you focus at the hyperfocal distance or beyond, the far limit of the sharp zone has no end. The near limit then stays at about half the hyperfocal distance.

Is my data uploaded?▾

No. The calculation runs in your browser and nothing you enter is sent anywhere.