Depth of Field Calculator

Depth of field is the range of distances in a scene that appears acceptably sharp in front of and behind the focus point. This calculator computes that range — near limit, far limit, total depth of field, and hyperfocal distance — using the exact sensor of the camera you own.

Your setup

Auto-set from sensor (diagonal ÷ 1500). Override for custom print/viewing standards.

Results

Hyperfocal
—
focus here = ∞ DoF
Near limit
—
closest sharp point
Far limit
—
farthest sharp point
Total DoF
—
near → far
In front / behind
camera
0focus∞
💡 Rule of thumb: at distances well below hyperfocal, about ⅓ of the DoF is in front of your focus point and ⅔ behind it. Use the visual bar above as your guide.

How to use this depth of field calculator

  1. Pick your camera — the sensor size and circle of confusion are applied automatically (no more guessing your CoC).
  2. Select your lens or type the focal length and choose the aperture you plan to shoot at.
  3. Enter your focus distance (m or ft) and read the near limit, far limit, and total depth of field.
  4. Save setups you use often — they're stored in your browser and reload instantly next time.

For landscape work, check the hyperfocal distance: focus there and everything from half that distance to infinity is sharp. For portraits, you'll usually want a wide aperture so the far limit stays comfortably behind your subject's head.

Related tools & guides

Hyperfocal Calculator

Find the exact focus point that maximizes sharp depth.

Open →

ND Filter Calculator

Long-exposure shutter times for any filter strength.

Open →

Field of View Calculator

Horizontal and vertical angles for any sensor + lens.

Open →

Hyperfocal Distance Chart

Printable full-frame & APS-C charts, no math needed.

Open →

Circle of Confusion Guide

What CoC is, why it matters, and which standard to use.

Open →

Camera Sensor Sizes

Full frame vs APS-C vs Micro 4/3 vs phone — side by side.

Open →
🎒 Want this as a laminated field card? The ShutterMath Field Kit has all six, print-ready.

Depth of field FAQ

What is depth of field, in plain English?

Depth of field is the distance range in your scene that looks acceptably sharp. Only one plane is truly in focus; everything else falls within the depth of field if it's close enough to that plane that the blur stays below the circle of confusion.

Does sensor size change depth of field?

Yes — at the same focal length and aperture, a larger sensor produces shallower depth of field because it needs a longer lens to achieve the same framing. The circle of confusion also scales with sensor diagonal, which the calculator handles automatically.

What aperture gives maximum depth of field?

Diffraction starts softening images around f/8–f/11 on full frame, f/5.6–f/8 on APS-C and Micro 4/3. The sharpest "landscape" choice is usually the smallest aperture before diffraction — use the hyperfocal distance at that aperture.

Depth of field tables (full frame, sharpness circle 0.029 mm)

Short answer: at 3 m with a 50 mm lens, f/8 gives a depth of field of 1.77 m (sharp from 2.36 m to 4.12 m). Opening up to f/1.4 shrinks that to 0.29 m; stopping down to f/16 grows it to 4.61 m. Every figure below is computed with the same formula the calculator uses.

Changing aperture while focal length and focus distance stay fixed
Aperture (50 mm, 3 m)Near limitFar limitTotal DoFHyperfocal
f/1.42.86 m3.15 m0.29 m61.63 m
f/22.81 m3.22 m0.41 m43.15 m
f/2.82.74 m3.32 m0.58 m30.84 m
f/42.64 m3.47 m0.83 m21.6 m
f/5.62.52 m3.71 m1.19 m15.44 m
f/82.36 m4.12 m1.77 m10.83 m
f/112.18 m4.79 m2.61 m7.89 m
f/161.94 m6.56 m4.61 m5.44 m
f/221.72 m11.69 m9.97 m3.97 m
Changing focal length at f/8 from the same 3 m focus distance
Focal length (f/8, 3 m)Near limitFar limitTotal DoFHyperfocal
16 mm0.82 m∞∞1.12 m
24 mm1.37 m∞∞2.51 m
28 mm1.6 m23.48 m21.88 m3.41 m
35 mm1.93 m6.78 m4.86 m5.32 m
50 mm2.36 m4.12 m1.77 m10.83 m
85 mm2.74 m3.31 m0.57 m31.23 m
135 mm2.89 m3.11 m0.22 m78.69 m
200 mm2.95 m3.05 m0.1 m173 m
Changing focus distance at 50 mm f/2.8
Focus distance (50 mm, f/2.8)Near limitFar limitTotal DoF
0.5 m0.49 m0.51 m15 mm
1 m0.97 m1.03 m0.06 m
2 m1.88 m2.14 m0.25 m
3 m2.74 m3.32 m0.58 m
5 m4.31 m5.96 m1.65 m
10 m7.56 m14.76 m7.2 m
20 m12.14 m56.65 m44.5 m

Why the numbers move the way they do

Depth of field grows with the square of focus distance, so doubling the focus distance roughly quadruples the sharp zone at the same aperture. It shrinks with the square of focal length, which is why an 85 mm portrait lens at f/8 has less depth than a 24 mm wide angle at the same f/8. Aperture acts linearly: one stop down adds about 41% more depth, not double.

The formulas behind the table are standard thin-lens equations. Hyperfocal distance is H = f² / (N × c) + f, where f is focal length in mm, N the f-number and c the circle of confusion. The near limit is H × s / (H + (s − f)) and the far limit is H × s / (H − (s − f)), with s the focus distance. Once s reaches H the far limit becomes infinity, which is the hyperfocal trick: focus at H and everything from H/2 to infinity is acceptably sharp.

Circle of confusion here is the sensor diagonal divided by 1500, the classic 35 mm standard (0.029 mm on full frame). A print viewed closer than the standard 0.25 m viewing distance needs a smaller circle: divide the CoC by the same factor you enlarge the print.