Star Trail Exposure Calculator

Enter your lens's focal length, aperture, your camera's crop factor and its pixel pitch. The calculator gives the longest exposure before stars start to trail, by the 500 rule and by the NPF rule, and a table for common focal lengths.

Free Runs in your browser Checked Tuesday, November 10, 2026

The focal length of the lens in millimetres, for example 24.

The f-number of the lens at the aperture you use, for example 2.8.

1 for full frame, about 1.5 for APS-C and 2 for Micro Four Thirds. The Crop factor calculator gives it for a sensor.

The size of one pixel on the sensor, in micrometres. The default 3.91 is the value of the article's example camera.

Result

Longest exposure, NPF rule (seconds) — Uses the f-number and the pixel pitch as well as the focal length.
Longest exposure, 500 rule (seconds) — Uses the focal length and the crop factor only.
Longest exposure by focal length (seconds)

This tool runs in your browser. What you enter is not sent to us.

How to use it

  1. Type the Focal length (mm) of your lens and the Aperture (f-number) you will shoot at.
  2. Type your camera's Crop factor, or 1 for full frame, and its Pixel pitch (micrometres).
  3. Read the Longest exposure, NPF rule and the Longest exposure, 500 rule. The shorter figure is the safer one.
  4. Use the table to compare focal lengths with the same camera and aperture.

The two rules

The 500 rule is a rule of thumb for keeping stars point-like. The Astrophotography article on Wikipedia gives it as the maximum exposure in seconds: 500 divided by the focal length in millimetres, multiplied by the crop factor. It does not depend on the aperture or the ISO. The article's example is a 35 mm lens on an APS-C sensor: 500 ÷ (35 × 1.5) is about 9.5 seconds.

The NPF rule is the more accurate rule the same article gives. It adds the aperture and the pixel pitch: (35 × f-number + 30 × pixel pitch in micrometres) ÷ focal length in millimetres, for a star at a declination of 60 degrees. The article's example is an 11 mm lens at f/2.8 on a Nikon D3300, with a pixel pitch of 3.91 micrometres: about 19.6 seconds.

500 rule: longest exposure (s) = 500 ÷ (focal length (mm) × crop factor)
NPF rule: longest exposure (s) = (35 × f-number + 30 × pixel pitch (µm)) ÷ focal length (mm)
Pixel pitch = sensor width in micrometres ÷ horizontal pixels

What the rules do not cover

  • Stars in the field of the lens: the declination of the star field changes how fast stars move, and the NPF rule assumes 60 degrees.
  • The sharpness of the lens and the focus: a very sharp lens shows trails that a softer one would hide.
  • The longer exposures for star trails: the article notes that intentional trails take several minutes or hours; this calculator is for points of light.

Worked example: 24 mm at f/2.8 on APS-C with a 3.91 µm pixel pitch

The 500 rule gives 500 ÷ (24 × 1.5) = 13.9 seconds. The NPF rule gives (35 × 2.8 + 30 × 3.91) ÷ 24 = 8.97, or 9.0 seconds.

The NPF time is the shorter, so it is the safer limit: the aperture and the pixel pitch make the stars trail sooner than the 500 rule alone suggests.

Rule Longest exposure
500 rule 13.9 seconds
NPF rule 9.0 seconds

Frequently asked questions

What is the 500 rule?

The 500 rule is a rule of thumb: divide 500 by the focal length and by the crop factor to get the longest exposure in seconds before stars trail. The Astrophotography article on Wikipedia gives it with an example for a 35 mm lens on an APS-C sensor.

What is the NPF rule?

The NPF rule is the more accurate rule the same article describes. It adds the f-number and the pixel pitch, (35 × N + 30 × pixel pitch) ÷ focal length, and assumes a star at a declination of 60 degrees.

What is a pixel pitch?

The pixel pitch is the size of one pixel on the sensor. Divide the sensor's width in micrometres by the number of pixels across it; a camera with a 23.5 mm wide sensor and 6,000 pixels across has a pitch of about 3.9 micrometres.

Why are the two rules different?

The 500 rule uses only the focal length and the crop factor. The NPF rule also counts the aperture and the pixel size, so a smaller pixel makes the stars show trailing sooner. The article notes that the more accurate calculation takes pixel pitch and declination into account.

Is the crop factor the same as the sensor size?

Not exactly. The crop factor is the full-frame diagonal divided by the sensor's diagonal, so a smaller sensor has a larger crop factor. The Crop factor calculator on this site shows the value for each sensor size.

Sources

Figures and text last checked on Tuesday, November 10, 2026.

We use necessary cookies to run the site. With your consent, Google also uses advertising cookies to show personalised ads. If you reject them, you still see ads, but they are not personalised.