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 Techniques

Take Better Night Sky Photos with Image Stacking

Star photography can have great image quality, too. Just try stacking images.

By Spencer Cox 56 Comments
Last Updated On September 7, 2022

By stacking images, you can take photos of stars that are extremely sharp with as much detail as possible.
NIKON Z 6 + NIKKOR Z 14-30mm f/4 S @ 17.5mm, ISO 6400, 10 seconds, f/4.0, 14-image stack

The night sky is one of the most alluring subjects for landscape photographers. It’s also one of the most frustrating. If you’ve ever tried to do astrophotography, you’ve probably run into all sorts of issues: blurred stars, high ISO noise, and shallow depth of field.

What can you do about it? One answer is often overlooked, but surprisingly helpful and easy to put into practice: stacking images.

Fundamentally, the big problem with shooting the stars is that you lose a lot of image quality at ultra-high ISO values. Otherwise, you could shoot every Milky Way image at f/5.6 and 10 seconds (maximizing star sharpness) while simply using an insane ISO like 51,200 to get your image to be bright enough.

Stacking photos essentially eliminates that problem.

But what do I mean by stacking photos? There are two routes, one of which is simpler and more flexible than the other. But each has its place.

(All this assumes that you don’t have a problem with blending photos. If you need to capture everything in one image for whatever reason, take a look at our tutorials on Milky Way photography, getting enough depth of field at night, and the optimal settings for star photography.)

Table of Contents

  • Stacking Method One: Use an Astro Tracker
  • Stacking Method Two: No Accessories Needed
    • In the Field
    • Post-Processing Image Stacks
  • Conclusion

Stacking Method One: Use an Astro Tracker

I’ll start with the harder-to-implement method because it’s easier to explain.

Today, you can find plenty of “astro trackers” available for relatively reasonable prices. These are rotating attachments for your tripod. Point an astro tracker at the North Star (or the Celestial South Pole), and it follows the movement of stars across the sky. Then, just attach your regular tripod head to the astro tracker and compose however you want.

How does this work with image blending? The answer is that astro trackers let you get sharp stars, but not sharp foregrounds:

Star trackers give you tack-sharp stars and a lot of flexibility with your camera settings. However, they also blur any foreground objects in your photo.
NIKON Z 7 + NIKKOR Z 24-70mm f/4 S @ 24mm, ISO 64, 860 seconds, f/4.0

By tracking the stars, you slowly add rotational blur to your foreground, and the photo is blurry anyway. So, you simply turn off the astro tracker, then take a second photo that prioritizes the foreground:

Star trackers will result in blurry foregrounds. So, if you want to stack images from a star tracker, you will need to take a second photo with the tracker turned off.
NIKON Z 7 + NIKKOR Z 24-70mm f/4 S @ 68mm, ISO 400, 294 seconds, f/4.0

And then blend the two together easily in Photoshop or other photo editing software:

By stacking the two images together - one with the star tracker, and one without - you can get a final result that is as good as possible. The detail in this example photo is extremely high.
NIKON Z 7 + NIKKOR Z 24-70mm f/4 S @ 24mm, ISO 64, 860 seconds, f/4.0

This method lets you get extraordinary levels of detail in the stars. Take a look below:

This crop demonstrates how sharp (and noise-free) your star photography can be if you use a tracker and stack images.

That’s pretty awesome, much better than I could have gotten with a single tripod-based image:

When you don't stack images and don't use a star tracker, you will end up with a lot of noise in your photos, like in this example.
NIKON Z 7 + NIKKOR Z 24-70mm f/4 S @ 24mm, ISO 6400, 20 seconds, f/4.0

Astro trackers let you use almost arbitrarily long shutter speeds. You’ll only get blurry stars if you use extremely long exposures (10+ minutes) and longer lenses, if your polar alignment isn’t quite perfect. Or if you use an unstable tripod in windy conditions.

However, astro trackers aren’t always ideal. It worked well for the photo above because the foreground and sky had a very distinct separation. But if your foreground is something like a tree, you’ll run into major difficulties with this method. In the tracked image, where your stars are sharp, the tree will be a large blur. If you try pasting the sharp tree image on top, you’ll get a “blur halo” around it. Not a good look.

Luckily, there is a way to simulate an astro tracker without using one – and without capturing a blurry foreground in any of your images.

Stacking Method Two: No Accessories Needed

The second method of capturing insanely sharp stars at night is actually quite easy. It’s also pretty satisfying, since you get to use the settings you always wanted to use – no need for an astro tracker or other accessories.

For example, if you need f/5.6 to get enough depth of field, just use f/5.6. If you need 10 seconds of exposure in order to eliminate star trails, use 10 seconds. And if you need ISO 51,200 to get a bright enough photo, you can use that, too. (Though I actually recommend a lower ISO combined with brightening the photo later, as you’ll see in a moment).

Then just take several photos in a row using the same settings. When you get home, you’ll stack the photos in post-processing software to minimize noise.

In the Field

How many photos does this method take? It depends on the quality you’re after, the ISO you started with, and simply the time you have in the field. But I would take pictures for at least 4 minutes if possible, and ideally longer – more photos can only help. After all, you are simulating an ultra-long shutter speed with this method, so it’s no doubt that 10 minutes is better than 4, which is better than 2, and so on. (The smaller your aperture, the more photos you should capture, since you need to make up for lost light.)

What specific camera settings are best? The most important thing is to avoid any star trails in your images. If that means shooting at 5-10 seconds when normally you would shoot 15-30 seconds, so be it. This technique cannot get rid of star trails – nor can any technique I know of.

Beyond that, don’t be careless about your settings just because you have a bit more flexibility; you’re still trying to capture every last photon. In terms of aperture, pick what you need in order to get enough depth of field, nothing more. You’ll usually be good with a reasonable aperture like f/4 to f/8 (full frame equivalent).

And for your ISO, I know I said earlier that 51,200 can work fine, but I recommend sticking with a lower value in general. Quite simply, if you go too high, you might blow out some details (especially colors) in the stars. It’s better to shoot at a lower ISO like 3200 to 6400, even though the photo will look too dark, and then brighten it later (before you start doing the photo stack).

Some photographers will augment this method by taking “dark frames” to subtract patterned noise out of the image. However, this is not a requirement. But note that I do not recommend shooting with long exposure noise reduction turned on, since the delay from shot to shot may make stacking more difficult.

Post-Processing Image Stacks

Next, we’re going to stack the photos in specific astrophotography software designed for the task. It doesn’t really matter what software you use. Sequator is a popular free option for Windows, and Starry Landscape Stacker is a popular $40 option for Mac (I couldn’t find a free competitor, unfortunately). You can use Photoshop for image stacking, and you can find some tutorials/actions online if you’re interested. But dedicated software tends to do a better job in the more tricky situations.

Load the photos into your software and begin the star-identification process (in this case, every red dot – most of them added automatically – representing a star):

This screenshot demonstrates star stacking software, including the red dots in Starry Landscape Stacker that represent individual stars.

Touch up any areas that the software masks incorrectly, like some areas of the tree below that the software accidentally labeled as the sky. This can take some time if you have foreground details like trees in your image since you’ll need to fix any errors in the auto-generated mask manually – but it is possible:

In this screenshot, you can see that Starry Landscape Stacker did not perfectly mask one tricky area of the trees. You will need to manually correct masking issues like this.

Once you do that, you’re done.

In this screenshot, you can see that Starry Landscape Stacker did not perfectly mask one tricky area of the trees. You will need to manually correct masking issues like this.

By stacking multiple photos together, you “average out” the noise and end up with tack-sharp stars. The level of detail in your nighttime photos has almost no upper limit, similar to using an astro tracker. Here’s the final image:

After stacking 14 images together, simulating a 140-second exposure, this final image is extremely sharp and low in noise.
NIKON Z 6 + NIKKOR Z 14-30mm f/4 S @ 17.5mm, ISO 6400, 10 seconds, f/4.0, 14-image stack

Even the tricky areas, like pine needles against the night sky, look great. Though, again, it did take some manual corrections to get the best possible result. (With this worst-case scenario image, I spent about 30 minutes of manual masking to get the final version.)

How does this compare in image quality to a single photo? Here’s a before/after with one of the 14 composite images I used to make this photo stack:

Single Image Crop Star StackingMulti Image Blend Crop Star Stacking

Not bad! Because I used 14 images for this stack, and each had a 10-second shutter speed, I was simulating a 140-second exposure. You can go much longer than that and capture even lower amounts of noise in your images. The limit is totally up to you.

Admittedly, this method does not always work right. If something in your photo is moving, like clouds across the sky, it can lead to some strange blur artifacts or extra noise. And in extreme cases like the image above – where practically the entire photo has trees that need precise masking – the software’s default attempt may require some correction.

Then again, the image quality benefits to this method are impossible to ignore. Plus, the fact that it can work in tricky situations like forest photography – where an astro tracker generally would not be feasible – makes it quite flexible overall.

Note that I still recommend taking one or two photos using single-image Milky Way settings – i.e., the ones we cover here – just in case. You never know if something might happen to make image stacking impossible. This also applies to astro tracking.

Conclusion

For years, my goal was to capture the Milky Way as sharp as possible in a single image, along with the foreground, too. I wasn’t willing to deal with astro trackers, and the idea of stacking images in dedicated software seemed to carry a lot of potential for error. (It’s also not allowed in certain publications and photography competitions, which I respect.)

But if you have no aversion to blending images, the two techniques outlined in this article are game-changers. You can shoot f/16 photos at night! Not to mention, with the second method, you can carry a lighter bag while capturing better results than before.

Cheating? It’s so useful that it almost feels like it has to be. To me, though, this is not cheating any more than focus stacking. But that’s something you need to decide for yourself. If these techniques do cross your line, our standard Milky Way photography tutorial may be more up your alley.

Hopefully, either way, you found this article to be interesting! If you have any questions about the finer points of image blending for night sky photography, feel free to leave a comment below.

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

  • night_tips_3
    How to Take Better Photos at Night
  • Milky Way landscape photo
    An Easy Way to Compose Landscape Photos at Night
  • Astrophotography_020
    The Best Place in the World for Amateur Night Sky Photographers
  • Nikon D5300 Image Samples
    Nikon D5300 Image Samples
  • 1-1 magnification manual focus macro
    How to Light Macro Photos
  • Nikon D5200 Image Samples
Disclosures, Terms and Conditions and Support Options
Filed Under: Photography Techniques Tagged With: Astrophotography, Milky Way, Night Photography, Software, Tracking Device

About Spencer Cox

I'm Spencer Cox, a landscape photographer based in Colorado. I started writing for Photography Life a decade ago, and now I run the website in collaboration with Nasim. I've used nearly every digital camera system under the sun, but for my personal work, I love the slow-paced nature of large format film. You can see more at my personal website and my not-exactly-active Instagram page.

guest

guest

56 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Jim
Jim
November 2, 2024 8:53 am

Is it worthwhile stacking jpgs?

0
Reply
Spencer Cox
Spencer Cox
Author
Reply to  Jim
November 2, 2024 10:23 am

Stack the RAWs if you have them. If all you have are the JPEGs, stack the JPEGs! You’ll still see a major improvement. (Assuming the software succeeds in stacking them — it’s built for RAWs and sometimes fails with TIFF or JPEG.)

0
Reply
Chris
Chris
July 9, 2024 2:27 am

Really enjoyed your article and videos on stacking. One thing where there seems to be some debate is whether you should edit your photos (e.g. in Lightroom) before stacking them or afterwards by editing the stacked image. Does it matter, and if so what do you recommend and why?

0
Reply
Spencer Cox
Spencer Cox
Author
Reply to  Chris
July 9, 2024 2:38 am

I would follow the exact recommendations of the stacking software. In the case of Starry Landscape Stacker, I just import the unedited RAWs. However, you can also import mildly processed TIFFs as discussed here: sites.google.com/site/…ersion-1-9

1
Reply
Chris
Chris
Reply to  Spencer Cox
July 9, 2024 5:43 am

Thanks for the really quick response. I am on Windows so have got a copy of Sequator.

I looked at the manual and it says, “RAW files are recommended. If you use TIFF instead, do not alter the linearity of data. Any processing except vignetting correction should be avoided”

0
Reply
Bill G Meador
Bill G Meador
October 25, 2023 3:14 pm

Sorry, but don’t see any screens like your shots above when trying to stack……….think this article is outdated!

-1
Reply
Spencer Cox
Spencer Cox
Author
Reply to  Bill G Meador
October 25, 2023 3:15 pm

Are you using Starry Landscape Stacker? I just used it last week and still see all the same screens as shown in the article…

0
Reply
Hamad
Hamad
July 2, 2023 4:52 am

Well said .. thank you
I would like to know how you take these 10 or more shots .. do you take them manually one-by-one ( press the shutter every time ) or you use shooting interval like NPF suggest ?

0
Reply
Spencer Cox
Spencer Cox
Author
Reply to  Hamad
July 9, 2024 2:40 am

It usually doesn’t matter either way, except to make your life easier. But I typically just press the shutter each time (with a self-timer) unless I’m taking more than a few minutes of exposures.

0
Reply
Almatsum
Almatsum
September 14, 2022 12:48 am

Now you can stack astrophotos using your smartphone by using Eagle Image Stacker application which supports most RAW formats.

0
Reply
Mark Yates
Mark Yates
August 10, 2022 1:54 pm

Hopefully this weekend 8/13 I’ll have a clear night and will go out to Lake Thunderbird in Oklahoma to attempt my first astrophotography session. I’m going to use the second method and do image stacking. My camera has been converted to take H-Alpha and Visible spectrum. I’ll be using my Irix 15mm lens set on infinite focus. I’m sure I’ll have a lot of questions as I progress in this hobby but, my first question is do I lock onto the north star the best I can and then start the 5-10 second exposure for 10 minutes? With all those images will Sequator help in blending the photos and will there be manually editing involved.

0
Reply
GrandpaOfLoba
GrandpaOfLoba
July 14, 2022 1:30 pm

The night sky images would look much better without Elon Musk’s satellites tracking through them.

4
Reply
Ethan Hudson
Ethan Hudson
February 14, 2022 1:35 am

Hi, another question for you. My dad is going on a camping trip, and I am planning on (trying) to take a milky way photo. I bought a remote shutter release for it too, but do i just leave the camera? Won’t the stars move out of the way eventually, or is there only a certain time limit you can shoot for so that the photos of the milky way all stay in a similar area? Secondly, I have taken a milky way photo before, but it looked pretty much exactly like this one: www.stocksy.com/15572…-the-beach
How do I make it more like yours? (One that includes all the purples and oranges and details) Is it to do with the time of year?
Thanks

2
Reply
fastclippingpath
fastclippingpath
January 19, 2021 4:52 am

Eye-catching work. I learned lots of things from your post.

0
Reply
Gerald Murphy
Gerald Murphy
September 2, 2019 6:55 am

This is a really helpful article but, because I am a bit dim, I haven’t figured out whether I need to move my camera, say left to right, to match the “star movement “ when shooting the stack. Also, similar theme, if I shoot with my camera in vertical position but want a wider field, can I take a stack in one position then move the camera direction to achieve a panorama and then take a second or third stack for blending – all stacks together or each stack separately and then blend the blended shots? (I am thinking of using a 35 mm f/2 lens to minimise coma, vignette get and corner distortion).

1
Reply
Spencer Cox
Spencer Cox
Author
Reply to  Gerald Murphy
September 2, 2019 9:49 am

Gerald, there is no need to move your camera at all during these exposures.

In terms of creating a panorama, it’s doable, but keep in mind that each individual stack within the panorama may take several minutes to capture. This means that star positions will be very different for the later images in the panorama, and your final panorama may have duplicate stars in certain regions, leading to noticeable patterns.

1
Reply
Gerald Murphy
Gerald Murphy
Reply to  Spencer Cox
September 2, 2019 2:42 pm

Thank you. That’s really helpful.

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