Your DSLR’s autofocus · Part 1 of 4

Your DSLR doesn’t measure focus where it takes the picture

You’re almost certainly not getting the sharpest shots from your DSLR, and it’s not your fault. To see why, you need to know where the camera measures focus. It isn’t where it takes the picture.

Your DSLR’s autofocus: Part 1 of 4
  1. How DSLR autofocus works
  2. What goes wrong
  3. The fix
  4. The evidence
The imaginary FoCalCam 3000 with beams of light passing through it

The evidence first

Before the how and why, here’s what 45,042 FoCal calibrations on two of the most popular enthusiast DSLRs, the Nikon D850 and the Canon EOS 5D Mark IV, say about the adjustment they needed:

Autofocus adjustment needed: Nikon D850 and Canon EOS 5D Mark IV, all lenses
Autofocus adjustment needed: Nikon D850 and Canon EOS 5D Mark IV, all lensesNikon D850: 67% significant, 19% noticeable, 9% minimal, 5% none. Canon EOS 5D Mark IV: 50% significant, 27% noticeable, 15% minimal, 8% none.0%2%4%6%8%10%-20-15-10-50+5+10+15+20Adjustment needed (units): 0 = none
Nikon D850Canon EOS 5D Mark IVSignificant: 4+Noticeable: 2–3Minimal or none: 0–1
SignificantNoticeableMinimalNone
Nikon D85067%19%9%5%
Canon EOS 5D Mark IV50%27%15%8%

Source: FoCal IQ, from FoCal users’ calibration results.

  • Almost 9 in 10 lenses on the D850 and almost 8 in 10 on the 5D Mark IV would take visibly sharper pictures after calibration (an adjustment of 2 or more).
  • 67% of D850s and 50% of 5D Mark IVs needed a significant adjustment, 4 units or more: the kind you can see straight away.

There’s more of this on the evidence page. For now, here’s why your DSLR needs it.

Meet the FoCalCam 3000

To explain how a DSLR focuses I invented a camera. It isn’t very practical: the lens elements float in mid-air, and it can’t take a single photo. But it shows the parts of a DSLR that matter for autofocus, and where things go wrong.

A rendering of an imaginary camera, the FoCalCam 3000, with its lens elements floating in front of the body
The FoCalCam 3000. Not the most practical of cameras.

Setting up the shot

You’re looking through the viewfinder, framing your shot. Light comes in through the lens (blue), through the inside of the camera, and out of the eyepiece (green) into your eye:

The FoCalCam 3000 with a blue beam of light entering the lens and a green beam leaving the eyepiece

Take away the lens and the camera body, and you can see what happens to that light inside:

Inside a DSLR: light hits the main mirror, goes up through the pentaprism to the eyepiece, and some passes through to a secondary mirror
The light paths inside the camera: green to your eye, red to the AF sensor.

The light hits the main mirror. It’s semi-transparent, so most of the light goes up into the pentaprism, bounces around, and comes out of the eyepiece. But some goes through the main mirror, hits a small secondary mirror behind it, and is sent down to the AF module in the bottom of the camera:

A closer view of the light passing through the main mirror and down from the secondary mirror to the AF module
The path to the AF sensor, off the secondary mirror.

So when you half-press the shutter button, you aren’t the only one looking at the scene. The AF module is looking too, and that view is what the camera uses to focus.

Taking the shot

Press the shutter all the way, and a lot happens very quickly:

  • the main mirror flips up towards the pentaprism,
  • the secondary mirror folds up behind it,
  • the shutter in front of the image sensor opens.

Now the light goes to one place only: the image sensor.

Inside a DSLR with the mirror up and the image sensor exposed
Mirror up, shutter open: the shot is captured. (It’s also why the viewfinder blacks out.)

Focus is not measured at the image sensor

A DSLR measures focus in the AF module, a completely different part of the camera from the image sensor that takes the picture.

That’s the key to everything that follows, so here’s an example of what happens when you take a shot:

  1. You press the shutter button
  2. The AF module measures how far out of focus the subject isOffset +27
  3. The AF processor works out how far to move the lens85 steps
  4. The lens moves, the mirror lifts, the shot is takenSharp
The numbers are made up, but the steps are what happens.
  1. You aim at your subject and press the shutter button.
  2. Light comes through the lens, off the secondary mirror and into the AF module. The AF sensor in it reports how far out of focus the subject is: say +27.
  3. The AF processor takes that +27 and, using calibration data stored in the camera, works out that the lens has to move 85 steps towards infinity for the picture to be sharp at the image sensor.
  4. The lens moves (perhaps a few times over), and the shot is taken.

At no point does the camera check the focus at the image sensor. Everything depends on a fixed, known relationship between what the AF module measures and where the lens has to be for a sharp picture on the sensor.

(How the AF sensor actually measures focus doesn’t matter here. If you’re curious, it’s the same idea as on-sensor phase detect autofocus, just in a separate module.)

Factory calibration

When your camera was made, its autofocus system was tested and calibration data was written into it. That data makes up for tiny differences in the position of:

  • the AF module and the parts inside it,
  • the image sensor,
  • the main mirror, and the seats it rests on,
  • the secondary mirror,
  • the lens mount.

It corrects for the difference between the perfect design and the real parts in your camera, on the day it was calibrated. That might have been months, years or even decades ago. And it was done with the factory’s lens, not yours.

Next: what can change that relationship between the AF module and the image sensor.

Find out what your own kit needs

Check FoCal supports your camera, then calibrate every lens and see exactly how much difference it makes.