Skip to content

NPF rule calculator

The maximum star-trail-free shutter speed for astrophotography from your aperture, sensor pixel pitch, focal length and where in the sky you are pointing, compared with the 500 and 300 rules.

mm
°

0° is the celestial equator, where stars move fastest across the frame; 89° is close to Polaris (the north celestial pole), where they barely move.

Maximum shutter speed before star trailing

NPF rule (accurate)

-

Enter your camera and lens settings.

500 rule
-
300 rule
-
Pixel pitch
-
Crop factor
-
35mm-equivalent focal length
-

How it works

The NPF rule is a precision astrophotography formula that calculates the maximum star-trail-free shutter speed by factoring in aperture (N), pixel pitch (P), focal length (f), and how close to the celestial equator or pole you are pointing.

  1. Enter your lens and camera

    Focal length, aperture and the sensor's actual pixel pitch.

  2. Set the declination

    Stars near the celestial equator move fastest; stars near the poles move slowest.

  3. Compare to the simpler rules

    The 500 and 300 rules ignore pixel size, so they can overestimate what a high-resolution sensor can handle.

The NPF formula

NPF = (35 × N + 30 × P) ÷ f ÷ cos(declination)

N is the aperture (f-number), P is the pixel pitch in micrometers, f is the focal length in mm, and declination is how far the subject is from the celestial equator. Dividing by cos(declination) is what makes the allowed exposure grow the closer you point to a celestial pole: at the equator cos(0°) is 1, so there is no correction, but at 85° cos(85°) is about 0.087, letting the exposure run roughly 11 times longer than at the equator before stars visibly trail.

Tips for sharp stars

  • Sturdy support: use a tripod and a remote shutter release or a 2-second timer.
  • Focus manually at infinity: use live view zoom on a bright star to confirm focus.
  • Shoot RAW: it gives more room for noise reduction in post.
  • Use the highest ISO your camera handles well: a shorter exposure at higher ISO often beats a longer one that trails.
  • Consider stacking: combining several exposures reduces noise without lengthening any single shot.

Use the actual focal length, not the 35mm equivalent

Enter the focal length marked on the lens barrel, not a crop-adjusted number. Pixel pitch already accounts for the sensor size, so the formula only needs the true focal length.

Frequently asked questions

What is the NPF rule and how is it different from the 500 rule?

The NPF rule is a more accurate formula for astrophotography: shutter seconds equal (35 times the f-number plus 30 times the pixel pitch in micrometers), divided by the focal length, then divided by the cosine of the declination. Unlike the 500 rule it accounts for your sensor's pixel size and where in the sky you are pointing, making it reliably accurate even on 45+ megapixel cameras.

How does pixel pitch affect the NPF rule result?

Smaller pixels are more sensitive to tiny star movements. A 45MP full-frame sensor has a pixel pitch around 4.4 micrometers versus roughly 6 micrometers on a 24MP body. Because the formula includes pixel pitch directly, the NPF rule automatically shortens the recommended exposure for high-resolution sensors, preventing trails that the 500 rule would allow.

Why does the allowed exposure get longer near the celestial pole?

Stars near the celestial equator (0 degrees declination) move fastest across the sky; stars near the poles move slowest, because they trace a smaller circle around the pole in the same 24 hours. Dividing by the cosine of the declination captures this: at 30 degrees the allowed exposure is about 15% longer than at the equator, and it keeps growing the closer you point to Polaris.

Is the NPF rule worth the extra complexity for casual astrophotographers?

For smartphone shooters or casual milky-way snaps, the 300 rule is simpler and usually sufficient. The NPF rule pays off when you are shooting RAW on a high-resolution mirrorless and want to push exposure as long as possible without any trailing. A single calculation before a shoot saves you from discovering trails during post-processing.

What common mistake do photographers make when using the NPF rule?

A frequent error is entering the focal length without accounting for crop factor. The formula uses the actual focal length of the lens, not the 35mm equivalent, because pixel pitch is already tied to your specific sensor size. On an APS-C body, enter the marked focal length on the lens barrel, not the multiplied value.