How to Take Dark Frames for Astrophotography
Capturing dark frames is an essential part of the deep sky astrophotography process when using a DSLR camera. I’ve been photographing objects in space with a camera and telescope for many years, and dark frame subtraction remains an important part of my acquisition process today.
A dark frame is an exposure taken with no light reaching the sensor. It records repeatable sensor artifacts such as dark current, hot pixels, and amp glow so they can be subtracted during calibration.
Fortunately, learning how to capture successful dark frames is actually relatively easy. If you’re completely new to deep sky astrophotography, have a look at my top tips for beginners.

Each one of these images used dark frames for an improved SNR
What Are Dark Frames in Astrophotography?
When shooting long-exposure astrophotography images with a DSLR camera, you can expect the internal sensor to become quite warm. As an example, the ambient temperature of a cold winter night in my backyard can be -5 degrees, but the camera sensor in my DSLR will warm up to 15 degrees Celsius or more.
Thermal signal can appear as hot pixels, fixed-pattern noise, and amp glow that reduce the quality and aesthetics of your images. Beginners are often faced with the realization that their single image frame cannot be processed or stretched without pulling these unwanted qualities forward.
This is one of the many reasons amateur astrophotographers like myself capture several exposures and stack them together. If you’re shooting long exposures with a DSLR or mirrorless camera, dark calibration frames can be helpful.

Learning how to capture proper dark frames is something you must learn early on when you dive into the hobby of deep-sky astrophotography. Much like collecting flat frames and bias frames, they are a critical stage of the acquisition process if you’re looking to improve the quality of your images.
When used correctly, dark frames reduce the amount of noise in your final astrophotography image.
To utilize the power of dark frames in your images, you’ll need to apply these support files to your final image using software like DeepSkyStacker. It’s simply a matter of loading the files into the software using the correct settings, and it will apply them to your image data appropriately.
The difference between an image that has subtracted dark frames and one that hasn’t can be significant. The sky will be much smoother, with an improved signal-to-noise ratio.
Signal is the actual light emitted from an object in space, such as a nebula or galaxy. At the same time, noise is the unwanted electronic variation in color and brightness produced by the camera sensor.

How Calibration Frames Work
Basically, a dark frame records the camera’s bias offset plus the thermal signal that builds during an exposure, including repeatable patterns such as hot pixels and amp glow. Because the lens or telescope is covered, no light from the sky reaches the sensor.
The circuitry in your digital camera produces an unwanted signal that can degrade the quality of your image. Subtracting dark frames can help reduce this effect.
Dark frame subtraction helps minimize the noise in your long-exposure images caused by the sensor. An average of dark frames can be subtracted from your final image, as the fixed-pattern noise and amp glow will be isolated in a master dark.
Software like DeepSkyStacker, Astro Pixel Processor, and PixInsight will subtract the noise pattern from your final astro image as best as possible.
Stacking light frames reduces random noise, while a well-made master dark targets repeatable sensor patterns. Because calibration frames contain noise of their own, combining enough darks into a clean master dark is important.
This principle applies to all cameras used for astrophotography, whether they’re interchangeable-lens cameras or cooled dedicated astronomy cameras.

Calibration frames used in astrophotography
Dark Frames vs. Bias Frames and Flat Frames
| Frame | What It Corrects | How It Is Captured |
|---|---|---|
| Dark | Dark current, hot pixels, and amp glow | Covered sensor; match exposure, ISO or gain, and temperature |
| Bias | Readout offset | Covered sensor; shortest exposure at matching ISO or gain |
| Flat | Vignetting and dust shadows | Evenly illuminated optics at the same focus and orientation |
One of the best ways I have seen the process described was on this post in the Cloudy Nights forum:
“Dark frames will subtract the dark current accumulated in each pixel well from the total well contents. Luckily, those pixel wells have repeatable levels of dark current accumulation at the same temperature, so if we take a dark frame at that temperature, we can get a reading of the dark current for each pixel well and subtract that.”
How to Take Dark Frames
The key thing to remember about taking dark frames is that they must match the exposure length, sensor temperature, and ISO of your light frames. For a dedicated astronomy camera, also match the gain, offset, binning, and readout mode.
This means that if your light frames were shot at ISO 1600 for 3 minutes each, your dark frames should use those same settings with the lens or telescope covered. With an uncooled DSLR, use the recorded sensor temperature when available; ambient temperature is only an approximation.
Choosing your exposure length: Your dark frames should match the exposure time of your light frames. If you are unsure whether your lights should be 60 seconds, three minutes, or five minutes, see my guide to choosing the best astrophotography exposure time.
Example Settings for Dark Frames with a DSLR
- File Format: RAW
- Camera Mode: Manual/Bulb
- ISO: Same as the light frames (ISO 1600 in this example)
- Exposure: Same as the light frames (180 seconds in this example)
- Temperature: Match the light-frame sensor temperature as closely as possible
- Long-Exposure Noise Reduction: Off
Dust cap covering the telescope/camera lens.

To automate a sequence of dark frames, you can use a camera capture software such as BackyardEOS, Astro Photography Tool, or simply use a remote shutter release cable. The third option is often the most convenient if you’re shooting with a portable setup without autoguiding.
It sounds a little silly when you think of it, and it’s even harder to explain to your neighbor watching you take pictures with the lens cap on your telescope.
Related Post: Astrophotography Resources
Recommended Techniques
A popular technique is to simply put the dust cap on your telescope after you are done collecting images for the night. This is the method I use most often, as the camera still has the settings applied from the light frames captured moments earlier.
As long as the temperature has not changed significantly and it is still dark out, you can start collecting dark frames using the same camera settings as your light frames. If the temperature changes substantially during a DSLR session, capture darks in smaller batches throughout the night. Another benefit is that your camera is also ready to take flat frames when the sun comes up.
Some people prefer to remove the camera from their telescope and fasten a cap over the camera body to take dark frames. This method is convenient because you can begin tearing down your deep-sky imaging gear while the darks are being captured.
I’ve spent many cold nights waiting for a sequence of 15 dark frames to be captured so I can put my equipment away!
It’s worth noting that you’ll want to make sure that no stray light is entering the viewfinder on the camera. You need complete darkness for a successful dark frame.

When using a dedicated astronomy camera or CCD camera to take dark frames, you can leverage the convenience of a filter wheel to automate the process. For example, when shooting LRGB images using my Xagyl 5-position filter wheel, one of the filter positions is a completely opaque “dark” filter. I can include a set of dark frames at the end of my sequence using the same exposure, temperature, gain, and offset settings as my lights.
How Many Should You Take?
I have had success using anywhere from 10 to 15 dark frames for an imaging project. Others prefer to use up to 50 dark frames on an image, but I suspect they are using files from an existing dark frame library. Adding more calibration frames will add time to the integration process in DeepSkyStacker.
DeepSkyStacker recommends between 10 and 20 dark frames as a practical starting point. More frames reduce the random noise in the master dark, but the improvement diminishes as the count rises.
If you have the time, take 20+ dark frames; it’s a good idea. Just aim to use at least 15 as a minimum. These days, no matter which camera I am using, I capture 15 dark frames for each and every project. The recommended count does not change by camera type; additional frames create a cleaner master dark, with diminishing returns.
If your astrophotography image includes data shot over several nights, you’ll need to make sure you use matching darks for each data set. If the imaging conditions and camera settings have not changed, you may be able to utilize an old set of darks.
To see the EXIF data in your images containing useful information, such as temperature and exposure length, you can use a software tool like Adobe Bridge to evaluate this information. There are also many free options available to view the EXIF data in your photos.
Creating and Saving a Master Dark
A stacking program combines the individual files into a master dark. DeepSkyStacker creates and applies it automatically when you load the files as dark frames. Astro Pixel Processor and PixInsight offer similar calibration workflows.
Inspect a preview. Hot pixels and amp glow should form a repeatable pattern, while gradients or bright streaks may indicate a light leak. Residual amp glow usually points to mismatched settings or inappropriate dark scaling.
Building a Dark Frame Library
Experienced amateur astrophotographers will often build a library of dark frames. This involves capturing dark frames at various ISOs and temperatures so that you have an archive of darks to use for future projects.
This will save you from having to collect new dark frames each night. Organize them by camera, exposure, ISO or gain, temperature, and date. Although this method can save time, I still prefer to shoot new dark frames during each DSLR imaging session.
Smart telescopes like the Seestar S50 can automatically take and apply dark frames for you to produce a cleaner image. Dark frames can also be used in smartphone astrophotography to improve the signal-to-noise ratio.
What about Dithering?
Subtracting dark frames from your image data isn’t the only way to reduce noise. There are several additional steps you can take to reduce the noise generated by a digital camera sensor. One of the most powerful and effective ways to reduce noise is to dither your images.
Dithering involves shifting the telescope slightly between light frames so the target falls on different sensor pixels. When the images are aligned and stacked, this helps suppress fixed-pattern noise and makes hot or cold pixels easier for rejection algorithms to remove. Satellite and airplane trails are rejected by the stacking algorithm rather than by dithering itself.
For the image below, I manually dithered the images by changing the position of my telescope mount slightly between each frame. The final image uses 18 x 30-second exposures at ISO 6400, and 10 dark frames to calibrate the noise out. Between the dark frames and dithering, I was able to reduce an impressive amount of noise present in this short integration.

The Carina Nebula. 10 dark frames were subtracted for improved SNR.
Software is used to automate the dithering process, such as PHD2 guiding and Astro Photography Tool.
When dithering is turned on, the program will take a few seconds between each light frame to nudge the telescope mount slightly. For a complete list of the software applications I use for astrophotography, please see the resources page.
Bottom Line
Dark frame subtraction is a useful technique you can use to minimize the noise in your long-exposure images. The fixed-pattern noise created by your camera sensor is isolated and removed from your final astro image.
By subtracting the average of dark frames from your dataset, you can create high-quality images that are much easier to process. I hope you have learned to create successful dark frames and will continue to advance your progress in DSLR astrophotography.
For a complete overview of the process of astrophotography and the different types of imaging possible, have a look at my getting started in astrophotography guide. Be sure to also check out my Image Processing Guide, which includes 100+ pages for beginners looking to process their astrophotos using Adobe Photoshop.