Photography Life

PL provides various digital photography news, reviews, articles, tips, tutorials and guides to photographers of all levels

  • Lens Reviews
  • Camera Reviews
  • Tutorials
  • Compare Cameras
  • Forum
    • Sign Up
    • Login
  • About
  • Search
Home → Photography Tutorials

How to Focus Stack Images

By Thomas Stirr 75 Comments
Last Updated On July 8, 2019

For most people who just want to have some fun with their photography and have another ‘trick up their sleeve’ focus stacking can be an interesting technique to explore. To put this article in proper context, I’ve never used focus stacking for any of my client work, and I don’t profess to be an expert at the technique…but I have experimented with it. The following image is a quick focus stacking example I put together for this article. It was composed from 11 separate exposures. It’s far from perfect, but it does represent a typical result that most hobbyists can easily achieve.

Image Stack
NIKON D800 + 105mm f/2.8 @ 105mm, ISO 50, 1/25, f/8.0

Focus stacking is a technique that can be beneficial when a photographer wants to extend the apparent depth-of-field of an image, and also wants to avoid the loss of image sharpness that can result from the effects of diffraction when using an increased f-stop. Focus stacking is most commonly used with macro and landscape photography where it may be critical that the image is pin-sharp from the top to the bottom of the frame. Obviously for focus stacking to work your subject must be stationary.

When used for macro photography and done at a professional level, focus stacking is a precise and exacting process that can require very specialized equipment like an automated focus stacking macro rail and would need to be done in a highly controlled studio setting. It also takes considerable skill and experience, both behind the camera and in post processing.

For us mere mortals, having a good tripod and head, a decent camera and macro lens, and software like CS6 is enough to do some basic macro focus stacking and have a lot of fun.

1) Capturing your set of images

If you’re using focus stacking to extend the apparent depth-of-field with a landscape scene you may only have to take three exposures, each focused on different parts of the scene….foreground, mid-ground, and background.

On the other hand, if you’re putting together a macro image of a fairly wide/deep object and using a full frame camera, you may have to take 20 exposures or more to get everything in the scene captured in focus by at least one of your shots. There’s no magic to this…it’s more of a trial and error process, and after we’ve made enough mistakes at it…we eventually call it ‘experience’.

You will need a good, stable tripod and a solid ball head or pistol grip to try and ensure no movement of your camera between shots. Using the shutter delay setting on your camera or a shutter release is recommended. If you’re shooting with a DSLR using the ‘Mup’ (mirror up) setting is also recommended to avoid camera shake caused by mirror movement.

You will need to capture a sufficient range of exposures to ensure that all surfaces of your macro subject are in focus on at least one of your shots. Some people set their camera for a particular f-stop like f/5.6 or f/8 where their lens may be at its maximum sharpness, then manually focus on different parts of their macro subject without moving their camera or tripod. Other folks like to focus on fewer areas of their subject, but take multiple shots from those specific focus points at different apertures…say f/5.6, f/8 and f/11. If your camera has the capability to focus from the rear touch screen you can simply touch various points on the image to reset focus and get your set of exposures in that manner.

NOTE: when doing macro focus stacking you should expect that CS6 may leave some unwanted artifacts around the outside edges of your finished, composite image so it’s important to allow some cropping room with your original set of images.

It is important to try and ensure that you’ve taken exposures all around the outside edges of your macro subject and at various points on the inside of your composition otherwise you could end up with some soft, out-of-focus areas in your composite image.

Finished Image
NIKON D800 @ 105mm, ISO 400, 10/400, f/8.0

I took a total of 13 exposures with my D800 at f/8 to make the focus stacked image above. If you look closely you will see that I missed a few leaves on the tree which are visible in this stacked focus sample. As it is often said…patience is a virtue!

2) Processing your images

Many photo processing software products have an image stacking capability. Since I’ve only used CS6 for focus stacking I’ll run down the basic work flow for you.

  1. Open up CS6 and click on ‘File’, scroll down to ‘Automate’, click on ‘Photomerge’:
    Step 1
  2. When the Photomerge box opens remove the tick on the ‘Blend images together’ box:
    Step 2
  3. Click on ‘Browse’ and select your set of images. You can use either RAW or jpegs. Don’t mix them. Once you have selected your images, click on ‘OK’:
    Step 3
  4. The files will now appear in the Photomerge box. Highlight all of them by clicking on the first image, then holding down the shift key and clicking on the last image, then click ‘OK’:
    Step 4 Photoshop
    You will then see the images starting to load on the right hand side of your CS6 screen:
    Step 4
  5. Once they have all loaded, select all of the images listed on the right hand side by clicking on the top image, hold down the shift key, then click on the last image in the list:
    Step 5
  6. Click on ‘Edit’, scroll down to ‘Auto-Align Layers’ and click on it, make sure the ‘Auto’ setting is selected, then click ‘OK’:
    Step 6
  7. CS6 will now align all of your images for you:
    Step 7
  8. Click on ‘Edit’ again, scroll down to ‘Auto-Blend Layers’, make sure ‘Stacked Images’ and ‘Seamless Tones and Colours’ are selected, then click ‘OK’. CS6 will now blend all of the images together for you:
    Step 8
    Step 8b
  9. Click on ‘Layer’, then click on ‘Flatten Image’:
    Step 9
  10. Now you can work on the file with other CS6 adjustments before saving your final output:
    Step 10

Here is the first photo of a series that I took at f/8 with my D800 using my Nikkor 105mm Micro f/2.8 lens. You can see that much of the image is out of focus.

First f/8
NIKON D800 @ 105mm, ISO 400, 10/400, f/8.0

Now compare that image above with the following focus stacked one and you’ll see the advantages of using focus stacking for macro work.

Finished Image
NIKON D800 @ 105mm, ISO 400, 10/400, f/8.0

We’d love to hear about your experiences with focus stacking and some of the techniques that you have used in your work, as well as see some of your samples!

Article and all images Copyright 2014, Thomas Stirr. All rights reserved. No use, reproduction or duplication including electronic is allowed without written consent.

Looking for even more exclusive content?

On Photography Life, you already get world-class articles with no advertising every day for free. As a Member, you'll get even more:

Silver ($5/mo)
  • Exclusive articles
  • Monthly Q&A chat
  • Early lens test results
  • "Creative Landscape Photography" eBook
Gold ($12/mo)
  • All that, PLUS:
  • Online workshops
  • Monthly photo critiques
  • Vote on our next lens reviews
 
Click Here to Join Today
 

Related Articles

  • Focusing dragonfly macro photography
    How to Focus in Macro Photography
  • Nick Cave
    Concert Photography Tips
  • Photo For Preview
    Focus Stacking Tutorial for Landscape Photography
  • Siena Building
    15 Tips to Improve Your Photography
  • Brown Anole
    9 Macro Photography Tips for Beginners
  • Autofocus Landscape Geyser
    Manual Focus or Autofocus for Landscape Photography?
Disclosures, Terms and Conditions and Support Options
Filed Under: Photography Tutorials Tagged With: Focus Stacking, Howto, Photography Tips, Photoshop, Tips for Beginners

About Thomas Stirr

Thomas Stirr is an author, photographer/videographer, and executive coach based in Grimsby Ontario Canada. He specializes in industrial photography, as well as safety/training/corporate videos. His work also includes landscape and nature photography, and experimentation with photo art. Nikon Canada has featured Tom's work numerous times on Facebook and Twitter. To follow Thomas, please visit his photography blog and check out his eBooks.

guest

guest

75 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Balrama
Balrama
January 23, 2019 6:18 pm

I like the information very useful for everyone.
Can you guide me how to set resolution for Sony a 6000. I took some pictures 6000*4000. Now when I shoot resolution is coming 1920*1080. Please guide.

0
Reply
Thomas Stirr
Thomas Stirr
Author
Reply to  Balrama
January 30, 2019 10:40 pm

Hi Balrama,
I’ve never used a Sony camera so I cannot provide any guidance in terms of where to find the resolution adjustment in your a6000 menu.
Tom

0
Reply
Phil
Phil
October 30, 2017 6:41 pm

Wow thank you, what a great explanation. Will have to give this another go.

0
Reply
Thomas Stirr
Thomas Stirr
Reply to  Phil
October 30, 2017 7:22 pm

You’re welcome Phil!
Tom

0
Reply
Ravishankar Sharma
Ravishankar Sharma
November 22, 2016 11:21 am

Thanks for your reply Thomas. I agree with you on that viewpoint.
Regards,
Ravishankar

0
Reply
Ravishankar Sharma
Ravishankar Sharma
November 21, 2016 12:02 pm

Dear Thomas,
It was an interesting article and agree on its merits. However, this may be more applicable for Landscape shooters like myself wherein we always want to maximize the depth of field. My opinion on macro is that the entire charm lies in the shallow depth and the selective focus of the subject rather than trying to bring every part to sharp focus which a moderate lens can do from a distance while the more expensive macro lenses are designed to work the other way around.

While there is nothing wrong in having everything sharp, it fails the very purpose of macro photography. Example you see an image of an insect with only its eyes in sharp focus or its tweeters. This is more exciting as a macro shot.

Appreciate your simple approach to the technique.

Regards,
Ravishankar Sharma

0
Reply
Thomas Stirr
Thomas Stirr
Author
Reply to  Ravishankar Sharma
November 21, 2016 12:12 pm

Hi Ravishankar,
Thank you for sharing your perspectives and thoughts about the use of focus stacking! The wonderful thing about photography is that it allows each of us to express our individuality and interests in unique ways. What appeals to one person may not appeal to the next.
Tom

3
Reply
Don
Don
November 18, 2016 10:14 pm

How to mask or delete some areas after auto-blend layers step before doing the final layer step? Thank you.

0
Reply
Thomas Stirr
Thomas Stirr
Author
Reply to  Don
November 19, 2016 12:56 pm

Hi Don,
I’ve never had the need to do that when focus stacking images…sorry! Likely a good idea to do a search here on Photography Life for related information.
Tom

0
Reply
Nishith Padalia
Nishith Padalia
September 2, 2016 9:28 am

after we’ve made enough mistakes at it…we eventually call it ‘experience’…….. very philosophical there !!

0
Reply
Thomas Stirr
Thomas Stirr
Author
Reply to  Nishith Padalia
September 2, 2016 9:37 pm

‘Experience’ is a great teacher!
Tom

2
Reply
D. Parker
D. Parker
June 14, 2016 8:58 pm

I scrolled through the comments and did not find this particular question: will this technique suffice for burst photography?

0
Reply
Thomas Stirr
Thomas Stirr
Author
Reply to  D. Parker
June 14, 2016 9:05 pm

Hi D. Parker,
With focus stacking the focusing point is moved progressively from the front to the rear of the image subject in a number of consecutive images with the camera mounted on a tripod in a stationary position.
Tom

0
Reply
D Parker
D Parker
Reply to  Thomas Stirr
June 14, 2016 10:05 pm

Tom,

I appreciate the response, but I think, perhaps, I was not made clear with my question:

I was referring more specifically to the photoshop techniques.

I read the article for my own education on focus stacking, but thought about burst photography as well. It would seem these post-production techniques would be applicable in such scenarios. I was curious if this might be employed by photographers with more of such experience.

Thanks!

0
Reply
Thomas Stirr
Thomas Stirr
Author
Reply to  D Parker
June 15, 2016 5:12 am

Unfortunately I don’t have any specific experience with this type of scenario so I am unable to comment.
Tom

0
Reply
Norman
Norman
May 16, 2016 9:53 am

Great article, thanks. I have one question, should the exposure be the same on all photos while photo stacking?

0
Reply
Thomas Stirr
Thomas Stirr
Author
Reply to  Norman
May 16, 2016 10:19 am

Hi Norman,
Yes, use the same shutter speed, aperture and ISO – only vary your focus points between images.
Tom

0
Reply
Alexia
Alexia
April 12, 2016 1:45 pm

GREAT! Thank you so much!

0
Reply
Thomas Stirr
Thomas Stirr
Author
Reply to  Alexia
April 12, 2016 7:23 pm

You’re most welcome Alexia!
Tom

0
Reply
aravind
aravind
May 21, 2015 6:08 am

really an masterpiece dude

0
Reply
Thomas Stirr
Thomas Stirr
Reply to  aravind
May 21, 2015 6:23 am

Hi aravind,
Glad you enjoyed it!
Tom

0
Reply

Learn

  • Beginner Photography
  • Landscape Photography
  • Wildlife Photography
  • Portraiture
  • Post-Processing
  • Advanced Tutorials
Photography Life on Patreon

Reviews

  • Camera Reviews
  • Lens Reviews
  • Other Gear Reviews
  • Best Cameras and Lenses

Photography Tutorials

Photography Basics
Landscape Photography
Wildlife Photography
Macro Photography
Composition & Creativity
Black & White Photography
Night Sky Photography
Portrait Photography
Street Photography
Photography Videos

Unique Gift Ideas

Best Gifts for Photographers

Subscribe via Email

If you like our content, you can subscribe to our newsletter to receive weekly email updates using the link below:

Subscribe to our newsletter

Site Menu

  • About Us
  • Beginner Photography
  • Lens Database
  • Lens Index
  • Photo Spots
  • Search
  • Forum

Reviews

  • Reviews Archive
  • Camera Reviews
  • Lens Reviews
  • Other Gear Reviews

More

  • Contact Us
  • Subscribe
  • Workshops
  • Support Us
  • Submit Content

Copyright © 2025 · Photography Life

You are going to send email to

Move Comment