Exposure Triangle Simulator

Depth of field calculator

Enter your sensor, lens, aperture and focus distance to see exactly what will be sharp. The calculator gives the near and far limits of acceptable sharpness, the total depth of field and the hyperfocal distance, using the standard circle of confusion for each sensor size.

Try:
Near limit–
Far limit–
Total depth of field–
Hyperfocal distance–

Key takeaways

The short version

  • Depth of field gets shallower with a wider aperture, a longer focal length and a closer focus distance.
  • Roughly one third of the sharp zone is in front of the focus point and two thirds behind, except at close range.
  • Focusing at the hyperfocal distance keeps everything from half that distance to infinity sharp.
  • Standard circle of confusion: 0.030 mm full frame, 0.020 mm APS-C, 0.015 mm Micro Four Thirds.

Last updated · Exposure Triangle Simulator editorial team · How we test

The basics

What is depth of field?

A lens focuses perfectly at only one distance. Objects nearer or farther are slightly blurred, but if the blur is small enough the eye still reads them as sharp. Depth of field is the range of distances where that blur stays below the threshold.

That threshold is the circle of confusion: the largest blur spot that still looks like a point in a normal print viewed at a normal distance. The usual convention is the sensor diagonal divided by 1500, which gives 0.030 mm on full frame.

Want to see it rather than calculate it? The aperture lesson opens the camera simulator at f/1.4, where you can watch the background blur change.

The math

Depth of field formulas

This calculator uses the standard thin-lens equations, with focal length f, f-number N, circle of confusion c and focus distance s, all in millimeters:

ValueFormula
Hyperfocal distance Hf² ÷ (N × c) + f
Near limits × (H − f) ÷ (H + s − 2f)
Far limits × (H − f) ÷ (H − s), or infinity when s ≥ H
Total depth of fieldFar limit − near limit

Worked example

A 50mm lens at f/2.8 on full frame: H = 50² ÷ (2.8 × 0.03) + 50 = 29,812 mm, about 29.8 m. Focused at 3 m, the near limit is 2.73 m and the far limit is 3.33 m, for about 0.6 m of depth of field.

Landscapes

How to use hyperfocal distance

  1. Pick your aperture, usually f/8 to f/11 for landscapes.
  2. Read the hyperfocal distance from the calculator.
  3. Focus at that distance. Use manual focus or focus on something about that far away.
  4. Everything from half the hyperfocal distance to infinity will be acceptably sharp.
Lens (full frame)f/8f/11f/16
16mm1.1 m0.8 m0.55 m
24mm2.4 m1.8 m1.2 m
35mm5.1 m3.7 m2.6 m
50mm10.5 m7.6 m5.3 m
Background blur

What changes depth of field

ChangeDepth of field
Wider aperture (f/8 → f/2)Shallower
Longer focal length, same distanceShallower
Closer focus distanceMuch shallower
Smaller sensor, same framingDeeper
Page 1 of the free Camera Settings Cheat Sheet PDF, showing the ISO chart
Free download

Get the printable camera settings cheat sheet

Two pages to keep in your camera bag: the full ISO chart, settings for 10 common shots, handheld shutter speeds by lens, ND filter times and the five rules worth memorizing.

FAQ

Frequently asked questions

How do you calculate depth of field?

Find the hyperfocal distance H = f² ÷ (N × c) + f. Then the near limit is s(H − f) ÷ (H + s − 2f) and the far limit is s(H − f) ÷ (H − s), where s is the focus distance.

What circle of confusion should I use?

0.030 mm for full frame, 0.020 mm for most APS-C, 0.019 mm for Canon APS-C and 0.015 mm for Micro Four Thirds. Use a smaller value if you print very large or zoom in to 100%.

Does a smaller sensor give more depth of field?

At the same framing and f-number, yes. A smaller sensor needs a shorter lens for the same view, and that increases depth of field.

Is depth of field split evenly in front and behind?

No. At normal distances about one third is in front of the focus point and two thirds behind. Up close, in macro, it becomes nearly 50/50.