This article may contain affiliate links. If you make a purchase through these links, we may earn a small commission at no extra cost to you. This helps us keep creating free content.
DSLR Deep-Sky Astrophotography: From Camera to Stacked Image
The first time I pointed my DSLR at the Orion Nebula and took a 30-second exposure, I was stunned. On the back of the camera, I could see colors and structure that were completely invisible through my telescope eyepiece — vivid reds and blues, swirling tendrils of gas, a field packed with stars. I was hooked immediately. That was five years ago, and I have since learned that those first accidental images were just the beginning. With proper technique, a DSLR and a simple star tracker can produce images that reveal the deep sky in breathtaking detail.
This guide covers the complete workflow for DSLR deep-sky astrophotography — from choosing your settings to producing a final stacked image. You do not need a telescope to start. A DSLR (or mirrorless camera) with a standard lens and an inexpensive star tracker is enough to capture nebulae, star clusters, and even nearby galaxies.
What You Need
Camera: Any DSLR or mirrorless camera that allows manual exposure control and shoots in RAW format. Older models work fine — even a 10-year-old camera can produce excellent astrophotos. Full-frame sensors have a slight advantage for light collection, but APS-C cameras are perfectly capable.
Lens: Start with whatever fast lens you have. A 50mm f/1.8 (the "nifty fifty") is excellent and inexpensive. Zoom lenses in the 70-200mm range open up individual nebulae and star clusters. For wide Milky Way shots, a 14-24mm wide-angle lens captures sweeping star fields. Shoot at f/2.8 to f/4 for the best balance of light gathering and sharpness — wide open (lowest f-number) often shows optical aberrations at the corners.
Star tracker: Earth's rotation causes stars to trail in long exposures. A star tracker is a motorized mount that counteracts this rotation, allowing exposures of several minutes instead of seconds. Popular options include the Sky-Watcher Star Adventurer and iOptron SkyGuider Pro, both in the $300-400 range. They attach to a standard photo tripod and hold your camera steady against the stars.
Intervalometer: A remote shutter release or intervalometer lets you program a sequence of exposures without touching the camera. Most cameras also have a built-in interval timer in the menu. This is essential for taking the dozens or hundreds of exposures needed for stacking.
Camera Settings
Set your camera to full manual mode and RAW format. Here are the key settings:
ISO: Start at ISO 1600-3200. Higher ISO does not actually capture more light — it just amplifies the signal (and the noise). Modern cameras perform well at ISO 1600. Some astrophotographers prefer lower ISOs with longer exposures; experimentation will show what works best for your camera.
Aperture: Open to f/2.8 or f/4. Faster apertures gather more light per exposure but may show coma (stars appearing as seagull shapes) in the corners. Stop down one stop from wide open if corner quality matters to you.
Exposure length: With a star tracker, 60-180 seconds per frame is typical for focal lengths up to 200mm. Longer exposures capture more signal but increase the risk of tracking errors showing as elongated stars. Start with 60-second exposures and increase as you gain confidence in your polar alignment.
Focus: Autofocus does not work on stars. Switch to manual focus, use Live View zoomed to 10×, and focus on a bright star until it appears as the smallest possible point. A Bahtinov mask (an inexpensive focusing aid) makes this precise and repeatable. Check focus periodically during your session — temperature changes can shift focus over the course of a night.
Calibration Frames
Professional-looking results require calibration frames that help the stacking software remove noise and optical artifacts:
Dark frames: Take 20-30 exposures with the lens cap on using the same exposure length, ISO, and temperature as your light frames. These capture the camera sensor's thermal noise pattern, which the stacking software subtracts from your light frames.
Flat frames: Take 20-30 exposures of an evenly illuminated surface (a white t-shirt stretched over the lens aimed at a bright sky, or a tablet screen) at the same focus position and aperture as your light frames. Flats correct for vignetting (corner darkening) and dust spots on the sensor.
Bias frames: Take 20-30 exposures at the shortest possible shutter speed with the lens cap on. These capture the camera's read noise baseline. Some stacking software can work without bias frames, but including them improves results.
Stacking Your Images
Stacking is the process that transforms dozens of noisy individual exposures into a single, clean, detailed image. Free software like DeepSkyStacker (Windows), Siril (cross-platform), or ASTAP handles the entire process automatically — it aligns the frames using star positions, applies calibration corrections, and combines everything using statistical methods that suppress noise while preserving signal.
The basic workflow in any stacking program is: load your light frames, dark frames, flat frames, and bias frames, then click stack. The software registers (aligns) all frames to a common reference, applies calibrations, and outputs a master image. This master image will look dark and flat — that is normal. The real magic happens in the next step.
Stretching and Processing
The stacked master image contains far more data than is initially visible. A process called stretching gradually increases the brightness and contrast of the faint nebulosity and galaxy detail while keeping the brighter areas under control. This is typically done in dedicated astrophotography software (PixInsight, Siril) or general image editors (Photoshop, GIMP).
The key techniques in processing are: histogram stretching to bring out faint detail, color calibration to ensure natural star colors, noise reduction to smooth remaining grain, and selective adjustments to enhance nebula contrast. Processing is an art that takes time to learn, but even basic stretching of a well-captured stack produces results that are genuinely impressive.
Our astrophotography beginner's guide covers first-night setups in more detail, and for understanding what you are photographing, guides like our Orion Nebula overview and Lagoon Nebula guide provide context on the most popular deep-sky targets. The journey from first exposure to polished image is one of the most rewarding learning curves in the hobby — and the sky is literally full of targets waiting for your camera.
About the Team
The Visit Astronomy Team
We're amateur astronomers and science communicators who make the night sky accessible to everyone. We write about telescopes, stargazing tips, and celestial events.
You might also like

Types of Galaxies Explained: Spiral, Elliptical, and Irregular
Galaxies come in dramatically different shapes and sizes. Learn about the three main types, what makes each unique, and what determines a galaxy's shape.
Astrophotography for Beginners: Your First Night Sky Photo
You do not need expensive equipment to photograph the night sky. This guide walks you through your first astrophoto, from camera settings to stacking software.
The Carina Nebula: One of the Sky\'s Greatest Nebulae
The Carina Nebula is one of the largest and brightest nebulae in our galaxy, home to some of the most massive stars known. Here\'s everything you need to know.
Explore more
All articles on Visit Astronomy →
The Night Sky, Delivered
New guides, celestial events, and astrophotography tips — every week in your inbox.
🎁 Free bonus: Beginner Stargazing Checklist (PDF)