The short answer
The 500 rule gives a quick estimate of the longest shutter speed you can use before stars start to trail, when your camera is on a fixed tripod. The formula is:
Longest shutter speed (seconds) = 500 ÷ (focal length × crop factor)
Use a crop factor of 1 for a full-frame camera. Check your camera’s specifications for the crop factor of other sensors.
Working through the formula
- Full-frame camera, 24 mm lens: 500 ÷ (24 × 1) ≈ 21 seconds.
- APS-C camera (crop factor 1.5), 24 mm lens: 500 ÷ (24 × 1.5) ≈ 14 seconds.
- Micro Four Thirds camera (crop factor 2), 24 mm lens: 500 ÷ (24 × 2) ≈ 10 seconds.
Treat these numbers as starting points. The same lens on different cameras gives different results because the sensor size changes how much of the sky each pixel covers.
Why the rule works
Earth turns once a day, so stars appear to drift across the sky at about 15 degrees per hour. On a fixed camera, that drift moves stars across the sensor during the exposure. A wider lens makes the same drift smaller on the sensor, which is why the formula divides by focal length. With a short enough exposure, the movement is too small to see. The 500 rule estimates the point where it starts to show.
What the rule ignores
The 500 rule doesn’t account for aperture or pixel size. High-resolution sensors have smaller pixels, so the same drift shows up more easily, and stars can trail sooner than the rule predicts. Some versions of the rule use 400 or 600 instead of 500, which is a sign that it’s an estimate, not a law.
The NPF rule as a more detailed check
The NPF rule, devised by Frédéric Michaud for the Société Astronomique du Havre, gives a more detailed estimate. Its simplified form is:
Longest exposure (seconds) = (35 × N + 30 × p) ÷ f
Here, N is the f-number, p is the pixel pitch in microns, and f is the focal length in millimeters. Pixel pitch is the distance from the center of one pixel to the center of the next. If your camera’s listing doesn’t give it, divide the sensor’s width in millimeters by its horizontal pixel count, then multiply by 1,000.
As a worked example, take a 20 mm lens at f/2.8 on a sensor with 6.0-micron pixels:
(35 × 2.8 + 30 × 6.0) ÷ 20 = (98 + 180) ÷ 20 ≈ 13.9 seconds
Because it includes aperture and pixel size, the NPF rule often suggests a shorter exposure than the 500 rule, especially on high-resolution sensors. Some calculators add a declination term, but the simplified form above is the one most commonly quoted.
Using the rule in practice
- Note your lens’s focal length and aperture.
- Work out the 500 rule value. If you know your pixel pitch, work out the NPF value too.
- Start with the shorter of the two.
- Take a test frame, zoom to 100 percent, and check the stars near the corners.
- Adjust the exposure, then keep it steady for the session.
The rule is most useful for dedicated cameras. Many phones don’t let you set shutter speed directly, so for phones, see how to photograph the milky way with a phone. For star trails, the rule sets how long each frame can run, and you stack many frames; the method is in how to photograph star trails.
When the rule stops being enough
If you need exposures longer than the rule allows, for faint targets or a longer lens, a tracking mount rotates the camera to follow the stars. Read do you need a tracking mount for astrophotography to decide whether it’s worth it. For a full set of starting values, check our guide to what camera settings for photographing stars.