Avenyora reflection
Dark Frames vs Bias Frames in Astrophotography
Match darks to your sky exposures, avoid subtracting bias twice, and use a few test frames to track down hot pixels or amp glow before stacking.

Dark frames and bias frames in astrophotography both record the camera with its sensor covered, but they answer different questions. A dark of the same duration and settings as a sky exposure measures the camera’s repeatable signal over that exposure, including hot pixels and any amp glow. A bias uses the shortest suitable exposure to estimate the electronic baseline. If your camera leaves a glow along an edge, test a matched dark on one raw sky frame before you calibrate the whole session.
What the camera records in darkness
A raw image from a covered camera usually contains nonzero values. Electronics add a baseline, often called bias or offset, when they convert the sensor’s output into digital counts. Over longer exposures, thermally generated electrons add dark current. Some pixels accumulate much more of it than their neighbors. Those pixels may show up as persistent bright points at the same coordinates in successive frames. Some cameras also produce a broad pattern from their electronics, commonly called amp glow. The NASA astrophotography guide describes the baseline and the difference between the short exposure used for a bias and the matched exposure used for a dark.
A master dark, made by combining many individual darks, estimates the recurring part of the signal. Random fluctuations from reading the camera and from the dark current remain in each light. Subtracting a master removes the estimated pattern from that light, and using multiple darks reduces the uncertainty of the estimate. The guide to stacking exposures and read noise covers how random noise behaves when you combine lights.
Match the dark to the sky exposure
Use the same camera, exposure duration, gain or ISO, offset and sensor temperature as the light frames. Keep the binning and readout mode the same. A cropped sensor readout can change the pixel coordinates or the way a camera operates, so match the frame geometry too. Use raw files and check the headers or your capture log. A file name is easy to copy from another session without updating the settings inside it.
Suppose your cooled camera made 180-second lights at −10 °C with gain 100, offset 30 and binning 1×1. The first dark to try is a covered 180-second exposure at those exact settings and with the same readout mode. For a second set of lights taken at 60 seconds, prepare a separate 60-second master. These numbers describe an example session. They give no particular advantage to cameras whose best settings are different.
Let a regulated cooler stabilize before collecting a set. With an uncooled camera, the sensor can warm as the session proceeds, even when the air temperature barely moves. Take a test set near the time of the lights and use reliable sensor temperature readings when available. Block light at the sensor and look for leaks around the cap, adapters or a DSLR viewfinder. Compare two covered exposures made under different room lighting. A pattern that changes along with that lighting is evidence of a leak, and it should be resolved before using those frames in a master.
Subtract the bias baseline once
A master built from uncalibrated, matched darks normally contains the electronic baseline already. In an unscaled workflow, the direct subtraction of that master from a raw light removes both the baseline and the matched dark pattern. A separate bias subtraction from the same light at that step would take the baseline away twice. The Siril manual preprocessing tutorial uses this approach. It keeps the baseline in its master dark and handles the flat frames separately.
A simple example in digital counts makes the distinction visible. Say a raw pixel records 1,160 counts, the baseline is 1,000 and the matched raw master dark reads 1,040. Direct subtraction leaves 120 counts. If you subtract the 1,000-count bias as an extra step while retaining that raw master, the result would be −880 before any software pedestal or clipping. A workflow using a bias-subtracted master dark instead would subtract 1,000 for the bias and 40 for the dark, also leaving 120.
The names of master files rarely tell you which convention produced them. Check whether the program expects raw darks or darks with the bias removed, and what its script does with each group. A bias or a set of short darks matched to flat exposures can still be necessary for flat calibration. See the flat-frame guide for that separate stage.
Diagnose amp glow before scaling a dark
Compare a raw light, the master dark and the resulting calibrated light using the same display stretch. Amp glow often shows up as a repeatable patch along an edge or near a corner in sensor coordinates. A bright remnant in the same shape suggests too little subtraction. A dark imprint of that same shape suggests too much. Either result is a reason to check exposure, camera settings, temperature and software options before processing the rest.
Some dark optimization tools scale the dark signal to fit the light. The Siril calibration documentation describes when this can help and why the bias level must be removed from a dark before scaling it. The method depends on whether the recorded pattern responds well to a single multiplier. For its cameras with visible amp glow, ZWO’s calibration guidance calls for matched darks with scaling and optimization disabled. A multiplier that works for the dark current across much of the frame can still leave a conspicuous mismatch in the glowing region.
Test on a small set before stacking
Pick raw lights from early and late in the sequence and calibrate copies with the same master. Inspect the frame edges and a quiet patch away from bright stars. Use the same stretch across comparisons, since independently stretching each image can make a small difference look much larger. Check whether recurring bright points diminish and whether the subtraction introduced a dark imprint. If the early light cleans up but the late light retains a pattern, compare their capture settings and the camera’s temperature log.
A few remaining defective pixels can often be handled by your software’s cosmetic correction or by rejection when combining well-dithered lights. Dithering between exposures moves the stars relative to the sensor defects and helps the stack reject isolated residuals. A broad repeating glow calls for another look at calibration before you rely on rejection. Keep a record of the settings and the master used so you can repeat the comparison if a later session shows the same symptom.
Frequently asked questions
Can I replace my dark frames with bias frames?
A bias estimates the baseline at a very short exposure. It cannot measure the thermal signal or glow that developed during a long light. When those patterns are visible, test a matched master dark.
Do I need darks for every exposure length?
For direct subtraction, plan a matched master for each exposure length used by the lights, with the same temperature and settings. Scaling is a separate workflow whose suitability depends on the camera and the pattern it produces.
Can I reuse old darks?
Yes, if the camera and capture settings match and a test on recent lights shows that the master still describes the defects. Rebuild it when a consistent pattern of new or changed hot pixels shows up.
Can dark frames remove a sky gradient?
A dark subtracts recurring signal in sensor coordinates. Gradients caused by moonlight or light pollution come through the optics and require a separate correction. A capped test exposure can help determine whether the pattern originates in the camera.