# Does changing the focal length change the depth of field for the same magnification?

When taking pictures with lenses with the same f-stop and different focal lengths, and magnifying the same subject to the same size (by changing the distance), how does the depth of field vary?

I am hoping that by getting a smaller focal length lens I will be able to capture a longer depth of field for the same light/magnification conditions. Is it worth for me to get a smaller focal length lens?

• Possible duplicate of Why is depth of field affected by focal length? Commented Jul 6, 2018 at 6:40
• That answers to that question do not answer my question, which stresses "for the same magnification". That question is quite unspecific and the answers it is getting are not the best ones.. Commented Jul 6, 2018 at 20:07

To get the same framing of your subject using the same camera, you'll have to shoot from further back with,say, an 85mm lens than with a 50mm lens. The decrease in DoF from using an 85mm lens compared to a 50mm lens when both are used from the same distance is offset by the increase in DoF when using the same lens from a greater distance. In the end at most distances they usually offset each other almost exactly.

Assuming an 8×10 display size viewed from a distance of 12 inches, shooting from 20 feet with the 50mm lens at f/1.8 on a FF camera will give you a DoF of about 1.86 feet or 22.32 inches. Shooting from 34 feet with the 85mm lens at f/1.8 on a FF camera will give you a DoF of about 1.86 feet or 22.32 inches.

Assuming an 8×10 display size viewed from a distance of 12 inches, shooting from 10 feet with the 50mm lens at f/1.8 on a FF camera will give you a DoF of about 0.46 feet or 5.52 inches. Shooting from 17 feet with the 85mm lens at f/1.8 on a FF camera will give you a DoF of about 0.46 feet or 5.52 inches.

In both cases the total depth of field is the same when the 85mm lens is used from 1.7× the distance of the 50mm lens to get the same framing of the same subject as the 50mm lens. What does change is how much of that DoF is on front of and behind the point of focus.

At a distance of ... the Dof for a ... lens is distributed as → near DoF far DoF
20 feet 50 mm 0.89 feet 0.97 feet
34 feet 85 mm 0.9 feet 0.95 feet
10 feet 50 mm 0.22 feet 0.24 feet
17 feet 85 mm 0.23 feet 0.23 feet

Please note: All distances are rounded to the nearest two significant digits to the right of the decimal, which can introduce rounding errors between the sum of the distances on each side of the point of focus and the total distance.

What aperture you need to use to get all of your subject within the depth of field depends upon:

• The focal length of the lens.
• The distance from the camera to the point on the subject you want to be most in focus. There's always only one distance that is truly in focus. The rest of what we call "depth of field (DoF)" is not actually in sharpest focus, but is close enough that our eyes can't tell the difference when the image is displayed at a specific size from a specific viewing distance. In short, depth of field is an illusion, although a very convincing one.
• Which way your subject is oriented in relation to the camera. If the longest edge is perpendicular to the optical axis of the lens you'll need much less DoF than if it is lying along the same direction as the lens' optical axis.
• The size you intend to display the image.
• The distance from which you intend the image to be viewed.

Depth of field is only effected by aperture and magnification. (magnification is the result of focal length and distance)

Changing the focal length while keeping the same aperture and magnification will NOT change the depth of field. (in order to keep the same magnification, if you change the focal length, the distance must also change)