What stacking does
Image stacking combines many frames of the same scene into one image. The software aligns the frames and then combines them. Random noise is different in every frame, so averaging many frames cancels much of it. The real light from stars and nebulae adds up across frames. The result is cleaner, with more faint detail.
Why one frame is noisy
Every exposure carries random noise from the sensor and its electronics. Faint targets can disappear into that noise in a single frame. Averaging frames reduces random noise by roughly the square root of the number of frames. Four frames cut the noise about in half, and 16 frames bring it down to about a quarter.
Two kinds of stacking
The word covers two related jobs.
- Star trail stacking. The frames are combined with a method such as lighten blending, which keeps the brightest value at each pixel. The result shows the stars’ motion across the session. The method is in how to photograph star trails.
- Deep-sky and night sky stacking. The software aligns the frames on the stars, so the stars stay sharp in the stack. Then it averages the frames, often with sigma clipping, which discards pixels that differ strongly from the rest. That removes many airplane and satellite streaks, along with hot pixels.
Alignment corrects small shifts between frames, but it can’t fix trails within a single frame. Keep individual exposures short enough that the stars stay round.
Calibration frames: bias, dark, flat, and dark flat
Calibration frames record the camera’s own patterns, so the software can remove them from your light frames. There are four types.
- Bias frames. The shortest possible exposures, with the lens cap on. They record the sensor’s baseline readout pattern. Each one takes under a second, so they’re quick to shoot.
- Dark frames. Exposures with the lens cap on, at the same length, ISO, and temperature as your lights. They record hot pixels and heat-related noise.
- Flat frames. Exposures of an evenly lit surface, such as a light panel or a plain screen, taken with the same focus and aperture. They record dust and dark corners from vignetting.
- Dark flats. Dark frames at the same exposure as the flats. They’re needed only if the bias frames don’t fully correct the flats.
Beginners can start with light frames and darks. Add flats when you see dust spots or darkened corners. It’s a good habit to take new calibration frames when conditions change, such as on a new night or with a new target.
How many frames to shoot
More is better, up to a point. Five frames show a visible improvement, and dozens usually look much cleaner. Many guides suggest 20 or more light frames, and 20 to 50 of each calibration type, though advice varies.
Free software to try
- DeepSkyStacker is free and runs on Windows. It handles alignment, calibration, and stacking, and it’s a common first choice.
- Siril is free and runs on Windows, macOS, and Linux. It follows a similar workflow and offers more detailed controls.
- Sequator and StarStax are designed for star trails and night landscapes.
Check each program’s documentation for its calibration workflow, because menus and steps change between versions.
A simple stacking workflow
- Shoot the light frames with fixed settings.
- Shoot darks, bias, and flats at the same settings as the lights, if you have time.
- Load the light frames and calibration frames into the stacking program.
- Let the program align and stack the frames.
- Stretch the stacked image so the faint detail shows, then edit it. How to do that is covered in how to edit night sky photos.
Common mistakes
- Changing settings mid-session. Different ISO, exposure, or focus between lights makes the frames harder to match.
- Mismatched dark frames. Use the same exposure, ISO, and temperature as the lights.
- Too few frames. A handful of frames gives only a modest improvement.
- Trailing within each frame. Stacking can’t fix trails inside a single frame. Shorten the exposures.
- Focus drift. If focus shifts during the session, the frames won’t line up as well. Check focus between runs.
Where to go next
If you’re new to the hobby, start with how to start astrophotography for beginners. For star trail stacks, read how to photograph star trails. Once your stacked image is ready, how to edit night sky photos covers the next step. To decide whether you need longer exposures at all, see do you need a tracking mount for astrophotography.