Equipment

How to Use AF Microadjustment on Your Camera

Published January 21, 2016

The most common questions and complaints I hear almost always have to do with AF accuracy, in one way or another, even if they don’t seem like it at first. “I’m trying to focus on this person’s eyes, but the ears are in focus instead,” or, “This lens is front focusing like crazy,” or, “This fast aperture prime was soft the whole time I used it.” Roger has written some rather lengthy, detailed posts about how phase-detection AF works (phase detection being the kind you use on a dSLR in normal, everyday shooting) so I won’t go into a full explanation here. But the gist of his articles is basically this: phase-detection AF isn’t always that accurate. Here’s some light reading, if you feel so inclined:

How Autofocus Often Works

Why You Can’t Optically Test Your Lens with Autofocus

Autofocus Reality, part 1: Center Point Single Shot Accuracy

That last link is the first in a 4 part series, but right there in that first part is a really good example of what AF microadjustment can do. You can read that if you like technical stuff, but I’m about to summarize it in the next paragraph.

So what is it and why is it necessary?

Lenses and cameras are made to certain specifications, and those specs fall within a narrow range of tolerances. Because of the way phase-detection AF works and how it relies on physical calibration for accuracy, if lens and camera tolerances stack up in one direction or another and things are off by minute amounts, then you might see consistent front or back focusing with that particular lens and camera combination. It’s important to know that this front or back focusing is a combination specific issue. You can take 20 copies of the same lens and test them on one camera body, and you might find that most of them are pretty close to dead on, one or two will probably front focus varying amounts, and one or two more will back focus varying amounts. You could then take those same 20 lenses and test them on a different camera body and get completely different results. This doesn’t mean the lenses or the cameras are broken. They just need adjustment, and this is something you can probably do yourself in camera.

How do I do it?

The procedure for making the necessary adjustments is pretty simple, and it’s the basically same across camera brands. Here’s a list of things you’ll need:

  • Camera
  • Lens or lenses to be adjusted
  • Tripod
  • Focusing target

 

The target can be something as fancy as a LensAlign, or as simple as a book and a yardstick. All you really need is something with a high contrast, flat face you can stand parallel to the sensor plane, and something next to it that will give you a scale to provide a gauge for the plane of focus.

 

This is a LensAlign.

 

This is how you do it on the cheap.

 

Once you have your target, get your camera set up on a tripod and have it level with your target. If you’re using a LensAlign, there are holes in the front face of the target that line up with red circles on the panel behind. If you’re using the book method, try to get the book and sensor plane as parallel as you can.

 

Here's a 5D Mark III on my trusty tripod, with the image review zoomed in to check accuracy.

 

Then line up your camera, initiate AF and take a shot. Make sure you’re using the center focus point for this. Using outer points can create all sorts of problems if the lens you’re calibrating has any field curvature. I like to focus, take a shot, rotate the focus ring, refocus, take another shot, repeat a few times to gauge consistency.

 

Your test shots will look like this.

 

Zooming in to the image in camera let’s us see how accurate this lens/camera combination is.

 

Zoom way in there to really see how accurate focus is.

 

Look at that! This Canon 135mm f/2L is spot on! But they aren’t always like that. Let’s try another copy.

 

Another 135, another test shot.

 

And this one ain't doin' so good.

 

This copy is front focusing on this camera body. Look at the smaller numbers to see the difference. Should be pretty easy to adjust. First go into the adjustment menu. On Canon it’s called AF Microadjustment. On Nikon, it’s AF Fine Tune. On most other camera systems it’s called microadjustment as well. Nikon just likes to be fancy, I suppose.

 

This is what it looks like on the Canon 5D Mark III. Your mileage may vary.

 

You’ll almost always see two options, one for a default setting that affects all lenses universally, and one that’s lens specific. I don’t think I’ve ever used the default setting because every lens will be different.

 

Don't adjust everything by the same amount OR ELSE...you'll just frustrate yourself.

 

Setting the actual adjustment will look like this:

 

The little camera and mountain icons are there for easy reference.

 

If the lens is front focusing, you move the adjustment to the right, away from the camera. For back focusing you go the other way. To get this lens dialed in, I found I needed an adjustment of +9:

 

Number 9, number 9, number 9...

 

Once you’ve set it, make sure the camera shows the adjustment is turned on:

 

ON is good.

 

And here’s what it looks like after adjustment:

 

Looks great, right? Can't you see it?

 

Oh, right. Maybe this will help.

 

Now it matches the first lens! And that’s it. Once you’ve set the adjustment, you shouldn’t have to think about it again.

Is there anything else I should be aware of?

Prime lenses are generally the easiest to deal with. When it comes to zooms, you may be a little more limited. Most current Canon cameras that have the AFMA function can now adjust for both ends of the zoom, with a corresponding W and T setting. If an adjustment for each end is not available in your camera, you can either adjust for the end you use the most, or find a compromise you can live with. I’ve seen zooms where one end was fine, and the other was off, or both ends were off different amounts in the same direction, or both ends were off in different directions. There’s often no universal solution, unfortunately.

When it comes to 35mm and 50mm primes, you’ll often find that making an adjustment at shorter focus distances may cause longer distances to be off. It’s not that other lenses aren’t the same in this regard, but for some reason it seems to be more noticeable on these focal lengths. There isn’t really a good solution to this in camera, unfortunately. You’ll want to make your adjustments fit your needs, which may be difficult with some lenses. But if you have the Sigma Art series lenses and the Sigma USB Dock, you can actually adjust for both closer distances and longer distances. The dock and related software allow for four adjustments at four different distances with those Art (A1) series lenses. On Sigma A1 zooms, you can make those four distance adjustments at four different focal lengths, for a total of 16 possible adjustments! It’s time consuming, but if you want everything as spot on as possible, this is really the way to go.

The example above needed a moderate adjustment, +9. Larger adjustments aren’t indicative of something faulty, though. On very rare occasions you may find a lens is beyond adjustment. I once owned a Nikon 20 f/2.8D that was like that. I ended up selling it to someone who had zero issues with it on their camera. If you own a lens that’s beyond adjustment, you can either do what I did, or you may be able to send your lens and camera to the manufacturer to have them adjust it for you, as long as both lens and camera are from the same manufacturer. Just know that adjustment won’t be free.

Is that it?

Yep, that’s pretty much it. If you’ve never experienced front or back focus issues before, you’re either extremely lucky, or you just haven’t noticed it. It’s incredibly common, so it’s good to be aware of it. I’ve had countless discussions that started off with, “Well, none of my lenses have any problems on my camera, so your lens must be broken.” And 95% of the time the lens just needed a little AFMA to get it right in line. Whether you’ve been shooting for one year or 50 years, you will have to deal with this at some point. If you’re ever in doubt about whether you’re having focus problems or resolution problems, switch to live view and try using manual focus or AF (in live view your camera most likely reverts to contrast detection AF, which is much more accurate but slower). If your images get sharper, the lens is most likely front or back focusing on your camera. And now you know how to fix that.

Author: Joey Miller

I’m Joey. I love cameras, especially old film cameras, and I can’t remember the last day I didn’t take a photo. Digital cameras are great, and they keep me employed, but I also still like processing my own film. I’m stuck somewhere in the middle. I shoot every single day, no matter what.

Posted in Equipment
  • xseven

    What about when your center point is accurate but the other ones not so good? (on a 7D II)

  • Wesley

    Would it apply to focus points as well?

    I rarely use the center focus point & recompose. I’m mostly using the Nikon 24-70G @ 50mm – 2.8 vertically with the top edge AF point.

    Just bought a D750 and definitely needs some AF fine tuning with the lens.

  • Winston, for most lenses (Sigma with their dock is an exception) you have to pick either the focal length you’ll use most or just calibrate the center of the range. It should stay pretty close at other focal lengths — if it doesn’t it has to go to the factory for them to adjust it.

  • Winston Ramroop

    How do u fine tune a lens like Nikon the 16-35 F4? Which end of the lens do u calibrate? The 16mm or the 35mm or somewhere in the middle? I am confused about fine focusing a zoom lens !

  • Néstor Ojeda

    I need to show me how to adjust zoom Nikkor 24-70 vr 2.8, thank you very much

  • dtolios

    Micro-adjustment is only needed in D-SLRs or similar assemblies were the AF sensor is not on the sensor plane. D-SLRs use a dedicated AF sensor with its optical path being different than that to the sensor. Even small differences in the length of the optical path to the AF sensor, vs that of the sensor due to manufacturing tolerances, might throw AF off.

    Mirror-less designs, much like latest DSLRs in “live-view”, use diodes on the sensor itself for focusing, so the process is inherently more accurate, although a tad slower still.

  • Ryan

    I use the Dot Tune method whenever renting a lens.

  • AaronClosz

    The interplay between the camera and lens is essentially the same. The camera’s software has a particular point on the sensor that it wants to be in focus and talks to the lens until a specific amount of contrast is detected. The micro-adjustment redefines where that process begins, as the size of the movements are usually limited. So, maybe the lens needs to begin moving at point B rather than point A.

  • brenton giesey

    how does micro-adjustment apply to mirrorless cameras like the a7Rii that don’t have standard focus points like a DSLR and different accuracy?

  • Albert

    Many thanks for the article. I received a Tamron 35 a few days ago, and following your instructions (I did it on the cheap) was able to determine it was consistently backfocusing on my D750 by a little. I calibrated it to -9, and was able to get reproducible results (5 shots tested, defocusing before shooting) at 1m50 and 1m. I then did some testing handheld, still shooting the ruler from a variety of distances, and the calibration held up.

  • Michael Clark

    It also varies with the focus distance for each focal length. Regardless of focal length, by the time hyperfocal distance is reached the ratio of front to back is going to be approaching 1:? (or, as you state it, 99.9% : 0.1%)

  • Happy FoCal user as well!

  • J.L. Williams

    Sure, that’s great logic. Other manufacturers would love to do the same: “Sorry your new car runs crappy, but it will be better once you calibrate the fuel injection system. You can’t expect US to do that for every grade of gas and every locale in the country, can you? Geez, what do you expect for $48,0000?”

  • Donnie Robertson

    If all the lens option came with the camera (a Gazillion Dollars) that would work. Yet so many have a drawer full of lenses they love that the manufacturers would be hard pressed to make every lens ever made focus perfectly. Ya think?

  • Donnie Robertson

    “This whole silly business of AFMA becomes totally unnecessary the moment you place…”. The moment THAT doesn’t work as planned. Sure it IS 95% reliable, but that 5% is a kick n the spheres. Especially for “old geezers” who are half blind. Ahhhhhrrrrrrrggggggggggg!

  • mosswings

    These are good questions, Greg, and I don’t have a definitive answer for them, But I do have some general thoughts.

    It is true that PDAF isn’t a “one-and-done” sort of technique, but is constantly sampling and correcting; it just has more information with which to work with than straight CDAF, and doesn’t fiddle around as much. Many times, not much at all. There is nothing preventing any PDAF implementation from being as precise as CDAF, and if you play a bit with your camera you will observe that PDAF isn’t just giving up and going home after one focusing cycle. The issue revolves around where the algorithm gives up. Here, we see that perhaps the PDAF vendors are opting for more speed vs. more repeatability (the subject of another posting on this website), but Canon seems to have made significant strides in making PDAF as repeatable and precise as CDAF. So I see your last conjecture as perhaps overthinking the problem.

    Where OSPDAF has some pretty fundamental limitations WRT PDAF is in its light sensitivity (which is pretty poor) and its ability to discriminate particular areas in the frame that lead to poor complex-field tracking (a consequence of that very simple left-right masking).

    I will admit to being a bit boggled by the tremendous number of big-data OSPDAF patents taken out over the recent past, but one thing seems clear: manufacturers are relying more and more on areal signal processing tricks to augment the rather weak signal strengths and fuzzy phase information available from OSPDAF sensors. PDAF is remarkably effective with an extremely sparse data stream: one line in the X direction, one in the Y, great optics.

    I’d suggest that you take a look at that Nikon programmable-AF patent that I posted in an earlier comment on this thread. It suggests much about what is possible with a high-resolution areal traditional PDAF sensor, and also what may be unavoidable if the same pixels are being used for both imaging and AF.

  • Greg

    From what I can tell OSPDAF just works differently than off-sensor PDAF. Image separation on PDAF is really about image separation on the primary lens, not the distance between the sensors themselves. I see no reason we couldn’t have a large baseline with sensors that are next to each other, so long as they are masked (or lensed) differently. This is exactly what the Fujifilm description does. (http://www.dpreview.com/news/2010/8/5/fujifilmpd)

    (Dealing with the center focus point here, not addressing potential issues with off-axis focus points.)

    With the mask implemented the way it is on the Fujifilm description, the baseline would be lens-limited (extends out to the edge of the lens) but would have a relatively low aperture of f/8 to f/2 (roughly 1.4x the lens aperture, since they’re masking off half of the focus pixels.) If, rather than masking half, the mask started at the f/8 circle and masked down to a quarter of the arc (it probably really does) then that would be more like an effective aperture of f/16 to f/3.3. If we’re willing to give up the lens-limited baseline, we could restrict the outer edge in order to further increase the effective aperture.

    Based on this, I see no reason why OSPDAF couldn’t have similar precision to CDAF, but it will be a trade-off with out-of-focus accuracy due to having low apertures. Am I missing something? Certainly if the outer edge of the lens isn’t masked then theoretical focus precision should be pretty close to CDAF since we’re using the same pixel size in the same plane with the same primary lens aperture, shouldn’t it?

  • Thom Hogan

    1. One of the tolerances you’re trying to remove on all PD systems is where the lens lands upon instruction to go to X. It doesn’t always go to X. In many of the on-sensor PD systems they follow the PD move with contrast detect moves. However, now you have a system that can end up slower than a DSLR PD system that doesn’t have to move twice (assumes it’s been AF Fine Tuned). Moreover, you can’t keep doing CD until you have absolute focus, otherwise you’re in what I call “chase mode” on moving subjects. There’s a tolerance built into the CD “focus” determination, too.

    2. Thing is, we keep getting more sampling (resolution). This additional sampling is giving us better recording of what actually happened in terms of focus. There are tolerances in every physical system. That’s why I mentioned the “at some level all digital systems are analog” thing. ALL. Not some. Not many. All. The real question here is do we eventually hit a level where the vast majority say “that’s good enough”? I suspect that if we keep pushing sensor resolutions up, the answer is no.

    What will happen is that we’ll run CD motors faster, I think. We’ll also use defocus maps like Panasonic to get some PD-like information.

  • Greg

    More generally, I’m trying to understand two things:

    1.) Why does modern OSPDAF still need AF Fine Tune?

    2.) Will all future OSPDAF still need this due to inherent limitations in the performance of the system, or is this just an artifact of current designs?

    The reason for focusing on that document [excuse the pun] is that it describes a focusing method without a lens between the primary lens and the separator lenses, which is optically similar to the mechanism described in the Fujifilm OSPDAF description (http://www.dpreview.com/news/2010/8/5/fujifilmpd) and the Sony patent. The document uses large prisms that the user observes, whereas the Fujifilm method uses masked pixels with individual microlenses that the camera observes. The overall effect of using phase detection at an existing plane of focus without an intervening lens is the same.

    My point was, optically, OSPDAF is more like the old dual prism method than it is like the modern 3-lens method.

    Your discussion of tolerances is exactly the point I was trying to make. If the design is “Go to X” with the intention being that it means going anywhere between X-Y and X+Y, it’s a problem if instead it goes to X-Y+Z to X+Y+Z. AF Fine tune tells the camera to subtract Z before sending the request. (This is all described as constant offsets, I suspect the actual adjustment will be more complicated than that.)

    With a design (like most CDAF) where the communication looks more like “move a lot” “Not there yet” “went too far” there is more correcting done when we’re close to in focus. I think this is the point you were trying to make about motor optimization, although your point was more on the physical motor design side required to support a protocol like that. This explains why modern OSPDAF systems still need AF Fine Tune today. Could a system implementing OSPDAF use this same lens communication method of fine-tuning the result that CDAF uses, or is there some inherent meaningful limitation on the precision that OSPDAF can get? It seems to me like the limitation is the sensor pixel size, but that wouldn’t be a limitation at all if the image pixels are the same size as the in-plane focus pixels, would it?

    (I’m going to devote a separate response to mosswings on baselines and OSPDAF. It may be that the baseline is the key limitation on phase detection focus precision.)

  • mosswings

    I don’t think that this is true – it depends on the system. Remember that off-sensor PDAF systems work by comparing the displacement of image pairs along a line. The zero-point of the line is some distance out from the nominal center of the focus zone, so that small deviations from perfect focus are easily seen by the system and the images don’t overlap. The effective aperture of the off-sensor PDAF system is also quite high – f/28 or so, which means that the images don’t lose definition with defocused images owing to the high DOF of the AF optics.

    OSPDAF systems, to my understanding, don’t have this image separation to aid them, so they struggle in two ways: overlap of the image pairs, and lack of field stops or other discriminating devices in the optical path. I’m hedging my bets about the effective aperture of the OSPDAF system, because it can be high.

    But it seems like you’re asking a more nuanced question than your phrasing implies..

  • Adam Fo

    What about lenses like a Planar f1.4 which change the focus point when stopped down ?

  • Thom Hogan

    That document is a bit old, and predates on-sensor PD.

    I’m going to quote the most intelligent thing I’ve heard about tech design, spoken to me in the back seat of a cab in Las Vegas in 1981 by the remarkable Lee Felsenstein: “if you look at a close enough level, all digital systems eventually become analog.”

    What he meant by that is that while, yes, we deal with 1’s, and 0’s in the digital world, how long does it take to go from a 1 to a 0 and what is the state in between? ;~)

    Thing is, everyone’s assuming in their comments that alignment and performance is “perfect.” It is not. Yes, the lens may have been instructed to go to X, but when you look closely enough, you discover X has tolerance to it. It could end up at X-Y, X, or X+Y. Making a lens motor stop at a specific place is an analog game, not a digital one. It isn’t “always right” or “always wrong.” In a well-designed system, the performance will tend to fall in a bell curve, which is one reason why AF Fine Tuning works better than no AF Fine Tuning for DSLRs: you align to the center of the bell curve with an AF Fine Tune value.

    “Margin of error” is a dangerous concept here. No doubt that engineers are designing to that, but we don’t know what their margin of error is ;~). For a long time, Canon was rounding the Zeiss CoC value to 0.035 for some reason. Others round it to 0.03. And “round” is a significant term in this respect. would an implied value of 0.034 be within the “margin of error” if you round to 0.03? And remember, the Zeiss value (actually 0.025) was originally derived for “normal vision at normal viewing distance of a modest sized print.”

  • Greg

    After doing a fair amount of reading over the weekend, I think I have a better understanding of what’s going on here.

    OSPDAF seems to work more like traditional manual focus assists than modern Traditional PDAF (TPDAF) systems with field lenses. The following paper was especially helpful in describing the older manual-focus assists:

    http://dougkerr.net/Pumpkin/articles/Split_Prism.pdf

    The reason OSPDAF would still need AF fine tune seems to be a combination of margin or error in the AF system and the communication protocols used for the older lenses. From what I can tell, TPDAF systems used protocols that looked like “move the lens to here,” did a cursory check if the focus was within the margin of error, and then took the shot. In this case, AF fine tune would still be needed if the lens’s concept of focus distance/location was slightly off relative to the actual focus distance, and so all distances in the lens communication needed to be treated as some small percentage off.

    If the focus wasn’t within the margin of error after the requested focusing, we would consider the focus system to be broken – this is presumably outside the scope of AF fine tune.

    Something I’m not clear on is if PDAF systems in general are able to determine the correct focus point more precisely when significantly out of focus than when almost in focus. Is this true?

  • Greg Thurtle

    The variability from shot to shot is why i recommend people use FoCal over a standard test chart and eyeballing as it’s the only solution i’m aware of that takes the guesswork out of it by analysing many shots over a range to take out the random variation that occurs in any PDAF system (lens motor, other factors, etc).
    I remember using the slanted ruler method originally (which is basically what lens align is doing for $$$ more). and I’d always fluctuate around certain values as the shot-to-shot variablity makes you second guess yourself.

    I also love the analysis tools in FoCal to let me know how my lens is performing and typical AF variablity giving me more confidence in my results and making it repeatable.

  • Frans van den Bergh

    Or you could try MTF Mapper:

    https://sourceforge.net/projects/mtfmapper/

    Using the MTF Mapper 45-degree test chart, you can obtain quantitative values to show you the location of the surface of best focus.

    My user documentation is a bit crusty, so take a look at Ed Dozier’s recipe for AF tuning using MTF Mapper:

    http://www.photoartfromscience.com/#!MTF-Mapper-Cliffs-Notes/qrlrc/55eb21620cf23d0feffc23fc

  • Ilya Zakharevich

    What you wrote makes absolutely no sense. There is no direct dependence of Front/Back ratio on the focal length. In fact, for ANY lens, Front/Back ratio is 1 if the depth of field is shallow enough.

    What there IS is a dependence of F/B ratio on the DF/L ratio (at least if diffraction is small enough). Here DF is the depth of field, and L is the distance to the subject. The focal length DOES NOT ENTER into this dependence.

  • Thom Hogan

    I second that, Mosswings: fine tune to your intended use. Likewise, you need to be aware that you can lose infinity focus with some AF Fine Tunings (technically you can lose close focus, too, but if you fine tuned to intended use you’re not worried about this or losing infinity focus).

  • Thom Hogan

    Well, even with a reduced range, you can still be hunting within that range on a moving subject. I believe Sony goes further and punts on CD adjustment in some way (either by limiting the number of CD moves or by stopping if it thinks it’s within some CoC). That would explain why on truly moving subjects–especially ones that aren’t in a fixed, linear motion–I see lots of near misses on focus.

    Personally, near misses on focuses that are inconsistent in nature–what I see in many Sony sequences–is worse than being consistently just off of focus in a DSLR that allows fine tuning. With the latter, I can adjust out the problem and have a series of spot on images, with the former I can’t.

  • Angel Llacuna

    In your example, how did you know that you had to put an adjustment value of 9 ?

  • Manfred Winter

    Now, I have a Sigma 50 1.4 Art lens which produces some weird Focus results, depending on distance. Trying the Target Method with the lower distances is easy, but how does one do this with the infinity distance option? With distances 10 Meters or Larger, the Target is too tiny to produce usable results. What’s the best way here? And which distance is realistically close enough to infinity for this purpose?

Follow on Feedly