Images and Photos

Stacking Night Sky Photos: Cleaner Milky Way Shots and Star Trails

How stacking reduces noise in astrophotography, how to shoot frames for stacking and star trails, and what dark frames, median and lighten modes do.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
Stacking Night Sky Photos: Cleaner Milky Way Shots and Star Trails

Stacking Night Sky Photos: Cleaner Milky Way Shots and Star Trails

Night photography pushes cameras to their limits. To capture faint stars you need long exposures and high ISO, and both add noise. Stacking, combining many photos of the same scene, is the most effective way to get cleaner skies, and it is also how star trail images are made. This guide explains both techniques.

Why stacking reduces noise

Each photo of the night sky contains the same stars and Milky Way plus random noise. When you average several frames, the stars stay put while the random noise partly cancels out. As a rule of thumb, stacking four frames halves the noise, and sixteen frames reduce it to a quarter. That lets you use a lower ISO or bring out fainter detail.

Shooting frames for a clean sky

  1. Use a sturdy tripod and manual focus on a bright star.
  2. Choose an exposure short enough to keep stars as points. A common starting point is the "500 rule": 500 divided by your focal length gives a rough maximum in seconds (use a stricter value for high-resolution cameras).
  3. Shoot 10 to 30 identical frames in a row.
  4. Keep the same ISO, aperture, shutter speed and white balance for every frame.

Why alignment matters

The Earth rotates, so stars move across the frame between exposures. Before stacking for a clean sky, frames must be aligned on the stars: shifted and slightly rotated so the stars line up. Good stacking software finds the brightest stars in each frame and matches their pattern. The foreground will then blur slightly, which is why many photographers stack the sky and the landscape separately and blend them.

Mean or median?

  • Mean averages all frames and gives the smoothest noise.
  • Median takes the middle value at each pixel. It is slightly noisier but removes anything that appears in only a few frames: aircraft lights, satellites, meteors and passing car headlights. For most Milky Way stacks, median is the safer choice.

Star trails: the opposite approach

For star trails you deliberately let the stars move. Keep the camera fixed, shoot hundreds of frames continuously (for example 30 seconds each for an hour or more) and combine them with a lighten stack: for every pixel, keep the brightest value from any frame. Each star then draws a continuous arc. Point the camera towards the celestial pole (Polaris in the northern hemisphere) for circular trails, or east and west for straighter lines.

Comet trails and gap filling

A comet stack fades earlier frames so trails start faint and end bright, looking like shooting stars. Short gaps between frames, caused by the camera's processing time, can leave tiny breaks in trails; gap filling softens them. Using the camera's continuous shooting with the shortest possible interval avoids most gaps.

Dark frames and hot pixels

Long exposures on a warm sensor create hot pixels: bright coloured dots in the same position in every frame. A dark frame is a photo taken with the lens cap on at the same exposure, ISO and temperature. Combining several darks into a master dark and subtracting it from each light frame removes the hot pixels. Shoot darks at the end of your session while the camera is still at the night's temperature.

Post-processing

Stacked images often look flat at first. A levels stretch, raising the black point slightly and adjusting the midtones, brings out faint structure in the Milky Way. Go gently, because pushing too hard reveals remaining noise and gradients from light pollution.

Checklist for your first night

  1. Find a dark site and check the moon phase; a new moon gives the darkest sky.
  2. Bring a tripod, a remote release and spare batteries.
  3. Shoot 20 frames for a stacked sky, or 200 for trails.
  4. Shoot 10 dark frames at the end.
  5. Stack, stretch and export.

Stacking turns a noisy single exposure into a clean, detailed sky, and with a little patience it turns an hour of sky rotation into a dramatic star trail image.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages