Depth of field & exposure calculators
All tools

Depth of field calculator

See exactly what will be sharp before you press the shutter. Pick your sensor, lens, aperture and focus distance — the near and far limits, total depth of field and hyperfocal distance update instantly.

Advanced

Leave empty to use the standard value for the sensor. Halve it for pixel-level sharpness.

Near limit2.73 m
Far limit3.33 m
Depth of field60 cm
hyperfocal 29.8 m∞near2.73 mfar3.33 mfocus 3.00 m0.1 m0.5 m1 m2 m3 m5 m10 m20 m50 m

With a 50 mm lens at f/2.8 on full frame focused at 3.00 m, everything from 2.73 m to 3.33 m is acceptably sharp: 60 cm of depth of field.

In front of subject
27 cm (45%)
Behind subject
33 cm (55%)
Hyperfocal distance
29.8 m
Circle of confusion
0.030 mm

How the depth of field calculator works

Depth of field is calculated from the hyperfocal distance H = f² ÷ (N × c) + f, where f is the focal length, N the f-number and c the circle of confusion. For a subject at distance s, the near limit is s(H − f) ÷ (H + s − 2f) and the far limit is s(H − f) ÷ (H − s). When s is at or beyond H, the far limit is infinity. These are the same thin-lens formulas used by DOFMaster and printed lens scales, so results match published depth of field tables.

Reading the diagram

The diagram puts your focus point in the middle and infinity at the right-hand edge, so you can compare a 4 cm portrait sharp zone and a landscape that is sharp from 1 m to the horizon on the same picture. The shaded band is everything that is acceptably sharp; the dashed line marks the hyperfocal distance. Tap Focus at hyperfocal to move the focus point there.

Quick rules of thumb

  • One stop of aperture (for example f/4 to f/5.6) increases depth of field by about 40%.
  • Halving the distance to your subject reduces depth of field to roughly a quarter.
  • Doubling the focal length at the same distance also reduces it to roughly a quarter — but if you step back to keep the same framing, depth of field stays almost the same.
  • For portraits at f/1.4–f/2, focus on the nearest eye: the sharp zone may be thinner than the distance between the eyes and the tip of the nose.

New to the topic? Read depth of field explained, see every step of the maths in the depth of field formula with worked examples, or browse ready-made depth of field tables for popular lenses.

How to use the depth of field calculator

  1. Choose your sensor. Select your camera format — full frame, APS-C, Micro Four Thirds, 1-inch, medium format or phone. This sets the circle of confusion.
  2. Enter the lens and aperture. Type the real focal length printed on the lens (not the full-frame equivalent) and choose the f-number you plan to shoot at.
  3. Set the focus distance. Enter the distance from the camera to your subject in meters or feet.
  4. Read the sharp zone. The near limit, far limit and total depth of field update instantly, and the diagram shows how the sharp zone splits in front of and behind the subject.

Depth of field for popular lenses

Guides

More photography calculators

Frequently asked questions

What is depth of field?

Depth of field (DoF) is the range of distances in front of and behind the point you focus on that still looks acceptably sharp in the final photo. Sharpness falls off gradually, so calculators define "acceptably sharp" with a circle of confusion: the largest blur spot the eye still sees as a point.

What affects depth of field?

Four things: aperture (a smaller f-number such as f/1.8 gives less depth of field than f/8), focal length (longer lenses give less), focus distance (closer focus gives much less) and sensor size, which changes the circle of confusion and the focal length you need for the same framing.

What circle of confusion does this calculator use?

The sensor diagonal divided by 1443: 0.030 mm for full frame, 0.020 mm for APS-C, 0.019 mm for Canon APS-C and 0.015 mm for Micro Four Thirds. These match DOFMaster and most lens distance scales and assume an 8 × 10 inch print viewed from about 25 cm. For pixel-level sharpness on a high-resolution sensor, enter half the value under Advanced.

Where is the focus distance measured from?

From the sensor, which is marked on many camera bodies with a circle crossed by a line (⦵). At normal shooting distances the difference between measuring from the sensor and from the front of the lens is negligible; at close range, measure carefully.

Is there more depth of field behind the subject than in front?

Usually. At moderate distances roughly one third of the sharp zone is in front of the subject and two thirds behind. Up close the split approaches 50/50, and when you focus at the hyperfocal distance everything behind the subject is sharp all the way to infinity.

Do crop-sensor cameras have more depth of field?

For the same framing and the same f-number, yes: a smaller sensor needs a shorter focal length to frame the same shot, which increases depth of field by about the crop factor. With the same lens at the same distance, a crop sensor actually gives slightly less depth of field, but it also frames the scene more tightly.

Does it work for macro photography?

The formulas are accurate when the subject is more than about ten focal lengths away. At macro magnifications (close to 1:1) depth of field is measured in millimetres and is better estimated from magnification: total DoF ≈ 2 × N × c × (m + 1) / m².