EN
My tools

Depth of Field Calculator

Find the near and far limits of sharp focus, total depth of field and hyperfocal distance from focal length, f-number, distance and sensor size.

The real focal length printed on the lens, not the full-frame equivalent.
Total depth of field
1.85 m
from 2.34 m to 4.19 m
Near limit
2.34 m
Far limit
4.19 m
Hyperfocal distance
10.47 m
focus here and everything from 5.23 m to infinity is acceptably sharp
In front of the subject
0.66 m
Behind the subject
1.19 m
Circle of confusion
0.03 mm

Thin-lens approximation with distances measured from the lens. Close-up and macro work (subject within about 10× the focal length) needs the magnification-based formulas.

The circle of confusion assumes an 8 × 10 in print viewed at about 25 cm; pixel-peeping on a high-resolution screen calls for a smaller value.

Depth of field at 3 m by aperture (50 mm lens)
ApertureNear limitFar limitTotalHyperfocal
f/1.42.86 m3.16 m0.3 m59.57 m
f/22.8 m3.23 m0.43 m41.72 m
f/2.82.73 m3.33 m0.6 m29.81 m
f/42.63 m3.5 m0.87 m20.88 m
f/5.62.5 m3.74 m1.24 m14.93 m
f/8 ←2.34 m4.19 m1.85 m10.47 m
f/112.16 m4.91 m2.75 m7.63 m
f/161.92 m6.92 m5 m5.26 m
f/221.69 m13.56 m11.88 m3.84 m
My tools →
Advertisement

Depth of field is the zone in front of and behind your subject that still looks sharp in the photo. A wide aperture and close focus make it shallow for portraits with blurred backgrounds; a small aperture and wide lens make it deep for landscapes. This calculator gives the near and far limits, the total depth, how much lies in front of and behind the subject, and the hyperfocal distance. A table shows the same distance at every full stop from f/1.4 to f/22.

How to use this tool

  1. Enter the real focal length of the lens and the f-number.
  2. Enter the distance to the subject in metres or feet.
  3. Choose your camera's sensor size, which sets the circle of confusion.
  4. Read the near and far limits, and compare apertures in the table.

Formula

H = f² ÷ (N × c) + f · near = s (H − f) ÷ (H + s − 2f) · far = s (H − f) ÷ (H − s), infinite when s ≥ H

f is the focal length, N the f-number, c the circle of confusion and s the subject distance, all in millimetres. c is the largest blur spot still seen as a point: about 1/1440 of the sensor diagonal, so 0.030 mm for full frame. Focusing at the hyperfocal distance H makes everything from H ÷ 2 to infinity acceptably sharp. These are the standard thin-lens formulas, accurate for normal shooting distances.

Example

A 50 mm lens at f/8, focused at 3 m on full frame (c = 0.030 mm): H = 50² ÷ (8 × 0.03) + 50 = 10.47 m. Near limit = 3000 × 10,416.7 ÷ 13,366.7 = 2.34 m, far limit = 3000 × 10,416.7 ÷ 7,466.7 = 4.19 m, so about 1.85 m is sharp: 0.66 m in front of the subject and 1.19 m behind it.

Frequently asked questions

Why does a smaller sensor give more depth of field?

For the same framing it needs a shorter focal length, and the shorter lens gives more depth even though the circle of confusion is smaller. At the same focal length and distance, a smaller sensor actually gives less depth.

Should I enter the full-frame equivalent focal length?

No. Enter the focal length printed on the lens (for example 25 mm on Micro Four Thirds) and choose the matching sensor size.

Why is more in focus behind the subject than in front?

Sharpness falls off more slowly with distance, so roughly one third of the depth lies in front and two thirds behind at normal distances. Close up, the split approaches half and half.

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). Depth of Field Calculator. https://kakao.mobile/tools/depth-of-field-calculator/

MLA

“Depth of Field Calculator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/depth-of-field-calculator/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement