9 min read

Night Sky Photography: How Far Away Are the Stars?

The nearest star outside our solar system is Proxima Centauri, at about 4.24 light years or roughly 40 trillion kilometres. The stars of the Milky Way core are 25,000 light years away. For photographers, this immense distance has one practical consequence: stars are, for all photographic purposes, at infinity. And that changes everything about how you focus and think about depth of field in night sky photography.

What Infinite Distance Means for Focus

When a subject is at infinity, all parallel light rays entering the lens converge at exactly the focal plane (the sensor). No depth of field calculation is needed because there is no near limit to worry about. Your focus ring set to infinity captures stars, the moon, and distant mountains equally sharply.

The practical implication: focusing for night sky photography is a solved problem technically, but often a frustrating one in practice. The difficulty is not the concept but the execution, finding true infinity focus in the dark with a lens and camera system that may not cooperate cleanly.

Why "Infinity" on the Focus Ring Is Often Wrong

Most modern AF lenses can focus past the optical infinity point. They do this intentionally, to compensate for thermal expansion (the lens elements shift slightly as temperature changes) and to give the AF system room to confirm focus without hunting past its limits. The result is that the infinity symbol on the focus ring does not reliably correspond to true optical infinity focus.

This is a critical practical problem for night sky shooters. A lens set to the infinity mark on the ring may be slightly past true infinity, producing softly unfocused stars. In darkness, on a small LCD, this can be impossible to detect without magnifying the live view significantly.

⚠️ Never Trust the Infinity Mark Alone

Set focus to the infinity mark, then zoom into a bright star on live view at maximum magnification (10x on most cameras). If the star is a tight pinpoint, you have true infinity focus. If it is a small disc or blob, turn the focus ring very slightly back from infinity until the star becomes the smallest, sharpest point possible. Mark that position on the lens barrel with tape for future sessions.

Methods for Achieving True Infinity Focus

Live View Magnification on a Bright Star

The most reliable method. Point the camera at a bright star (Sirius, Vega, or any first-magnitude star). Activate live view. Zoom in to 10x magnification on that star. Slowly rotate the focus ring until the star is the smallest, sharpest point it can be. Lock or tape the ring there. This is your true infinity position for this lens, at this temperature.

Focus on a Distant Daytime Object

Before your night session, focus on the most distant object visible from your location during daylight, a distant mountain, a tower on the horizon, or anything clearly beyond 1km. At these distances the subject is effectively at infinity for any normal lens. Use AF to lock focus, then switch to MF to hold it. Tape the ring if needed.

Hyperfocal Distance for Night

For images that include a foreground element (a rock, a tree, a person under the stars), pure infinity focus will leave the foreground soft. Hyperfocal distance gives you the focus point at which everything from half that distance to infinity is acceptably sharp.

📐 Hyperfocal Distance for Night Sky (Full Frame)

14mm f/2.8: hyperfocal ≈ 1.4m (everything from 0.7m to infinity sharp)

24mm f/2.8: hyperfocal ≈ 4.1m (everything from 2m to infinity sharp)

35mm f/2.0: hyperfocal ≈ 9.5m (everything from 4.7m to infinity sharp)

Use the DOF calculator to find hyperfocal for your specific lens and aperture combination.

For a wide-angle Milky Way shot with foreground, focus at the hyperfocal distance rather than infinity. Stars will be acceptably sharp (they are at infinity, within the far limit of your DOF), and foreground elements beyond half the hyperfocal distance will also be acceptably sharp.

The 500 Rule and Star Trails

Stars are not stationary in long exposures. The Earth's rotation causes stars to trail across the sensor over time. Whether this trail is visible as a streak depends on exposure length, focal length, and whether you consider it acceptable for your image.

📐 Maximum Exposure Before Star Trailing (Full Frame)

Max seconds = 500 / focal length

14mm: 500/14 = 35 seconds max

24mm: 500/24 = 20 seconds max

35mm: 500/35 = 14 seconds max

50mm: 500/50 = 10 seconds max

For APS-C: use 300 instead of 500. For more critical results: use 400 for FF, 200 for APS-C.

The 500 rule gives an approximate maximum exposure. In practice, at the edges of the frame where stars move faster (the corners of a wide-angle shot), trailing begins sooner. For the sharpest possible stars at any focal length, an equatorial tracking mount eliminates trailing entirely by rotating the camera to match the Earth's rotation.

Star Distance by Object Type

For a subject distance calculator, the distances to common night sky objects are worth knowing, not because they change any photographic technique, but because they illuminate why infinity focus is so absolute:

ObjectDistancePhotographic Implication
Moon384,400 kmEffectively infinity for any lens. Infinite focus applies.
Sun150 million kmEffectively infinity. Never photograph directly.
Proxima Centauri (nearest star)4.24 light yearsInvisible to naked eye. Telescope only.
Sirius (brightest star)8.6 light yearsInfinity focus. Point source of light on sensor.
Milky Way core25,000-27,000 light yearsInfinity focus. Each star a point source.
Andromeda Galaxy2.537 million light yearsInfinity focus. Appears as a smudge of light.

The Moon: Technically Calculable

The Moon is the one night sky object where the subject distance calculator could theoretically apply, because the Moon has a known physical size (3,474 km diameter) and a known distance (averaging 384,400 km). A full moon subtends about 0.5° in the sky.

If you photograph the Moon and want to know what focal length you need to fill a certain percentage of the frame, you can reverse-calculate it. A 500mm lens on full frame renders the moon at approximately 4.8mm on sensor, which is about 20% of frame height. A 1000mm equivalent is needed to fill roughly 40% of the frame. This is why dedicated lunar photographers use 1000mm or longer.

💡 The Super Moon Calculation

The Moon varies in apparent size between perigee (closest approach, about 356,500 km) and apogee (farthest, about 406,700 km). At perigee it appears about 14% larger in diameter than at apogee. For a given focal length, a perigee full moon fills 14% more of the frame than an apogee full moon. The subject distance calculator can verify this: enter Moon diameter 3,474 km, distance at perigee vs apogee, and compare the image heights.

Depth of Field in Night Sky Shots: A Non-Issue

Because all night sky objects are at infinity, depth of field in the sense of near and far focus limits does not apply to pure sky shots. The entire sky, from horizon to zenith, is at the same photographic distance (infinity), and any lens focused at infinity captures all of it equally sharply.

DOF becomes relevant only when you include a foreground element. In that case you have two subjects at very different distances, and the challenge is finding a focus distance that keeps both acceptably sharp. The solutions are:

Night Sky Settings at a Glance

SettingMilky Way (wide)Star trailsMoonForeground + sky
Focal length14-24mm14-50mm400mm+14-24mm
Aperturef/1.8-f/2.8f/4-f/8f/5.6-f/8f/2-f/2.8
Shutter15-30s (500 rule)20-30min+1/125-1/500s15-25s
ISO1600-6400100-400100-4001600-6400
FocusManual, infinityManual, infinityManual, infinityHyperfocal or stack
WB3200-4000K or RAWRAWAuto or daylight3200-4000K or RAW
🎯 Calculate Hyperfocal for Your Night Setup

Final Thoughts

Stars are so far away that the concept of subject distance becomes almost philosophical rather than practical. They are not just far, they are incomprehensibly far, separated from us by distances that dwarf any terrestrial measurement. For photography, this resolves cleanly to one setting: infinity focus.

The interesting photographic challenge in night sky work is everything else. How long can you expose before stars trail? How do you include a foreground and keep both sharp? How do you find true infinity in the dark? The distance to the stars is fixed and vast. What you do with the foreground, the exposure time, and the focus technique is where the craft lives.