Home / Science / Astronomy and space / Astrophotography / Sub-exposure calculatorTool #42

Sub-exposure calculator for astrophotography: how long should each sub be?

Find the shortest sub length that buries your camera's read noise under sky noise, from a test frame or from your sky brightness. Works for one-shot colour, LRGB and narrowband, with a chart of what each length costs.

Keep it one tap away for everyday use.

Bookmark Sub-exposure calculator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Camera
  2. Sky
  3. Sub length
Nothing is uploadedWorks offline once open

Camera

Read noise at the gain you shoot at, from the camera maker's chart. Dark current is close to 0 for cooled cameras; use about 0.1 for an uncooled camera on a warm night.

Sky

Take one sub with the filter you will use, then read the median of an empty patch of sky (not the whole image) and the median of a bias frame. Use the gain in the units of your file: if the camera has a 12 or 14-bit sensor saved as 16-bit, divide the maker's e⁻/ADU by 16 or 4.

What it does

Deep-sky images are stacks of many shorter exposures (“subs”). Each sub carries the camera’s read noise once, so very short subs add a lot of it, while very long subs risk satellites, wind and saturated stars and gain almost nothing. The sweet spot is the shortest sub in which the noise from the sky background is large enough to “swamp” the read noise. This calculator finds it for your camera, sky and filter, and draws how much signal-to-noise every other sub length would give you in the same total time.

How to use it

  1. Type the read noise of your camera at the gain you use. Makers publish a chart of read noise against gain. Leave dark current at 0 for a cooled camera.
  2. Give the sky signal in one of two ways:
    • From a test frame (best): take one sub, for example 60 s, with the filter you will use. Note the median level of an empty patch of sky and the median of a bias frame (the offset), both in ADU, and the camera’s gain in electrons per ADU. If your camera has a 12 or 14-bit sensor but saves 16-bit files, divide the maker’s gain by 16 or 4 so it matches the file’s numbers.
    • From sky brightness: type a sky quality meter reading or a light pollution map value in mag/arcsec², your filter, aperture, focal length, pixel size and quantum efficiency. This is a rough estimate.
  3. Choose how much extra noise you will accept from read noise. 5 % is the usual choice. It is the same as the “sky noise ≥ 3 × read noise” rule of thumb.

How it works

Read noise R adds to the shot noise of the sky signal S (electrons per pixel per second) and dark current D. In a sub of length t the noise is √((S + D)t + R²). Allowing it to be at most (1 + p) times the noise without read noise gives

t = R² / ((S + D) × ((1 + p)² − 1)),

so a 5 % penalty needs about 10 R² / S. The chart plots √((S + D)t / ((S + D)t + R²)), the share of the ideal signal-to-noise you reach in a fixed total time.

Worked example

A cooled colour CMOS camera has 1.5 e⁻ read noise and 0.25 e⁻/ADU. A 60 s test frame shows a sky background of 1250 ADU on an offset of 500 ADU: 750 ADU, or 187.5 electrons, which is 3.125 e⁻ per pixel per second. For 5 % extra noise the shortest sub is 1.5² / (3.125 × 0.1025) = 7.0 s, so anything from about 8 s up works. The 60 s test frame was already 99.4 % efficient. Each colour pixel sees roughly 100 nm of sky, so under the same sky a 7 nm narrowband filter cuts the sky signal about 14-fold, and subs need to be about 100 s or longer.

Frequently asked questions

Should I always use the shortest sub? No, it is the shortest that loses almost nothing. Longer is fine as long as stars do not saturate and your mount tracks well. Short subs also make more files to store and stack.

Why does narrowband need much longer subs? The filter blocks most of the sky light, so it takes longer for sky noise to grow past the read noise.

Is anything uploaded? No. Everything is worked out in your browser and the page works offline.

Last updated 2026-11-08.

Change log for Sub-exposure calculator

  1. Add five astronomy tools: cosmology, sub-exposure, backfocus, magnitude-flux, dark-sky calendar Details on GitHub

Every change to fibub

Related tools

Observing session planner #18 Pick the astronomy tools you need for a night (sky tonight, target heights, polar alignment, your telescope, the month's events and a log sheet), see them together on one page, and download them as one image, PDF or Word file, or each on its own. Magnitude and flux converter #44 Convert between Vega and AB magnitudes, Jansky, f_ν, f_λ and photon flux in UBVRI, 2MASS, WISE and SDSS bands or at any wavelength, with the zero points and their sources shown. Light pollution calculator #51 Turn a sky quality meter reading, the faintest star you can see, a Bortle class or a luminance into all the others, see how much artificial light adds to your sky, and how much longer your images need than at a dark site. Backfocus calculator #43 Add up your camera, filter wheel, off-axis guider and adapters, allow for the filter's thickness, and get the exact spacer stack to hit your reducer's or flattener's backfocus from the spacers you own. Mosaic planner #49 Work out how many panels you need to cover a big target such as the Andromeda Galaxy with your telescope and camera, with the overlap you choose, a picture of the layout, and RA/Dec for every panel centre as a CSV. Dark-sky calendar #45 See a whole year of nights at once: twilight, true darkness and moonlight for your place, the Moon-free dark hours in each month, and the best nights for deep-sky observing and imaging. Telescope and camera calculator #19 Enter your telescope, eyepieces and camera to see magnification, true field, exit pupil, faintest stars, image scale and whether your camera suits your seeing, with a picture of what fits in the view. Star trails and exposure calculator #20 Find the longest exposure before stars start to trail with your camera and lens (NPF and 500 rule), and plan star-trail sequences: frames, total time and card space. FITS viewer and header inspector #21 Open a FITS image to view it with a proper stretch, read pixel values and sky coordinates, and see its full header. Or drop a whole night's files to list exposure, filter and temperature and total your time per filter. Nothing is uploaded.