How to create a 24-hour star trails image

Follow our step-by-step guide and merge a series of photos to make a spectacular image showing Earth’s rotation.

How to create a 24 hour star trails image

Star trails are relatively simple to do yet produce very striking results, especially when centred around the north or south celestial poles.

These images capture the movement of Earth as it rotates on its axis, producing star trails that are comprised of fragments of concentric rings.

If you are in the polar regions during the winter and have clear, dark skies for 24 hours, the trails will form complete circles, including the pole star Polaris – also known as the North Star – because it is not perfectly aligned with the celestial pole.

However, you don’t need 24 hours of darkness to create a 24-hour star trails image.

The above image was captured from the UK, and is effectively a 24-hour star trails image.

In this guide, we’ll show you exactly how we did it.

For more advice, read our guide on how to use a DSLR camera or our beginner’s guide to astrophotography.

Star trails captured by Adam Jeffers, Cookstown, Northern Ireland, August 2020 Equipment: Nikon D800E DSLR, Nikon 28–80mm lens, static tripod

What is a 24-hour star trails image?

Most of us will never experience a polar winter, but it is still possible to create a 24-hour star trail photograph by merging together a stack of many images taken with the same setup, from exactly the same spot, on different nights throughout the year.

Although taking a star trail image on a single night is straightforward, replicating it exactly on multiple dates, then merging them together successfully, is the challenge here.

First, the camera location must be identical.

We placed marks on the ground to ensure the tripod was in exactly the same spot, but attaching the camera to a fixed structure would be even better.

Point at the north celestial pole to give your stra trails that attractive circular focal point. Credit: Anthony Beavers.

Focus must also be the same, otherwise the width of the star trails will differ, and they won’t line up perfectly.

Circumpolar star trails can be created under moonlight, but doing so will affect the fainter stars, so try to ensure the Moon’s brightness – its phase – is consistent between sessions.

Also, when you blend your final stacked images, the overlapping regions will be brighter, so only stack what’s necessary to complete the full circle.

Pick your foreground wisely

A good foreground can really make a star trails image! Credit: James Billings

Another consideration is the foreground. It’s important to have something in the foreground for context and scale.

I had a large tree in mine, which grew during the year and then required an extra layer-masking step at the end to compensate for the different tree size.

You might want to opt for a non-organic foreground object!

Star Trails over 18th Century Loop Tower by Peter Brown, Guernsey, Channel Islands. Equipment: Cannon 1100D Camera on Tripod.

Choose some potential imaging dates that are spread across the whole year and if you have a clear sky forecast, be ready on those nights (for help, read our guide to weather forecasting for astronomy).

I took images on seven nights during the year, but only used the photos taken in February, April, July and November.

During the winter months you will have many more hours of imaging available to you, but in the summer you need to grab every minute of darkness.

If thin cloud moves through your field of view, don’t worry; the stars will still shine through.

Star trails captured on a smartphone with NightCap by Iain Todd, Bristol, UK, 26 February 2022.

Issues such as aircraft lights can be omitted from the image stack by using a program called StarStaX, which can fill the gaps.

Before you attempt to merge the stacked images, adjust the brightness and colour balance to make them as similar to each other as possible.

You may also have to apply a lens distortion correction to successfully line up the images. But all this effort is well worth it for the end result.

What you’ll need

  • A DSLR camera with a widefield lens and a high-power battery or mains power lead
  • A remote shutter release cable that locks in place
  • A sturdy tripod
  • A dew heater to prevent the lens from fogging up during long imaging sessions
  • Software for image stacking and processing, eg StarStaX for stacking, and Photoshop or GIMP for merging and processing the stacked images

Create a 24-hour star trails image, step-by-step


Step 1

24 Hour Star Trails step 01

Position your tripod then mark the ground where your tripod legs lie.

We used acrylic paint because it’s weatherproof but can be removed with a kitchen scouring pad and water.

Alternatively, screw the tripod shoe to a wall or sturdy object.

Step 2

24 Hour Star Trails step 02

Fit the camera lens with a dew heater.

Set the lens to manual focus, then focus the camera on a bright star or planet using the live view and 10x zoom.

It’s vital to get good focus for each session, so don’t rush this step.

Step 3

24 Hour Star Trails step 03

Point the camera, with the celestial pole in exactly the same place in the frame for each session.

Set the camera to continuous mode, shutter speed to 30 seconds, ISO to 800 and aperture to f/3.5.

Lock the remote shutter cable so it takes a sequence. 

Step 4

24 Hour Star Trails step 04

After each session, put the lens cap on then shoot 20 to 30 dark frames.

This will help to remove dark signal noise and hot or cold pixels from your images in processing.

Repeat Steps 2 and 3 during different months throughout the year.

Step 5

24 Hour Star Trails step 05

Stack each night’s data separately.

Open StarStaX, drag and drop your images, then add any dark frames.

Untick any images with aircraft in them.

Select ‘Gap filling’ mode and, if needed, tick the ‘Subtract dark frames’ box.

Click ‘Stack’, then save the image. 

Step 6

24 Hour Star Trails step 06

In Photoshop, paste each session’s image as a layer on top of another.

For each layer, set the blend mode to ‘Difference’, use ‘Free transform’ to align, and set the blend mode back to ‘Normal’.

Adjust the opacity until each layer’s stars have equal brightness. 


Have you managed to captured a good star trails image? We’d love to see it! Share it with us via or via Facebook, Twitter and Instagram.

This guide originally appeared in the October 2022 issue of BBC Sky at Night Magazine.