Back to Blog
AstrophotographyJanuary 17, 2026

Astrophotography and the Boring Calculators That Make It Possible

The 500 Rule, NPF Rule, and why I stuffed a bunch of math into OwlPlot so you don't have to think about it.

Let's talk about the least glamorous part of astrophotography: math.

When I started shooting the Milky Way, I was confused by all the "rules" people mentioned. 500 Rule. NPF Rule. Hyperfocal distance. It felt like everyone was speaking a different language.

So I did what any developer would do: I automated all of it.

The Problem: Star Trails

Stars move. Well, technically Earth rotates, but the effect is the same — if your shutter is open too long, stars become streaks instead of points.

Sometimes you want that (star trail photography is beautiful). But usually for Milky Way shots, you want sharp pinpoint stars.

The question is: how long can I expose before stars start trailing?

The 500 Rule (Simple Version)

Divide 500 by your focal length. That's your maximum shutter speed in seconds.

Example: 24mm lens → 500 ÷ 24 = ~20 seconds

It's simple. It's also... not very accurate on modern high-resolution sensors where tiny trails become visible.

The NPF Rule (Accurate Version)

This one factors in your sensor's pixel density:

Max shutter = (35 × aperture + 30 × pixel pitch) ÷ focal length

Don't worry about the formula. The point is: it accounts for how detailed your sensor is, so you get sharper stars.

Example: Same 24mm lens on a 45MP full-frame camera might give you only 13 seconds instead of 20.

Why This Matters

The difference between 20 seconds and 13 seconds doesn't sound like much, but:

- 7 fewer seconds of light gathering
- Might need to bump ISO higher
- Or accept slightly noisier images

Knowing the actual limit for your specific camera and lens combo helps you make informed tradeoffs.

What's in OwlPlot

Open the Calculators section and you'll find:

500 Rule Calculator — Input your focal length, get your max shutter speed. Simple.

NPF Rule Calculator — Input focal length, aperture, and sensor details, get a more accurate limit.

Both give you a number you can punch directly into your camera.

The Other Boring One: Hyperfocal Distance

This one isn't about stars — it's about sharpness.

Hyperfocal distance is the focus point that maximizes depth of field. Focus there, and everything from half that distance to infinity is acceptably sharp.

Why it matters for astro: You want the foreground AND the stars sharp. Focus on the hyperfocal distance and you get both.

The formula is annoying. It involves focal length, aperture, and "circle of confusion" (don't ask). OwlPlot calculates it for you.

My Actual Workflow

Here's how I use these calculators in the field:

1. Before leaving: Check Milky Way visibility in OwlPlot. Make sure the galactic core is actually above the horizon at my planned time.
2. At location: Use AR Sky View to find exactly where the Milky Way will be.
3. Setting up: Open calculators, plug in my lens settings, get my max shutter speed and hyperfocal distance.
4. Shoot: Manual focus to hyperfocal distance, set shutter to calculated max, start shooting.

The calculators take 10 seconds to use. They save me from trial-and-error in the dark.

Why I Built This

I'm not a professional astrophotographer. I'm a developer who got into photography and got annoyed by how scattered all the tools were.

You shouldn't need to understand optical physics to take a picture of the Milky Way. You should be able to punch in your gear specs and get a number.

That's what OwlPlot tries to do: handle the boring math so you can focus on composition and actually enjoying the night sky.