You are standing in a dark field at midnight. The Milky Way is blazing overhead. You mount your camera, point it at the sky, and take a test shot. You zoom in on the preview and every single star is a soft, blurry blob. Your lens is not focused at infinity. This is the most common problem in night photography, and it is completely fixable in about 60 seconds once you know how.
Why Autofocus Fails at Night
Autofocus works by detecting contrast in the scene. In the dark, there is almost no contrast for the system to lock onto. Your lens will hunt back and forth, never locking, or it will lock incorrectly on a faint object and leave everything else blurry. For stars and dark landscapes, you need to focus manually.
The other common mistake is trusting the infinity symbol on your lens. Most modern lenses can focus beyond infinity when fully extended. This means that if you crank the focus ring to the hard stop at the end of travel, your stars will actually be slightly out of focus. The correct focus point is usually just a tiny bit before that hard stop.
Step-by-Step: How to Focus at Night
Step 1: Switch to Live View
Press your camera’s live view button to display the scene on the rear LCD. This is essential. You cannot use the viewfinder to focus at night because you cannot see clearly enough through it.
Step 2: Find a Bright Reference Point
Look for a bright star like Sirius, Vega, or Jupiter in your frame. If you cannot see stars clearly, find a distant artificial light source like a streetlight or light on a hill several miles away. The further away the better. Objects more than a mile away are effectively at infinity focus distance.
Step 3: Zoom Your Live View to 10x Magnification
On most cameras, press the magnify button once or twice to zoom your live view to 5x or 10x magnification centered on your reference star or light. You will see a small, blurry blob on your screen. This is your star, currently out of focus.
Step 4: Slowly Turn Your Focus Ring
With your lens set to manual focus, slowly turn the focus ring toward infinity. Watch the blob on your screen. It will gradually shrink. Keep turning until the star is the smallest, sharpest point of light you can achieve. If it starts to grow again, you have gone too far. Back it up slightly.
Step 5: Lock Your Focus
Once you have sharp focus, do not touch the focus ring again. Many photographers put a small piece of painter’s tape or gaffer tape over the focus ring to prevent accidental shifts during the shoot. Make sure your lens is set to MF (manual focus) and not AF, otherwise the camera might try to autofocus and undo your work.
Step 6: Take a Test Shot and Zoom In
Take a 10 to 15 second test exposure at a high ISO like 6400 to confirm your focus quickly. Zoom into the preview on your stars. They should be tight, round points of light. If they are still blurry, repeat the focus process. Once your stars look sharp, drop your ISO back to your shooting settings.
Camera Settings for Night Photography and Astrophotography
Focus is only one piece of the puzzle. Here are the settings that go along with it for a standard Milky Way or starry landscape shot.
| Subject | ISO | Aperture | Shutter Speed | Notes |
|---|---|---|---|---|
| Milky Way core | 3200-6400 | f/2.8 | 15-25s (500 rule) | Wide angle 14-24mm |
| Star trails | 400-800 | f/4 | 15-60 min total (stacked) | Use intervalometer |
| Dark landscape, moonlight | 800-1600 | f/2.8 – f/4 | 10-30s | Check for star trailing |
| Northern lights (fast moving) | 1600-3200 | f/2.8 | 2-6s | Faster to preserve curtain detail |
| Moon photography | 100-200 | f/8 – f/11 | 1/125s – 1/500s | Treat moon as daylight subject |
The 500 Rule for Avoiding Star Trails
If you want stars to appear as sharp points rather than trails, you need to limit your shutter speed based on your focal length. The 500 rule gives you a quick guideline: divide 500 by your focal length to get the maximum shutter speed in seconds before stars start to trail.
For a 24mm lens: 500 / 24 = about 20 seconds maximum. For a 14mm lens: 500 / 14 = about 35 seconds maximum. On crop sensor cameras, multiply your focal length by 1.5 or 1.6 first. So a 24mm on a crop sensor acts like a 36mm, giving you only 500 / 36 = about 13 seconds.
If you want even sharper stars, use the 400 rule instead, which gives you a more conservative limit.
Frequently Asked Questions
Can I use autofocus for night photography at all?
In some situations, yes. If you are shooting a landscape that includes a bright light source in the foreground, some cameras can lock autofocus onto that. Wide-area autofocus systems on newer mirrorless cameras like Sony or Nikon Z cameras can sometimes lock onto bright stars or Jupiter. But for reliability, manual focus with live view magnification is the standard method that works every time.
What is the hyperfocal distance and should I use it?
Hyperfocal distance is the closest focus point at which your lens keeps everything from half that distance to infinity acceptably sharp. For night photography, using hyperfocal distance is a useful technique for landscapes where you want a foreground element sharp alongside the stars. Calculate it using a hyperfocal distance app and set your focus there rather than at true infinity.
Why do my stars look like donuts instead of sharp points?
If your stars look like small rings or donuts, your lens is slightly past the infinity focus point. Rotate your focus ring just a tiny amount back toward closer focus and retake your test shot. This is one reason why trusting the hard stop at infinity on your lens is unreliable.
How do I focus when there are no stars visible yet?
Focus while it is still twilight. While you can still see, set your focus to a distant object on the horizon, lock it in, and put tape over the focus ring. By the time it is fully dark, your focus is already set. Alternatively, use a bright street light or distant hilltop light on the horizon at night to get your infinity focus locked in before stars appear.
Does focus shift happen as temperatures drop?
Yes, some lenses experience minor focus shift as temperatures drop overnight, especially older or cheaper lenses. If you notice stars becoming less sharp as the night progresses, do a quick live view focus check and readjust. High-quality prime lenses are generally more stable across temperature ranges.
Recommended Gear for Night Photography
Sharp focus is just the start for great night photography. A fast wide-angle lens (f/2.8 or faster) is essential for collecting enough light to see the Milky Way clearly. Our guide to the best cameras for landscape photography covers full-frame bodies that excel in high-ISO shooting, which matters enormously for astrophotography. For shooting long exposures of star trails or time-lapses, our review of the best tripods for landscape photography will help you choose a stable platform that holds rock steady through a multi-hour session. And for processing your Milky Way shots and reducing noise, see our best photo editing software for nature photographers guide, which covers tools specifically useful for astrophotography post-processing.
Browse more nature photography tutorials, gear reviews, and field tips.




