Astronomy tools · Deep-sky imaging

Sub-exposure length, from the formula.

Give your camera’s read noise and either the sky background in electrons per pixel per second or a test sub’s background level. Get the sub length at which read noise stops mattering, and what each choice of constant costs.

The SharpCap forum thread “calculation of sub exposure - formula” opens with the equation in plain text, sub exp. length = C * RN^2 / LPR, and runs to 15 replies of people checking units and constants. The software’s author answered that “the ‘swamp’ number is basically the ‘C’ in the SharpCap formula” and that it is “worked out from how much additional noise you want to accept.” This page does that sum and shows you the noise cost of the constant you pick.

Short answer: With 1.5 electrons of read noise and a sky background of 0.8 electrons per pixel per second, the formula with C = 10 gives 10 × 1.5² ÷ 0.8 = 28 seconds. With C = 20 it gives 56 seconds.

Sources listed belowChecked 26 October 2026

The idea

Every sub-exposure pays a fixed read-noise cost when the sensor is read out, however long it lasts. The sky adds its own noise, growing with time. Make the sub long enough and the sky noise swamps the read noise, and longer subs gain you almost nothing. The SharpCap formula puts a number on that: sub length = C × RN² ÷ LPR, where RN is read noise in electrons, LPR is the light pollution (sky background) rate in electrons per pixel per second, and C is how much extra noise you accept. The thread’s author states the rate must be in electrons per pixel per second, and a later reply confirms read noise is dimensionless in the formula and the rate is per second.

What the constant means

In the thread, the author says that 10% gives a C of about 10, 5% gives about 20, and so on. Here is the arithmetic behind it, which is this page’s own working. At sub length t = C × RN² ÷ LPR the sky contributes LPR × t = C × RN² electrons of noise variance, and the read noise adds RN² more. So read noise adds 1 ÷ C to the variance: 10% at C = 10 and 5% at C = 20. In terms of standard deviation, which is what you see as grain, the rise is √(1 + 1 ÷ C) − 1, about 4.9% and 2.5%. Either way, going from C = 10 to C = 20 doubles the sub length and halves the extra variance, a poor trade if clouds, satellites or guiding errors cost you whole subs.

Finding the sky background

If you know the rate directly, enter it. Otherwise take a test sub and read the median of a patch of empty sky, subtract the bias offset, and multiply by the camera’s gain in electrons per ADU. That is the electrons per pixel in the test sub, and dividing by the test sub length gives the rate. Use the camera’s native ADU values and the matching gain figure. If a 12-bit camera reports 16-bit scaled values, divide them by 16 before using a gain published per native ADU.

What this does not cover

A bright star can saturate before the formula’s sub length, so check the histogram. Mount tracking and polar alignment can set a lower limit than the formula does; the polar alignment calculator covers that. And the answer is for broadband, not for narrowband filters, where the sky rate is far lower and so the formula gives much longer subs.

Worked example

These are illustrative numbers, not a specific camera. Read noise 1.5 e-, sky background 0.8 e-/pixel/s. At C = 10: 10 × 2.25 ÷ 0.8 = 28.1 seconds. In that time the sky puts about 22.5 electrons in each pixel, ten times the read noise variance of 2.25, so read noise adds 10% to the variance (4.9% to the noise). At C = 20 the sub is 56.3 seconds. From a test sub instead: a 30 second frame with a median of 600 ADU, an offset of 100 ADU and a gain of 0.25 e-/ADU holds (600 − 100) × 0.25 = 125 electrons, a rate of 4.17 e-/pixel/s, which gives 10 × 2.25 ÷ 4.17 = 5.4 seconds for the same camera under a much brighter sky.

Frequently asked questions

What is the formula for sub-exposure length?

Sub length = C × read noise² ÷ sky background rate, with the read noise in electrons and the sky rate in electrons per pixel per second. It is the formula in the SharpCap forum thread on calculating sub exposure.

What value of C should I use?

The thread’s author says 10% extra noise corresponds to a C of about 10 and 5% to about 20. A C of 10 is a common choice and keeps sub counts manageable.

How do I get the sky background in electrons?

Subtract the bias offset from the median ADU of an empty patch in a test sub, multiply by the gain in electrons per ADU, and divide by the test exposure time.

Why do darker skies need longer subs?

A dark sky adds electrons slowly, so it takes longer for the sky noise to swamp the read noise. The formula divides by the sky rate, so halving the rate doubles the sub length.

Will longer subs ever hurt?

Yes. Bright stars may saturate, and a satellite, a gust or a guiding error ruins a longer frame. Longer than the formula says gains little, so many photographers stay near it.

Does this work for narrowband filters?

The same formula applies, but the sky rate through a narrow filter is far lower, so the sub length it gives is much longer, often limited by tracking or saturation first.

Sources and how it is calculated

Retrieved

The sub length is the SharpCap formula as posted in that thread. The variance and standard deviation figures for each C are this page’s own arithmetic. Pages were read on 26 October 2026.

Runs entirely in your browser. Nothing you type is sent or stored. Not affiliated with any forum, software maker or publisher named on this page.

A guide, not a rule

Use the result as a starting point and check your histogram. Read noise, gain and sky rate vary with your camera settings and with the night.

Advertisement
Advertisement