DoF Calculation

What's the key to magic photos?
- Depth of fields!

You've heard the advice a million times: "Master depth of field, and your photos will magically look much better." Depth of field is a key compositional element in many, if not most, photographs. It is one of the most important tools a photographer can use to create striking images. And it's true - using depth of field the right way is very powerful. It can radically transform good photos into images that win hearts and minds.

Girl near the lake

Nikon D4s | 200mm | f/1.4 | 1/640s | ISO 100 | 5650K | Original from Photopills

In this photo, the girl is clear while the foreground and the background are vague. So when you see it, you will be attractted by the girl in the center and get inspired - what is she doing there. But you can imagine what if all the things on this photo are super clear with details.

Why DoF exsits?
- Focus!

Due to the fact that a camera can precisely focus the lens at only one distance at a time, sharpness gradually decreases on each side of the focused distance or, if you prefer, the plane of focus (PoF).

As a result, depth of field (DoF) is the distance between the nearest and furthest elements in a scene that appear to be acceptably sharp in an image.

Let's simulate what's happened during capturing a moving dot using your iPhone. First, let's pretent your iPhone is focusing on the plane 1 meter away from you.

Focus Length 1000 mm | Distance to the dot 3000 mm

Distance to the dot mm

Depending on if the lights through the lens can or can't be focused on the camera sensor, you will get a clear or blur dot on your screen.

But you can notice there's a range around the focus plane where you always get a super clear dot. The reason is your camera sensor is strong enough to tolerate some imprecision. If all the lights still land on the sensor, even not on one point, the camera can still analysis them to make the photo clear. But if some lights miss the sensor, the photo will lose some details - translate: that area will be blur or 'blurer'.

Let's simulate what's happened during capturing a moving dot using your iPhone. First, let's pretent your iPhone is focusing on the plane 1 meter away from you.

What affects depth of field?
- Many...

Depth of field depends on aperture, focus distance, focal length and circle of confusion (CoC). The latter depends on camera sensor size, final image print size, image viewing distance and viewer's visual acuity, so we won't talk about CoC here. For each camera, like iPhone or Canon EOS 5D II, they have a fixed CoC value.

Try to play with the simulator, control the focus distance, focal length and aperture to see what happened.

Near Point 986 mm | Focus Length 1000 mm | Far Point 1015 mm

Focal mm

Apeture

Distance to person mm

How to apply DoF?
- Have a try here...

I designed a quick model for you with shrub, a person and some trees. Still remember the photo you see in the front, try to control the DoF to get a focus view on the person, but not on shrub and the trees.

Cheatsheet here:
Produce more DoF: small apertures (f/8-f/22), short focal lengths (10-35mm), longer focus distances.
Produce less DoF: wide apertures (f/1.4-f/5.6), long focal lengths (70-600mm), short focus distances.

Near Point 986 mm | Focus Length 1000 mm | Far Point 1015 mm
PERFECT! Great portrait with clear person and vague trees.

Focal mm

Apeture


Distance to shrub mm

Distance to person mm

Distance to tree mm

Hyper Focal Length (mm)
50
Focal
*
50
Focal
/ (
1.4
Aperture
*
0.0029
CoC
)
61576
Near Point (mm)
61657
Hyperfocal
*
1000
Distance
/ (
61657
Hyperfocal
+
1000
Distance
-
50
Focal
)
984
Far Point (mm)
61657
Hyperfocal
*
1000
Distance
/ (
61657
Hyperfocal
-
1000
Distance
-
50
Focal
)
1015