A rule of thumb for the longest exposure on a fixed tripod before stars trail: 500 divided by the full-frame equivalent focal length, in seconds.
Also called: rule of 500
The Earth's rotation turns the sky by 15° per hour, which is 15″ per second of time for a star near the celestial equator. On a fixed tripod, stars therefore start to stretch into lines once the exposure lasts a little while. The 500 rule estimates the longest usable exposure: time (in seconds) ≈ 500 ÷ (focal length × the sensor's crop factor). A 24 mm lens on a full-frame sensor gives about 20 seconds; an 18 mm lens on an APS-C sensor (crop factor 1.5) gives about 18 seconds.
The rule dates from the film era and small prints. On today's high-resolution sensors, stars already look elongated when the image is viewed at 100%, so many photographers use 300 or 400 instead of 500, or the more complete NPF rule, which accounts for aperture and pixel size. The rule also covers the worst case, the celestial equator: near the celestial pole, stars move less and exposures can be longer.
In practice, it is combined with a fast wide-angle lens and a high ISO, and the stars are checked by zooming into a test frame. Exposures of several minutes require a star tracker.