Nikon focus shift shooting, step by step
by Konstantin Voronov · Techniques

In short: Focus shift shooting makes a Nikon camera take a series of frames, moving focus a set step after each one, from your starting point toward infinity. Merge the series on a computer with focus stacking and the whole subject is sharp. Use a tripod, start focus just in front of the nearest point, and keep the step width at 5 or less.
What focus shift shooting is for
Focus shift shooting answers the question every photographer asks when depth of field runs out: how do I get everything sharp? A whole product will not fit into the sharp zone, or a landscape foreground and background will not both come out sharp.

Up to a point, you can extend depth of field by stopping down and using the hyperfocal distance. But physics limits how far that goes. Photograph a small object close up with a long lens and you run out of depth of field even at a small aperture.
One solution is to take a series of frames focused at different distances and merge them into one image. That extends depth of field as far as you need. This is focus stacking. It is used wherever maximum depth of field matters: macro, jewelry and product photography, landscapes. The single limit is movement: you cannot shoot moving subjects this way, because the frames of the series must be identical except for focus.
The hard part is a series with an even focus step. Turning the focus ring by hand does not always change the distance precisely from frame to frame, and dedicated software and rails are expensive. Owners of the Nikon Z 6 and Z 7 need none of that. Following the Nikon D850 DSLR, these cameras got focus shift shooting: the camera takes the series and refocuses the lens by the chosen step itself. You only merge the frames on a computer.
What you need for focus stacking
Besides a camera with focus shift shooting, you need three things.
- Merging software. Helicon Focus and Zerene Stacker exist for advanced stacking. This guide uses Adobe Photoshop, which most photographers know and which has basic stacking functions.
- A tripod. The series must come from exactly one viewpoint, or the final image will not assemble.
- A lens that does not breathe. The lens should not change its angle of view as it focuses at different distances. The check is easy: watch the camera screen and refocus by hand from the minimum distance to infinity. If the image changes scale and objects at the edges slip in and out of the frame, the lens breathes. Each frame of the series will then differ in angle of view, and merging gets much harder.
The NIKKOR Z 24-70mm f/4 S used here is sharp from wide open and does not breathe. Modern Z-mount optics are designed with such requirements in mind, while older lenses, even professional ones, can easily breathe. Its minimum focus distance is only 30 cm (12 in), measured from the sensor plane rather than the front element. Through the FTZ adapter, any Nikon F-mount lens can shoot focus stacks too.

How to set up focus shift shooting on a Nikon Z
The setup takes six steps. The menu names below are Nikon's English ones from its online manuals for the Z 7 and the Z6III.
- Put the camera on a tripod. Set the focus mode to AF-S or AF-C and any release mode except the self-timer.
- Focus on the front edge of the object you want fully sharp; in a landscape, on the nearest edge of the scene. Nikon's Z6III manual advises starting slightly in front of the closest point, because the series runs toward infinity and ends there.
- Open the photo shooting menu and select Focus shift shooting.
- Set No. of shots and Focus step width, then the Interval until next shot.
- Set First-frame exposure lock for your lighting, and choose whether to build a preview with focus peaking.
- Select Start. Shooting begins after about 3 seconds and ends when the set number of shots is taken or focus reaches infinity.
Keep the exposure identical across the series, or the merge will have problems: shoot in manual mode M.
| Setting | What it does | Recommended value |
|---|---|---|
| No. of shots | frames in the series, up to 300 | more than you think you need; dozens for products, 3 to 5 for a wide landscape |
| Focus step width | how far focus moves per frame, in relative units | 5 or less (Nikon, Z6III manual); smaller for close subjects |
| Interval until next shot | pause between frames, in seconds | 00 with constant light; long enough for flash to recharge |
| First-frame exposure lock | locks exposure at the first frame's value | OFF with flash, so the flash fires for every frame |
| Peaking stack image (Z 7) | builds a black-and-white focus-peaking preview of the stack | Create, to check coverage in the camera |
| Starting storage folder | new folder and file numbering per series | New folder, to keep each stack apart |
The more frames you take and the wider the step, the farther toward infinity the focus travels during the series. The step is a relative value. The best frame count and step for each subject are found by experiment. For product or macro work a series can run to dozens of frames, because depth of field is very thin.
The interval matters with flash or strobes: set it long enough for your flashes to recharge, with margin. With constant light, set it to zero and the camera shoots frame after frame without pause; the Z 7 manual gives up to about 5.5 frames per second at 00. For the flash to fire on every frame, set First-frame exposure lock to OFF.
The Z 6 and Z 7 can also build a preview of the stack. The camera combines the series into one black-and-white image so you can judge the result on the spot.
How many frames you need
The frame count follows from the depth of field of each frame. The table works it out for a 70 mm lens and an object 100 mm (3.9 in) deep, the kind of tabletop subject this method suits.
| Distance to subject | Aperture | Depth of field per frame | Minimum frames for 100 mm of depth |
|---|---|---|---|
| 0.3 m (12 in) | f/4 | 3.3 mm | 32 |
| 0.3 m (12 in) | f/8 | 6.5 mm | 17 |
| 0.3 m (12 in) | f/11 | 9.0 mm | 13 |
| 0.3 m (12 in) | f/16 | 13.1 mm | 9 |
| 0.5 m (20 in) | f/4 | 10.2 mm | 11 |
| 0.5 m (20 in) | f/8 | 20.4 mm | 6 |
| 0.5 m (20 in) | f/11 | 28.0 mm | 5 |
How the numbers were computed: hyperfocal H = f² ÷ (N × c) + f with c = 0.029 mm for full frame (the d/1500 value Wikipedia gives); near limit = s(H − f) ÷ (H + s − 2f); far limit = s(H − f) ÷ (H − s); depth of field = far − near. Minimum frames = 100 ÷ depth of field, rounded up, plus 1. The minimum assumes zero overlap between frames; real stacks need overlap, which is why Nikon advises taking more shots than you think you need.
Frame count rule: Move in from 0.5 m to 0.3 m and the frame count roughly triples. At 0.3 m and f/8, a 100 mm deep object needs at least 17 frames; at 0.5 m it needs 6. Set more than the minimum and delete spares later.
Which aperture to use for a focus stack
The source and Nikon's current manual disagree here, so both are given. The original test suggested closing down to f/11 to f/16 to make merging easier, and no further, because diffraction softens the image. It also noted a less obvious benefit of stacking at f/2.8 to f/8: you get deep depth of field and the attractive bokeh that only a fairly open aperture gives, in one frame.
Nikon's Z 7 manual is stricter on diffraction: "choose an aperture with an f-number lower than f/11–f/8". The table above shows the price of opening up: going from f/16 to f/8 at 0.3 m roughly doubles the frame count, from 9 to 17. With focus shift shooting doing the work, extra frames cost only card space and merge time.
How to merge the frames in Photoshop
Merging takes four steps once the frames are on the computer.
- If you shoot RAW, process the frames in a RAW converter first, with identical settings for all of them: synchronize the settings across the series.
- Open all the files as layers in Adobe Photoshop. From Adobe Lightroom, select the frames and choose Edit In, then Open as Layers in Photoshop from the context menu.
- If you shot without a tripod or the lens breathes, align the layers first: select them and choose Edit, then Auto-Align Layers.
- Choose Edit, then Auto-Blend Layers, pick Stack Images, click OK and wait.




Photoshop finds the sharp areas of each frame on its own and creates a mask for each layer; you can edit those masks later, which helps. The result is a finished image with deep depth of field. From here it is an ordinary photo: retouch it, correct color and so on.
Focus shift for landscapes
Landscapes need far fewer frames. With an ultra-wide lens and a moderately closed aperture, a stack of 3 to 5 frames is enough for depth of field from a few tens of centimeters to infinity.

With the Nikon Z 6 and Z 7, focus stacking became a simple operation that rescues the shot whenever you need maximum depth of field. For extreme magnifications where stacks run long, see the Canon MP-E 65mm macro test. The same menu family also holds interval shooting; see Nikon interval timer time-lapse. For a single-frame alternative when the subject is far away, see focus and recompose.
Frequently asked questions
- What is focus shift shooting on Nikon cameras?
- Focus shift shooting is a menu function that takes a series of frames and moves focus by a set step after each one, from the starting point toward infinity. You then merge the frames on a computer with focus stacking to get one image that is sharp from front to back. The Nikon D850 had it first; the Nikon Z 6 and Z 7 followed.
- What focus step width should I use?
- Small. Nikon's Z6III manual recommends a step width of 5 or less, because high settings increase the risk that areas fall out of focus when the shots are stacked. The Z 7 manual adds that close subjects need smaller steps and more shots, since depth of field shrinks at short distances. Test a few settings on your subject before the real series.
- How many shots do I need for focus stacking?
- It depends on the subject depth and distance. A landscape with an ultra-wide lens stopped down needs 3 to 5 frames. Product and macro shots can need dozens, and Nikon says insects can need more than 100. The camera allows up to 300 shots and stops early when focus reaches infinity, so set more than you think you need.
- Why is focus shift shooting not working on my Nikon?
- Check the prerequisites in Nikon's manual: the focus mode must be AF-S or AF-C, and the release mode must be something other than the self-timer. Also check that focus starts slightly in front of the nearest part of the subject, because the series runs toward infinity and ends there. With flash, set an interval long enough for the flash to recharge.
- How do I merge focus shift images in Photoshop?
- Open all frames as layers, for example from Lightroom with Edit In, then Open as Layers in Photoshop. Select every layer and run Edit, then Auto-Align Layers if the camera moved or the lens breathes. Then run Edit, then Auto-Blend Layers with Stack Images. Photoshop finds the sharp areas of each frame and builds editable masks for them.
Sources
- Z6III Online Manual: Focus Shift Shooting, Nikon (2026)
- Z 7 / Z 6 Online Manual: Focus Shift Shooting, Nikon (2026)
- Focus stacking, Wikipedia (2026)
- Circle of confusion, Wikipedia (2026)
Originally published on Prophotos.ru.