Quick answer: To take flat frames, leave the camera, focus and filter exactly as they were for your lights, then point the telescope at an even light source: a flat panel, the twilight sky, or a white T-shirt stretched over the aperture. Expose so the histogram peak sits roughly one-third to one-half of the way across (about 20,000-32,000 ADU on a 16-bit camera), shoot 20-50 frames, then take matching dark flats with the same exposure and gain.
As an Amazon Associate, Midwest Astronomy earns from qualifying purchases.
Flats are the calibration frame that most visibly changes a final image. Without them, dark corners, dust donuts and a bright center survive stacking and get amplified by every stretch. With good flats, gradient removal is easier, colors stay even across the field, and faint signal near the edges becomes usable. If you want the theory of all four calibration types, start with our guide to astrophotography calibration frames. This tutorial is the practical, step-by-step version for flats.
What flats correct (and what they do not)
A flat frame is an image of an evenly lit field taken through the same optical train as your lights. It records:
- Vignetting: light falloff toward the corners from the telescope, reducer, filters and adapters.
- Dust shadows: out-of-focus “donuts” from dust on filters, the sensor window or a flattener.
- Pixel response differences: small pixel-to-pixel sensitivity variations across the sensor.
Your stacking software divides each light frame by the normalized master flat, so areas that received less light are brightened by exactly the right amount.
Flats do not remove light pollution gradients, satellite trails, amp glow or hot pixels. Those are handled by gradient removal, pixel rejection and dark frames.

The golden rule: do not change the optical train
Flats only work if they match the lights. Between your last light frame and your flats, do not change:
- Focus. Even a small focus change shifts the size and position of dust donuts.
- Camera rotation. Rotating the camera moves the vignetting pattern relative to the sensor.
- Filter. Each filter needs its own flats on a monochrome camera, because each filter carries its own dust.
- Spacers, reducers or dew shields that intrude into the light path.
You can change exposure time freely. Keep gain and offset the same as your lights so pixel response matches; that is the safe default for CMOS cameras. If you image on several nights without touching the train, one set of flats can cover them all, but any teardown means new flats.
How bright should flats be?
Aim for a histogram peak roughly one-third to one-half of the full range. On a 16-bit camera that is about 20,000-32,000 ADU; on a DSLR, the rear-screen histogram peak should sit about a third of the way from the left. The Siril documentation recommends making sure the right tail of the brightest histogram peak stays below about 80 percent, to keep the sensor in its linear range. An overexposed flat will not calibrate correctly.
Exposure length matters too:
- Avoid very short exposures. Some LED panels flicker when dimmed, which shows up as banding in fractions-of-a-second flats, and DSLR mechanical shutters can shade part of the frame at very fast speeds. With a dimmable panel, aim for roughly one second or longer.
- Avoid very long exposures. Flats longer than tens of seconds collect more dark current and stray light; brighten the source instead.
For a one-shot color (OSC) camera, judge the brightest color channel (usually green). Flats from OSC cameras look tinted, which is normal; Siril’s Equalize CFA option balances the color channels in the master flat.
Method 1: Flat panel (most consistent)
A flat panel is an evenly lit disc that sits over the front of the telescope. Electroluminescent (EL) panels and LED panels with diffusers are both common, and some motorized models act as dust covers and connect to capture software.
- Finish your lights and leave the camera and focus untouched. Many imagers park the scope pointing at the zenith.
- Place the panel squarely over the dew shield. Make sure it covers the full aperture with no gaps.
- Set brightness. Start low. If the exposure is very short, dim the panel or add sheets of white paper between the panel and the scope.
- Run your capture software’s flat routine. N.I.N.A.’s Flat Wizard takes test exposures and finds the exposure time that hits your target histogram mean; with a controllable panel, its Dynamic Brightness mode adjusts the panel instead. Multi Mode repeats this for each filter.
- Shoot 20-50 flats per filter.
- Turn the panel off, keep it on the scope as a cover, and shoot dark flats with the same exposure, gain and temperature.
Good options include a dimmable telescope flat panel sized slightly larger than your dew shield. On a budget, an LED tracing light pad with a few sheets of paper as a diffuser works well for small refractors.
Method 2: Sky flats at twilight
The twilight sky is bright, nearly uniform and free. Its brightness changes quickly, so this method needs software that adjusts exposure as you go.
- Start at civil twilight, when the sky is still bright blue. Do not start in full daylight.
- Point away from the sun and slightly off the zenith. The sky near the zenith is the most even; avoid the horizon and the bright glow on the sunset side.
- Turn tracking off or dither between frames so stars do not land on the same pixels. Median combining then rejects any star that shows up.
- Use an automatic sky flats mode. N.I.N.A.’s Flat Wizard Sky Flats mode recalculates exposure time as the sky dims, so every frame stays near the target brightness.
- Order filters by how much light they need. In the evening, shoot narrowband filters first, while the sky is bright, then broadband filters as it darkens. At dawn, reverse the order.
- Shoot 20-50 frames per filter. Dark flats are harder to match because each frame has a different exposure, so a master bias (or a synthetic bias in Siril) is the usual alternative for calibrating sky flats.
Sky flats are a good choice for wide-field lenses and large refractors where a panel does not fit, but you only get one short window per evening or morning, and clouds, wind or dew can ruin it.
Method 3: The T-shirt method
A clean, plain white T-shirt stretched tightly over the front of the telescope turns almost any light source into a diffuse one.
- Use a white shirt with no print, and stretch it taut with a rubber band or bungee. Wrinkles create uneven illumination.
- Fold to two or more layers if the light source is bright or patchy.
- Point the scope at an even source: the twilight sky, a white tablet screen, or a panel. A shirt over a tablet or laptop screen also hides the pixel grid.
- Expose to the same histogram target as any other flat.
- Shoot dark flats with the same exposure.
The T-shirt method is how many people take their first flats. It works, but light leaking around the edges and uneven fabric can produce small gradients, so a panel is worth adding once you image regularly.

Dark flats or bias?
Your master flat must itself be calibrated so the camera’s offset and dark signal do not distort the division. You have two options:
- Dark flats: frames with the same exposure, gain and temperature as the flats, taken with the light blocked. This is the most robust choice for CMOS cameras and the default in many workflows.
- Bias frames: the shortest possible exposure with the light blocked. Fine for many DSLRs, and Siril can even use a synthetic constant-value bias. Some CMOS cameras behave oddly at the very shortest exposures, which is why dark flats are the safer default.
Shoot 20-50 of either. If your flats come out at a consistent exposure every time (a panel at fixed brightness makes this easy), you can build a dark-flat library and reuse it, just as with darks.
ASIAIR, SharpCap and other capture tools
- N.I.N.A.: the Flat Wizard (Dynamic Exposure, Dynamic Brightness and Sky Flats modes) and advanced sequencer flat instructions can automate flats and dark flats per filter.
- ASIAIR: Autorun includes a flat frame option where the exposure can be set automatically or entered manually. ZWO’s own forum staff note that an average of roughly 10,000-60,000 ADU is acceptable for CMOS cameras; checking the average ADU on the ASIAIR before you start is a good habit.
- DSLR without software: put the camera in aperture priority (Av) mode with exposure compensation at zero or slightly positive, point at the even source, and check the histogram. Keep ISO the same as your lights.
Our comparison of N.I.N.A. vs SharpCap vs ASIAIR covers the wider capture-software differences.
Applying flats in Siril
Siril’s built-in preprocessing scripts expect folders for lights, darks, flats and biases (or dark flats). The general sequence:
- Stack the dark flats (or biases) into a master.
- Calibrate each flat with that master, then stack the flats into a master flat.
- Calibrate lights with the master dark and master flat, then register and stack.
Keep JPEG previews out of the folders, because Siril will refuse to mix one-channel raw files with three-channel JPEGs. For more on the software side, see our comparison of astrophotography stacking software.

Troubleshooting flats
| Symptom after calibration | Likely cause | Fix |
|---|---|---|
| Corners brighter than center (over-correction) | Flats not calibrated with dark flats or bias; light leak during flats; flats saturated | Add dark flats; block stray light; lower flat brightness |
| Corners still dark (under-correction) | Stray light in lights (no dew shield), mismatched flats, or the wrong master applied | Check the optical train matches; add baffling or a longer dew shield |
| Dust donuts remain or show as bright rings | Focus or rotation changed, or dust moved between lights and flats | Retake flats without touching the train; clean optics before the session |
| Banding or stripes in the master flat | LED panel flicker at short exposures | Dim the panel and lengthen exposure to about 1 s or more |
| Strong color cast after flat calibration (OSC) | Unequal channel levels in the master flat | Enable Equalize CFA in Siril |
| Gradient in one direction only | Uneven source: T-shirt wrinkles, sky flats too close to the horizon, panel not square | Re-stretch the shirt, aim higher, seat the panel evenly |
If a frame-wide gradient survives good flats, it is probably light pollution or moonlight rather than a calibration problem; our astrophotography troubleshooting hub covers gradient removal and other common issues.
A Midwest note: dew, frost and flats
Dew or frost forming on the objective late in a session changes the light path, so flats taken after the lens fogs no longer match earlier lights. Keep the dew heater running until flats are done, and take flats before you tear down. Our guide to dew heaters and dew prevention explains how to keep optics clear through humid nights.
Flat frame checklist
- Lights finished; focus, rotation and filter untouched.
- Even light source over the full aperture.
- Same gain/ISO and offset as lights.
- Histogram peak about one-third to one-half; nothing clipped.
- Exposure around 1 s or longer with a panel.
- 20-50 flats per filter.
- Matching dark flats (or a bias) taken the same night.
- Folders labeled by filter and date.
Frequently asked questions
Take 20 to 50 flats per filter, plus the same number of matching dark flats. More frames reduce the noise that the master flat adds to your calibrated lights, and the extra time is small because flats are short exposures.
Aim for a histogram peak roughly one-third to one-half of the full range, about 20,000 to 32,000 ADU on a 16-bit camera. Keep the brightest pixels well away from saturation so the sensor stays in its linear range.
You need new flats whenever focus, camera rotation, filters or the optical train change, or when dust moves. If the setup stays assembled and untouched, one set of flats can cover several nights.
Only if nothing in the optical train has moved, including focus and camera rotation. In practice, taking flats at the end of each session before teardown is the reliable approach.
For most CMOS astro cameras, dark flats are the safer choice because they match the flat exposure exactly. Bias frames or a synthetic bias work well for many DSLRs and when sky flats have varying exposure times.
Overcorrection usually means the flats were not calibrated with dark flats or bias, stray light leaked in during the flats, or the flats were overexposed. Retake the flats with matching dark flats and an evenly seated light source.