How to Photograph Stars and the Night Sky

9 min read

Last updated:

Learning how to photograph the stars can result in spectacular images, such as this starlit sky seen above the narrow canyon rim.

Photographing the stars is one of the coolest photography genres out there. Capturing the night sky and Milky Way in all its glory or the various phases of the moon results in spectacular images. But, as you can imagine, it comes with numerous challenges.

Because of the light conditions, you’ve got to understand the equipment you should use, how to adjust your camera settings for the best shots, and how to improve your images in post-production.

Additionally, it helps to know a few things about the best locations and how to prepare for the shoot properly.

Recommended Gear for Star Photography

While technically not settings, the equipment you choose is vitally important for being able to achieve the kind of settings you’ll need to photograph the stars. At a minimum, you’ll need the following equipment:


You simply can’t leave your camera in automatic mode. You’ll be breaking a few rules that the automatic mode won’t be able to do. For that reason, the automatic settings just won’t cut it, so you need to be able to make the adjustments yourself by using the manual mode.

Nikon and Canon lead the way. There are many options, but two of the top-rated cameras for astrophotography are Nikon D810 and Canon EOS 6D.

Lenses with Wide Aperture

You’ll need to open up your aperture. That means you’ll want a lower f-stop number–f/2.8 works well.

An ultra-wide aperture, wide-angle lens is best for capturing the most light and the most sky. More specifically, here are three of the highest-rated lenses for photographing stars and night sky: 

  • Samyang XP 14mm f/2.4
  • Sigma 14-24mm f/2.8 DG HSM | A
  • Tamron SP 15-30mm f/2.8 Di VC USD

Focal Length

You’re going to want the widest focal length you can get. For full-frame cameras, wide-angle lenses between 14mm and 20mm are recommended to give you the widest focal length… For crop sensor cameras, you’ll want wide-angle lenses between 10mm and 17mm for the widest focal length. These settings allow your camera to pick up more light with a wide-open aperture, and they also allow you to get more of the night sky in the image.

Lens Stabilization

Some lenses have lens stabilization settings, and some don’t, but if yours does, you’ll want to turn it off. If you don’t, the camera will continuously be trying to auto-stabilize any shake, and if it’s doing that over the course of long exposure, it will actually cause images that are less clear.

You should already be stabilizing the camera with a tripod and a shutter release cable, so there is no need for this function, and because of the long exposure, it will cause more problems than it will solve.


You’re going to be taking long exposure images, and no matter how steady your hand is, it won’t be steady enough to prevent camera shake for these long exposure shots.

Shutter Release Cable

Because of the long exposure times, you want to avoid any kind of camera shake. Even just touching the camera with your hand to take the photo can cause some camera shake, and the slightest movement will show up in your images. So, it’s best to have a shutter release cable, but if you don’t have one, you can set your camera’s timer to take the photo automatically.

You’ll usually want to set it to 2 seconds rather than the normal default of 10 seconds. The 10-second setting allows you enough time to get in the photo, but for this purpose, 10 seconds will seem like forever.


You’ll need a flashlight for two reasons: First, you want to get out of town to get away from light pollution. You’ll likely need to drive at least an hour outside of town, so when you get to that great location, you’ll want a flashlight to get yourself situated. The second reason you’ll want a flashlight is for painting the foreground with light. We’ll discuss that shortly.

Camera Settings for Star Photography

To help you understand how to photograph the stars, we’ve put together all essential camera settings to master in order to capture, dare I say it–stellar images!

Besides the settings mentioned below, there may be a few extra functions that you might have to consider. For example, you want to set the exposure compensation to zero since you’re using manual mode, and you don’t want to lock the mirror up for long exposures.

If your camera has different resolution settings, you want to use Native Optical Resolution, which outputs the same number of pixels that the image is taken with.

You also want to turn any sharpening function off since it’s better to do that in post-production processing.

When photographing the stars, set your focus to infinity to capture spectacular images like the Milky.

Manual Focus

As already mentioned, autofocus won’t be able to achieve the kind of settings you’re going to need in order to take photographs of the stars. If you leave your camera on autofocus, it is guaranteed the stars will be blurry. The settings you need to capture the stars kind of break the normal rules, and autofocus isn’t capable of doing that. So, you’ll need to use the manual mode.

You’ll want to set your manual focus to infinity. Most lenses have a mark that tells your where the infinity setting is–it’s marked by an “L” or an “I”. Once set, you can take a shot to see what you get, but often you’ll want to back it off infinity just a little.

You can continue to do that until you get clear images with the stars in focus. If you’ve got something in the foreground, you can paint that with light and focus on that. Once focused on your foreground, you can lock the focus, re-position the angle of the camera, and take the shot.


ISO is your camera’s sensitivity to light. You’ll need it to be set somewhere between 800 – 2000. The problem with a high ISO is that it causes more ‘noise’ in the image. This results in a grainy appearance in your photographs. So, you will want to experiment in finding the sweet spot where you can keep the ISO at the lower end of that range and a longer shutter speed to get a clear image.

During post production processing, you can separate your foreground and the sky into different zones so you can adjust them separately. This photograph of mountains in front of a starlit sky is a great example.

Noise Reduction Settings

Many cameras allow you to turn on noise reduction settings. There are two: 1) the long exposure noise reduction setting and 2) the high ISO noise reduction setting. These can help if, for some reason, you’re shooting jpeg formats, but as we’ll discuss below, for this type of photography, you’ll want to shoot in RAW. These settings will have to be turned off. Therefore, you can’t rely on these settings to help you get better images. You’ll have to play around with the ISO and shutter speed to reduce noise.


You’re going to need a wide-open aperture to allow in the most light possible. It’s best to shoot at as wide a setting as your lens allows, and thus, a wide aperture lens will be better for this kind of photography. For aperture settings, the lower the f stop number, the more open the aperture. A good setting for most star photography is f/2.8.

Shutter Speed

Your shutter speed is going to be very slow, usually between 20 and 30 seconds. The rule for calculating your shutter speed is called the 500 rule. You divide 500 by the focal length of your camera. For example, if your focal length is 16mm, then you divide 500 by 16, which equals 31.25, so your shutter speed would need to be set to 31 or 32 seconds to get a focused image.

If you set your shutter speed for longer than that, you will get star trails. That may be something you want to do too. It produces those images that create light trails as the stars move across the sky.

Longer exposure settings than indicated by the 500 rule produces star trails, but that might be what you want


HDR stands for high dynamic range. It’s a setting that tells the camera to take multiple shots at slightly different exposures, and then you can merge those together to produce an image with the best exposure.

Shoot RAW Images

The benefits of shooting in RAW really come with post-production techniques. You can think of RAW images as negatives. They give you more flexibility in adjusting the image quality during post-processing. That will be important for your star photographs since post-production processing will be a must.

White/Color Balance

The white balance takes into account the color temperature of a light source. It’s measured in Kelvin values, which are designated as K. If it’s not set correctly, you’ll see unrealistic color casts in your images. For star photography, it’s usually best to set the white/color balance to somewhere between 4000K and 5500K. This works best for very dark skies with little light pollution.

To get the best star photographs, you have to get away from light pollution to areas where the sky is the darkest, such as seen along this isolated road.

Star Photography Tips

When you’re learning how to photograph the stars, there are a couple of tricks that can help improve your experience and maybe your images too.

1. Location

As mentioned before, light pollution is a serious impediment to getting great images of the stars. Even small towns can produce significant light pollution. You want to get as far away from these light sources as you can, and you can use the internet to help you find locations near you. Search for international dark sky reserves, and you’ll find locations where the sky is darkest.

But you can also help yourself by using a little planning. For example, unless your objective is to photograph the moon, you might check for when there will be a moonless night. It also helps if you can go up in altitude. That leaves the light sources below you, and you can then point your camera away from them.

2. Visit Your location in the Day

It also helps to visit the location during the day. You can see what the landscape is like, plan your specific location, and you can see if there are interesting features you might like to include in the foreground.

3. Come Prepared

You’re photographing at night, so come prepared with comfortable, warm clothing. You’ll also need full, freshly-charged batteries, and it helps to bring extra batteries and memory cards. Don’t forget that flashlight, and you might want to bring extra batteries for that too. Also, don’t forget something to drink and a few snacks–you’ll be a while.

When photographing the stars, come prepared because you'll find yourself in some isolated locations as seen in this picture of a hiker in the middle of nowhere.

4. Be Patient

Photographing the stars is a challenging genre. You won’t get it right at the start, but keep practicing and be patient. Even if your images don’t turn out well, you’ll still be rewarded with some spectacular starlit skies, and with a little practice, your images will improve.

6. Photograph Star Trails

Photographing star trails involves longer exposures to capture the movement of the stars and multiple images that you can then merge into one.

5. Painting with Light

If you’ve got something in the foreground that you want in the picture, you can paint it with light. That helps your camera to focus and can create dramatic images. You can do this by using your handy flashlight we discussed earlier, or you can use speedlights.

For speedlights, you press the camera’s speedlight flash button when the shutter is open. You then move the speedlight across the foreground scene to light it up with a flash.

Paint your foreground with a light source to get incredible images like this rock formation lit by a hiker's flashlight.

Post Processing Night Sky Photos

When it comes to photographing the stars, a lot of the magic actually happens in post production processing. Don’t be surprised when your images don’t look exactly like what you saw when you took a photograph.

Post production is where you can adjust the highlights, the shadows, the exposure, and even some of the clarity. If you’ve got something in the foreground, you might want to divide the photograph and adjust the settings separately for each zone. That way, you can bring out the features of the foreground scenery while, at the same time, adjusting the highlights and contrast of the star-filled sky.

One post production tip for making star trail images is to import all of your photos in the series into Lightroom (or a similar photo editing program) and apply your desired adjustments to one of those images. Then you can sync those adjustments to apply them to the other images. Then, you’re ready to import all of the images into Adobe Lightroom (or a similar program) as layers. Once imported, you highlight all the images and adjust the layer’s tab setting from normal to light. And now you have star trails! Read our detailed article on how to edit photos in Lightroom.

Final Thoughts

By practicing the camera setting tips in this post and preparing for your shoot by finding areas with the darkest skies, waiting until a moonless night, getting away from sources of light pollution, and learning the art of patience, you’ll soon find you’re taking star pictures like the pros.

See more in


Catherine Gaither is a professional photographer and bioarchaeologist. She has traveled the world photographing archaeological sites and artifacts, and studying human physical remains. She has written numerous professional publications. She continues to work as a forensic consultant and author.
Catherine Gaither is a professional photographer and bioarchaeologist. She has traveled the world photographing archaeological sites and artifacts, and studying human physical remains. She has written numerous professional publications. She continues to work as a forensic consultant and author.

Your email address will not be published. Required fields are marked *

Connect with aspiring and professional photographers

Learn how to improve any kind of photography

Get access to exclusive discounts, courses, rewards, etc
Find daily inspiration in a diverse community
Recommended Articles
Photographing Northern Lights.
Caitlin Greyling

How to Photograph the Northern Lights

Planning an expedition but unsure how best to photograph the northern lights? These tips and tricks — plus 5 stunning aurora photos — should inspire you!

Photograph of the Sun and solar prominences and flares on its surface.
Caitlin Greyling

How to Safely Photograph the Sun

Sun photography is a unique niche requiring specialized equipment and techniques. Learn the essential tips on how to photograph the Sun.

Astrophotography of star field in outer space.
Caitlin Greyling

Astrophotography Guide for Beginners

Taking stunning images of celestial bodies and the night sky is an art. Discover the techniques & tips in this astrophotography guide!

moon photography
Caitlin Greyling

How to Photograph the Moon

If you’re wondering how to photograph the Moon, we have you covered. Discover all the tips, tricks, and ins and out’s of Moon photography!

milky way photography.
Caitlin Greyling

How to Photograph the Milky Way

Wondering how to shoot Milky Way photography? Here’s our definitive guide, including camera settings, tips, and tricks!

📸 Interested in headshot photography? Check out this podcast episode with Joe Jenkins!


Explore, Learn, and Connect: Dive into Our Classes, Podcasts, and Contests with a 7-Day Trial for Just $1