Star Trails Exposure Calculator

A lit tree under a night sky full of pinpoint stars with the Milky Way rising behind it and a glow on the horizon
Photo: Tree and Night Sky by Duncan Rawlinson. 14mm, f/1.8, 15s, ISO 3200. Shot at 14mm, f/1.8, 15 seconds, ISO 3200: a wide lens and a short exposure keep the stars as points, which is what the point-star limits in the calculator are for; the same sky left open for hours would draw trails.

The stars move about 15 degrees an hour, so a long enough exposure turns each one into a line, and a short one keeps it a dot. This calculator answers two questions: how long can the shutter stay open before stars start to trail, and how long must a stack of frames run to draw trails of a length you choose.

Work out the exposure

Enter your lens, sensor, the arc you want the stars to draw and the sensor's megapixels, then press the button. The results come in three groups: the total time for the trail, how many frames a stack needs, and the longest single exposure that keeps stars as points. Everything below explains how to read each group.

0 = celestial equator (fastest motion, longest trails). 90 = Polaris (minimal motion). Use 0 for maximum trail length estimates.
Used for point-star rule calculations (higher resolution = shorter max exposure for sharp stars)

Star Trail Results

Trail Exposure

Required total exposure time --
Trail arc length --
Estimated trail length on sensor --

Stacking Recommendation

Frames at 30s each --
Frames at 60s each --
Frames at 120s each --

Point Star Limits (No Trailing)

500 Rule --
NPF Rule (more accurate) --
Effective focal length --
Trail preview

Got the numbers and want the method? Star trail photography covers the shoot from setup to stacking.

Question one: how long for a trail?

The Earth turns once in about 23 hours 56 minutes (a sidereal day), which is 360 degrees in 86,164 seconds, or about 0.00418 degrees a second. The first group of results is that rate turned around: the arc you picked divided by the rate gives the time. Two facts make it easy to use.

  • The time depends only on the arc. Not the lens, the sensor or the star. Every star on the sky turns the same angle about the pole in the same time, so a trail that sweeps a quarter of a circle takes about six hours for a star near the equator and for one close to the pole alike. A star near the pole simply sweeps a smaller circle.
  • The arc is an angle around the pole, not a length in the frame. A trail of a given angle is long if the star is far from the pole and short if it is near, which is what the declination input and the sensor-length result are for.

This table is the first group computed for the five presets, with the frame counts from the stacking group. A frame count assumes no gaps, so allow a few extra for the gaps and for frames you will discard.

ArcTotal timeFrames at 30 sFrames at 60 sFrames at 120 s
10 degrees40 min804020
45 degrees3 h36018090
90 degrees6 h719360180
180 degrees12 h1,437719360
360 degrees23 h 56 min2,8731,437719
Time = arc / 0.004178 degrees per second, rounded; frames = time / frame length, rounded up.

The numbers explain something photographers learn the hard way: a quarter circle is a six hour job, and a full circle needs more than a night. Most trail pictures that look like arcs are an hour or two long, which is 15 to 30 degrees. If the preset menu seems to jump from "short" to "very long", use the arithmetic yourself: one hour is 15 degrees, so a 90 minute stack draws 22.5 degrees.

Star Trails Calculator
Photo: Motorhomes And Carson Peak by Duncan Rawlinson

The trail length on the sensor and the declination box

The result called trail length on the sensor is the arc turned into millimeters at the focal plane: focal length times the angle in radians times the cosine of the declination. Declination is a star's angular distance from the celestial equator: 0 degrees on the equator, 90 at the pole. Enter 0 and you get the longest trails in the frame; enter 60 and they halve, because cos 60 is 0.5. On a 24 mm lens, a 10 degree arc at the equator is 4.2 mm on the sensor, and a 45 degree arc is 18.8 mm, about half the width of a full-frame sensor. Compare the result with the sensor width the tool prints: if the trail is longer than that, it leaves the frame.

The number is a flat estimate: it treats the lens as mapping angles in a straight line, which holds for short arcs and gets rougher for long ones on a very wide lens. Use it to judge how long a trail will look, not to measure a composition.

Question two: how long can the shutter stay open before stars trail?

If you want pinpoint stars, the question flips: what is the longest exposure that keeps each star within a pixel or two of its true spot? The calculator gives two answers, the 500 rule and the NPF rule, and they differ for a reason.

The 500 rule

Divide 500 by the focal length in millimeters (on a smaller sensor, the equivalent focal length, which the tool shows as the effective focal length). A 24 mm lens on full frame gives 500 / 24 = 20.8 seconds. It is easy to remember and it was made for low-resolution cameras, where a pixel was large and a star could drift a good way before anyone noticed. Two weaknesses follow. It ignores pixel size, so the more megapixels you have, the more the same exposure shows: with a 24 megapixel full-frame sensor the 500 rule lets a star at the equator smear across about 6 pixels, and with 45 megapixels about 8. It also ignores the aperture and the direction you face.

The NPF rule

The NPF rule is (35 x f-number + 30 x pixel pitch in microns) / focal length, with the focal length as printed on the lens. The first term allows for lens blur at the aperture. The second allows for the size of a pixel, so it shrinks the time as megapixels rise. The calculator works out the pixel pitch from the sensor width and your megapixels, assumes f/2.8, and divides by the cosine of the declination, since stars near the pole move more slowly. For the 24 megapixel full-frame sensor the pitch is 6 microns, so 24 mm gives (35 x 2.8 + 30 x 6) / 24 = 11.6 seconds. That lets the star move about 3 pixels. The same arithmetic works for any lens.

LensFull frame, 500 ruleFull frame, NPF at f/2.81.5x crop, 500 rule1.5x crop, NPF at f/2.8
14 mm35.7 s19.9 s23.8 s15.4 s
24 mm20.8 s11.6 s13.9 s9.0 s
35 mm14.3 s7.9 s9.5 s6.1 s
50 mm10.0 s5.6 s6.7 s4.3 s
Both sensors at 24 megapixels, stars at the celestial equator, in seconds. Pixel pitch is 6.0 microns for full frame and 3.9 microns for the crop sensor (23.5 mm wide).

The tool's NPF answer assumes f/2.8. Another aperture moves it: the aperture term is 35 times the f-number, so at f/1.8 the first term falls from 98 to 63 and the 24 mm full-frame answer drops from 11.6 s to 10.1 s, and at f/4 it rises to 13.3 s. The aperture matters less than the pixel size, which is why the megapixel box is worth filling in properly.

Where each rule fails

  • Both are for a star on the celestial equator. Aim at the pole and the safe time grows by a large factor. The declination box changes the NPF answer, not the 500 rule.
  • Both are for normal viewing. The sharpness standard behind them is a few pixels of movement. A big print, or looking at every pixel on a screen, shows trailing sooner. Cut the time to taste when it matters.
  • Neither knows about your lens. A lens that is soft at the corners will not show clean points in any case, however short the exposure.
  • The crop sensor gives shorter numbers for the same lens. A smaller sensor with the same megapixels has smaller pixels, so each pixel covers less sky. The 500 rule's use of equivalent focal length gets a similar result in a different way.
  • The short exposure has a price. Shorter times mean higher ISO and more noise. That is the trade for sharp points, and why a stack of many frames is the usual way to get clean trails.

Exposure at night follows the same shutter speed and focal length logic as the day, only pushed to the limits, and the wider picture is in night photography. For a Milky Way picture with a foreground, see astro-landscape photography; for the full workflow of focusing and exposing at night, how to photograph stars.

Try the point-star limit for yourself: zoom in past the wide lens the scene was shot with, then find the longest exposure that still keeps the stars as points.

Would you sooner keep the stars as points? How to take pictures of stars covers focusing in the dark and the settings to try first.

How the two answers fit together

The trail question and the point question look like opposites, but they join up in the stack. A star trail made from a stack is a series of short exposures, each of which is a small dash, and the dashes join into a line. Each frame can be as long as you like within reason. A frame length near or under the NPF number gives clean frames and a clean look to the beginning and end of each dash, but longer frames work too, and some photographers choose 30 seconds or more to keep the number of frames down. What matters for joining is the gap between frames, not the frame length. At 24 mm on a 24 megapixel full-frame sensor a star at the equator moves about 0.3 pixel a second, so a 1 second gap leaves a break of less than a pixel and is invisible. A 5 second gap leaves one of about 1.5 pixels, and a long-exposure noise reduction pass that doubles the time between frames can leave a visible dash. For setup, the interval and what goes wrong, the companion page star trail photography takes over.

Wondering how to fire hundreds of frames back to back without touching the camera? Intervalometer explains how to set one for a stacking session.

Worried about noise building up over a long session? Noise explains where it comes from and what keeps it down.

Common mistakes with the star trails calculator

  • Expecting the time to change with the lens. It does not. The arc sets the time. The lens decides how long the trail looks and how much of the sky is in the frame.
  • Forgetting how long an arc takes. A quarter circle is about six hours. Choose the arc for what the night allows, not only for the picture in your head.
  • Entering the equivalent focal length where the real one is needed. Enter the focal length marked on the lens and pick the sensor; the tool applies the crop for the 500 rule only.
  • Leaving the megapixels at the default. The NPF result depends on the pixel size, so enter your camera's real number.
  • Using the point-star time for a stack. It is the longest single frame with points. It does not tell you how many frames to take.
  • Ignoring the night itself. Moonlight, dew, cold batteries and cloud decide how long you can run. The calculator cannot.

Why does the NPF limit drop as megapixels go up? A pixel is the smallest piece of the picture, and smaller pixels show a star's movement sooner.

Try this: measure how far a star moves in your pictures

You need a tripod, a wide lens and a clear sky with a few bright stars, about 10 minutes.

  1. Set the lens to its widest aperture, focus on a bright star in live view, and set the ISO high enough to show a few stars in a short frame.
  2. Look up your camera's megapixels and use the calculator to find the 500 rule and NPF times for your lens.
  3. Take three frames: one at the NPF time, one at the 500 rule time and one at about twice the 500 rule time.
  4. Zoom each frame to 100% on a bright star and compare the shape.

To judge: the NPF frame should show round or very slightly oval points, the 500 rule frame a short dash on the brightest stars, and the long frame an obvious line. Whichever is the longest frame you find acceptable is your own limit; remember it for the lens, and use it for all your night shoots.

Star trails calculator questions

How many frames do I need for star trails?

Divide the total time by the frame length, then add a few for gaps. An hour of stacking at 30 seconds a frame is 120 frames and draws 15 degrees of arc. The table above has the counts for the arcs in the tool.

Why is 45 degrees just under three hours, not exactly three?

The Earth turns once in a sidereal day, which is about 4 minutes shorter than 24 hours, so the sky moves slightly faster than 15 degrees per clock hour. 45 degrees takes about 2 hours 59 minutes.

Is the 500 rule wrong?

It is a rough guide that gives acceptable results on low-resolution cameras and visibly trailed stars on high-resolution ones. The NPF rule includes the pixel size and the aperture, so it gives better numbers on a modern camera. Neither is a guarantee.

Does the direction I shoot in matter?

Yes. Stars near the pole move across your frame much more slowly than stars near the equator, so you can expose longer toward the pole. Enter the declination in the calculator to see it in the NPF result.

Can I use one long exposure instead of a stack?

You can, for short arcs. The calculator's time is the same either way. A stack is safer for long arcs, because it spreads the noise, drops the frames spoiled by an aircraft and survives a drained battery. A long exposure is better covered by long exposure basics.